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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='MiniDLNA'
579PACKAGE_TARNAME='minidlna'
580PACKAGE_VERSION='1.1.3'
581PACKAGE_STRING='MiniDLNA 1.1.3'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_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
621gt_needs=
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625STATIC_LDFLAGS
626STATIC_CFLAGS
627NEED_VORBIS_FALSE
628NEED_VORBIS_TRUE
629NEED_OGG_FALSE
630NEED_OGG_TRUE
631HAVE_FLAC_FALSE
632HAVE_FLAC_TRUE
633HAVE_VORBISFILE_FALSE
634HAVE_VORBISFILE_TRUE
635LIBAVUTIL_LIBS
636LIBAVFORMAT_LIBS
637LIBSQLITE3_LIBS
638LIBID3TAG_LIBS
639LIBEXIF_LIBS
640LIBJPEG_LIBS
641LIBOBJS
642LN_S
643POSUB
644LTLIBINTL
645LIBINTL
646INTLLIBS
647INTL_MACOSX_LIBS
648XGETTEXT_EXTRA_OPTIONS
649MSGMERGE
650XGETTEXT_015
651XGETTEXT
652GMSGFMT_015
653MSGFMT_015
654GMSGFMT
655MSGFMT
656GETTEXT_MACRO_VERSION
657USE_NLS
658LTLIBICONV
659LIBICONV
660EGREP
661GREP
662CPP
663am__fastdepCC_FALSE
664am__fastdepCC_TRUE
665CCDEPMODE
666am__nodep
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
680AM_BACKSLASH
681AM_DEFAULT_VERBOSITY
682AM_DEFAULT_V
683AM_V
684am__untar
685am__tar
686AMTAR
687am__leading_dot
688SET_MAKE
689AWK
690mkdir_p
691MKDIR_P
692INSTALL_STRIP_PROGRAM
693STRIP
694install_sh
695MAKEINFO
696AUTOHEADER
697AUTOMAKE
698AUTOCONF
699ACLOCAL
700VERSION
701PACKAGE
702CYGPATH_W
703am__isrc
704INSTALL_DATA
705INSTALL_SCRIPT
706INSTALL_PROGRAM
707target_os
708target_vendor
709target_cpu
710target
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_silent_rules
761enable_dependency_tracking
762with_gnu_ld
763enable_rpath
764with_libiconv_prefix
765enable_nls
766with_libintl_prefix
767with_log_path
768with_db_path
769with_os_name
770with_os_version
771with_os_url
772enable_tivo
773enable_netgear
774enable_readynas
775enable_static
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_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.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
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'
1172Try \`$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
1194done
1195
1196if test -n "$ac_prev"; then
1197  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198  as_fn_error $? "missing argument to $ac_option"
1199fi
1200
1201if 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
1207fi
1208
1209# Check all directory arguments for consistency.
1210for 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
1214do
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"
1228done
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.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if 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
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error $? "working directory cannot be determined"
1256test "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.
1261if 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
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if 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"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
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.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for 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}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if 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
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
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
1346Installation 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
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine 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
1383Program 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
1388System 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
1393fi
1394
1395if 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
1401Optional 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
1418Optional 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
1432Some 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
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to the package provider.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if 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
1458case "$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 ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $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 ;;
1487esac
1488ac_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
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508MiniDLNA configure 1.1.3
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
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.
1525ac_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"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval 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
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
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.
1563ac_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"
1567case "(($ac_try" in
1568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569  *) ac_try_echo=$ac_try;;
1570esac
1571eval 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
1586else
1587  $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590    ac_retval=1
1591fi
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.
1602ac_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; }
1608if eval \${$3+:} false; then :
1609  $as_echo_n "(cached) " >&6
1610fi
1611eval ac_res=\$$3
1612	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613$as_echo "$ac_res" >&6; }
1614else
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; }
1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  ac_header_compiler=yes
1625else
1626  ac_header_compiler=no
1627fi
1628rm -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; }
1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h.  */
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_cpp "$LINENO"; then :
1640  ac_header_preproc=yes
1641else
1642  ac_header_preproc=no
1643fi
1644rm -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?
1649case $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    ;;
1668esac
1669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670$as_echo_n "checking for $2... " >&6; }
1671if eval \${$3+:} false; then :
1672  $as_echo_n "(cached) " >&6
1673else
1674  eval "$3=\$ac_header_compiler"
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679fi
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.
1688ac_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"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval 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;;
1705esac
1706eval 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
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
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.
1730ac_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; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  eval "$3=yes"
1745else
1746  eval "$3=no"
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749fi
1750eval 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.
1760ac_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"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval 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
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
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.
1807ac_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; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814else
1815  eval "$3=no"
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819int
1820main ()
1821{
1822if (sizeof ($2))
1823	 return 0;
1824  ;
1825  return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$4
1832int
1833main ()
1834{
1835if (sizeof (($2)))
1836	    return 0;
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842
1843else
1844  eval "$3=yes"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849fi
1850eval 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.
1861ac_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; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
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
1877int
1878main ()
1879{
1880static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1881test_array [0] = 0;
1882return test_array [0];
1883
1884  ;
1885  return 0;
1886}
1887_ACEOF
1888if 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" ;;
1894esac
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897       if eval test \"x\$"$3"\" = x"no"; then :
1898
1899else
1900  break
1901fi
1902     done
1903fi
1904eval 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.
1915ac_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; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
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 };
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1936test_array [0] = 0;
1937return test_array [0];
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if 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 };
1948int
1949main ()
1950{
1951static 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))];
1953test_array [0] = 0;
1954return test_array [0];
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961
1962else
1963  case $ac_type in #(
1964  int$2_t) :
1965    eval "$3=yes" ;; #(
1966  *) :
1967    eval "$3=\$ac_type" ;;
1968esac
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973       if eval test \"x\$"$3"\" = x"no"; then :
1974
1975else
1976  break
1977fi
1978     done
1979fi
1980eval 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.
1991ac_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; }
1996if eval \${$4+:} false; then :
1997  $as_echo_n "(cached) " >&6
1998else
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$5
2002int
2003main ()
2004{
2005static $2 ac_aggr;
2006if (ac_aggr.$3)
2007return 0;
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013  eval "$4=yes"
2014else
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$5
2018int
2019main ()
2020{
2021static $2 ac_aggr;
2022if (sizeof ac_aggr.$3)
2023return 0;
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029  eval "$4=yes"
2030else
2031  eval "$4=no"
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037eval 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
2047ac_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; }
2052if eval \${$3+:} false; then :
2053  $as_echo_n "(cached) " >&6
2054else
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
2078extern "C"
2079#endif
2080char $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
2085choke me
2086#endif
2087
2088int
2089main ()
2090{
2091return $2 ();
2092  ;
2093  return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_link "$LINENO"; then :
2097  eval "$3=yes"
2098else
2099  eval "$3=no"
2100fi
2101rm -f core conftest.err conftest.$ac_objext \
2102    conftest$ac_exeext conftest.$ac_ext
2103fi
2104eval 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
2110cat >config.log <<_ACEOF
2111This file contains any messages produced by compilers while
2112running configure, to aid debugging if configure makes a mistake.
2113
2114It was created by MiniDLNA $as_me 1.1.3, which was
2115generated by GNU Autoconf 2.69.  Invocation command line was
2116
2117  $ $0 $@
2118
2119_ACEOF
2120exec 5>>config.log
2121{
2122cat <<_ASUNAME
2123## --------- ##
2124## Platform. ##
2125## --------- ##
2126
2127hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131uname -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
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149  IFS=$as_save_IFS
2150  test -z "$as_dir" && as_dir=.
2151    $as_echo "PATH: $as_dir"
2152  done
2153IFS=$as_save_IFS
2154
2155} >&5
2156
2157cat >&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.
2172ac_configure_args=
2173ac_configure_args0=
2174ac_configure_args1=
2175ac_must_keep_next=false
2176for ac_pass in 1 2
2177do
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
2211done
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.
2220trap '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
2307for ac_signal in 1 2 13 15; do
2308  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2309done
2310ac_signal=0
2311
2312# confdefs.h avoids OS command line length limits that DEFS can exceed.
2313rm -f -r conftest* confdefs.h
2314
2315$as_echo "/* confdefs.h */" > confdefs.h
2316
2317# Predefined preprocessor variables.
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_NAME "$PACKAGE_NAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_VERSION "$PACKAGE_VERSION"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_STRING "$PACKAGE_STRING"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337_ACEOF
2338
2339cat >>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.
2346ac_site_file1=NONE
2347ac_site_file2=NONE
2348if 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
2355elif test "x$prefix" != xNONE; then
2356  ac_site_file1=$prefix/share/config.site
2357  ac_site_file2=$prefix/etc/config.site
2358else
2359  ac_site_file1=$ac_default_prefix/share/config.site
2360  ac_site_file2=$ac_default_prefix/etc/config.site
2361fi
2362for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2363do
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;}
2372as_fn_error $? "failed to load site script $ac_site_file
2373See \`config.log' for more details" "$LINENO" 5; }
2374  fi
2375done
2376
2377if 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
2388else
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
2392fi
2393
2394gt_needs="$gt_needs "
2395# Check that the precious variables saved in the cache have kept the same
2396# value.
2397ac_cache_corrupted=false
2398for 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
2444done
2445if $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
2451fi
2452## -------------------- ##
2453## Main body of script. ##
2454## -------------------- ##
2455
2456ac_ext=c
2457ac_cpp='$CPP $CPPFLAGS'
2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463#LT_INIT
2464
2465ac_aux_dir=
2466for 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
2480done
2481if test -z "$ac_aux_dir"; then
2482  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483fi
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.
2489ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2490ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2491ac_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; }
2500if ${ac_cv_build+:} false; then :
2501  $as_echo_n "(cached) " >&6
2502else
2503  ac_build_alias=$build_alias
2504test "x$ac_build_alias" = x &&
2505  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2506test "x$ac_build_alias" = x &&
2507  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2508ac_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
2511fi
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2513$as_echo "$ac_cv_build" >&6; }
2514case $ac_cv_build in
2515*-*-*) ;;
2516*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2517esac
2518build=$ac_cv_build
2519ac_save_IFS=$IFS; IFS='-'
2520set x $ac_cv_build
2521shift
2522build_cpu=$1
2523build_vendor=$2
2524shift; shift
2525# Remember, the first character of IFS is used to create $*,
2526# except with old shells:
2527build_os=$*
2528IFS=$ac_save_IFS
2529case $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; }
2534if ${ac_cv_host+:} false; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  if test "x$host_alias" = x; then
2538  ac_cv_host=$ac_cv_build
2539else
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
2542fi
2543
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2546$as_echo "$ac_cv_host" >&6; }
2547case $ac_cv_host in
2548*-*-*) ;;
2549*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2550esac
2551host=$ac_cv_host
2552ac_save_IFS=$IFS; IFS='-'
2553set x $ac_cv_host
2554shift
2555host_cpu=$1
2556host_vendor=$2
2557shift; shift
2558# Remember, the first character of IFS is used to create $*,
2559# except with old shells:
2560host_os=$*
2561IFS=$ac_save_IFS
2562case $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; }
2567if ${ac_cv_target+:} false; then :
2568  $as_echo_n "(cached) " >&6
2569else
2570  if test "x$target_alias" = x; then
2571  ac_cv_target=$ac_cv_host
2572else
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
2575fi
2576
2577fi
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2579$as_echo "$ac_cv_target" >&6; }
2580case $ac_cv_target in
2581*-*-*) ;;
2582*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2583esac
2584target=$ac_cv_target
2585ac_save_IFS=$IFS; IFS='-'
2586set x $ac_cv_target
2587shift
2588target_cpu=$1
2589target_vendor=$2
2590shift; shift
2591# Remember, the first character of IFS is used to create $*,
2592# except with old shells:
2593target_os=$*
2594IFS=$ac_save_IFS
2595case $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.
2600test -n "$target_alias" &&
2601  test "$program_prefix$program_suffix$program_transform_name" = \
2602    NONENONEs,x,x, &&
2603  program_prefix=${target_alias}-
2604am__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; }
2622if test -z "$INSTALL"; then
2623if ${ac_cv_path_install+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    # Account for people who put trailing slashes in PATH elements.
2632case $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    ;;
2670esac
2671
2672  done
2673IFS=$as_save_IFS
2674
2675rm -rf conftest.one conftest.two conftest.dir
2676
2677fi
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
2687fi
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.
2693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2694
2695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2696
2697test -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.
2703am_lf='
2704'
2705case `pwd` in
2706  *[\\\"\#\$\&\'\`$am_lf]*)
2707    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2708esac
2709case $srcdir in
2710  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2711    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2712esac
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).
2719if (
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   )
2747then
2748   # Ok.
2749   :
2750else
2751   as_fn_error $? "newly created file is older than distributed files!
2752Check your system clock" "$LINENO" 5
2753fi
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.
2758am_sleep_pid=
2759if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2760  ( sleep 1 ) &
2761  am_sleep_pid=$!
2762fi
2763
2764rm -f conftest.file
2765
2766test "$program_prefix" != NONE &&
2767  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2768# Use a double $ so make ignores it.
2769test "$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.
2773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2775
2776# expand $ac_aux_dir to an absolute path
2777am_aux_dir=`cd $ac_aux_dir && pwd`
2778
2779if 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
2786fi
2787# Use eval to expand $SHELL
2788if eval "$MISSING --is-lightweight"; then
2789  am_missing_run="$MISSING "
2790else
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;}
2794fi
2795
2796if 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
2803fi
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.
2809if 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.
2812set 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; }
2815if ${ac_cv_prog_STRIP+:} false; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  if test -n "$STRIP"; then
2819  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
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
2832done
2833  done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838STRIP=$ac_cv_prog_STRIP
2839if test -n "$STRIP"; then
2840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2841$as_echo "$STRIP" >&6; }
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
2848fi
2849if 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.
2852set 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; }
2855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$ac_ct_STRIP"; then
2859  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
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
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2879if 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; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887  if test "x$ac_ct_STRIP" = x; then
2888    STRIP=":"
2889  else
2890    case $cross_compiling:$ac_tool_warned in
2891yes:)
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;}
2894ac_tool_warned=yes ;;
2895esac
2896    STRIP=$ac_ct_STRIP
2897  fi
2898else
2899  STRIP="$ac_cv_prog_STRIP"
2900fi
2901
2902fi
2903INSTALL_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; }
2907if test -z "$MKDIR_P"; then
2908  if ${ac_cv_path_mkdir+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2913do
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
2929IFS=$as_save_IFS
2930
2931fi
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
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2945$as_echo "$MKDIR_P" >&6; }
2946
2947for ac_prog in gawk mawk nawk awk
2948do
2949  # Extract the first word of "$ac_prog", so it can be a program name with args.
2950set 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; }
2953if ${ac_cv_prog_AWK+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  if test -n "$AWK"; then
2957  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
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
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976AWK=$ac_cv_prog_AWK
2977if test -n "$AWK"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979$as_echo "$AWK" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986  test -n "$AWK" && break
2987done
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; }
2991set x ${MAKE-make}
2992ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  cat >conftest.make <<\_ACEOF
2997SHELL = /bin/sh
2998all:
2999	@echo '@@@%%%=$(MAKE)=@@@%%%'
3000_ACEOF
3001# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002case `${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;;
3007esac
3008rm -f conftest.make
3009fi
3010if 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=
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017  SET_MAKE="MAKE=${MAKE-make}"
3018fi
3019
3020rm -rf .tst 2>/dev/null
3021mkdir .tst 2>/dev/null
3022if test -d .tst; then
3023  am__leading_dot=.
3024else
3025  am__leading_dot=_
3026fi
3027rmdir .tst 2>/dev/null
3028
3029# Check whether --enable-silent-rules was given.
3030if test "${enable_silent_rules+set}" = set; then :
3031  enableval=$enable_silent_rules;
3032fi
3033
3034case $enable_silent_rules in # (((
3035  yes) AM_DEFAULT_VERBOSITY=0;;
3036   no) AM_DEFAULT_VERBOSITY=1;;
3037    *) AM_DEFAULT_VERBOSITY=1;;
3038esac
3039am_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; }
3042if ${am_cv_make_support_nested_variables+:} false; then :
3043  $as_echo_n "(cached) " >&6
3044else
3045  if $as_echo 'TRUE=$(BAR$(V))
3046BAR0=false
3047BAR1=true
3048V=1
3049am__doit:
3050	@$(TRUE)
3051.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052  am_cv_make_support_nested_variables=yes
3053else
3054  am_cv_make_support_nested_variables=no
3055fi
3056fi
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; }
3059if test $am_cv_make_support_nested_variables = yes; then
3060    AM_V='$(V)'
3061  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3062else
3063  AM_V=$AM_DEFAULT_VERBOSITY
3064  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3065fi
3066AM_BACKSLASH='\'
3067
3068if 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
3076fi
3077
3078# test whether we have cygpath
3079if 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
3085fi
3086
3087
3088# Define the identity of the package.
3089 PACKAGE='minidlna'
3090 VERSION='1.1.3'
3091
3092
3093cat >>confdefs.h <<_ACEOF
3094#define PACKAGE "$PACKAGE"
3095_ACEOF
3096
3097
3098cat >>confdefs.h <<_ACEOF
3099#define VERSION "$VERSION"
3100_ACEOF
3101
3102# Some tools Automake needs.
3103
3104ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3105
3106
3107AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3108
3109
3110AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3111
3112
3113AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3114
3115
3116MAKEINFO=${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>
3122mkdir_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 ...
3128AMTAR='$${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
3134am__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.
3149if rm -f && rm -fr && rm -rf; then : OK; else
3150  cat >&2 <<'END'
3151Oops!
3152
3153Your 'rm' program seems unable to run without file operands specified
3154on the command line, even when the '-f' option is present.  This is contrary
3155to the behaviour of most rm programs out there, and not conforming with
3156the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3157
3158Please tell bug-automake@gnu.org about your system, including the value
3159of your $PATH and any error possibly output before this message.  This
3160can help us improve future automake versions.
3161
3162END
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'
3169Aborting the configuration process, to ensure you take notice of the issue.
3170
3171You can download and install GNU coreutils to get an 'rm' implementation
3172that behaves properly: <http://www.gnu.org/software/coreutils/>.
3173
3174If you want to complete the configuration process using your problematic
3175'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3176to "yes", and re-run configure.
3177
3178END
3179    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3180  fi
3181fi
3182ac_config_headers="$ac_config_headers config.h"
3183
3184# Check whether --enable-silent-rules was given.
3185if test "${enable_silent_rules+set}" = set; then :
3186  enableval=$enable_silent_rules;
3187fi
3188
3189case $enable_silent_rules in # (((
3190  yes) AM_DEFAULT_VERBOSITY=0;;
3191   no) AM_DEFAULT_VERBOSITY=1;;
3192    *) AM_DEFAULT_VERBOSITY=0;;
3193esac
3194am_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; }
3197if ${am_cv_make_support_nested_variables+:} false; then :
3198  $as_echo_n "(cached) " >&6
3199else
3200  if $as_echo 'TRUE=$(BAR$(V))
3201BAR0=false
3202BAR1=true
3203V=1
3204am__doit:
3205	@$(TRUE)
3206.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3207  am_cv_make_support_nested_variables=yes
3208else
3209  am_cv_make_support_nested_variables=no
3210fi
3211fi
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; }
3214if test $am_cv_make_support_nested_variables = yes; then
3215    AM_V='$(V)'
3216  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3217else
3218  AM_V=$AM_DEFAULT_VERBOSITY
3219  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3220fi
3221AM_BACKSLASH='\'
3222
3223
3224DEPDIR="${am__leading_dot}deps"
3225
3226ac_config_commands="$ac_config_commands depfiles"
3227
3228
3229am_make=${MAKE-make}
3230cat > confinc << 'END'
3231am__doit:
3232	@echo this is the am__doit target
3233.PHONY: am__doit
3234END
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; }
3238am__include="#"
3239am__quote=
3240_am_result=none
3241# First try GNU make style include.
3242echo "include confinc" > confmf
3243# Ignore all kinds of additional output from 'make'.
3244case `$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  ;;
3250esac
3251# Now try BSD make style include.
3252if 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
3261fi
3262
3263
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265$as_echo "$_am_result" >&6; }
3266rm -f confinc confmf
3267
3268# Check whether --enable-dependency-tracking was given.
3269if test "${enable_dependency_tracking+set}" = set; then :
3270  enableval=$enable_dependency_tracking;
3271fi
3272
3273if test "x$enable_dependency_tracking" != xno; then
3274  am_depcomp="$ac_aux_dir/depcomp"
3275  AMDEPBACKSLASH='\'
3276  am__nodep='_no'
3277fi
3278 if test "x$enable_dependency_tracking" != xno; then
3279  AMDEP_TRUE=
3280  AMDEP_FALSE='#'
3281else
3282  AMDEP_TRUE='#'
3283  AMDEP_FALSE=
3284fi
3285
3286
3287ac_ext=c
3288ac_cpp='$CPP $CPPFLAGS'
3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292if 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.
3294set 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; }
3297if ${ac_cv_prog_CC+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
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
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330fi
3331if 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.
3334set 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; }
3337if ${ac_cv_prog_ac_ct_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$ac_ct_CC"; then
3341  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
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
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361if 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; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369  if test "x$ac_ct_CC" = x; then
3370    CC=""
3371  else
3372    case $cross_compiling:$ac_tool_warned in
3373yes:)
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;}
3376ac_tool_warned=yes ;;
3377esac
3378    CC=$ac_ct_CC
3379  fi
3380else
3381  CC="$ac_cv_prog_CC"
3382fi
3383
3384if 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.
3387set 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; }
3390if ${ac_cv_prog_CC+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  if test -n "$CC"; then
3394  ac_cv_prog_CC="$CC" # Let the user override the test.
3395else
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
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
3407done
3408  done
3409IFS=$as_save_IFS
3410
3411fi
3412fi
3413CC=$ac_cv_prog_CC
3414if test -n "$CC"; then
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416$as_echo "$CC" >&6; }
3417else
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
3420fi
3421
3422
3423  fi
3424fi
3425if test -z "$CC"; then
3426  # Extract the first word of "cc", so it can be a program name with args.
3427set 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; }
3430if ${ac_cv_prog_CC+:} false; then :
3431  $as_echo_n "(cached) " >&6
3432else
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436  ac_prog_rejected=no
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
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
3452done
3453  done
3454IFS=$as_save_IFS
3455
3456if 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
3467fi
3468fi
3469fi
3470CC=$ac_cv_prog_CC
3471if test -n "$CC"; then
3472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473$as_echo "$CC" >&6; }
3474else
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476$as_echo "no" >&6; }
3477fi
3478
3479
3480fi
3481if 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.
3486set 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; }
3489if ${ac_cv_prog_CC+:} false; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  if test -n "$CC"; then
3493  ac_cv_prog_CC="$CC" # Let the user override the test.
3494else
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
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
3506done
3507  done
3508IFS=$as_save_IFS
3509
3510fi
3511fi
3512CC=$ac_cv_prog_CC
3513if test -n "$CC"; then
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515$as_echo "$CC" >&6; }
3516else
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518$as_echo "no" >&6; }
3519fi
3520
3521
3522    test -n "$CC" && break
3523  done
3524fi
3525if test -z "$CC"; then
3526  ac_ct_CC=$CC
3527  for ac_prog in cl.exe
3528do
3529  # Extract the first word of "$ac_prog", so it can be a program name with args.
3530set 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; }
3533if ${ac_cv_prog_ac_ct_CC+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  if test -n "$ac_ct_CC"; then
3537  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
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
3550done
3551  done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557if 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; }
3560else
3561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562$as_echo "no" >&6; }
3563fi
3564
3565
3566  test -n "$ac_ct_CC" && break
3567done
3568
3569  if test "x$ac_ct_CC" = x; then
3570    CC=""
3571  else
3572    case $cross_compiling:$ac_tool_warned in
3573yes:)
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;}
3576ac_tool_warned=yes ;;
3577esac
3578    CC=$ac_ct_CC
3579  fi
3580fi
3581
3582fi
3583
3584
3585test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error $? "no acceptable C compiler found in \$PATH
3588See \`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
3592set X $ac_compile
3593ac_compiler=$2
3594for ac_option in --version -v -V -qversion; do
3595  { { ac_try="$ac_compiler $ac_option >&5"
3596case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval 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; }
3613done
3614
3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617
3618int
3619main ()
3620{
3621
3622  ;
3623  return 0;
3624}
3625_ACEOF
3626ac_clean_files_save=$ac_clean_files
3627ac_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; }
3633ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634
3635# The possible output files:
3636ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3637
3638ac_rmfiles=
3639for ac_file in $ac_files
3640do
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
3645done
3646rm -f $ac_rmfiles
3647
3648if { { ac_try="$ac_link_default"
3649case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval 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.
3664for ac_file in $ac_files ''
3665do
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
3688done
3689test "$ac_cv_exeext" = no && ac_cv_exeext=
3690
3691else
3692  ac_file=''
3693fi
3694if 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
3698sed '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;}
3702as_fn_error 77 "C compiler cannot create executables
3703See \`config.log' for more details" "$LINENO" 5; }
3704else
3705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706$as_echo "yes" >&6; }
3707fi
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; }
3712ac_exeext=$ac_cv_exeext
3713
3714rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3715ac_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; }
3718if { { ac_try="$ac_link"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval 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'.
3733for 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
3741done
3742else
3743  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3746See \`config.log' for more details" "$LINENO" 5; }
3747fi
3748rm -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
3752rm -f conftest.$ac_ext
3753EXEEXT=$ac_cv_exeext
3754ac_exeext=$EXEEXT
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <stdio.h>
3758int
3759main ()
3760{
3761FILE *f = fopen ("conftest.out", "w");
3762 return ferror (f) || fclose (f) != 0;
3763
3764  ;
3765  return 0;
3766}
3767_ACEOF
3768ac_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; }
3773if test "$cross_compiling" != yes; then
3774  { { ac_try="$ac_link"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval 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;;
3789esac
3790eval 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;}
3803as_fn_error $? "cannot run C compiled programs.
3804If you meant to cross compile, use \`--host'.
3805See \`config.log' for more details" "$LINENO" 5; }
3806    fi
3807  fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3810$as_echo "$cross_compiling" >&6; }
3811
3812rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3813ac_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; }
3816if ${ac_cv_objext+:} false; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.o conftest.obj
3831if { { ac_try="$ac_compile"
3832case "(($ac_try" in
3833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834  *) ac_try_echo=$ac_try;;
3835esac
3836eval 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
3849done
3850else
3851  $as_echo "$as_me: failed program was:" >&5
3852sed '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;}
3856as_fn_error $? "cannot compute suffix of object files: cannot compile
3857See \`config.log' for more details" "$LINENO" 5; }
3858fi
3859rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3862$as_echo "$ac_cv_objext" >&6; }
3863OBJEXT=$ac_cv_objext
3864ac_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; }
3867if ${ac_cv_c_compiler_gnu+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876#ifndef __GNUC__
3877       choke me
3878#endif
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885  ac_compiler_gnu=yes
3886else
3887  ac_compiler_gnu=no
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3894$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3895if test $ac_compiler_gnu = yes; then
3896  GCC=yes
3897else
3898  GCC=
3899fi
3900ac_test_CFLAGS=${CFLAGS+set}
3901ac_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; }
3904if ${ac_cv_prog_cc_g+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
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
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_prog_cc_g=yes
3924else
3925  CFLAGS=""
3926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928
3929int
3930main ()
3931{
3932
3933  ;
3934  return 0;
3935}
3936_ACEOF
3937if ac_fn_c_try_compile "$LINENO"; then :
3938
3939else
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
3945int
3946main ()
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_g=yes
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961   ac_c_werror_flag=$ac_save_c_werror_flag
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3964$as_echo "$ac_cv_prog_cc_g" >&6; }
3965if test "$ac_test_CFLAGS" = set; then
3966  CFLAGS=$ac_save_CFLAGS
3967elif 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
3973else
3974  if test "$GCC" = yes; then
3975    CFLAGS="-O2"
3976  else
3977    CFLAGS=
3978  fi
3979fi
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; }
3982if ${ac_cv_prog_cc_c89+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  ac_cv_prog_cc_c89=no
3986ac_save_CC=$CC
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdarg.h>
3990#include <stdio.h>
3991struct stat;
3992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3993struct buf { int x; };
3994FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995static char *e (p, i)
3996     char **p;
3997     int i;
3998{
3999  return p[i];
4000}
4001static 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.  */
4018int 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'
4023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
4025int test (int i, double x);
4026struct s1 {int (*f) (int a);};
4027struct s2 {int (*f) (double a);};
4028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4029int argc;
4030char **argv;
4031int
4032main ()
4033{
4034return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041do
4042  CC="$ac_save_CC $ac_arg"
4043  if ac_fn_c_try_compile "$LINENO"; then :
4044  ac_cv_prog_cc_c89=$ac_arg
4045fi
4046rm -f core conftest.err conftest.$ac_objext
4047  test "x$ac_cv_prog_cc_c89" != "xno" && break
4048done
4049rm -f conftest.$ac_ext
4050CC=$ac_save_CC
4051
4052fi
4053# AC_CACHE_VAL
4054case "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; } ;;
4065esac
4066if test "x$ac_cv_prog_cc_c89" != xno; then :
4067
4068fi
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_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; }
4083if ${am_cv_prog_cc_c_o+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088
4089int
4090main ()
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
4117fi
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; }
4120if 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"
4127fi
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135depcc="$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; }
4139if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
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
4243else
4244  am_cv_CC_dependencies_compiler_type=none
4245fi
4246
4247fi
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; }
4250CCDEPMODE=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='#'
4257else
4258  am__fastdepCC_TRUE='#'
4259  am__fastdepCC_FALSE=
4260fi
4261
4262
4263
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_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.
4272if test -n "$CPP" && test -d "$CPP"; then
4273  CPP=
4274fi
4275if test -z "$CPP"; then
4276  if ${ac_cv_prog_CPP+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
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
4283for ac_c_preproc_warn_flag in '' yes
4284do
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
4300if ac_fn_c_try_cpp "$LINENO"; then :
4301
4302else
4303  # Broken: fails on valid input.
4304continue
4305fi
4306rm -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
4314if ac_fn_c_try_cpp "$LINENO"; then :
4315  # Broken: success on invalid input.
4316continue
4317else
4318  # Passes both tests.
4319ac_preproc_ok=:
4320break
4321fi
4322rm -f conftest.err conftest.i conftest.$ac_ext
4323
4324done
4325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326rm -f conftest.i conftest.err conftest.$ac_ext
4327if $ac_preproc_ok; then :
4328  break
4329fi
4330
4331    done
4332    ac_cv_prog_CPP=$CPP
4333
4334fi
4335  CPP=$ac_cv_prog_CPP
4336else
4337  ac_cv_prog_CPP=$CPP
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4340$as_echo "$CPP" >&6; }
4341ac_preproc_ok=false
4342for ac_c_preproc_warn_flag in '' yes
4343do
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
4359if ac_fn_c_try_cpp "$LINENO"; then :
4360
4361else
4362  # Broken: fails on valid input.
4363continue
4364fi
4365rm -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
4373if ac_fn_c_try_cpp "$LINENO"; then :
4374  # Broken: success on invalid input.
4375continue
4376else
4377  # Passes both tests.
4378ac_preproc_ok=:
4379break
4380fi
4381rm -f conftest.err conftest.i conftest.$ac_ext
4382
4383done
4384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385rm -f conftest.i conftest.err conftest.$ac_ext
4386if $ac_preproc_ok; then :
4387
4388else
4389  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4392See \`config.log' for more details" "$LINENO" 5; }
4393fi
4394
4395ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_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; }
4404if ${ac_cv_path_GREP+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
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
4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412do
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
4421case `"$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;;
4445esac
4446
4447      $ac_path_GREP_found && break 3
4448    done
4449  done
4450  done
4451IFS=$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
4455else
4456  ac_cv_path_GREP=$GREP
4457fi
4458
4459fi
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; }
4467if ${ac_cv_path_EGREP+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
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
4477for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478do
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
4487case `"$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;;
4511esac
4512
4513      $ac_path_EGREP_found && break 3
4514    done
4515  done
4516  done
4517IFS=$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
4521else
4522  ac_cv_path_EGREP=$EGREP
4523fi
4524
4525   fi
4526fi
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; }
4534if ${ac_cv_header_stdc+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
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
4544int
4545main ()
4546{
4547
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553  ac_cv_header_stdc=yes
4554else
4555  ac_cv_header_stdc=no
4556fi
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558
4559if 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
4566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567  $EGREP "memchr" >/dev/null 2>&1; then :
4568
4569else
4570  ac_cv_header_stdc=no
4571fi
4572rm -f conftest*
4573
4574fi
4575
4576if 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
4583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584  $EGREP "free" >/dev/null 2>&1; then :
4585
4586else
4587  ac_cv_header_stdc=no
4588fi
4589rm -f conftest*
4590
4591fi
4592
4593if 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  :
4597else
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)))
4614int
4615main ()
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
4625if ac_fn_c_try_run "$LINENO"; then :
4626
4627else
4628  ac_cv_header_stdc=no
4629fi
4630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4631  conftest.$ac_objext conftest.beam conftest.$ac_ext
4632fi
4633
4634fi
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4637$as_echo "$ac_cv_header_stdc" >&6; }
4638if test $ac_cv_header_stdc = yes; then
4639
4640$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4641
4642fi
4643
4644# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4646		  inttypes.h stdint.h unistd.h
4647do :
4648  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4650"
4651if 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
4656fi
4657
4658done
4659
4660
4661
4662  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4663if test "x$ac_cv_header_minix_config_h" = xyes; then :
4664  MINIX=yes
4665else
4666  MINIX=
4667fi
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; }
4685if ${ac_cv_safe_to_define___extensions__+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h.  */
4690
4691#         define __EXTENSIONS__ 1
4692          $ac_includes_default
4693int
4694main ()
4695{
4696
4697  ;
4698  return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_compile "$LINENO"; then :
4702  ac_cv_safe_to_define___extensions__=yes
4703else
4704  ac_cv_safe_to_define___extensions__=no
4705fi
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
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.
4743if test "${with_gnu_ld+set}" = set; then :
4744  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4745else
4746  with_gnu_ld=no
4747fi
4748
4749# Prepare PATH_SEPARATOR.
4750# The user is always right.
4751if 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
4761fi
4762ac_prog=ld
4763if 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
4794elif 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; }
4797else
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4799$as_echo_n "checking for non-GNU ld... " >&6; }
4800fi
4801if ${acl_cv_path_LD+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
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"
4822else
4823  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4824fi
4825fi
4826
4827LD="$acl_cv_path_LD"
4828if test -n "$LD"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4830$as_echo "$LD" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835test -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; }
4838if ${acl_cv_prog_gnu_ld+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4842case `$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 ;;
4847esac
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4850$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4851with_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; }
4858if ${acl_cv_rpath+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
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
4868fi
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.
4881if test "${enable_rpath+set}" = set; then :
4882  enableval=$enable_rpath; :
4883else
4884  enable_rpath=yes
4885fi
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; }
4896if ${gl_cv_solaris_64bit+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901
4902#ifdef _LP64
4903sixtyfour bits
4904#endif
4905
4906_ACEOF
4907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4909  gl_cv_solaris_64bit=yes
4910else
4911  gl_cv_solaris_64bit=no
4912fi
4913rm -f conftest*
4914
4915
4916fi
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.
4977if 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
5005fi
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; }
5449if ${am_cv_func_iconv+:} false; then :
5450  $as_echo_n "(cached) " >&6
5451else
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>
5459int
5460main ()
5461{
5462iconv_t cd = iconv_open("","");
5463       iconv(cd,NULL,NULL,NULL,NULL);
5464       iconv_close(cd);
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_link "$LINENO"; then :
5470  am_cv_func_iconv=yes
5471fi
5472rm -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>
5481int
5482main ()
5483{
5484iconv_t cd = iconv_open("","");
5485         iconv(cd,NULL,NULL,NULL,NULL);
5486         iconv_close(cd);
5487  ;
5488  return 0;
5489}
5490_ACEOF
5491if ac_fn_c_try_link "$LINENO"; then :
5492  am_cv_lib_iconv=yes
5493        am_cv_func_iconv=yes
5494fi
5495rm -f core conftest.err conftest.$ac_objext \
5496    conftest$ac_exeext conftest.$ac_ext
5497      LIBS="$am_save_LIBS"
5498    fi
5499
5500fi
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; }
5506if ${am_cv_func_iconv_works+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
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
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522
5523#include <iconv.h>
5524#include <string.h>
5525int 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
5599if ac_fn_c_try_run "$LINENO"; then :
5600  am_cv_func_iconv_works=yes
5601else
5602  am_cv_func_iconv_works=no
5603fi
5604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5605  conftest.$ac_objext conftest.beam conftest.$ac_ext
5606fi
5607
5608      LIBS="$am_save_LIBS"
5609
5610fi
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
5643else
5644
5645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647
5648#include <stdlib.h>
5649#include <iconv.h>
5650extern
5651#ifdef __cplusplus
5652"C"
5653#endif
5654#if defined(__STDC__) || defined(__cplusplus)
5655size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5656#else
5657size_t iconv();
5658#endif
5659
5660int
5661main ()
5662{
5663
5664  ;
5665  return 0;
5666}
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669  am_cv_proto_iconv_arg1=""
5670else
5671  am_cv_proto_iconv_arg1="const"
5672fi
5673rm -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);"
5675fi
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
5683cat >>confdefs.h <<_ACEOF
5684#define ICONV_CONST $am_cv_proto_iconv_arg1
5685_ACEOF
5686
5687  fi
5688
5689
5690mkdir_p="$MKDIR_P"
5691case $mkdir_p in
5692  [\\/$]* | ?:[\\/]*) ;;
5693  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5694esac
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.
5700if test "${enable_nls+set}" = set; then :
5701  enableval=$enable_nls; USE_NLS=$enableval
5702else
5703  USE_NLS=yes
5704fi
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.
5719if 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
5729fi
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.
5733cat >conf$$.file <<_ASEOF
5734#! /bin/sh
5735exit 0
5736_ASEOF
5737chmod +x conf$$.file
5738if test -x conf$$.file >/dev/null 2>&1; then
5739  ac_executable_p="test -x"
5740else
5741  ac_executable_p="test -f"
5742fi
5743rm -f conf$$.file
5744
5745# Extract the first word of "msgfmt", so it can be a program name with args.
5746set 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; }
5749if ${ac_cv_path_MSGFMT+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
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    ;;
5775esac
5776fi
5777MSGFMT="$ac_cv_path_MSGFMT"
5778if test "$MSGFMT" != ":"; then
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5780$as_echo "$MSGFMT" >&6; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5787set 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; }
5790if ${ac_cv_path_GMSGFMT+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
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
5799for as_dir in $PATH
5800do
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
5809done
5810  done
5811IFS=$as_save_IFS
5812
5813  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5814  ;;
5815esac
5816fi
5817GMSGFMT=$ac_cv_path_GMSGFMT
5818if test -n "$GMSGFMT"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5820$as_echo "$GMSGFMT" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
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.
5842if 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
5852fi
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.
5856cat >conf$$.file <<_ASEOF
5857#! /bin/sh
5858exit 0
5859_ASEOF
5860chmod +x conf$$.file
5861if test -x conf$$.file >/dev/null 2>&1; then
5862  ac_executable_p="test -x"
5863else
5864  ac_executable_p="test -f"
5865fi
5866rm -f conf$$.file
5867
5868# Extract the first word of "xgettext", so it can be a program name with args.
5869set 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; }
5872if ${ac_cv_path_XGETTEXT+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
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    ;;
5898esac
5899fi
5900XGETTEXT="$ac_cv_path_XGETTEXT"
5901if test "$XGETTEXT" != ":"; then
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5903$as_echo "$XGETTEXT" >&6; }
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
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.
5920if 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
5930fi
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.
5934cat >conf$$.file <<_ASEOF
5935#! /bin/sh
5936exit 0
5937_ASEOF
5938chmod +x conf$$.file
5939if test -x conf$$.file >/dev/null 2>&1; then
5940  ac_executable_p="test -x"
5941else
5942  ac_executable_p="test -f"
5943fi
5944rm -f conf$$.file
5945
5946# Extract the first word of "msgmerge", so it can be a program name with args.
5947set 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; }
5950if ${ac_cv_path_MSGMERGE+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
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    ;;
5975esac
5976fi
5977MSGMERGE="$ac_cv_path_MSGMERGE"
5978if test "$MSGMERGE" != ":"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5980$as_echo "$MSGMERGE" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
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; }
6022if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
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>
6030int
6031main ()
6032{
6033CFPreferencesCopyAppValue(NULL, NULL)
6034  ;
6035  return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_link "$LINENO"; then :
6039  gt_cv_func_CFPreferencesCopyAppValue=yes
6040else
6041  gt_cv_func_CFPreferencesCopyAppValue=no
6042fi
6043rm -f core conftest.err conftest.$ac_objext \
6044    conftest$ac_exeext conftest.$ac_ext
6045     LIBS="$gt_save_LIBS"
6046fi
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; }
6056if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
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>
6064int
6065main ()
6066{
6067CFLocaleCopyCurrent();
6068  ;
6069  return 0;
6070}
6071_ACEOF
6072if ac_fn_c_try_link "$LINENO"; then :
6073  gt_cv_func_CFLocaleCopyCurrent=yes
6074else
6075  gt_cv_func_CFLocaleCopyCurrent=no
6076fi
6077rm -f core conftest.err conftest.$ac_objext \
6078    conftest$ac_exeext conftest.$ac_ext
6079     LIBS="$gt_save_LIBS"
6080fi
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
6119typedef 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; }
6132if eval \${$gt_func_gnugettext_libc+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137#include <libintl.h>
6138$gt_revision_test_code
6139extern int _nl_msg_cat_cntr;
6140extern int *_nl_domain_bindings;
6141int
6142main ()
6143{
6144bindtextdomain ("", "");
6145return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150if ac_fn_c_try_link "$LINENO"; then :
6151  eval "$gt_func_gnugettext_libc=yes"
6152else
6153  eval "$gt_func_gnugettext_libc=no"
6154fi
6155rm -f core conftest.err conftest.$ac_objext \
6156    conftest$ac_exeext conftest.$ac_ext
6157fi
6158eval 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; }
6195if ${am_cv_func_iconv+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
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>
6205int
6206main ()
6207{
6208iconv_t cd = iconv_open("","");
6209       iconv(cd,NULL,NULL,NULL,NULL);
6210       iconv_close(cd);
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_link "$LINENO"; then :
6216  am_cv_func_iconv=yes
6217fi
6218rm -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>
6227int
6228main ()
6229{
6230iconv_t cd = iconv_open("","");
6231         iconv(cd,NULL,NULL,NULL,NULL);
6232         iconv_close(cd);
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237if ac_fn_c_try_link "$LINENO"; then :
6238  am_cv_lib_iconv=yes
6239        am_cv_func_iconv=yes
6240fi
6241rm -f core conftest.err conftest.$ac_objext \
6242    conftest$ac_exeext conftest.$ac_ext
6243      LIBS="$am_save_LIBS"
6244    fi
6245
6246fi
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; }
6252if ${am_cv_func_iconv_works+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
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
6265else
6266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268
6269#include <iconv.h>
6270#include <string.h>
6271int 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
6345if ac_fn_c_try_run "$LINENO"; then :
6346  am_cv_func_iconv_works=yes
6347else
6348  am_cv_func_iconv_works=no
6349fi
6350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6351  conftest.$ac_objext conftest.beam conftest.$ac_ext
6352fi
6353
6354      LIBS="$am_save_LIBS"
6355
6356fi
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.
6407if 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
6435fi
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; }
6848if eval \${$gt_func_gnugettext_libintl+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
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
6859extern int _nl_msg_cat_cntr;
6860extern
6861#ifdef __cplusplus
6862"C"
6863#endif
6864const char *_nl_expand_alias (const char *);
6865int
6866main ()
6867{
6868bindtextdomain ("", "");
6869return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_c_try_link "$LINENO"; then :
6875  eval "$gt_func_gnugettext_libintl=yes"
6876else
6877  eval "$gt_func_gnugettext_libintl=no"
6878fi
6879rm -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
6887extern int _nl_msg_cat_cntr;
6888extern
6889#ifdef __cplusplus
6890"C"
6891#endif
6892const char *_nl_expand_alias (const char *);
6893int
6894main ()
6895{
6896bindtextdomain ("", "");
6897return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_link "$LINENO"; then :
6903  LIBINTL="$LIBINTL $LIBICONV"
6904                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6905                eval "$gt_func_gnugettext_libintl=yes"
6906
6907fi
6908rm -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"
6913fi
6914eval 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.
7026for ac_prog in gawk mawk nawk awk
7027do
7028  # Extract the first word of "$ac_prog", so it can be a program name with args.
7029set 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; }
7032if ${ac_cv_prog_AWK+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  if test -n "$AWK"; then
7036  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
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
7049done
7050  done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055AWK=$ac_cv_prog_AWK
7056if test -n "$AWK"; then
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7058$as_echo "$AWK" >&6; }
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064
7065  test -n "$AWK" && break
7066done
7067
7068ac_ext=c
7069ac_cpp='$CPP $CPPFLAGS'
7070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073if 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.
7075set 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; }
7078if ${ac_cv_prog_CC+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  if test -n "$CC"; then
7082  ac_cv_prog_CC="$CC" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
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
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101CC=$ac_cv_prog_CC
7102if test -n "$CC"; then
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7104$as_echo "$CC" >&6; }
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110
7111fi
7112if 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.
7115set 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; }
7118if ${ac_cv_prog_ac_ct_CC+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$ac_ct_CC"; then
7122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
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
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141ac_ct_CC=$ac_cv_prog_ac_ct_CC
7142if 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; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150  if test "x$ac_ct_CC" = x; then
7151    CC=""
7152  else
7153    case $cross_compiling:$ac_tool_warned in
7154yes:)
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;}
7157ac_tool_warned=yes ;;
7158esac
7159    CC=$ac_ct_CC
7160  fi
7161else
7162  CC="$ac_cv_prog_CC"
7163fi
7164
7165if 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.
7168set 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; }
7171if ${ac_cv_prog_CC+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  if test -n "$CC"; then
7175  ac_cv_prog_CC="$CC" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
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
7188done
7189  done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194CC=$ac_cv_prog_CC
7195if test -n "$CC"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7197$as_echo "$CC" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203
7204  fi
7205fi
7206if test -z "$CC"; then
7207  # Extract the first word of "cc", so it can be a program name with args.
7208set 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; }
7211if ${ac_cv_prog_CC+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  if test -n "$CC"; then
7215  ac_cv_prog_CC="$CC" # Let the user override the test.
7216else
7217  ac_prog_rejected=no
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
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
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237if 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
7248fi
7249fi
7250fi
7251CC=$ac_cv_prog_CC
7252if test -n "$CC"; then
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7254$as_echo "$CC" >&6; }
7255else
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260
7261fi
7262if 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.
7267set 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; }
7270if ${ac_cv_prog_CC+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$CC"; then
7274  ac_cv_prog_CC="$CC" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
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
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293CC=$ac_cv_prog_CC
7294if test -n "$CC"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7296$as_echo "$CC" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303    test -n "$CC" && break
7304  done
7305fi
7306if test -z "$CC"; then
7307  ac_ct_CC=$CC
7308  for ac_prog in cl.exe
7309do
7310  # Extract the first word of "$ac_prog", so it can be a program name with args.
7311set 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; }
7314if ${ac_cv_prog_ac_ct_CC+:} false; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  if test -n "$ac_ct_CC"; then
7318  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
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
7331done
7332  done
7333IFS=$as_save_IFS
7334
7335fi
7336fi
7337ac_ct_CC=$ac_cv_prog_ac_ct_CC
7338if 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; }
7341else
7342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343$as_echo "no" >&6; }
7344fi
7345
7346
7347  test -n "$ac_ct_CC" && break
7348done
7349
7350  if test "x$ac_ct_CC" = x; then
7351    CC=""
7352  else
7353    case $cross_compiling:$ac_tool_warned in
7354yes:)
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;}
7357ac_tool_warned=yes ;;
7358esac
7359    CC=$ac_ct_CC
7360  fi
7361fi
7362
7363fi
7364
7365
7366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7368as_fn_error $? "no acceptable C compiler found in \$PATH
7369See \`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
7373set X $ac_compile
7374ac_compiler=$2
7375for ac_option in --version -v -V -qversion; do
7376  { { ac_try="$ac_compiler $ac_option >&5"
7377case "(($ac_try" in
7378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379  *) ac_try_echo=$ac_try;;
7380esac
7381eval 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; }
7394done
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; }
7398if ${ac_cv_c_compiler_gnu+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403
7404int
7405main ()
7406{
7407#ifndef __GNUC__
7408       choke me
7409#endif
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_compile "$LINENO"; then :
7416  ac_compiler_gnu=yes
7417else
7418  ac_compiler_gnu=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421ac_cv_c_compiler_gnu=$ac_compiler_gnu
7422
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7425$as_echo "$ac_cv_c_compiler_gnu" >&6; }
7426if test $ac_compiler_gnu = yes; then
7427  GCC=yes
7428else
7429  GCC=
7430fi
7431ac_test_CFLAGS=${CFLAGS+set}
7432ac_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; }
7435if ${ac_cv_prog_cc_g+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
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
7445int
7446main ()
7447{
7448
7449  ;
7450  return 0;
7451}
7452_ACEOF
7453if ac_fn_c_try_compile "$LINENO"; then :
7454  ac_cv_prog_cc_g=yes
7455else
7456  CFLAGS=""
7457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459
7460int
7461main ()
7462{
7463
7464  ;
7465  return 0;
7466}
7467_ACEOF
7468if ac_fn_c_try_compile "$LINENO"; then :
7469
7470else
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
7476int
7477main ()
7478{
7479
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484if ac_fn_c_try_compile "$LINENO"; then :
7485  ac_cv_prog_cc_g=yes
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492   ac_c_werror_flag=$ac_save_c_werror_flag
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7495$as_echo "$ac_cv_prog_cc_g" >&6; }
7496if test "$ac_test_CFLAGS" = set; then
7497  CFLAGS=$ac_save_CFLAGS
7498elif 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
7504else
7505  if test "$GCC" = yes; then
7506    CFLAGS="-O2"
7507  else
7508    CFLAGS=
7509  fi
7510fi
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; }
7513if ${ac_cv_prog_cc_c89+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  ac_cv_prog_cc_c89=no
7517ac_save_CC=$CC
7518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520#include <stdarg.h>
7521#include <stdio.h>
7522struct stat;
7523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7524struct buf { int x; };
7525FILE * (*rcsopen) (struct buf *, struct stat *, int);
7526static char *e (p, i)
7527     char **p;
7528     int i;
7529{
7530  return p[i];
7531}
7532static 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.  */
7549int 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'
7554int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7555
7556int test (int i, double x);
7557struct s1 {int (*f) (int a);};
7558struct s2 {int (*f) (double a);};
7559int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7560int argc;
7561char **argv;
7562int
7563main ()
7564{
7565return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7566  ;
7567  return 0;
7568}
7569_ACEOF
7570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7571	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7572do
7573  CC="$ac_save_CC $ac_arg"
7574  if ac_fn_c_try_compile "$LINENO"; then :
7575  ac_cv_prog_cc_c89=$ac_arg
7576fi
7577rm -f core conftest.err conftest.$ac_objext
7578  test "x$ac_cv_prog_cc_c89" != "xno" && break
7579done
7580rm -f conftest.$ac_ext
7581CC=$ac_save_CC
7582
7583fi
7584# AC_CACHE_VAL
7585case "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; } ;;
7596esac
7597if test "x$ac_cv_prog_cc_c89" != xno; then :
7598
7599fi
7600
7601ac_ext=c
7602ac_cpp='$CPP $CPPFLAGS'
7603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606
7607ac_ext=c
7608ac_cpp='$CPP $CPPFLAGS'
7609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611ac_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; }
7614if ${am_cv_prog_cc_c_o+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619
7620int
7621main ()
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
7648fi
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; }
7651if 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"
7658fi
7659ac_ext=c
7660ac_cpp='$CPP $CPPFLAGS'
7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665
7666depcc="$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; }
7670if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7671  $as_echo_n "(cached) " >&6
7672else
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
7774else
7775  am_cv_CC_dependencies_compiler_type=none
7776fi
7777
7778fi
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; }
7781CCDEPMODE=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='#'
7788else
7789  am__fastdepCC_TRUE='#'
7790  am__fastdepCC_FALSE=
7791fi
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; }
7798LN_S=$as_ln_s
7799if test "$LN_S" = "ln -s"; then
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7801$as_echo "yes" >&6; }
7802else
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7804$as_echo "no, using $LN_S" >&6; }
7805fi
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; }
7809set x ${MAKE-make}
7810ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7811if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  cat >conftest.make <<\_ACEOF
7815SHELL = /bin/sh
7816all:
7817	@echo '@@@%%%=$(MAKE)=@@@%%%'
7818_ACEOF
7819# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7820case `${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;;
7825esac
7826rm -f conftest.make
7827fi
7828if 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=
7832else
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835  SET_MAKE="MAKE=${MAKE-make}"
7836fi
7837
7838
7839# Default string definitions
7840
7841cat >>confdefs.h <<_ACEOF
7842#define OS_URL "http://sourceforge.net/projects/minidlna/"
7843_ACEOF
7844
7845
7846cat >>confdefs.h <<_ACEOF
7847#define ROOTDEV_MANUFACTURER "Justin Maggard"
7848_ACEOF
7849
7850
7851cat >>confdefs.h <<_ACEOF
7852#define ROOTDEV_MANUFACTURERURL "http://www.netgear.com/"
7853_ACEOF
7854
7855
7856cat >>confdefs.h <<_ACEOF
7857#define ROOTDEV_MODELNAME "Windows Media Connect compatible (MiniDLNA)"
7858_ACEOF
7859
7860
7861cat >>confdefs.h <<_ACEOF
7862#define ROOTDEV_MODELDESCRIPTION "MiniDLNA on " OS_NAME
7863_ACEOF
7864
7865
7866cat >>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; }
7876if ${ac_cv_c_inline+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  ac_cv_c_inline=no
7880for ac_kw in inline __inline__ __inline; do
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883#ifndef __cplusplus
7884typedef int foo_t;
7885static $ac_kw foo_t static_foo () {return 0; }
7886$ac_kw foo_t foo () {return 0; }
7887#endif
7888
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"; then :
7891  ac_cv_c_inline=$ac_kw
7892fi
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894  test "$ac_cv_c_inline" != no && break
7895done
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7899$as_echo "$ac_cv_c_inline" >&6; }
7900
7901case $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    ;;
7914esac
7915
7916ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7917if test "x$ac_cv_type_mode_t" = xyes; then :
7918
7919else
7920
7921cat >>confdefs.h <<_ACEOF
7922#define mode_t int
7923_ACEOF
7924
7925fi
7926
7927ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7928if test "x$ac_cv_type_off_t" = xyes; then :
7929
7930else
7931
7932cat >>confdefs.h <<_ACEOF
7933#define off_t long int
7934_ACEOF
7935
7936fi
7937
7938ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7939if test "x$ac_cv_type_pid_t" = xyes; then :
7940
7941else
7942
7943cat >>confdefs.h <<_ACEOF
7944#define pid_t int
7945_ACEOF
7946
7947fi
7948
7949ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7950if test "x$ac_cv_type_size_t" = xyes; then :
7951
7952else
7953
7954cat >>confdefs.h <<_ACEOF
7955#define size_t unsigned int
7956_ACEOF
7957
7958fi
7959
7960ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7961case $ac_cv_c_uint8_t in #(
7962  no|yes) ;; #(
7963  *)
7964
7965$as_echo "#define _UINT8_T 1" >>confdefs.h
7966
7967
7968cat >>confdefs.h <<_ACEOF
7969#define uint8_t $ac_cv_c_uint8_t
7970_ACEOF
7971;;
7972  esac
7973
7974ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7975case $ac_cv_c_int32_t in #(
7976  no|yes) ;; #(
7977  *)
7978
7979cat >>confdefs.h <<_ACEOF
7980#define int32_t $ac_cv_c_int32_t
7981_ACEOF
7982;;
7983esac
7984
7985ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7986case $ac_cv_c_uint32_t in #(
7987  no|yes) ;; #(
7988  *)
7989
7990$as_echo "#define _UINT32_T 1" >>confdefs.h
7991
7992
7993cat >>confdefs.h <<_ACEOF
7994#define uint32_t $ac_cv_c_uint32_t
7995_ACEOF
7996;;
7997  esac
7998
7999ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8000case $ac_cv_c_uint64_t in #(
8001  no|yes) ;; #(
8002  *)
8003
8004$as_echo "#define _UINT64_T 1" >>confdefs.h
8005
8006
8007cat >>confdefs.h <<_ACEOF
8008#define uint64_t $ac_cv_c_uint64_t
8009_ACEOF
8010;;
8011  esac
8012
8013ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8014if test "x$ac_cv_type_ssize_t" = xyes; then :
8015
8016else
8017
8018cat >>confdefs.h <<_ACEOF
8019#define ssize_t int
8020_ACEOF
8021
8022fi
8023
8024ac_header_dirent=no
8025for 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; }
8029if eval \${$as_ac_Header+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034#include <sys/types.h>
8035#include <$ac_hdr>
8036
8037int
8038main ()
8039{
8040if ((DIR *) 0)
8041return 0;
8042  ;
8043  return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_compile "$LINENO"; then :
8047  eval "$as_ac_Header=yes"
8048else
8049  eval "$as_ac_Header=no"
8050fi
8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052fi
8053eval ac_res=\$$as_ac_Header
8054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8055$as_echo "$ac_res" >&6; }
8056if 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
8061ac_header_dirent=$ac_hdr; break
8062fi
8063
8064done
8065# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8066if 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; }
8069if ${ac_cv_search_opendir+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  ac_func_search_save_LIBS=$LIBS
8073cat 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
8080extern "C"
8081#endif
8082char opendir ();
8083int
8084main ()
8085{
8086return opendir ();
8087  ;
8088  return 0;
8089}
8090_ACEOF
8091for 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
8100fi
8101rm -f core conftest.err conftest.$ac_objext \
8102    conftest$ac_exeext
8103  if ${ac_cv_search_opendir+:} false; then :
8104  break
8105fi
8106done
8107if ${ac_cv_search_opendir+:} false; then :
8108
8109else
8110  ac_cv_search_opendir=no
8111fi
8112rm conftest.$ac_ext
8113LIBS=$ac_func_search_save_LIBS
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8116$as_echo "$ac_cv_search_opendir" >&6; }
8117ac_res=$ac_cv_search_opendir
8118if test "$ac_res" != no; then :
8119  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8120
8121fi
8122
8123else
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8125$as_echo_n "checking for library containing opendir... " >&6; }
8126if ${ac_cv_search_opendir+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  ac_func_search_save_LIBS=$LIBS
8130cat 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
8137extern "C"
8138#endif
8139char opendir ();
8140int
8141main ()
8142{
8143return opendir ();
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148for 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
8157fi
8158rm -f core conftest.err conftest.$ac_objext \
8159    conftest$ac_exeext
8160  if ${ac_cv_search_opendir+:} false; then :
8161  break
8162fi
8163done
8164if ${ac_cv_search_opendir+:} false; then :
8165
8166else
8167  ac_cv_search_opendir=no
8168fi
8169rm conftest.$ac_ext
8170LIBS=$ac_func_search_save_LIBS
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8173$as_echo "$ac_cv_search_opendir" >&6; }
8174ac_res=$ac_cv_search_opendir
8175if test "$ac_res" != no; then :
8176  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8177
8178fi
8179
8180fi
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"
8202if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
8203
8204cat >>confdefs.h <<_ACEOF
8205#define HAVE_STRUCT_DIRENT_D_TYPE 1
8206_ACEOF
8207
8208
8209fi
8210
8211
8212ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8213if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8214
8215cat >>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
8222else
8223  case " $LIBOBJS " in
8224  *" fileblocks.$ac_objext "* ) ;;
8225  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8226 ;;
8227esac
8228
8229fi
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; }
8234if ${ac_cv_header_stdbool_h+:} false; then :
8235  $as_echo_n "(cached) " >&6
8236else
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
8284int
8285main ()
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
8299if ac_fn_c_try_compile "$LINENO"; then :
8300  ac_cv_header_stdbool_h=yes
8301else
8302  ac_cv_header_stdbool_h=no
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305fi
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"
8309if test "x$ac_cv_type__Bool" = xyes; then :
8310
8311cat >>confdefs.h <<_ACEOF
8312#define HAVE__BOOL 1
8313_ACEOF
8314
8315
8316fi
8317
8318
8319if test $ac_cv_header_stdbool_h = yes; then
8320
8321$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8322
8323fi
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; }
8327if ${ac_cv_c_bigendian+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
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
8340if 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
8363fi
8364rm -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
8372int
8373main ()
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
8385if 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
8392int
8393main ()
8394{
8395#if BYTE_ORDER != BIG_ENDIAN
8396		 not big endian
8397		#endif
8398
8399  ;
8400  return 0;
8401}
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"; then :
8404  ac_cv_c_bigendian=yes
8405else
8406  ac_cv_c_bigendian=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409fi
8410rm -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
8418int
8419main ()
8420{
8421#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8422	      bogus endian macros
8423	     #endif
8424
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429if 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
8435int
8436main ()
8437{
8438#ifndef _BIG_ENDIAN
8439		 not big endian
8440		#endif
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_compile "$LINENO"; then :
8447  ac_cv_c_bigendian=yes
8448else
8449  ac_cv_c_bigendian=no
8450fi
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452fi
8453rm -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.  */
8461short 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
8477int
8478main ()
8479{
8480return use_ascii (foo) == use_ebcdic (foo);
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485if 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
8497fi
8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499else
8500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502$ac_includes_default
8503int
8504main ()
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
8520if ac_fn_c_try_run "$LINENO"; then :
8521  ac_cv_c_bigendian=no
8522else
8523  ac_cv_c_bigendian=yes
8524fi
8525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8526  conftest.$ac_objext conftest.beam conftest.$ac_ext
8527fi
8528
8529    fi
8530fi
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.
8551for ac_header in vfork.h
8552do :
8553  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8554if test "x$ac_cv_header_vfork_h" = xyes; then :
8555  cat >>confdefs.h <<_ACEOF
8556#define HAVE_VFORK_H 1
8557_ACEOF
8558
8559fi
8560
8561done
8562
8563for ac_func in fork vfork
8564do :
8565  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8567if 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
8572fi
8573done
8574
8575if 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; }
8578if ${ac_cv_func_fork_works+:} false; then :
8579  $as_echo_n "(cached) " >&6
8580else
8581  if test "$cross_compiling" = yes; then :
8582  ac_cv_func_fork_works=cross
8583else
8584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586$ac_includes_default
8587int
8588main ()
8589{
8590
8591	  /* By Ruediger Kuhlmann. */
8592	  return fork () < 0;
8593
8594  ;
8595  return 0;
8596}
8597_ACEOF
8598if ac_fn_c_try_run "$LINENO"; then :
8599  ac_cv_func_fork_works=yes
8600else
8601  ac_cv_func_fork_works=no
8602fi
8603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8604  conftest.$ac_objext conftest.beam conftest.$ac_ext
8605fi
8606
8607fi
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
8611else
8612  ac_cv_func_fork_works=$ac_cv_func_fork
8613fi
8614if 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;}
8626fi
8627ac_cv_func_vfork_works=$ac_cv_func_vfork
8628if 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; }
8631if ${ac_cv_func_vfork_works+:} false; then :
8632  $as_echo_n "(cached) " >&6
8633else
8634  if test "$cross_compiling" = yes; then :
8635  ac_cv_func_vfork_works=cross
8636else
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.  */
8651static void
8652#ifdef __cplusplus
8653sparc_address_test (int arg)
8654# else
8655sparc_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
8673int
8674main ()
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
8729if ac_fn_c_try_run "$LINENO"; then :
8730  ac_cv_func_vfork_works=yes
8731else
8732  ac_cv_func_vfork_works=no
8733fi
8734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8735  conftest.$ac_objext conftest.beam conftest.$ac_ext
8736fi
8737
8738fi
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
8742fi;
8743if 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;}
8747fi
8748
8749if test "x$ac_cv_func_vfork_works" = xyes; then
8750
8751$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8752
8753else
8754
8755$as_echo "#define vfork fork" >>confdefs.h
8756
8757fi
8758if test "x$ac_cv_func_fork_works" = xyes; then
8759
8760$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8761
8762fi
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; }
8766if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  rm -f conftest.sym conftest.file
8770echo >conftest.file
8771if 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
8774else
8775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h.  */
8777$ac_includes_default
8778int
8779main ()
8780{
8781struct 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
8790if ac_fn_c_try_run "$LINENO"; then :
8791  ac_cv_func_lstat_dereferences_slashed_symlink=yes
8792else
8793  ac_cv_func_lstat_dereferences_slashed_symlink=no
8794fi
8795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8796  conftest.$ac_objext conftest.beam conftest.$ac_ext
8797fi
8798
8799else
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
8803fi
8804rm -f conftest.sym conftest.file
8805
8806fi
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
8810test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8811
8812cat >>confdefs.h <<_ACEOF
8813#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8814_ACEOF
8815
8816
8817if 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 ;;
8822esac
8823
8824fi
8825
8826for 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
8827do :
8828  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8829ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8830if 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
8835fi
8836done
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; }
8844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846#include <netinet/in.h>
8847int
8848main ()
8849{
8850
8851    struct ip_mreqn mreq;
8852    mreq.imr_address.s_addr = 0;
8853
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858if 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
8867else
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>
8877int
8878main ()
8879{
8880
8881        struct ip_mreq mreq;
8882        mreq.imr_interface.s_addr = 0;
8883
8884  ;
8885  return 0;
8886}
8887_ACEOF
8888if 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
8897else
8898
8899        # No multicast support
8900        as_fn_error $? "No multicast support" "$LINENO" 5
8901
8902fi
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904
8905fi
8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907
8908################################################################################################################
8909# Special include directories
8910case $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        ;;
8935esac
8936
8937for ac_header in syscall.h sys/syscall.h mach/mach_time.h
8938do :
8939  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8941if 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
8946fi
8947
8948done
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; }
8952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954
8955            #include <asm/unistd.h>
8956
8957int
8958main ()
8959{
8960
8961            #ifndef __NR_clock_gettime
8962            #error
8963            #endif
8964
8965
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if 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
8978else
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; }
8984if ${ac_cv_search_clock_gettime+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  ac_func_search_save_LIBS=$LIBS
8988cat 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
8995extern "C"
8996#endif
8997char clock_gettime ();
8998int
8999main ()
9000{
9001return clock_gettime ();
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006for 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
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017    conftest$ac_exeext
9018  if ${ac_cv_search_clock_gettime+:} false; then :
9019  break
9020fi
9021done
9022if ${ac_cv_search_clock_gettime+:} false; then :
9023
9024else
9025  ac_cv_search_clock_gettime=no
9026fi
9027rm conftest.$ac_ext
9028LIBS=$ac_func_search_save_LIBS
9029fi
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9031$as_echo "$ac_cv_search_clock_gettime" >&6; }
9032ac_res=$ac_cv_search_clock_gettime
9033if 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
9038fi
9039
9040
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043
9044ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
9045"
9046if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
9047
9048$as_echo "#define HAVE_NETLINK 1" >>confdefs.h
9049
9050fi
9051
9052
9053
9054################################################################################################################
9055### Library checks
9056
9057CPPFLAGS_SAVE="$CPPFLAGS"
9058for dir in "" /usr/local $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
9063do :
9064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9066if 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
9071fi
9072
9073done
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
9085done
9086if test -z "$HAVE_LIBAVUTIL"; then
9087    as_fn_error $? "libavutil headers not found or not usable" "$LINENO" 5
9088fi
9089
9090CPPFLAGS_SAVE="$CPPFLAGS"
9091for dir in "" /usr/local $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
9096do :
9097  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9099if 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
9104fi
9105
9106done
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
9118done
9119if test -z "$HAVE_LIBAVCODEC"; then
9120    as_fn_error $? "libavcodec headers not found or not usable" "$LINENO" 5
9121fi
9122
9123CPPFLAGS_SAVE="$CPPFLAGS"
9124for dir in "" /usr/local $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
9129do :
9130  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9132if 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
9137fi
9138
9139done
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
9151done
9152if test -z "$HAVE_LIBAVFORMAT"; then
9153    as_fn_error $? "libavformat headers not found or not usable" "$LINENO" 5
9154fi
9155
9156CPPFLAGS_SAVE="$CPPFLAGS"
9157for dir in "" /usr/local $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
9162do :
9163  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9165if 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
9170else
9171  unset $as_ac_Header; break
9172fi
9173
9174done
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
9200done
9201test x"$ac_cv_header_jpeglib_h" != x"yes" && as_fn_error $? "libjpeg headers not found or not usable" "$LINENO" 5
9202test x"$ac_cv_header_sqlite3_h" != x"yes" && as_fn_error $? "libsqlite3 headers not found or not usable" "$LINENO" 5
9203test x"$ac_cv_header_libexif_exif_loader_h" != x"yes" && as_fn_error $? "libexif headers not found or not usable" "$LINENO" 5
9204test x"$ac_cv_header_id3tag_h" != x"yes" && as_fn_error $? "libid3tag headers not found or not usable" "$LINENO" 5
9205test x"$ac_cv_header_ogg_ogg_h" != x"yes" && as_fn_error $? "libogg headers not found or not usable" "$LINENO" 5
9206test x"$ac_cv_header_vorbis_codec_h" != x"yes" && as_fn_error $? "libvorbis headers not found or not usable" "$LINENO" 5
9207test x"$ac_cv_header_FLAC_metadata_h" != x"yes" && as_fn_error $? "libFLAC headers not found or not usable" "$LINENO" 5
9208
9209CFLAGS_SAVE="$CFLAGS"
9210CFLAGS="$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; }
9213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214/* end confdefs.h.  */
9215
9216             #include <stdlib.h>
9217             #include <unistd.h>
9218
9219int
9220main ()
9221{
9222
9223            return daemon(0, 0);
9224
9225
9226  ;
9227  return 0;
9228}
9229_ACEOF
9230if 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
9238else
9239
9240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
9242
9243fi
9244rm -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; }
9248cat 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
9255int
9256main ()
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
9269if 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
9274else
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
9283fi
9284rm -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; }
9288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h.  */
9290
9291             #include <sys/types.h>
9292             #include <sys/sendfile.h>
9293
9294int
9295main ()
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
9309if 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
9317else
9318
9319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321
9322fi
9323rm -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; }
9327cat 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
9335int
9336main ()
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
9352if 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
9360else
9361
9362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363$as_echo "no" >&6; }
9364
9365fi
9366rm -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; }
9370cat 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
9378int
9379main ()
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
9399if 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
9407else
9408
9409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
9411
9412fi
9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414CFLAGS="$CFLAGS_SAVE"
9415
9416LDFLAGS_SAVE="$LDFLAGS"
9417for dir in "" /usr/local $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; }
9423if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  ac_check_lib_save_LIBS=$LIBS
9427LIBS="-ljpeg  $LIBS"
9428cat 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
9435extern "C"
9436#endif
9437char jpeg_set_defaults ();
9438int
9439main ()
9440{
9441return jpeg_set_defaults ();
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447  ac_cv_lib_jpeg_jpeg_set_defaults=yes
9448else
9449  ac_cv_lib_jpeg_jpeg_set_defaults=no
9450fi
9451rm -f core conftest.err conftest.$ac_objext \
9452    conftest$ac_exeext conftest.$ac_ext
9453LIBS=$ac_check_lib_save_LIBS
9454fi
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; }
9457if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
9458  LIBJPEG_LIBS="-ljpeg"
9459else
9460  unset ac_cv_lib_jpeg_jpeg_set_defaults; LDFLAGS="$LDFLAGS_SAVE"; continue
9461fi
9462
9463    break
9464done
9465test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libjpeg" "$LINENO" 5
9466
9467
9468LDFLAGS_SAVE="$LDFLAGS"
9469for dir in "" /usr/local $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; }
9475if ${ac_cv_lib_exif_exif_data_new_from_file+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  ac_check_lib_save_LIBS=$LIBS
9479LIBS="-lexif  $LIBS"
9480cat 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
9487extern "C"
9488#endif
9489char exif_data_new_from_file ();
9490int
9491main ()
9492{
9493return exif_data_new_from_file ();
9494  ;
9495  return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499  ac_cv_lib_exif_exif_data_new_from_file=yes
9500else
9501  ac_cv_lib_exif_exif_data_new_from_file=no
9502fi
9503rm -f core conftest.err conftest.$ac_objext \
9504    conftest$ac_exeext conftest.$ac_ext
9505LIBS=$ac_check_lib_save_LIBS
9506fi
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; }
9509if test "x$ac_cv_lib_exif_exif_data_new_from_file" = xyes; then :
9510  LIBEXIF_LIBS="-lexif"
9511else
9512  unset ac_cv_lib_exif_exif_data_new_from_file; LDFLAGS="$LDFLAGS_SAVE"; continue
9513fi
9514
9515    break
9516done
9517test x"$ac_cv_lib_jpeg_jpeg_set_defaults" = x"yes" || as_fn_error $? "Could not find libexif" "$LINENO" 5
9518
9519
9520LDFLAGS_SAVE="$LDFLAGS"
9521for dir in "" /usr/local $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; }
9527if ${ac_cv_lib_id3tag_id3_file_open+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  ac_check_lib_save_LIBS=$LIBS
9531LIBS="-lid3tag  $LIBS"
9532cat 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
9539extern "C"
9540#endif
9541char id3_file_open ();
9542int
9543main ()
9544{
9545return id3_file_open ();
9546  ;
9547  return 0;
9548}
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then :
9551  ac_cv_lib_id3tag_id3_file_open=yes
9552else
9553  ac_cv_lib_id3tag_id3_file_open=no
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556    conftest$ac_exeext conftest.$ac_ext
9557LIBS=$ac_check_lib_save_LIBS
9558fi
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; }
9561if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes; then :
9562  LIBID3TAG_LIBS="-lid3tag"
9563else
9564  unset ac_cv_lib_id3tag_id3_file_open; LDFLAGS="$LDFLAGS_SAVE"; continue
9565fi
9566
9567    break
9568done
9569test x"$ac_cv_lib_id3tag_id3_file_open" = x"yes" || as_fn_error $? "Could not find libid3tag" "$LINENO" 5
9570
9571
9572LDFLAGS_SAVE="$LDFLAGS"
9573for dir in "" /usr/local $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; }
9579if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  ac_check_lib_save_LIBS=$LIBS
9583LIBS="-lsqlite3  $LIBS"
9584cat 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
9591extern "C"
9592#endif
9593char sqlite3_open ();
9594int
9595main ()
9596{
9597return sqlite3_open ();
9598  ;
9599  return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_link "$LINENO"; then :
9603  ac_cv_lib_sqlite3_sqlite3_open=yes
9604else
9605  ac_cv_lib_sqlite3_sqlite3_open=no
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608    conftest$ac_exeext conftest.$ac_ext
9609LIBS=$ac_check_lib_save_LIBS
9610fi
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; }
9613if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
9614  LIBSQLITE3_LIBS="-lsqlite3"
9615else
9616  unset ac_cv_lib_sqlite3_sqlite3_open; LDFLAGS="$LDFLAGS_SAVE"; continue
9617fi
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; }
9621if ${ac_cv_lib_sqlite3_sqlite3_malloc+:} false; then :
9622  $as_echo_n "(cached) " >&6
9623else
9624  ac_check_lib_save_LIBS=$LIBS
9625LIBS="-lsqlite3  $LIBS"
9626cat 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
9633extern "C"
9634#endif
9635char sqlite3_malloc ();
9636int
9637main ()
9638{
9639return sqlite3_malloc ();
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645  ac_cv_lib_sqlite3_sqlite3_malloc=yes
9646else
9647  ac_cv_lib_sqlite3_sqlite3_malloc=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650    conftest$ac_exeext conftest.$ac_ext
9651LIBS=$ac_check_lib_save_LIBS
9652fi
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; }
9655if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = xyes; then :
9656
9657$as_echo "#define HAVE_SQLITE3_MALLOC 1" >>confdefs.h
9658
9659fi
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; }
9663if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
9664  $as_echo_n "(cached) " >&6
9665else
9666  ac_check_lib_save_LIBS=$LIBS
9667LIBS="-lsqlite3  $LIBS"
9668cat 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
9675extern "C"
9676#endif
9677char sqlite3_prepare_v2 ();
9678int
9679main ()
9680{
9681return sqlite3_prepare_v2 ();
9682  ;
9683  return 0;
9684}
9685_ACEOF
9686if ac_fn_c_try_link "$LINENO"; then :
9687  ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
9688else
9689  ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692    conftest$ac_exeext conftest.$ac_ext
9693LIBS=$ac_check_lib_save_LIBS
9694fi
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; }
9697if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
9698
9699$as_echo "#define HAVE_SQLITE3_PREPARE_V2 1" >>confdefs.h
9700
9701fi
9702
9703    break
9704done
9705test x"$ac_cv_lib_sqlite3_sqlite3_open" = x"yes" || as_fn_error $? "Could not find libsqlite3" "$LINENO" 5
9706
9707
9708LDFLAGS_SAVE="$LDFLAGS"
9709for dir in "" /usr/local $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; }
9715if ${ac_cv_lib_avformat_av_open_input_file+:} false; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  ac_check_lib_save_LIBS=$LIBS
9719LIBS="-lavformat  $LIBS"
9720cat 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
9727extern "C"
9728#endif
9729char av_open_input_file ();
9730int
9731main ()
9732{
9733return av_open_input_file ();
9734  ;
9735  return 0;
9736}
9737_ACEOF
9738if ac_fn_c_try_link "$LINENO"; then :
9739  ac_cv_lib_avformat_av_open_input_file=yes
9740else
9741  ac_cv_lib_avformat_av_open_input_file=no
9742fi
9743rm -f core conftest.err conftest.$ac_objext \
9744    conftest$ac_exeext conftest.$ac_ext
9745LIBS=$ac_check_lib_save_LIBS
9746fi
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; }
9749if test "x$ac_cv_lib_avformat_av_open_input_file" = xyes; then :
9750  LIBAVFORMAT_LIBS="-lavformat"
9751else
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; }
9754if ${ac_cv_lib_avformat_avformat_open_input+:} false; then :
9755  $as_echo_n "(cached) " >&6
9756else
9757  ac_check_lib_save_LIBS=$LIBS
9758LIBS="-lavformat  $LIBS"
9759cat 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
9766extern "C"
9767#endif
9768char avformat_open_input ();
9769int
9770main ()
9771{
9772return avformat_open_input ();
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777if ac_fn_c_try_link "$LINENO"; then :
9778  ac_cv_lib_avformat_avformat_open_input=yes
9779else
9780  ac_cv_lib_avformat_avformat_open_input=no
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783    conftest$ac_exeext conftest.$ac_ext
9784LIBS=$ac_check_lib_save_LIBS
9785fi
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; }
9788if test "x$ac_cv_lib_avformat_avformat_open_input" = xyes; then :
9789  LIBAVFORMAT_LIBS="-lavformat"
9790else
9791  unset ac_cv_lib_avformat_av_open_input_file; unset ac_cv_lib_avformat_avformat_open_input; LDFLAGS="$LDFLAGS_SAVE"; continue
9792fi
9793
9794fi
9795
9796    break
9797done
9798if 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
9801fi
9802
9803
9804as_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; }
9807if eval \${$as_ac_Lib+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  ac_check_lib_save_LIBS=$LIBS
9811LIBS="-lavutil   $LIBS"
9812cat 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
9819extern "C"
9820#endif
9821char av_rescale_q ();
9822int
9823main ()
9824{
9825return av_rescale_q ();
9826  ;
9827  return 0;
9828}
9829_ACEOF
9830if ac_fn_c_try_link "$LINENO"; then :
9831  eval "$as_ac_Lib=yes"
9832else
9833  eval "$as_ac_Lib=no"
9834fi
9835rm -f core conftest.err conftest.$ac_objext \
9836    conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
9839eval ac_res=\$$as_ac_Lib
9840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9841$as_echo "$ac_res" >&6; }
9842if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9843  LIBAVUTIL_LIBS="-lavutil"
9844else
9845  as_fn_error $? "Could not find libavutil - part of ffmpeg" "$LINENO" 5
9846fi
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; }
9852if ${ac_cv_lib_pthread_pthread_create+:} false; then :
9853  $as_echo_n "(cached) " >&6
9854else
9855  ac_check_lib_save_LIBS=$LIBS
9856LIBS="-lpthread  $LIBS"
9857cat 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
9864extern "C"
9865#endif
9866char pthread_create ();
9867int
9868main ()
9869{
9870return pthread_create ();
9871  ;
9872  return 0;
9873}
9874_ACEOF
9875if ac_fn_c_try_link "$LINENO"; then :
9876  ac_cv_lib_pthread_pthread_create=yes
9877else
9878  ac_cv_lib_pthread_pthread_create=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext \
9881    conftest$ac_exeext conftest.$ac_ext
9882LIBS=$ac_check_lib_save_LIBS
9883fi
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; }
9886if 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
9893fi
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; }
9900if ${ac_cv_lib_vorbisfile_ov_open_callbacks+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  ac_check_lib_save_LIBS=$LIBS
9904LIBS="-lvorbisfile -lvorbis -logg $LIBS"
9905cat 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
9912extern "C"
9913#endif
9914char ov_open_callbacks ();
9915int
9916main ()
9917{
9918return ov_open_callbacks ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923if ac_fn_c_try_link "$LINENO"; then :
9924  ac_cv_lib_vorbisfile_ov_open_callbacks=yes
9925else
9926  ac_cv_lib_vorbisfile_ov_open_callbacks=no
9927fi
9928rm -f core conftest.err conftest.$ac_objext \
9929    conftest$ac_exeext conftest.$ac_ext
9930LIBS=$ac_check_lib_save_LIBS
9931fi
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; }
9934if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = xyes; then :
9935  for ac_header in vorbis/vorbisfile.h
9936do :
9937  ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
9938if 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='#'
9945else
9946  HAVE_VORBISFILE_TRUE='#'
9947  HAVE_VORBISFILE_FALSE=
9948fi
9949
9950
9951$as_echo "#define HAVE_VORBISFILE 1" >>confdefs.h
9952
9953else
9954   if false; then
9955  HAVE_VORBISFILE_TRUE=
9956  HAVE_VORBISFILE_FALSE='#'
9957else
9958  HAVE_VORBISFILE_TRUE='#'
9959  HAVE_VORBISFILE_FALSE=
9960fi
9961
9962
9963$as_echo "#define HAVE_VORBISFILE 0" >>confdefs.h
9964
9965fi
9966
9967done
9968
9969else
9970   if false; then
9971  HAVE_VORBISFILE_TRUE=
9972  HAVE_VORBISFILE_FALSE='#'
9973else
9974  HAVE_VORBISFILE_TRUE='#'
9975  HAVE_VORBISFILE_FALSE=
9976fi
9977
9978fi
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; }
9982if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  ac_check_lib_save_LIBS=$LIBS
9986LIBS="-lFLAC -logg $LIBS"
9987cat 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
9994extern "C"
9995#endif
9996char FLAC__stream_decoder_init_stream ();
9997int
9998main ()
9999{
10000return FLAC__stream_decoder_init_stream ();
10001  ;
10002  return 0;
10003}
10004_ACEOF
10005if ac_fn_c_try_link "$LINENO"; then :
10006  ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=yes
10007else
10008  ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no
10009fi
10010rm -f core conftest.err conftest.$ac_objext \
10011    conftest$ac_exeext conftest.$ac_ext
10012LIBS=$ac_check_lib_save_LIBS
10013fi
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; }
10016if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream" = xyes; then :
10017  for ac_header in FLAC/all.h
10018do :
10019  ac_fn_c_check_header_mongrel "$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default"
10020if 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='#'
10027else
10028  HAVE_FLAC_TRUE='#'
10029  HAVE_FLAC_FALSE=
10030fi
10031
10032
10033$as_echo "#define HAVE_FLAC 1" >>confdefs.h
10034
10035else
10036   if false; then
10037  HAVE_FLAC_TRUE=
10038  HAVE_FLAC_FALSE='#'
10039else
10040  HAVE_FLAC_TRUE='#'
10041  HAVE_FLAC_FALSE=
10042fi
10043
10044fi
10045
10046done
10047
10048else
10049   if false; then
10050  HAVE_FLAC_TRUE=
10051  HAVE_FLAC_FALSE='#'
10052else
10053  HAVE_FLAC_TRUE='#'
10054  HAVE_FLAC_FALSE=
10055fi
10056
10057fi
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; }
10062if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  ac_check_lib_save_LIBS=$LIBS
10066LIBS="-lFLAC  $LIBS"
10067cat 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
10074extern "C"
10075#endif
10076char FLAC__stream_decoder_init_ogg_stream ();
10077int
10078main ()
10079{
10080return FLAC__stream_decoder_init_ogg_stream ();
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=yes
10087else
10088  ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092LIBS=$ac_check_lib_save_LIBS
10093fi
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; }
10096if 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='#'
10100else
10101  HAVE_FLAC_TRUE='#'
10102  HAVE_FLAC_FALSE=
10103fi
10104
10105
10106$as_echo "#define HAVE_FLAC 1" >>confdefs.h
10107
10108          if false; then
10109  NEED_OGG_TRUE=
10110  NEED_OGG_FALSE='#'
10111else
10112  NEED_OGG_TRUE='#'
10113  NEED_OGG_FALSE=
10114fi
10115
10116else
10117   if true; then
10118  NEED_OGG_TRUE=
10119  NEED_OGG_FALSE='#'
10120else
10121  NEED_OGG_TRUE='#'
10122  NEED_OGG_FALSE=
10123fi
10124
10125fi
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; }
10129if ${ac_cv_lib_vorbisfile_vorbis_comment_query+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  ac_check_lib_save_LIBS=$LIBS
10133LIBS="-lvorbisfile -logg $LIBS"
10134cat 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
10141extern "C"
10142#endif
10143char vorbis_comment_query ();
10144int
10145main ()
10146{
10147return vorbis_comment_query ();
10148  ;
10149  return 0;
10150}
10151_ACEOF
10152if ac_fn_c_try_link "$LINENO"; then :
10153  ac_cv_lib_vorbisfile_vorbis_comment_query=yes
10154else
10155  ac_cv_lib_vorbisfile_vorbis_comment_query=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext \
10158    conftest$ac_exeext conftest.$ac_ext
10159LIBS=$ac_check_lib_save_LIBS
10160fi
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; }
10163if test "x$ac_cv_lib_vorbisfile_vorbis_comment_query" = xyes; then :
10164   if false; then
10165  NEED_VORBIS_TRUE=
10166  NEED_VORBIS_FALSE='#'
10167else
10168  NEED_VORBIS_TRUE='#'
10169  NEED_VORBIS_FALSE=
10170fi
10171
10172else
10173   if true; then
10174  NEED_VORBIS_TRUE=
10175  NEED_VORBIS_FALSE='#'
10176else
10177  NEED_VORBIS_TRUE='#'
10178  NEED_VORBIS_FALSE=
10179fi
10180
10181fi
10182
10183
10184################################################################################################################
10185### Header checks
10186
10187for 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
10188do :
10189  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10191if 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
10196fi
10197
10198done
10199
10200
10201for ac_func in inotify_init
10202do :
10203  ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
10204if 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
10211else
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
10220int
10221main ()
10222{
10223
10224                 #ifndef __NR_inotify_init
10225                 #error
10226                 #endif
10227
10228
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233if 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
10241else
10242
10243             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245
10246fi
10247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248
10249fi
10250done
10251
10252
10253################################################################################################################
10254### Build Options
10255
10256
10257# Check whether --with-log-path was given.
10258if test "${with_log_path+set}" = set; then :
10259  withval=$with_log_path; with_logpath="$withval"
10260else
10261  with_logpath="/var/log"
10262fi
10263
10264
10265cat >>confdefs.h <<_ACEOF
10266#define DEFAULT_LOG_PATH "${with_logpath}"
10267_ACEOF
10268
10269
10270
10271
10272# Check whether --with-db-path was given.
10273if test "${with_db_path+set}" = set; then :
10274  withval=$with_db_path; with_dbpath="$withval"
10275else
10276  with_dbpath="/var/cache/minidlna"
10277fi
10278
10279
10280cat >>confdefs.h <<_ACEOF
10281#define DEFAULT_DB_PATH "${with_dbpath}"
10282_ACEOF
10283
10284
10285
10286# Check whether --with-os-name was given.
10287if test "${with_os_name+set}" = set; then :
10288  withval=$with_os_name; with_osname="$withval"
10289else
10290  with_osname="$(uname -s)"
10291fi
10292
10293
10294cat >>confdefs.h <<_ACEOF
10295#define OS_NAME "${with_osname}"
10296_ACEOF
10297
10298
10299
10300# Check whether --with-os-version was given.
10301if test "${with_os_version+set}" = set; then :
10302  withval=$with_os_version; with_osver="$withval"
10303else
10304  with_osver="$(uname -r)"
10305fi
10306
10307
10308cat >>confdefs.h <<_ACEOF
10309#define OS_VERSION "${with_osver}"
10310_ACEOF
10311
10312
10313
10314# Check whether --with-os-url was given.
10315if test "${with_os_url+set}" = set; then :
10316  withval=$with_os_url; with_osurl="$withval"
10317else
10318  with_osurl="http://www.netgear.com"
10319fi
10320
10321
10322cat >>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.
10331if 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
10344else
10345
10346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348
10349
10350fi
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.
10356if 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
10389else
10390
10391                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393
10394
10395fi
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.
10401if 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
10443else
10444
10445                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
10447
10448
10449fi
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.
10455if 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
10469else
10470
10471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
10473
10474
10475fi
10476
10477
10478
10479case "$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                ;;
10508esac
10509
10510
10511ac_config_files="$ac_config_files po/Makefile.in Makefile"
10512
10513cat >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
10575if 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
10596fi
10597rm -f confcache
10598
10599test "x$prefix" = xNONE && prefix=$ac_default_prefix
10600# Let make expand exec_prefix.
10601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10602
10603DEFS=-DHAVE_CONFIG_H
10604
10605ac_libobjs=
10606ac_ltlibobjs=
10607U=
10608for 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'
10616done
10617LIBOBJS=$ac_libobjs
10618
10619LTLIBOBJS=$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='#'
10633else
10634  am__EXEEXT_TRUE='#'
10635  am__EXEEXT_FALSE=
10636fi
10637
10638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10639  as_fn_error $? "conditional \"AMDEP\" was never defined.
10640Usually this means the macro was only invoked conditionally." "$LINENO" 5
10641fi
10642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10643  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10644Usually this means the macro was only invoked conditionally." "$LINENO" 5
10645fi
10646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10647  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10648Usually this means the macro was only invoked conditionally." "$LINENO" 5
10649fi
10650
10651if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10652  as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
10653Usually this means the macro was only invoked conditionally." "$LINENO" 5
10654fi
10655if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10656  as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
10657Usually this means the macro was only invoked conditionally." "$LINENO" 5
10658fi
10659if test -z "${HAVE_VORBISFILE_TRUE}" && test -z "${HAVE_VORBISFILE_FALSE}"; then
10660  as_fn_error $? "conditional \"HAVE_VORBISFILE\" was never defined.
10661Usually this means the macro was only invoked conditionally." "$LINENO" 5
10662fi
10663if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10664  as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
10665Usually this means the macro was only invoked conditionally." "$LINENO" 5
10666fi
10667if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10668  as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
10669Usually this means the macro was only invoked conditionally." "$LINENO" 5
10670fi
10671if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10672  as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
10673Usually this means the macro was only invoked conditionally." "$LINENO" 5
10674fi
10675if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
10676  as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
10677Usually this means the macro was only invoked conditionally." "$LINENO" 5
10678fi
10679if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
10680  as_fn_error $? "conditional \"NEED_OGG\" was never defined.
10681Usually this means the macro was only invoked conditionally." "$LINENO" 5
10682fi
10683if test -z "${NEED_OGG_TRUE}" && test -z "${NEED_OGG_FALSE}"; then
10684  as_fn_error $? "conditional \"NEED_OGG\" was never defined.
10685Usually this means the macro was only invoked conditionally." "$LINENO" 5
10686fi
10687if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
10688  as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
10689Usually this means the macro was only invoked conditionally." "$LINENO" 5
10690fi
10691if test -z "${NEED_VORBIS_TRUE}" && test -z "${NEED_VORBIS_FALSE}"; then
10692  as_fn_error $? "conditional \"NEED_VORBIS\" was never defined.
10693Usually this means the macro was only invoked conditionally." "$LINENO" 5
10694fi
10695
10696: "${CONFIG_STATUS=./config.status}"
10697ac_write_fail=0
10698ac_clean_files_save=$ac_clean_files
10699ac_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;}
10702as_write_fail=0
10703cat >$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
10710debug=false
10711ac_cs_recheck=false
10712ac_cs_silent=false
10713
10714SHELL=\${CONFIG_SHELL-$SHELL}
10715export SHELL
10716_ASEOF
10717cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10718## -------------------- ##
10719## M4sh Initialization. ##
10720## -------------------- ##
10721
10722# Be more Bourne compatible
10723DUALCASE=1; export DUALCASE # for MKS sh
10724if 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
10731else
10732  case `(set -o) 2>/dev/null` in #(
10733  *posix*) :
10734    set -o posix ;; #(
10735  *) :
10736     ;;
10737esac
10738fi
10739
10740
10741as_nl='
10742'
10743export as_nl
10744# Printing a long string crashes Solaris 7 /usr/bin/printf.
10745as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10747as_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.
10750if 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 --'
10754elif (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'
10757else
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'
10777fi
10778
10779# The user is always right.
10780if 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  }
10786fi
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.)
10794IFS=" ""	$as_nl"
10795
10796# Find who we are.  Look in the path if we contain no directory separator.
10797as_myself=
10798case $0 in #((
10799  *[\\/]* ) as_myself=$0 ;;
10800  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
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
10807IFS=$as_save_IFS
10808
10809     ;;
10810esac
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.
10813if test "x$as_myself" = x; then
10814  as_myself=$0
10815fi
10816if test ! -f "$as_myself"; then
10817  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10818  exit 1
10819fi
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.
10825for as_var in BASH_ENV ENV MAIL MAILPATH
10826do eval test x\${$as_var+set} = xset \
10827  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10828done
10829PS1='$ '
10830PS2='> '
10831PS4='+ '
10832
10833# NLS nuisances.
10834LC_ALL=C
10835export LC_ALL
10836LANGUAGE=C
10837export 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.
10848as_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.
10863as_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.
10871as_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.
10881as_fn_unset ()
10882{
10883  { eval $1=; unset $1;}
10884}
10885as_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.
10892if (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  }'
10897else
10898  as_fn_append ()
10899  {
10900    eval $1=\$$1\$2
10901  }
10902fi # 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.
10909if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10910  eval 'as_fn_arith ()
10911  {
10912    as_val=$(( $* ))
10913  }'
10914else
10915  as_fn_arith ()
10916  {
10917    as_val=`expr "$@" || test $? -eq 1`
10918  }
10919fi # as_fn_arith
10920
10921
10922if expr a : '\(a\)' >/dev/null 2>&1 &&
10923   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10924  as_expr=expr
10925else
10926  as_expr=false
10927fi
10928
10929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10930  as_basename=basename
10931else
10932  as_basename=false
10933fi
10934
10935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10936  as_dirname=dirname
10937else
10938  as_dirname=false
10939fi
10940
10941as_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.
10961as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10963as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10964as_cr_digits='0123456789'
10965as_cr_alnum=$as_cr_Letters$as_cr_digits
10966
10967ECHO_C= ECHO_N= ECHO_T=
10968case `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';;
10978esac
10979
10980rm -f conf$$ conf$$.exe conf$$.file
10981if test -d conf$$.dir; then
10982  rm -f conf$$.dir/conf$$.file
10983else
10984  rm -f conf$$.dir
10985  mkdir conf$$.dir 2>/dev/null
10986fi
10987if (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
11001else
11002  as_ln_s='cp -pR'
11003fi
11004rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11005rmdir conf$$.dir 2>/dev/null
11006
11007
11008# as_fn_mkdir_p
11009# -------------
11010# Create "$as_dir" as a directory, including parents if necessary.
11011as_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
11055if mkdir -p . 2>/dev/null; then
11056  as_mkdir_p='mkdir -p "$as_dir"'
11057else
11058  test -d ./-p && rmdir ./-p
11059  as_mkdir_p=false
11060fi
11061
11062
11063# as_fn_executable_p FILE
11064# -----------------------
11065# Test if FILE is an executable regular file.
11066as_fn_executable_p ()
11067{
11068  test -f "$1" && test -x "$1"
11069} # as_fn_executable_p
11070as_test_x='test -x'
11071as_executable_p=as_fn_executable_p
11072
11073# Sed expression to map a string onto a valid CPP name.
11074as_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.
11077as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11078
11079
11080exec 6>&1
11081## ----------------------------------- ##
11082## Main body of $CONFIG_STATUS script. ##
11083## ----------------------------------- ##
11084_ASEOF
11085test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11086
11087cat >>$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.
11091ac_log="
11092This file was extended by MiniDLNA $as_me 1.1.3, which was
11093generated 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
11101on `(hostname || uname -n) 2>/dev/null | sed 1q`
11102"
11103
11104_ACEOF
11105
11106case $ac_config_files in *"
11107"*) set x $ac_config_files; shift; ac_config_files=$*;;
11108esac
11109
11110case $ac_config_headers in *"
11111"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11112esac
11113
11114
11115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11116# Files that config.status was made for.
11117config_files="$ac_config_files"
11118config_headers="$ac_config_headers"
11119config_commands="$ac_config_commands"
11120
11121_ACEOF
11122
11123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11124ac_cs_usage="\
11125\`$as_me' instantiates files and other configuration actions
11126from templates according to the current configuration.  Unless the files
11127and actions are specified as TAGs, all are instantiated by default.
11128
11129Usage: $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
11143Configuration files:
11144$config_files
11145
11146Configuration headers:
11147$config_headers
11148
11149Configuration commands:
11150$config_commands
11151
11152Report bugs to the package provider."
11153
11154_ACEOF
11155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11156ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11157ac_cs_version="\\
11158MiniDLNA config.status 1.1.3
11159configured by $0, generated by GNU Autoconf 2.69,
11160  with options \\"\$ac_cs_config\\"
11161
11162Copyright (C) 2012 Free Software Foundation, Inc.
11163This config.status script is free software; the Free Software Foundation
11164gives unlimited permission to copy, distribute and modify it."
11165
11166ac_pwd='$ac_pwd'
11167srcdir='$srcdir'
11168INSTALL='$INSTALL'
11169MKDIR_P='$MKDIR_P'
11170AWK='$AWK'
11171test -n "\$AWK" || AWK=awk
11172_ACEOF
11173
11174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11175# The default lists apply if the user does not specify any file.
11176ac_need_defaults=:
11177while test $# != 0
11178do
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'
11225Try \`$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'
11234Try \`$0 --help' for more information." ;;
11235
11236  *) as_fn_append ac_config_targets " $1"
11237     ac_need_defaults=false ;;
11238
11239  esac
11240  shift
11241done
11242
11243ac_configure_extra_args=
11244
11245if $ac_cs_silent; then
11246  exec 6>/dev/null
11247  ac_configure_extra_args="$ac_configure_extra_args --silent"
11248fi
11249
11250_ACEOF
11251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252if \$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 "\$@"
11259fi
11260
11261_ACEOF
11262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11263exec 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
11273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11274#
11275# INIT-COMMANDS
11276#
11277AMDEP_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
11288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11289
11290# Handling of arguments.
11291for ac_config_target in $ac_config_targets
11292do
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
11302done
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.
11309if $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
11313fi
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
11340ac_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'.
11345if test -n "$CONFIG_FILES"; then
11346
11347
11348ac_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.
11352if test "x$ac_cr" = x; then
11353  eval ac_cr=\$\'\\r\'
11354fi
11355ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11356if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11357  ac_cs_awk_cr='\\r'
11358else
11359  ac_cs_awk_cr=$ac_cr
11360fi
11361
11362echo '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
11372ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11373ac_delim='%!_!# '
11374for 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
11386done
11387rm -f conf$$subs.sh
11388
11389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11391_ACEOF
11392sed -n '
11393h
11394s/^/S["/; s/!.*/"]=/
11395p
11396g
11397s/^[^!]*!//
11398:repl
11399t repl
11400s/'"$ac_delim"'$//
11401t delim
11402:nl
11403h
11404s/\(.\{148\}\)..*/\1/
11405t more1
11406s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11407p
11408n
11409b repl
11410:more1
11411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11412p
11413g
11414s/.\{148\}//
11415t nl
11416:delim
11417h
11418s/\(.\{148\}\)..*/\1/
11419t more2
11420s/["\\]/\\&/g; s/^/"/; s/$/"/
11421p
11422b
11423:more2
11424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11425p
11426g
11427s/.\{148\}//
11428t delim
11429' <conf$$subs.awk | sed '
11430/^[^""]/{
11431  N
11432  s/\n//
11433}
11434' >>$CONFIG_STATUS || ac_write_fail=1
11435rm -f conf$$subs.awk
11436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437_ACAWK
11438cat >>"\$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
11465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11466if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11467  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11468else
11469  cat
11470fi < "$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).
11478if test "x$srcdir" = x.; then
11479  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11480h
11481s///
11482s/^/:/
11483s/[	 ]*$/:/
11484s/:\$(srcdir):/:/g
11485s/:\${srcdir}:/:/g
11486s/:@srcdir@:/:/g
11487s/^:*//
11488s/:*$//
11489x
11490s/\(=[	 ]*\).*/\1/
11491G
11492s/\n//
11493s/^[^=]*=[	 ]*$//
11494}'
11495fi
11496
11497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11498fi # 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'.
11503if test -n "$CONFIG_HEADERS"; then
11504cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11505BEGIN {
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.
11514ac_delim='%!_!# '
11515for 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
11524done
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
11530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11531sed -n '
11532s/.\{148\}/&'"$ac_delim"'/g
11533t rset
11534:rset
11535s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11536t def
11537d
11538:def
11539s/\\$//
11540t bsnl
11541s/["\\]/\\&/g
11542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11543D["\1"]=" \3"/p
11544s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11545d
11546:bsnl
11547s/["\\]/\\&/g
11548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11549D["\1"]=" \3\\\\\\n"\\/p
11550t cont
11551s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11552t cont
11553d
11554:cont
11555n
11556s/.\{148\}/&'"$ac_delim"'/g
11557t clear
11558:clear
11559s/\\$//
11560t bsnlc
11561s/["\\]/\\&/g; s/^/"/; s/$/"/p
11562d
11563:bsnlc
11564s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11565b cont
11566' <confdefs.h | sed '
11567s/'"$ac_delim"'/"\\\
11568"/g' >>$CONFIG_STATUS || ac_write_fail=1
11569
11570cat >>$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
11604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11605  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11606fi # test -n "$CONFIG_HEADERS"
11607
11608
11609eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11610shift
11611for ac_tag
11612do
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
11704case "$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 ;;
11714esac
11715ac_abs_top_builddir=$ac_pwd
11716ac_abs_builddir=$ac_pwd$ac_dir_suffix
11717# for backward compatibility:
11718ac_top_builddir=$ac_top_build_prefix
11719
11720case $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 ;;
11733esac
11734ac_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
11754cat >>$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.
11757ac_datarootdir_hack=; ac_datarootdir_seen=
11758ac_sed_dataroot='
11759/datarootdir/ {
11760  p
11761  q
11762}
11763/@datadir@/p
11764/@docdir@/p
11765/@infodir@/p
11766/@localedir@/p
11767/@mandir@/p'
11768case `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
11774cat >>$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' ;;
11782esac
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?
11788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789ac_sed_extra="$ac_vpsub
11790$extrasub
11791_ACEOF
11792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11793:t
11794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11795s|@configure_input@|$ac_sed_conf_input|;t t
11796s&@top_builddir@&$ac_top_builddir_sub&;t t
11797s&@top_build_prefix@&$ac_top_build_prefix&;t t
11798s&@srcdir@&$ac_srcdir&;t t
11799s&@abs_srcdir@&$ac_abs_srcdir&;t t
11800s&@top_srcdir@&$ac_top_srcdir&;t t
11801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11802s&@builddir@&$ac_builddir&;t t
11803s&@abs_builddir@&$ac_abs_builddir&;t t
11804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11805s&@INSTALL@&$ac_INSTALL&;t t
11806s&@MKDIR_P@&$ac_MKDIR_P&;t t
11807$ac_datarootdir_hack
11808"
11809eval 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
11812test -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'
11817which 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'
11819which 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
11854for _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
11861done
11862echo "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
12102done # for ac_tag
12103
12104
12105as_fn_exit 0
12106_ACEOF
12107ac_clean_files=$ac_clean_files_save
12108
12109test $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.
12121if 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
12132fi
12133if 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;}
12136fi
12137
12138