2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="aplay/aplay.c"
566 ac_default_prefix=/usr
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars='am__EXEEXT_FALSE
636 HAVE_SAMPLERATE_FALSE
696 INSTALL_STRIP_PROGRAM
738 program_transform_name
751 enable_option_checking
753 enable_dependency_tracking
770 with_systemdsystemunitdir
771 with_asound_state_dir
773 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 ac_unrecognized_opts=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name=s,x,x,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE}'
824 infodir='${datarootdir}/info'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures this package to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 if test -n "$ac_init_help"; then
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --disable-nls do not use Native Language Support
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --disable-rpath do not hardcode runtime library paths
1405 --disable-alsatest Do not try to compile and run a test Alsa program
1406 --disable-alsamixer Disable alsamixer compilation
1407 --disable-alsaconf Disable alsaconf packaging
1408 --disable-alsaloop Disable alsaloop packaging
1409 --disable-xmlto Disable man page creation via xmlto
1410 --disable-largefile omit support for large files
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-gnu-ld assume the C compiler uses GNU ld default=no
1416 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1417 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1418 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1419 --without-libintl-prefix don't search for libintl in includedir and libdir
1420 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1421 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1422 --with-librt Use librt for monotonic clock (default = yes)
1423 --with-udev-rules-dir Directory where to install udev rules to (defaults
1424 to /lib/udev/rules.d)
1425 --with-curses libname Specify the curses library to use (default=auto)
1426 --with-testsound=file give the path of test sound file for alsaconf
1427 --with-systemdsystemunitdir=DIR
1428 Directory for systemd service files
1429 --with-asound-state-dir=DIR
1430 Directory to place asound.state file in
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 PKG_CONFIG path to pkg-config utility
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1446 Report bugs to the package provider.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1510 generated by GNU Autoconf 2.68
1512 Copyright (C) 2010 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile "$LINENO"; then :
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 } # ac_fn_c_check_header_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=$ac_status
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1722 ac_fn_c_check_header_mongrel ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if eval \${$3+:} false; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1746 ac_header_compiler=no
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1762 ac_header_preproc=no
1764 rm -f conftest.err conftest.i conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1794 eval "$3=\$ac_header_compiler"
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 } # ac_fn_c_check_header_mongrel
1803 cat >config.log <<_ACEOF
1804 This file contains any messages produced by compilers while
1805 running configure, to aid debugging if configure makes a mistake.
1807 It was created by $as_me, which was
1808 generated by GNU Autoconf 2.68. Invocation command line was
1820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 $as_echo "PATH: $as_dir"
1860 # Keep a trace of the command line.
1861 # Strip out --no-create and --no-recursion so they do not pile up.
1862 # Strip out --silent because we don't want to record it for future runs.
1863 # Also quote any args containing shell meta-characters.
1864 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_must_keep_next=false
1874 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876 | -silent | --silent | --silen | --sile | --sil)
1879 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 as_fn_append ac_configure_args1 " '$ac_arg'"
1885 if test $ac_must_keep_next = true; then
1886 ac_must_keep_next=false # Got value, back to normal.
1889 *=* | --config-cache | -C | -disable-* | --disable-* \
1890 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892 | -with-* | --with-* | -without-* | --without-* | --x)
1893 case "$ac_configure_args0 " in
1894 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 -* ) ac_must_keep_next=true ;;
1900 as_fn_append ac_configure_args " '$ac_arg'"
1905 { ac_configure_args0=; unset ac_configure_args0;}
1906 { ac_configure_args1=; unset ac_configure_args1;}
1908 # When interrupted or exit'd, cleanup temporary files, and complete
1909 # config.log. We remove comments because anyway the quotes in there
1910 # would cause problems or look ugly.
1911 # WARNING: Use '\'' to represent an apostrophe within the trap.
1912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913 trap 'exit_status=$?
1914 # Save into config.log some information that might help in debugging.
1918 $as_echo "## ---------------- ##
1919 ## Cache variables. ##
1920 ## ---------------- ##"
1922 # The following way of writing the cache mishandles newlines in values,
1924 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925 eval ac_val=\$$ac_var
1929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 _ | IFS | as_nl) ;; #(
1934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935 *) { eval $ac_var=; unset $ac_var;} ;;
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954 $as_echo "## ----------------- ##
1955 ## Output variables. ##
1956 ## ----------------- ##"
1958 for ac_var in $ac_subst_vars
1960 eval ac_val=\$$ac_var
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 $as_echo "$ac_var='\''$ac_val'\''"
1968 if test -n "$ac_subst_files"; then
1969 $as_echo "## ------------------- ##
1970 ## File substitutions. ##
1971 ## ------------------- ##"
1973 for ac_var in $ac_subst_files
1975 eval ac_val=\$$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -s confdefs.h; then
1985 $as_echo "## ----------- ##
1992 test "$ac_signal" != 0 &&
1993 $as_echo "$as_me: caught signal $ac_signal"
1994 $as_echo "$as_me: exit $exit_status"
1996 rm -f core *.core core.conftest.* &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 for ac_signal in 1 2 13 15; do
2001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2006 rm -f -r conftest* confdefs.h
2008 $as_echo "/* confdefs.h */" > confdefs.h
2010 # Predefined preprocessor variables.
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_URL "$PACKAGE_URL"
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 # We do not want a PATH search for config.site.
2043 case $CONFIG_SITE in #((
2044 -*) ac_site_file1=./$CONFIG_SITE;;
2045 */*) ac_site_file1=$CONFIG_SITE;;
2046 *) ac_site_file1=./$CONFIG_SITE;;
2048 elif test "x$prefix" != xNONE; then
2049 ac_site_file1=$prefix/share/config.site
2050 ac_site_file2=$prefix/etc/config.site
2052 ac_site_file1=$ac_default_prefix/share/config.site
2053 ac_site_file2=$ac_default_prefix/etc/config.site
2055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 test "x$ac_site_file" = xNONE && continue
2058 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2061 sed 's/^/| /' "$ac_site_file" >&5
2063 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065 as_fn_error $? "failed to load site script $ac_site_file
2066 See \`config.log' for more details" "$LINENO" 5; }
2070 if test -r "$cache_file"; then
2071 # Some versions of bash will fail to source /dev/null (special files
2072 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2073 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2075 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2078 *) . "./$cache_file";;
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2083 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 # Check that the precious variables saved in the cache have kept the same
2089 ac_cache_corrupted=false
2090 for ac_var in $ac_precious_vars; do
2091 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092 eval ac_new_set=\$ac_env_${ac_var}_set
2093 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094 eval ac_new_val=\$ac_env_${ac_var}_value
2095 case $ac_old_set,$ac_new_set in
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099 ac_cache_corrupted=: ;;
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2106 if test "x$ac_old_val" != "x$ac_new_val"; then
2107 # differences in whitespace do not lead to failure.
2108 ac_old_val_w=`echo x $ac_old_val`
2109 ac_new_val_w=`echo x $ac_new_val`
2110 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2113 ac_cache_corrupted=:
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2117 eval $ac_var=\$ac_old_val
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2120 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2122 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 # Pass precious variables to config.status.
2126 if test "$ac_new_set" = set; then
2128 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 *) ac_arg=$ac_var=$ac_new_val ;;
2131 case " $ac_configure_args " in
2132 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2133 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 if $ac_cache_corrupted; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2142 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 ## -------------------- ##
2145 ## Main body of script. ##
2146 ## -------------------- ##
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 am__api_version='1.11'
2159 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2160 if test -f "$ac_dir/install-sh"; then
2162 ac_install_sh="$ac_aux_dir/install-sh -c"
2164 elif test -f "$ac_dir/install.sh"; then
2166 ac_install_sh="$ac_aux_dir/install.sh -c"
2168 elif test -f "$ac_dir/shtool"; then
2170 ac_install_sh="$ac_aux_dir/shtool install -c"
2174 if test -z "$ac_aux_dir"; then
2175 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2178 # These three variables are undocumented and unsupported,
2179 # and are intended to be withdrawn in a future Autoconf release.
2180 # They can cause serious problems if a builder's source tree is in a directory
2181 # whose full name contains unusual characters.
2182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187 # Find a good install program. We prefer a C program (faster),
2188 # so one script is as good as another. But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2194 # AmigaOS /C/install, which installs bootblocks on floppy discs
2195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2198 # OS/2's system install, which has a completely different semantic
2199 # ./install, which can be erroneously created by make from ./install.sh.
2200 # Reject install programs that cannot install multiple files.
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2202 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2203 if test -z "$INSTALL"; then
2204 if ${ac_cv_path_install+:} false; then :
2205 $as_echo_n "(cached) " >&6
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 # Account for people who put trailing slashes in PATH elements.
2213 case $as_dir/ in #((
2214 ./ | .// | /[cC]/* | \
2215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2216 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2219 # OSF1 and SCO ODT 3.0 have their own names for install.
2220 # Don't use installbsd from OSF since it installs stuff as root
2222 for ac_prog in ginstall scoinst install; do
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2225 if test $ac_prog = install &&
2226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227 # AIX install. It has an incompatible calling convention.
2229 elif test $ac_prog = install &&
2230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231 # program-specific install script used by HP pwplus--don't use.
2234 rm -rf conftest.one conftest.two conftest.dir
2235 echo one > conftest.one
2236 echo two > conftest.two
2238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2239 test -s conftest.one && test -s conftest.two &&
2240 test -s conftest.dir/conftest.one &&
2241 test -s conftest.dir/conftest.two
2243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2256 rm -rf conftest.one conftest.two conftest.dir
2259 if test "${ac_cv_path_install+set}" = set; then
2260 INSTALL=$ac_cv_path_install
2262 # As a last resort, use the slow shell script. Don't cache a
2263 # value for INSTALL within a source directory, because that will
2264 # break other packages using the cache if that directory is
2265 # removed, or if the value is a relative name.
2266 INSTALL=$ac_install_sh
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2270 $as_echo "$INSTALL" >&6; }
2272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2273 # It thinks the first close brace ends the variable substitution.
2274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2281 $as_echo_n "checking whether build environment is sane... " >&6; }
2284 echo timestamp > conftest.file
2285 # Reject unsafe characters in $srcdir or the absolute working directory
2286 # name. Accept space and tab only in the latter.
2290 *[\\\"\#\$\&\'\`$am_lf]*)
2291 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2294 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2295 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2298 # Do `set' in a subshell so we don't clobber the current shell's
2299 # arguments. Must try -L first in case configure is actually a
2300 # symlink; some systems play weird games with the mod time of symlinks
2301 # (eg FreeBSD returns the mod time of the symlink's containing
2304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2305 if test "$*" = "X"; then
2307 set X `ls -t "$srcdir/configure" conftest.file`
2310 if test "$*" != "X $srcdir/configure conftest.file" \
2311 && test "$*" != "X conftest.file $srcdir/configure"; then
2313 # If neither matched, then we have a broken ls. This can happen
2314 # if, for instance, CONFIG_SHELL is bash and it inherits a
2315 # broken ls alias from the environment. This has actually
2316 # happened. Such a system could not be considered "sane".
2317 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2318 alias in your environment" "$LINENO" 5
2321 test "$2" = conftest.file
2327 as_fn_error $? "newly created file is older than distributed files!
2328 Check your system clock" "$LINENO" 5
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2331 $as_echo "yes" >&6; }
2332 test "$program_prefix" != NONE &&
2333 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2334 # Use a double $ so make ignores it.
2335 test "$program_suffix" != NONE &&
2336 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2337 # Double any \ or $.
2338 # By default was `s,x,x', remove it if useless.
2339 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2340 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2342 # expand $ac_aux_dir to an absolute path
2343 am_aux_dir=`cd $ac_aux_dir && pwd`
2345 if test x"${MISSING+set}" != xset; then
2348 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2350 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2353 # Use eval to expand $SHELL
2354 if eval "$MISSING --run true"; then
2355 am_missing_run="$MISSING --run "
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2359 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2362 if test x"${install_sh}" != xset; then
2365 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2367 install_sh="\${SHELL} $am_aux_dir/install-sh"
2371 # Installed binaries are usually stripped using `strip' when the user
2372 # run `make install-strip'. However `strip' might not be the right
2373 # tool to use in cross-compilation environments, therefore Automake
2374 # will honor the `STRIP' environment variable to overrule this program.
2375 if test "$cross_compiling" != no; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}strip; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if ${ac_cv_prog_STRIP+:} false; then :
2382 $as_echo_n "(cached) " >&6
2384 if test -n "$STRIP"; then
2385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 STRIP=$ac_cv_prog_STRIP
2405 if test -n "$STRIP"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2407 $as_echo "$STRIP" >&6; }
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2415 if test -z "$ac_cv_prog_STRIP"; then
2417 # Extract the first word of "strip", so it can be a program name with args.
2418 set dummy strip; ac_word=$2
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2422 $as_echo_n "(cached) " >&6
2424 if test -n "$ac_ct_STRIP"; then
2425 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_STRIP="strip"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2445 if test -n "$ac_ct_STRIP"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2447 $as_echo "$ac_ct_STRIP" >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2453 if test "x$ac_ct_STRIP" = x; then
2456 case $cross_compiling:$ac_tool_warned in
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2460 ac_tool_warned=yes ;;
2465 STRIP="$ac_cv_prog_STRIP"
2469 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2472 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2473 if test -z "$MKDIR_P"; then
2474 if ${ac_cv_path_mkdir+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2481 test -z "$as_dir" && as_dir=.
2482 for ac_prog in mkdir gmkdir; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2485 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2486 'mkdir (GNU coreutils) '* | \
2487 'mkdir (coreutils) '* | \
2488 'mkdir (fileutils) '4.1*)
2489 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2499 test -d ./--version && rmdir ./--version
2500 if test "${ac_cv_path_mkdir+set}" = set; then
2501 MKDIR_P="$ac_cv_path_mkdir -p"
2503 # As a last resort, use the slow shell script. Don't cache a
2504 # value for MKDIR_P within a source directory, because that will
2505 # break other packages using the cache if that directory is
2506 # removed, or if the value is a relative name.
2507 MKDIR_P="$ac_install_sh -d"
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2511 $as_echo "$MKDIR_P" >&6; }
2515 [\\/$]* | ?:[\\/]*) ;;
2516 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2519 for ac_prog in gawk mawk nawk awk
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_AWK+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 if test -n "$AWK"; then
2529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_AWK="$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 if test -n "$AWK"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551 $as_echo "$AWK" >&6; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2558 test -n "$AWK" && break
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2564 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2565 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 cat >conftest.make <<\_ACEOF
2571 @echo '@@@%%%=$(MAKE)=@@@%%%'
2573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2576 eval ac_cv_prog_make_${ac_make}_set=yes;;
2578 eval ac_cv_prog_make_${ac_make}_set=no;;
2582 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2584 $as_echo "yes" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 SET_MAKE="MAKE=${MAKE-make}"
2592 rm -rf .tst 2>/dev/null
2593 mkdir .tst 2>/dev/null
2594 if test -d .tst; then
2599 rmdir .tst 2>/dev/null
2601 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2602 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2603 # is not polluted with repeated "-I."
2604 am__isrc=' -I$(srcdir)'
2605 # test to see if srcdir already configured
2606 if test -f $srcdir/config.status; then
2607 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2611 # test whether we have cygpath
2612 if test -z "$CYGPATH_W"; then
2613 if (cygpath --version) >/dev/null 2>/dev/null; then
2614 CYGPATH_W='cygpath -w'
2621 # Define the identity of the package.
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE "$PACKAGE"
2631 cat >>confdefs.h <<_ACEOF
2632 #define VERSION "$VERSION"
2635 # Some tools Automake needs.
2637 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2640 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2643 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2646 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2649 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2651 # We need awk for the "check" target. The system "awk" is bad on
2653 # Always define AMTAR for backward compatibility.
2655 AMTAR=${AMTAR-"${am_missing_run}tar"}
2657 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2666 $as_echo_n "checking whether NLS is requested... " >&6; }
2667 # Check whether --enable-nls was given.
2668 if test "${enable_nls+set}" = set; then :
2669 enableval=$enable_nls; USE_NLS=$enableval
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2675 $as_echo "$USE_NLS" >&6; }
2682 # Prepare PATH_SEPARATOR.
2683 # The user is always right.
2684 if test "${PATH_SEPARATOR+set}" != set; then
2685 echo "#! /bin/sh" >conf$$.sh
2686 echo "exit 0" >>conf$$.sh
2688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2696 # Find out how to test for executable files. Don't use a zero-byte file,
2697 # as systems may use methods other than mode bits to determine executability.
2698 cat >conf$$.file <<_ASEOF
2702 chmod +x conf$$.file
2703 if test -x conf$$.file >/dev/null 2>&1; then
2704 ac_executable_p="test -x"
2706 ac_executable_p="test -f"
2710 # Extract the first word of "msgfmt", so it can be a program name with args.
2711 set dummy msgfmt; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_path_MSGFMT+:} false; then :
2715 $as_echo_n "(cached) " >&6
2719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2723 for ac_dir in $PATH; do
2725 test -z "$ac_dir" && ac_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2728 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2729 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2730 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2731 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2738 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2742 MSGFMT="$ac_cv_path_MSGFMT"
2743 if test "$MSGFMT" != ":"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2745 $as_echo "$MSGFMT" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2752 set dummy gmsgfmt; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_path_GMSGFMT+:} false; then :
2756 $as_echo_n "(cached) " >&6
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2782 GMSGFMT=$ac_cv_path_GMSGFMT
2783 if test -n "$GMSGFMT"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2785 $as_echo "$GMSGFMT" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2793 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2794 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2795 *) MSGFMT_015=$MSGFMT ;;
2798 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2799 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2800 *) GMSGFMT_015=$GMSGFMT ;;
2805 # Prepare PATH_SEPARATOR.
2806 # The user is always right.
2807 if test "${PATH_SEPARATOR+set}" != set; then
2808 echo "#! /bin/sh" >conf$$.sh
2809 echo "exit 0" >>conf$$.sh
2811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2819 # Find out how to test for executable files. Don't use a zero-byte file,
2820 # as systems may use methods other than mode bits to determine executability.
2821 cat >conf$$.file <<_ASEOF
2825 chmod +x conf$$.file
2826 if test -x conf$$.file >/dev/null 2>&1; then
2827 ac_executable_p="test -x"
2829 ac_executable_p="test -f"
2833 # Extract the first word of "xgettext", so it can be a program name with args.
2834 set dummy xgettext; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_path_XGETTEXT+:} false; then :
2838 $as_echo_n "(cached) " >&6
2842 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2845 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2846 for ac_dir in $PATH; do
2848 test -z "$ac_dir" && ac_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2851 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2852 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2853 (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
2854 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2861 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2865 XGETTEXT="$ac_cv_path_XGETTEXT"
2866 if test "$XGETTEXT" != ":"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2868 $as_echo "$XGETTEXT" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2877 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2878 *) XGETTEXT_015=$XGETTEXT ;;
2883 # Prepare PATH_SEPARATOR.
2884 # The user is always right.
2885 if test "${PATH_SEPARATOR+set}" != set; then
2886 echo "#! /bin/sh" >conf$$.sh
2887 echo "exit 0" >>conf$$.sh
2889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2897 # Find out how to test for executable files. Don't use a zero-byte file,
2898 # as systems may use methods other than mode bits to determine executability.
2899 cat >conf$$.file <<_ASEOF
2903 chmod +x conf$$.file
2904 if test -x conf$$.file >/dev/null 2>&1; then
2905 ac_executable_p="test -x"
2907 ac_executable_p="test -f"
2911 # Extract the first word of "msgmerge", so it can be a program name with args.
2912 set dummy msgmerge; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_path_MSGMERGE+:} false; then :
2916 $as_echo_n "(cached) " >&6
2920 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2923 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2924 for ac_dir in $PATH; do
2926 test -z "$ac_dir" && ac_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2929 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2930 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2931 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2938 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2942 MSGMERGE="$ac_cv_path_MSGMERGE"
2943 if test "$MSGMERGE" != ":"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
2945 $as_echo "$MSGMERGE" >&6; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2952 test -n "$localedir" || localedir='${datadir}/locale'
2955 ac_config_commands="$ac_config_commands po-directories"
2959 if test "X$prefix" = "XNONE"; then
2960 acl_final_prefix="$ac_default_prefix"
2962 acl_final_prefix="$prefix"
2964 if test "X$exec_prefix" = "XNONE"; then
2965 acl_final_exec_prefix='${prefix}'
2967 acl_final_exec_prefix="$exec_prefix"
2969 acl_save_prefix="$prefix"
2970 prefix="$acl_final_prefix"
2971 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2972 prefix="$acl_save_prefix"
2974 DEPDIR="${am__leading_dot}deps"
2976 ac_config_commands="$ac_config_commands depfiles"
2979 am_make=${MAKE-make}
2980 cat > confinc << 'END'
2982 @echo this is the am__doit target
2985 # If we don't find an include directive, just comment out the code.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2987 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2991 # First try GNU make style include.
2992 echo "include confinc" > confmf
2993 # Ignore all kinds of additional output from `make'.
2994 case `$am_make -s -f confmf 2> /dev/null` in #(
2995 *the\ am__doit\ target*)
3001 # Now try BSD make style include.
3002 if test "$am__include" = "#"; then
3003 echo '.include "confinc"' > confmf
3004 case `$am_make -s -f confmf 2> /dev/null` in #(
3005 *the\ am__doit\ target*)
3006 am__include=.include
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3015 $as_echo "$_am_result" >&6; }
3016 rm -f confinc confmf
3018 # Check whether --enable-dependency-tracking was given.
3019 if test "${enable_dependency_tracking+set}" = set; then :
3020 enableval=$enable_dependency_tracking;
3023 if test "x$enable_dependency_tracking" != xno; then
3024 am_depcomp="$ac_aux_dir/depcomp"
3027 if test "x$enable_dependency_tracking" != xno; then
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3080 if test -z "$ac_cv_prog_CC"; then
3082 # Extract the first word of "gcc", so it can be a program name with args.
3083 set dummy gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_ac_ct_CC="gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3118 if test "x$ac_ct_CC" = x; then
3121 case $cross_compiling:$ac_tool_warned in
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_CC+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_CC="${ac_tool_prefix}cc"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3174 if test -z "$CC"; then
3175 # Extract the first word of "cc", so it can be a program name with args.
3176 set dummy cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3194 ac_prog_rejected=yes
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 if test $ac_prog_rejected = yes; then
3206 # We found a bogon in the path, so make sure we never use it.
3207 set dummy $ac_cv_prog_CC
3209 if test $# != 0; then
3210 # We chose a different compiler from the bogus one.
3211 # However, it has the same basename, so the bogon will be chosen
3212 # first if we set CC to just the basename; use the full file name.
3214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 for ac_prog in cl.exe
3234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3271 test -n "$CC" && break
3274 if test -z "$CC"; then
3276 for ac_prog in cl.exe
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$ac_ct_CC"; then
3286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_ac_ct_CC="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3306 if test -n "$ac_ct_CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3308 $as_echo "$ac_ct_CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$ac_ct_CC" && break
3318 if test "x$ac_ct_CC" = x; then
3321 case $cross_compiling:$ac_tool_warned in
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3334 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $? "no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details" "$LINENO" 5; }
3339 # Provide some information about the compiler.
3340 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3343 for ac_option in --version -v -V -qversion; do
3344 { { ac_try="$ac_compiler $ac_option >&5"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3353 if test -s conftest.err; then
3355 ... rest of stderr output deleted ...
3356 10q' conftest.err >conftest.er1
3357 cat conftest.er1 >&5
3359 rm -f conftest.er1 conftest.err
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 ac_clean_files_save=$ac_clean_files
3376 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3377 # Try to create an executable without -o first, disregard a.out.
3378 # It will help us diagnose broken compilers, and finding out an intuition
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3384 # The possible output files:
3385 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3388 for ac_file in $ac_files
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3397 if { { ac_try="$ac_link_default"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link_default") 2>&5
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; then :
3408 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3409 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3410 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3411 # so that the user can short-circuit this test for compilers unknown to
3413 for ac_file in $ac_files ''
3415 test -f "$ac_file" || continue
3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3420 # We found the default executable, but exeext='' is most
3424 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3426 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 # We set ac_cv_exeext here because the later test for it is not
3429 # safe: cross compilers may not add the suffix if given an `-o'
3430 # argument, so we may need to know it at that point already.
3431 # Even if this section looks crufty: it has the advantage of
3438 test "$ac_cv_exeext" = no && ac_cv_exeext=
3443 if test -z "$ac_file"; then :
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 $as_echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error 77 "C compiler cannot create executables
3452 See \`config.log' for more details" "$LINENO" 5; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3458 $as_echo_n "checking for C compiler default output file name... " >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3460 $as_echo "$ac_file" >&6; }
3461 ac_exeext=$ac_cv_exeext
3463 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3464 ac_clean_files=$ac_clean_files_save
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3466 $as_echo_n "checking for suffix of executables... " >&6; }
3467 if { { ac_try="$ac_link"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3479 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3480 # work properly (i.e., refer to `conftest.exe'), while it won't with
3482 for ac_file in conftest.exe conftest conftest.*; do
3483 test -f "$ac_file" || continue
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3495 See \`config.log' for more details" "$LINENO" 5; }
3497 rm -f conftest conftest$ac_cv_exeext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3499 $as_echo "$ac_cv_exeext" >&6; }
3501 rm -f conftest.$ac_ext
3502 EXEEXT=$ac_cv_exeext
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3510 FILE *f = fopen ("conftest.out", "w");
3511 return ferror (f) || fclose (f) != 0;
3517 ac_clean_files="$ac_clean_files conftest.out"
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 if test "$cross_compiling" != yes; then
3523 { { ac_try="$ac_link"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link") 2>&5
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534 if { ac_try='./conftest$ac_cv_exeext'
3535 { { case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_try") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; }; then
3547 if test "$cross_compiling" = maybe; then
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details" "$LINENO" 5; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3559 $as_echo "$cross_compiling" >&6; }
3561 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if ${ac_cv_objext+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { { ac_try="$ac_compile"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compile") 2>&5
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3611 $as_echo "$ac_cv_objext" >&6; }
3612 OBJEXT=$ac_cv_objext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3616 if ${ac_cv_c_compiler_gnu+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3633 if ac_fn_c_try_compile "$LINENO"; then :
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3644 if test $ac_compiler_gnu = yes; then
3649 ac_test_CFLAGS=${CFLAGS+set}
3650 ac_save_CFLAGS=$CFLAGS
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3653 if ${ac_cv_prog_cc_g+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 ac_save_c_werror_flag=$ac_c_werror_flag
3657 ac_c_werror_flag=yes
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3671 if ac_fn_c_try_compile "$LINENO"; then :
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3702 if ac_fn_c_try_compile "$LINENO"; then :
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3713 $as_echo "$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3723 if test "$GCC" = yes; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3731 if ${ac_cv_prog_cc_c89+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 ac_cv_prog_cc_c89=no
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3756 s = g (p, va_arg (v,int));
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std. */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771 inside strings and character constants. */
3773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 CC="$ac_save_CC $ac_arg"
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_c89=$ac_arg
3796 rm -f core conftest.err conftest.$ac_objext
3797 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 rm -f conftest.$ac_ext
3804 case "x$ac_cv_prog_cc_c89" in
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807 $as_echo "none needed" >&6; } ;;
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3810 $as_echo "unsupported" >&6; } ;;
3812 CC="$CC $ac_cv_prog_cc_c89"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 depcc="$CC" am_compiler_list=
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named `D' -- because `-MD' means `put the output
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj=sub/conftest.${OBJEXT-o}
3883 am__minus_obj="-o $am__obj"
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false || continue
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes; then
3898 msvisualcpp | msvcmsys)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj=conftest.${OBJEXT-o}
3907 if depmode=$depmode \
3908 source=sub/conftest.c object=$am__obj \
3909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3911 >/dev/null 2>conftest.err &&
3912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type=$depmode
3934 am_cv_CC_dependencies_compiler_type=none
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3946 am__fastdepCC_FALSE='#'
3948 am__fastdepCC_TRUE='#'
3949 am__fastdepCC_FALSE=
3953 # Make sure we can run config.sub.
3954 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3955 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3958 $as_echo_n "checking build system type... " >&6; }
3959 if ${ac_cv_build+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 ac_build_alias=$build_alias
3963 test "x$ac_build_alias" = x &&
3964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3965 test "x$ac_build_alias" = x &&
3966 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3967 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3968 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3972 $as_echo "$ac_cv_build" >&6; }
3973 case $ac_cv_build in
3975 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3978 ac_save_IFS=$IFS; IFS='-'
3984 # Remember, the first character of IFS is used to create $*,
3985 # except with old shells:
3988 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3992 $as_echo_n "checking host system type... " >&6; }
3993 if ${ac_cv_host+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 if test "x$host_alias" = x; then
3997 ac_cv_host=$ac_cv_build
3999 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4000 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4005 $as_echo "$ac_cv_host" >&6; }
4008 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4011 ac_save_IFS=$IFS; IFS='-'
4017 # Remember, the first character of IFS is used to create $*,
4018 # except with old shells:
4021 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4025 # Check whether --with-gnu-ld was given.
4026 if test "${with_gnu_ld+set}" = set; then :
4027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4032 # Prepare PATH_SEPARATOR.
4033 # The user is always right.
4034 if test "${PATH_SEPARATOR+set}" != set; then
4035 echo "#! /bin/sh" >conf$$.sh
4036 echo "exit 0" >>conf$$.sh
4038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4046 if test "$GCC" = yes; then
4047 # Check if gcc -print-prog-name=ld gives a path.
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4049 $as_echo_n "checking for ld used by GCC... " >&6; }
4052 # gcc leaves a trailing carriage return which upsets mingw
4053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4058 # Accept absolute paths.
4059 [\\/]* | [A-Za-z]:[\\/]*)
4060 re_direlt='/[^/][^/]*/\.\./'
4061 # Canonicalize the path of ld
4062 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4064 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4066 test -z "$LD" && LD="$ac_prog"
4069 # If it fails, then pretend we aren't using GCC.
4073 # If it is relative, then search for the first ld in PATH.
4077 elif test "$with_gnu_ld" = yes; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4079 $as_echo_n "checking for GNU ld... " >&6; }
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4082 $as_echo_n "checking for non-GNU ld... " >&6; }
4084 if ${acl_cv_path_LD+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -z "$LD"; then
4088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4089 for ac_dir in $PATH; do
4090 test -z "$ac_dir" && ac_dir=.
4091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4092 acl_cv_path_LD="$ac_dir/$ac_prog"
4093 # Check to see if the program is GNU ld. I'd rather use --version,
4094 # but apparently some GNU ld's only accept -v.
4095 # Break only if it was the GNU/non-GNU ld that we prefer.
4096 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4097 *GNU* | *'with BFD'*)
4098 test "$with_gnu_ld" != no && break ;;
4100 test "$with_gnu_ld" != yes && break ;;
4106 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4110 LD="$acl_cv_path_LD"
4111 if test -n "$LD"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4113 $as_echo "$LD" >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4118 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4120 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4121 if ${acl_cv_prog_gnu_ld+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4125 case `$LD -v 2>&1 </dev/null` in
4126 *GNU* | *'with BFD'*)
4127 acl_cv_prog_gnu_ld=yes ;;
4129 acl_cv_prog_gnu_ld=no ;;
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4133 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4134 with_gnu_ld=$acl_cv_prog_gnu_ld
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4140 $as_echo_n "checking for shared library run path origin... " >&6; }
4141 if ${acl_cv_rpath+:} false; then :
4142 $as_echo_n "(cached) " >&6
4145 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4146 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4153 $as_echo "$acl_cv_rpath" >&6; }
4155 libext="$acl_cv_libext"
4156 shlibext="$acl_cv_shlibext"
4157 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4158 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4159 hardcode_direct="$acl_cv_hardcode_direct"
4160 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4161 # Check whether --enable-rpath was given.
4162 if test "${enable_rpath+set}" = set; then :
4163 enableval=$enable_rpath; :
4171 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4172 if test -n "$searchpath"; then
4173 acl_save_IFS="${IFS= }"; IFS=":"
4174 for searchdir in $searchpath; do
4175 if test -d "$searchdir"; then
4176 case "$searchdir" in
4177 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4178 *) searchdir=`cd "$searchdir" && pwd`
4179 case "$searchdir" in
4180 */lib64 ) acl_libdirstem=lib64 ;;
4197 acl_save_prefix="$prefix"
4198 prefix="$acl_final_prefix"
4199 acl_save_exec_prefix="$exec_prefix"
4200 exec_prefix="$acl_final_exec_prefix"
4202 eval additional_includedir=\"$includedir\"
4203 eval additional_libdir=\"$libdir\"
4205 exec_prefix="$acl_save_exec_prefix"
4206 prefix="$acl_save_prefix"
4209 # Check whether --with-libiconv-prefix was given.
4210 if test "${with_libiconv_prefix+set}" = set; then :
4211 withval=$with_libiconv_prefix;
4212 if test "X$withval" = "Xno"; then
4215 if test "X$withval" = "X"; then
4217 acl_save_prefix="$prefix"
4218 prefix="$acl_final_prefix"
4219 acl_save_exec_prefix="$exec_prefix"
4220 exec_prefix="$acl_final_exec_prefix"
4222 eval additional_includedir=\"$includedir\"
4223 eval additional_libdir=\"$libdir\"
4225 exec_prefix="$acl_save_exec_prefix"
4226 prefix="$acl_save_prefix"
4229 additional_includedir="$withval/include"
4230 additional_libdir="$withval/$acl_libdirstem"
4241 names_already_handled=
4242 names_next_round='iconv '
4243 while test -n "$names_next_round"; do
4244 names_this_round="$names_next_round"
4246 for name in $names_this_round; do
4248 for n in $names_already_handled; do
4249 if test "$n" = "$name"; then
4254 if test -z "$already_handled"; then
4255 names_already_handled="$names_already_handled $name"
4256 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4257 eval value=\"\$HAVE_LIB$uppername\"
4258 if test -n "$value"; then
4259 if test "$value" = yes; then
4260 eval value=\"\$LIB$uppername\"
4261 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4262 eval value=\"\$LTLIB$uppername\"
4263 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4272 if test $use_additional = yes; then
4273 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4274 found_dir="$additional_libdir"
4275 found_so="$additional_libdir/lib$name.$shlibext"
4276 if test -f "$additional_libdir/lib$name.la"; then
4277 found_la="$additional_libdir/lib$name.la"
4280 if test -f "$additional_libdir/lib$name.$libext"; then
4281 found_dir="$additional_libdir"
4282 found_a="$additional_libdir/lib$name.$libext"
4283 if test -f "$additional_libdir/lib$name.la"; then
4284 found_la="$additional_libdir/lib$name.la"
4289 if test "X$found_dir" = "X"; then
4290 for x in $LDFLAGS $LTLIBICONV; do
4292 acl_save_prefix="$prefix"
4293 prefix="$acl_final_prefix"
4294 acl_save_exec_prefix="$exec_prefix"
4295 exec_prefix="$acl_final_exec_prefix"
4297 exec_prefix="$acl_save_exec_prefix"
4298 prefix="$acl_save_prefix"
4302 dir=`echo "X$x" | sed -e 's/^X-L//'`
4303 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4305 found_so="$dir/lib$name.$shlibext"
4306 if test -f "$dir/lib$name.la"; then
4307 found_la="$dir/lib$name.la"
4310 if test -f "$dir/lib$name.$libext"; then
4312 found_a="$dir/lib$name.$libext"
4313 if test -f "$dir/lib$name.la"; then
4314 found_la="$dir/lib$name.la"
4320 if test "X$found_dir" != "X"; then
4325 if test "X$found_dir" != "X"; then
4326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4327 if test "X$found_so" != "X"; then
4328 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4329 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4332 for x in $ltrpathdirs; do
4333 if test "X$x" = "X$found_dir"; then
4338 if test -z "$haveit"; then
4339 ltrpathdirs="$ltrpathdirs $found_dir"
4341 if test "$hardcode_direct" = yes; then
4342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4344 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4347 for x in $rpathdirs; do
4348 if test "X$x" = "X$found_dir"; then
4353 if test -z "$haveit"; then
4354 rpathdirs="$rpathdirs $found_dir"
4358 for x in $LDFLAGS $LIBICONV; do
4360 acl_save_prefix="$prefix"
4361 prefix="$acl_final_prefix"
4362 acl_save_exec_prefix="$exec_prefix"
4363 exec_prefix="$acl_final_exec_prefix"
4365 exec_prefix="$acl_save_exec_prefix"
4366 prefix="$acl_save_prefix"
4368 if test "X$x" = "X-L$found_dir"; then
4373 if test -z "$haveit"; then
4374 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4376 if test "$hardcode_minus_L" != no; then
4377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4379 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4385 if test "X$found_a" != "X"; then
4386 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4388 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4391 additional_includedir=
4392 case "$found_dir" in
4393 */$acl_libdirstem | */$acl_libdirstem/)
4394 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4395 additional_includedir="$basedir/include"
4398 if test "X$additional_includedir" != "X"; then
4399 if test "X$additional_includedir" != "X/usr/include"; then
4401 if test "X$additional_includedir" = "X/usr/local/include"; then
4402 if test -n "$GCC"; then
4404 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4408 if test -z "$haveit"; then
4409 for x in $CPPFLAGS $INCICONV; do
4411 acl_save_prefix="$prefix"
4412 prefix="$acl_final_prefix"
4413 acl_save_exec_prefix="$exec_prefix"
4414 exec_prefix="$acl_final_exec_prefix"
4416 exec_prefix="$acl_save_exec_prefix"
4417 prefix="$acl_save_prefix"
4419 if test "X$x" = "X-I$additional_includedir"; then
4424 if test -z "$haveit"; then
4425 if test -d "$additional_includedir"; then
4426 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4432 if test -n "$found_la"; then
4433 save_libdir="$libdir"
4435 */* | *\\*) . "$found_la" ;;
4436 *) . "./$found_la" ;;
4438 libdir="$save_libdir"
4439 for dep in $dependency_libs; do
4442 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4443 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4445 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4446 if test -n "$GCC"; then
4448 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4452 if test -z "$haveit"; then
4454 for x in $LDFLAGS $LIBICONV; do
4456 acl_save_prefix="$prefix"
4457 prefix="$acl_final_prefix"
4458 acl_save_exec_prefix="$exec_prefix"
4459 exec_prefix="$acl_final_exec_prefix"
4461 exec_prefix="$acl_save_exec_prefix"
4462 prefix="$acl_save_prefix"
4464 if test "X$x" = "X-L$additional_libdir"; then
4469 if test -z "$haveit"; then
4470 if test -d "$additional_libdir"; then
4471 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4475 for x in $LDFLAGS $LTLIBICONV; do
4477 acl_save_prefix="$prefix"
4478 prefix="$acl_final_prefix"
4479 acl_save_exec_prefix="$exec_prefix"
4480 exec_prefix="$acl_final_exec_prefix"
4482 exec_prefix="$acl_save_exec_prefix"
4483 prefix="$acl_save_prefix"
4485 if test "X$x" = "X-L$additional_libdir"; then
4490 if test -z "$haveit"; then
4491 if test -d "$additional_libdir"; then
4492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4499 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4500 if test "$enable_rpath" != no; then
4502 for x in $rpathdirs; do
4503 if test "X$x" = "X$dir"; then
4508 if test -z "$haveit"; then
4509 rpathdirs="$rpathdirs $dir"
4512 for x in $ltrpathdirs; do
4513 if test "X$x" = "X$dir"; then
4518 if test -z "$haveit"; then
4519 ltrpathdirs="$ltrpathdirs $dir"
4524 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4530 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4531 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4537 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4538 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4544 if test "X$rpathdirs" != "X"; then
4545 if test -n "$hardcode_libdir_separator"; then
4547 for found_dir in $rpathdirs; do
4548 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4550 acl_save_libdir="$libdir"
4552 eval flag=\"$hardcode_libdir_flag_spec\"
4553 libdir="$acl_save_libdir"
4554 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4556 for found_dir in $rpathdirs; do
4557 acl_save_libdir="$libdir"
4559 eval flag=\"$hardcode_libdir_flag_spec\"
4560 libdir="$acl_save_libdir"
4561 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4565 if test "X$ltrpathdirs" != "X"; then
4566 for found_dir in $ltrpathdirs; do
4567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
4590 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
4591 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 gt_save_LIBS="$LIBS"
4595 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <CoreFoundation/CFPreferences.h>
4602 CFPreferencesCopyAppValue(NULL, NULL)
4607 if ac_fn_c_try_link "$LINENO"; then :
4608 gt_cv_func_CFPreferencesCopyAppValue=yes
4610 gt_cv_func_CFPreferencesCopyAppValue=no
4612 rm -f core conftest.err conftest.$ac_objext \
4613 conftest$ac_exeext conftest.$ac_ext
4614 LIBS="$gt_save_LIBS"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4617 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4618 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4620 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
4624 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
4625 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 gt_save_LIBS="$LIBS"
4629 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #include <CoreFoundation/CFLocale.h>
4636 CFLocaleCopyCurrent();
4641 if ac_fn_c_try_link "$LINENO"; then :
4642 gt_cv_func_CFLocaleCopyCurrent=yes
4644 gt_cv_func_CFLocaleCopyCurrent=no
4646 rm -f core conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648 LIBS="$gt_save_LIBS"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4651 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4652 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4654 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
4658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4659 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4671 if test "$USE_NLS" = "yes"; then
4672 gt_use_preinstalled_gnugettext=no
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4680 $as_echo_n "checking for GNU gettext in libc... " >&6; }
4681 if ${gt_cv_func_gnugettext1_libc+:} false; then :
4682 $as_echo_n "(cached) " >&6
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <libintl.h>
4687 extern int _nl_msg_cat_cntr;
4688 extern int *_nl_domain_bindings;
4692 bindtextdomain ("", "");
4693 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4698 if ac_fn_c_try_link "$LINENO"; then :
4699 gt_cv_func_gnugettext1_libc=yes
4701 gt_cv_func_gnugettext1_libc=no
4703 rm -f core conftest.err conftest.$ac_objext \
4704 conftest$ac_exeext conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
4707 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
4709 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4715 am_save_CPPFLAGS="$CPPFLAGS"
4717 for element in $INCICONV; do
4719 for x in $CPPFLAGS; do
4721 acl_save_prefix="$prefix"
4722 prefix="$acl_final_prefix"
4723 acl_save_exec_prefix="$exec_prefix"
4724 exec_prefix="$acl_final_exec_prefix"
4726 exec_prefix="$acl_save_exec_prefix"
4727 prefix="$acl_save_prefix"
4729 if test "X$x" = "X$element"; then
4734 if test -z "$haveit"; then
4735 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4741 $as_echo_n "checking for iconv... " >&6; }
4742 if ${am_cv_func_iconv+:} false; then :
4743 $as_echo_n "(cached) " >&6
4746 am_cv_func_iconv="no, consider installing GNU libiconv"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4755 iconv_t cd = iconv_open("","");
4756 iconv(cd,NULL,NULL,NULL,NULL);
4762 if ac_fn_c_try_link "$LINENO"; then :
4763 am_cv_func_iconv=yes
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 if test "$am_cv_func_iconv" != yes; then
4768 am_save_LIBS="$LIBS"
4769 LIBS="$LIBS $LIBICONV"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4777 iconv_t cd = iconv_open("","");
4778 iconv(cd,NULL,NULL,NULL,NULL);
4784 if ac_fn_c_try_link "$LINENO"; then :
4786 am_cv_func_iconv=yes
4788 rm -f core conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
4790 LIBS="$am_save_LIBS"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4795 $as_echo "$am_cv_func_iconv" >&6; }
4796 if test "$am_cv_func_iconv" = yes; then
4798 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4801 if test "$am_cv_lib_iconv" = yes; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4803 $as_echo_n "checking how to link with libiconv... " >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4805 $as_echo "$LIBICONV" >&6; }
4807 CPPFLAGS="$am_save_CPPFLAGS"
4820 acl_save_prefix="$prefix"
4821 prefix="$acl_final_prefix"
4822 acl_save_exec_prefix="$exec_prefix"
4823 exec_prefix="$acl_final_exec_prefix"
4825 eval additional_includedir=\"$includedir\"
4826 eval additional_libdir=\"$libdir\"
4828 exec_prefix="$acl_save_exec_prefix"
4829 prefix="$acl_save_prefix"
4832 # Check whether --with-libintl-prefix was given.
4833 if test "${with_libintl_prefix+set}" = set; then :
4834 withval=$with_libintl_prefix;
4835 if test "X$withval" = "Xno"; then
4838 if test "X$withval" = "X"; then
4840 acl_save_prefix="$prefix"
4841 prefix="$acl_final_prefix"
4842 acl_save_exec_prefix="$exec_prefix"
4843 exec_prefix="$acl_final_exec_prefix"
4845 eval additional_includedir=\"$includedir\"
4846 eval additional_libdir=\"$libdir\"
4848 exec_prefix="$acl_save_exec_prefix"
4849 prefix="$acl_save_prefix"
4852 additional_includedir="$withval/include"
4853 additional_libdir="$withval/$acl_libdirstem"
4864 names_already_handled=
4865 names_next_round='intl '
4866 while test -n "$names_next_round"; do
4867 names_this_round="$names_next_round"
4869 for name in $names_this_round; do
4871 for n in $names_already_handled; do
4872 if test "$n" = "$name"; then
4877 if test -z "$already_handled"; then
4878 names_already_handled="$names_already_handled $name"
4879 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4880 eval value=\"\$HAVE_LIB$uppername\"
4881 if test -n "$value"; then
4882 if test "$value" = yes; then
4883 eval value=\"\$LIB$uppername\"
4884 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4885 eval value=\"\$LTLIB$uppername\"
4886 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4895 if test $use_additional = yes; then
4896 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4897 found_dir="$additional_libdir"
4898 found_so="$additional_libdir/lib$name.$shlibext"
4899 if test -f "$additional_libdir/lib$name.la"; then
4900 found_la="$additional_libdir/lib$name.la"
4903 if test -f "$additional_libdir/lib$name.$libext"; then
4904 found_dir="$additional_libdir"
4905 found_a="$additional_libdir/lib$name.$libext"
4906 if test -f "$additional_libdir/lib$name.la"; then
4907 found_la="$additional_libdir/lib$name.la"
4912 if test "X$found_dir" = "X"; then
4913 for x in $LDFLAGS $LTLIBINTL; do
4915 acl_save_prefix="$prefix"
4916 prefix="$acl_final_prefix"
4917 acl_save_exec_prefix="$exec_prefix"
4918 exec_prefix="$acl_final_exec_prefix"
4920 exec_prefix="$acl_save_exec_prefix"
4921 prefix="$acl_save_prefix"
4925 dir=`echo "X$x" | sed -e 's/^X-L//'`
4926 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4928 found_so="$dir/lib$name.$shlibext"
4929 if test -f "$dir/lib$name.la"; then
4930 found_la="$dir/lib$name.la"
4933 if test -f "$dir/lib$name.$libext"; then
4935 found_a="$dir/lib$name.$libext"
4936 if test -f "$dir/lib$name.la"; then
4937 found_la="$dir/lib$name.la"
4943 if test "X$found_dir" != "X"; then
4948 if test "X$found_dir" != "X"; then
4949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4950 if test "X$found_so" != "X"; then
4951 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4955 for x in $ltrpathdirs; do
4956 if test "X$x" = "X$found_dir"; then
4961 if test -z "$haveit"; then
4962 ltrpathdirs="$ltrpathdirs $found_dir"
4964 if test "$hardcode_direct" = yes; then
4965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4967 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4970 for x in $rpathdirs; do
4971 if test "X$x" = "X$found_dir"; then
4976 if test -z "$haveit"; then
4977 rpathdirs="$rpathdirs $found_dir"
4981 for x in $LDFLAGS $LIBINTL; do
4983 acl_save_prefix="$prefix"
4984 prefix="$acl_final_prefix"
4985 acl_save_exec_prefix="$exec_prefix"
4986 exec_prefix="$acl_final_exec_prefix"
4988 exec_prefix="$acl_save_exec_prefix"
4989 prefix="$acl_save_prefix"
4991 if test "X$x" = "X-L$found_dir"; then
4996 if test -z "$haveit"; then
4997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4999 if test "$hardcode_minus_L" != no; then
5000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5008 if test "X$found_a" != "X"; then
5009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5011 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5014 additional_includedir=
5015 case "$found_dir" in
5016 */$acl_libdirstem | */$acl_libdirstem/)
5017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5018 additional_includedir="$basedir/include"
5021 if test "X$additional_includedir" != "X"; then
5022 if test "X$additional_includedir" != "X/usr/include"; then
5024 if test "X$additional_includedir" = "X/usr/local/include"; then
5025 if test -n "$GCC"; then
5027 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5031 if test -z "$haveit"; then
5032 for x in $CPPFLAGS $INCINTL; do
5034 acl_save_prefix="$prefix"
5035 prefix="$acl_final_prefix"
5036 acl_save_exec_prefix="$exec_prefix"
5037 exec_prefix="$acl_final_exec_prefix"
5039 exec_prefix="$acl_save_exec_prefix"
5040 prefix="$acl_save_prefix"
5042 if test "X$x" = "X-I$additional_includedir"; then
5047 if test -z "$haveit"; then
5048 if test -d "$additional_includedir"; then
5049 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5055 if test -n "$found_la"; then
5056 save_libdir="$libdir"
5058 */* | *\\*) . "$found_la" ;;
5059 *) . "./$found_la" ;;
5061 libdir="$save_libdir"
5062 for dep in $dependency_libs; do
5065 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5066 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5068 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5069 if test -n "$GCC"; then
5071 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5075 if test -z "$haveit"; then
5077 for x in $LDFLAGS $LIBINTL; do
5079 acl_save_prefix="$prefix"
5080 prefix="$acl_final_prefix"
5081 acl_save_exec_prefix="$exec_prefix"
5082 exec_prefix="$acl_final_exec_prefix"
5084 exec_prefix="$acl_save_exec_prefix"
5085 prefix="$acl_save_prefix"
5087 if test "X$x" = "X-L$additional_libdir"; then
5092 if test -z "$haveit"; then
5093 if test -d "$additional_libdir"; then
5094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5098 for x in $LDFLAGS $LTLIBINTL; do
5100 acl_save_prefix="$prefix"
5101 prefix="$acl_final_prefix"
5102 acl_save_exec_prefix="$exec_prefix"
5103 exec_prefix="$acl_final_exec_prefix"
5105 exec_prefix="$acl_save_exec_prefix"
5106 prefix="$acl_save_prefix"
5108 if test "X$x" = "X-L$additional_libdir"; then
5113 if test -z "$haveit"; then
5114 if test -d "$additional_libdir"; then
5115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5122 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5123 if test "$enable_rpath" != no; then
5125 for x in $rpathdirs; do
5126 if test "X$x" = "X$dir"; then
5131 if test -z "$haveit"; then
5132 rpathdirs="$rpathdirs $dir"
5135 for x in $ltrpathdirs; do
5136 if test "X$x" = "X$dir"; then
5141 if test -z "$haveit"; then
5142 ltrpathdirs="$ltrpathdirs $dir"
5147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5153 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5160 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5161 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5167 if test "X$rpathdirs" != "X"; then
5168 if test -n "$hardcode_libdir_separator"; then
5170 for found_dir in $rpathdirs; do
5171 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5173 acl_save_libdir="$libdir"
5175 eval flag=\"$hardcode_libdir_flag_spec\"
5176 libdir="$acl_save_libdir"
5177 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5179 for found_dir in $rpathdirs; do
5180 acl_save_libdir="$libdir"
5182 eval flag=\"$hardcode_libdir_flag_spec\"
5183 libdir="$acl_save_libdir"
5184 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5188 if test "X$ltrpathdirs" != "X"; then
5189 for found_dir in $ltrpathdirs; do
5190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5195 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5196 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 gt_save_CPPFLAGS="$CPPFLAGS"
5200 CPPFLAGS="$CPPFLAGS $INCINTL"
5201 gt_save_LIBS="$LIBS"
5202 LIBS="$LIBS $LIBINTL"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <libintl.h>
5206 extern int _nl_msg_cat_cntr;
5211 const char *_nl_expand_alias (const char *);
5215 bindtextdomain ("", "");
5216 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5221 if ac_fn_c_try_link "$LINENO"; then :
5222 gt_cv_func_gnugettext1_libintl=yes
5224 gt_cv_func_gnugettext1_libintl=no
5226 rm -f core conftest.err conftest.$ac_objext \
5227 conftest$ac_exeext conftest.$ac_ext
5228 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5229 LIBS="$LIBS $LIBICONV"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <libintl.h>
5233 extern int _nl_msg_cat_cntr;
5238 const char *_nl_expand_alias (const char *);
5242 bindtextdomain ("", "");
5243 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5248 if ac_fn_c_try_link "$LINENO"; then :
5249 LIBINTL="$LIBINTL $LIBICONV"
5250 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5251 gt_cv_func_gnugettext1_libintl=yes
5254 rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
5257 CPPFLAGS="$gt_save_CPPFLAGS"
5258 LIBS="$gt_save_LIBS"
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5261 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5264 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5265 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5266 && test "$PACKAGE" != gettext-runtime \
5267 && test "$PACKAGE" != gettext-tools; }; then
5268 gt_use_preinstalled_gnugettext=yes
5277 if test -n "$INTL_MACOSX_LIBS"; then
5278 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5279 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5280 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5281 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5288 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5296 $as_echo_n "checking whether to use NLS... " >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5298 $as_echo "$USE_NLS" >&6; }
5299 if test "$USE_NLS" = "yes"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5301 $as_echo_n "checking where the gettext function comes from... " >&6; }
5302 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5303 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5304 gt_source="external libintl"
5309 gt_source="included intl directory"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5312 $as_echo "$gt_source" >&6; }
5315 if test "$USE_NLS" = "yes"; then
5317 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5318 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5320 $as_echo_n "checking how to link with libintl... " >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5322 $as_echo "$LIBINTL" >&6; }
5324 for element in $INCINTL; do
5326 for x in $CPPFLAGS; do
5328 acl_save_prefix="$prefix"
5329 prefix="$acl_final_prefix"
5330 acl_save_exec_prefix="$exec_prefix"
5331 exec_prefix="$acl_final_exec_prefix"
5333 exec_prefix="$acl_save_exec_prefix"
5334 prefix="$acl_save_prefix"
5336 if test "X$x" = "X$element"; then
5341 if test -z "$haveit"; then
5342 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5349 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5352 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5371 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
5374 $as_echo_n "checking for cross-compiler... " >&6; }
5376 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
5377 which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
5378 && CC=${target_cpu}-${target-os}-gcc
5379 which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
5380 && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5383 $as_echo "$CC" >&6; }
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391 if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_CC+:} false; then :
5397 $as_echo_n "(cached) " >&6
5399 if test -n "$CC"; then
5400 ac_cv_prog_CC="$CC" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 if test -n "$CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5422 $as_echo "$CC" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5430 if test -z "$ac_cv_prog_CC"; then
5432 # Extract the first word of "gcc", so it can be a program name with args.
5433 set dummy gcc; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$ac_ct_CC"; then
5440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_ac_ct_CC="gcc"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5460 if test -n "$ac_ct_CC"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5462 $as_echo "$ac_ct_CC" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5468 if test "x$ac_ct_CC" = x; then
5471 case $cross_compiling:$ac_tool_warned in
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned=yes ;;
5483 if test -z "$CC"; then
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5486 set dummy ${ac_tool_prefix}cc; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_CC+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$CC"; then
5493 ac_cv_prog_CC="$CC" # Let the user override the test.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_CC="${ac_tool_prefix}cc"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 if test -n "$CC"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5515 $as_echo "$CC" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5524 if test -z "$CC"; then
5525 # Extract the first word of "cc", so it can be a program name with args.
5526 set dummy cc; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_CC+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5544 ac_prog_rejected=yes
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 if test $ac_prog_rejected = yes; then
5556 # We found a bogon in the path, so make sure we never use it.
5557 set dummy $ac_cv_prog_CC
5559 if test $# != 0; then
5560 # We chose a different compiler from the bogus one.
5561 # However, it has the same basename, so the bogon will be chosen
5562 # first if we set CC to just the basename; use the full file name.
5564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5570 if test -n "$CC"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5572 $as_echo "$CC" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$CC"; then
5581 if test -n "$ac_tool_prefix"; then
5582 for ac_prog in cl.exe
5584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_CC+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$CC"; then
5592 ac_cv_prog_CC="$CC" # Let the user override the test.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 if test -n "$CC"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5614 $as_echo "$CC" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5621 test -n "$CC" && break
5624 if test -z "$CC"; then
5626 for ac_prog in cl.exe
5628 # Extract the first word of "$ac_prog", so it can be a program name with args.
5629 set dummy $ac_prog; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -n "$ac_ct_CC"; then
5636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_ac_ct_CC="$ac_prog"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5656 if test -n "$ac_ct_CC"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5658 $as_echo "$ac_ct_CC" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 test -n "$ac_ct_CC" && break
5668 if test "x$ac_ct_CC" = x; then
5671 case $cross_compiling:$ac_tool_warned in
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5684 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 as_fn_error $? "no acceptable C compiler found in \$PATH
5687 See \`config.log' for more details" "$LINENO" 5; }
5689 # Provide some information about the compiler.
5690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5693 for ac_option in --version -v -V -qversion; do
5694 { { ac_try="$ac_compiler $ac_option >&5"
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5703 if test -s conftest.err; then
5705 ... rest of stderr output deleted ...
5706 10q' conftest.err >conftest.er1
5707 cat conftest.er1 >&5
5709 rm -f conftest.er1 conftest.err
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5716 if ${ac_cv_c_compiler_gnu+:} false; then :
5717 $as_echo_n "(cached) " >&6
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5733 if ac_fn_c_try_compile "$LINENO"; then :
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5744 if test $ac_compiler_gnu = yes; then
5749 ac_test_CFLAGS=${CFLAGS+set}
5750 ac_save_CFLAGS=$CFLAGS
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5753 if ${ac_cv_prog_cc_g+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 ac_save_c_werror_flag=$ac_c_werror_flag
5757 ac_c_werror_flag=yes
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5771 if ac_fn_c_try_compile "$LINENO"; then :
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5786 if ac_fn_c_try_compile "$LINENO"; then :
5789 ac_c_werror_flag=$ac_save_c_werror_flag
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5802 if ac_fn_c_try_compile "$LINENO"; then :
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ac_c_werror_flag=$ac_save_c_werror_flag
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5813 $as_echo "$ac_cv_prog_cc_g" >&6; }
5814 if test "$ac_test_CFLAGS" = set; then
5815 CFLAGS=$ac_save_CFLAGS
5816 elif test $ac_cv_prog_cc_g = yes; then
5817 if test "$GCC" = yes; then
5823 if test "$GCC" = yes; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5831 if ${ac_cv_prog_cc_c89+:} false; then :
5832 $as_echo_n "(cached) " >&6
5834 ac_cv_prog_cc_c89=no
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5840 #include <sys/types.h>
5841 #include <sys/stat.h>
5842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5843 struct buf { int x; };
5844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5845 static char *e (p, i)
5851 static char *f (char * (*g) (char **, int), char **p, ...)
5856 s = g (p, va_arg (v,int));
5861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5862 function prototypes and stuff, but not '\xHH' hex character constants.
5863 These don't provoke an error unfortunately, instead are silently treated
5864 as 'x'. The following induces an error, until -std is added to get
5865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5866 array size at least. It's necessary to write '\x00'==0 to get something
5867 that's true only with -std. */
5868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5871 inside strings and character constants. */
5873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5875 int test (int i, double x);
5876 struct s1 {int (*f) (int a);};
5877 struct s2 {int (*f) (double a);};
5878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5892 CC="$ac_save_CC $ac_arg"
5893 if ac_fn_c_try_compile "$LINENO"; then :
5894 ac_cv_prog_cc_c89=$ac_arg
5896 rm -f core conftest.err conftest.$ac_objext
5897 test "x$ac_cv_prog_cc_c89" != "xno" && break
5899 rm -f conftest.$ac_ext
5904 case "x$ac_cv_prog_cc_c89" in
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5907 $as_echo "none needed" >&6; } ;;
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5910 $as_echo "unsupported" >&6; } ;;
5912 CC="$CC $ac_cv_prog_cc_c89"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5916 if test "x$ac_cv_prog_cc_c89" != xno; then :
5921 ac_cpp='$CPP $CPPFLAGS'
5922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926 depcc="$CC" am_compiler_list=
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5929 $as_echo_n "checking dependency style of $depcc... " >&6; }
5930 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5934 # We make a subdir and do the tests there. Otherwise we can end up
5935 # making bogus files that we don't know about and never remove. For
5936 # instance it was reported that on HP-UX the gcc test will end up
5937 # making a dummy file named `D' -- because `-MD' means `put the output
5940 # Copy depcomp to subdir because otherwise we won't find it if we're
5941 # using a relative directory.
5942 cp "$am_depcomp" conftest.dir
5944 # We will build objects and dependencies in a subdirectory because
5945 # it helps to detect inapplicable dependency modes. For instance
5946 # both Tru64's cc and ICC support -MD to output dependencies as a
5947 # side effect of compilation, but ICC will put the dependencies in
5948 # the current directory while Tru64 will put them in the object
5952 am_cv_CC_dependencies_compiler_type=none
5953 if test "$am_compiler_list" = ""; then
5954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5957 case " $depcc " in #(
5958 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5961 for depmode in $am_compiler_list; do
5962 # Setup a source with many dependencies, because some compilers
5963 # like to wrap large dependency lists on column 80 (with \), and
5964 # we should not choose a depcomp mode which is confused by this.
5966 # We need to recreate these files for each test, as the compiler may
5967 # overwrite some of them when testing with obscure command lines.
5968 # This happens at least with the AIX C compiler.
5970 for i in 1 2 3 4 5 6; do
5971 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5972 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5973 # Solaris 8's {/usr,}/bin/sh.
5974 touch sub/conftst$i.h
5976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5978 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5979 # mode. It turns out that the SunPro C++ compiler does not properly
5980 # handle `-M -o', and we need to detect this. Also, some Intel
5981 # versions had trouble with output in subdirs
5982 am__obj=sub/conftest.${OBJEXT-o}
5983 am__minus_obj="-o $am__obj"
5986 # This depmode causes a compiler race in universal mode.
5987 test "$am__universal" = false || continue
5990 # after this tag, mechanisms are not by side-effect, so they'll
5991 # only be used when explicitly requested
5992 if test "x$enable_dependency_tracking" = xyes; then
5998 msvisualcpp | msvcmsys)
5999 # This compiler won't grok `-c -o', but also, the minuso test has
6000 # not run yet. These depmodes are late enough in the game, and
6001 # so weak that their functioning should not be impacted.
6002 am__obj=conftest.${OBJEXT-o}
6007 if depmode=$depmode \
6008 source=sub/conftest.c object=$am__obj \
6009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6011 >/dev/null 2>conftest.err &&
6012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6016 # icc doesn't choke on unknown options, it will just issue warnings
6017 # or remarks (even with -Werror). So we grep stderr for any message
6018 # that says an option was ignored or not supported.
6019 # When given -MP, icc 7.0 and 7.1 complain thusly:
6020 # icc: Command line warning: ignoring option '-M'; no argument required
6021 # The diagnosis changed in icc 8.0:
6022 # icc: Command line remark: option '-MP' not supported
6023 if (grep 'ignoring option' conftest.err ||
6024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6025 am_cv_CC_dependencies_compiler_type=$depmode
6034 am_cv_CC_dependencies_compiler_type=none
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6043 test "x$enable_dependency_tracking" != xno \
6044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6046 am__fastdepCC_FALSE='#'
6048 am__fastdepCC_TRUE='#'
6049 am__fastdepCC_FALSE=
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6056 $as_echo_n "checking whether ln -s works... " >&6; }
6058 if test "$LN_S" = "ln -s"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6060 $as_echo "yes" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6063 $as_echo "no, using $LN_S" >&6; }
6066 alsa_save_CFLAGS="$CFLAGS"
6067 alsa_save_LDFLAGS="$LDFLAGS"
6068 alsa_save_LIBS="$LIBS"
6072 # Check whether --with-alsa-prefix was given.
6073 if test "${with_alsa_prefix+set}" = set; then :
6074 withval=$with_alsa_prefix; alsa_prefix="$withval"
6081 # Check whether --with-alsa-inc-prefix was given.
6082 if test "${with_alsa_inc_prefix+set}" = set; then :
6083 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
6089 # Check whether --enable-alsatest was given.
6090 if test "${enable_alsatest+set}" = set; then :
6091 enableval=$enable_alsatest; enable_alsatest="$enableval"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
6098 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
6099 if test "$alsa_inc_prefix" != "" ; then
6100 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
6101 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6104 $as_echo "$ALSA_CFLAGS" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
6107 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
6108 if test "$alsa_prefix" != "" ; then
6109 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
6110 LDFLAGS="$LDFLAGS $ALSA_LIBS"
6113 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
6114 LIBS="$ALSA_LIBS $LIBS"
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6116 $as_echo "$ALSA_LIBS" >&6; }
6118 min_alsa_version=1.0.16
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
6120 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
6122 alsa_min_major_version=`echo $min_alsa_version | \
6123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6124 alsa_min_minor_version=`echo $min_alsa_version | \
6125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6126 alsa_min_micro_version=`echo $min_alsa_version | \
6127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 #include <alsa/asoundlib.h>
6145 /* ensure backward compatibility */
6146 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
6147 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
6149 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
6150 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
6152 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
6153 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
6156 # if(SND_LIB_MAJOR > $alsa_min_major_version)
6159 # if(SND_LIB_MAJOR < $alsa_min_major_version)
6163 # if(SND_LIB_MINOR > $alsa_min_minor_version)
6166 # if(SND_LIB_MINOR < $alsa_min_minor_version)
6170 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
6183 $as_echo "found." >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
6186 $as_echo "not present." >&6; }
6187 as_fn_error $? "Sufficiently new version of libasound not found." "$LINENO" 5
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199 if test "x$enable_alsatest" = "xyes"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
6201 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
6202 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lasound $LIBS"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6210 /* Override any GCC internal prototype to avoid an error.
6211 Use char because int might match the return type of a GCC
6212 builtin and then its argument prototype would still apply. */
6216 char snd_ctl_open ();
6220 return snd_ctl_open ();
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 ac_cv_lib_asound_snd_ctl_open=yes
6228 ac_cv_lib_asound_snd_ctl_open=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
6235 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
6236 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
6237 cat >>confdefs.h <<_ACEOF
6238 #define HAVE_LIBASOUND 1
6241 LIBS="-lasound $LIBS"
6244 as_fn_error $? "No linkable libasound was found." "$LINENO" 5
6251 if test "x$alsa_found" = "xyes" ; then
6253 LIBS=`echo $LIBS | sed 's/-lasound//g'`
6254 LIBS=`echo $LIBS | sed 's/ //'`
6255 LIBS="-lasound $LIBS"
6257 if test "x$alsa_found" = "xno" ; then
6259 CFLAGS="$alsa_save_CFLAGS"
6260 LDFLAGS="$alsa_save_LDFLAGS"
6261 LIBS="$alsa_save_LIBS"
6270 for ac_header in alsa/pcm.h
6272 ac_fn_c_check_header_compile "$LINENO" "alsa/pcm.h" "ac_cv_header_alsa_pcm_h" "#include <alsa/asoundlib.h>
6274 if test "x$ac_cv_header_alsa_pcm_h" = xyes; then :
6275 cat >>confdefs.h <<_ACEOF
6276 #define HAVE_ALSA_PCM_H 1
6285 for ac_header in alsa/mixer.h
6287 ac_fn_c_check_header_compile "$LINENO" "alsa/mixer.h" "ac_cv_header_alsa_mixer_h" "#include <alsa/asoundlib.h>
6289 if test "x$ac_cv_header_alsa_mixer_h" = xyes; then :
6290 cat >>confdefs.h <<_ACEOF
6291 #define HAVE_ALSA_MIXER_H 1
6300 for ac_header in alsa/rawmidi.h
6302 ac_fn_c_check_header_compile "$LINENO" "alsa/rawmidi.h" "ac_cv_header_alsa_rawmidi_h" "#include <alsa/asoundlib.h>
6304 if test "x$ac_cv_header_alsa_rawmidi_h" = xyes; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_ALSA_RAWMIDI_H 1
6315 for ac_header in alsa/seq.h
6317 ac_fn_c_check_header_compile "$LINENO" "alsa/seq.h" "ac_cv_header_alsa_seq_h" "#include <alsa/asoundlib.h>
6319 if test "x$ac_cv_header_alsa_seq_h" = xyes; then :
6320 cat >>confdefs.h <<_ACEOF
6321 #define HAVE_ALSA_SEQ_H 1
6330 for ac_header in samplerate.h
6332 ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "#include <samplerate.h>
6334 if test "x$ac_cv_header_samplerate_h" = xyes; then :
6335 cat >>confdefs.h <<_ACEOF
6336 #define HAVE_SAMPLERATE_H 1
6338 have_samplerate="yes"
6340 have_samplerate="no"
6346 if test "$have_pcm" = "yes"; then
6354 if test "$have_mixer" = "yes"; then
6356 HAVE_MIXER_FALSE='#'
6362 if test "$have_rawmidi" = "yes"; then
6364 HAVE_RAWMIDI_FALSE='#'
6366 HAVE_RAWMIDI_TRUE='#'
6370 if test "$have_seq" = "yes"; then
6378 if test "$have_samplerate" = "yes"; then
6379 HAVE_SAMPLERATE_TRUE=
6380 HAVE_SAMPLERATE_FALSE='#'
6382 HAVE_SAMPLERATE_TRUE='#'
6383 HAVE_SAMPLERATE_FALSE=
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
6389 $as_echo_n "checking for librt... " >&6; }
6391 # Check whether --with-librt was given.
6392 if test "${with_librt+set}" = set; then :
6393 withval=$with_librt; have_librt="$withval"
6398 if test "$have_librt" = "yes"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6400 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
6401 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 ac_check_lib_save_LIBS=$LIBS
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6415 char clock_gettime ();
6419 return clock_gettime ();
6424 if ac_fn_c_try_link "$LINENO"; then :
6425 ac_cv_lib_rt_clock_gettime=yes
6427 ac_cv_lib_rt_clock_gettime=no
6429 rm -f core conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6431 LIBS=$ac_check_lib_save_LIBS
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6434 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
6435 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
6439 if test "$HAVE_LIBRT" = "yes" ; then
6442 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
6445 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6457 if test "$have_mixer" = "yes"; then
6458 # Check whether --enable-alsamixer was given.
6459 if test "${enable_alsamixer+set}" = set; then :
6460 enableval=$enable_alsamixer; case "${enableval}" in
6461 yes) alsamixer=true ;;
6462 no) alsamixer=false ;;
6463 *) as_fn_error $? "bad value ${enableval} for --enable-alsamixer" "$LINENO" 5 ;;
6470 if test x$alsamixer = xtrue; then
6479 # Check whether --enable-alsaconf was given.
6480 if test "${enable_alsaconf+set}" = set; then :
6481 enableval=$enable_alsaconf; case "${enableval}" in
6482 yes) alsaconf=true ;;
6483 no) alsaconf=false ;;
6484 *) as_fn_error $? "bad value ${enableval} for --enable-alsaconf" "$LINENO" 5 ;;
6490 if test x$alsaconf = xtrue; then
6499 # Check whether --enable-alsaloop was given.
6500 if test "${enable_alsaloop+set}" = set; then :
6501 enableval=$enable_alsaloop; case "${enableval}" in
6502 yes) alsaloop=true ;;
6503 no) alsaloop=false ;;
6504 *) as_fn_error $? "bad value ${enableval} for --enable-alsaloop" "$LINENO" 5 ;;
6510 if test x$alsaloop = xtrue; then
6520 # Check whether --enable-xmlto was given.
6521 if test "${enable_xmlto+set}" = set; then :
6522 enableval=$enable_xmlto; xmlto="$enableval"
6527 if test "$xmlto" = "yes"; then
6528 # Extract the first word of "xmlto", so it can be a program name with args.
6529 set dummy xmlto; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_xmlto+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 if test -n "$xmlto"; then
6536 ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_xmlto="yes"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 xmlto=$ac_cv_prog_xmlto
6556 if test -n "$xmlto"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto" >&5
6558 $as_echo "$xmlto" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6566 if test x"$xmlto" = xyes; then
6576 # Check whether --with-udev-rules-dir was given.
6577 if test "${with_udev_rules_dir+set}" = set; then :
6578 withval=$with_udev_rules_dir; udevrulesdir=$withval
6580 udevrulesdir="/lib/udev/rules.d"
6586 ac_cpp='$CPP $CPPFLAGS'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6592 # On Suns, sometimes $CPP names a directory.
6593 if test -n "$CPP" && test -d "$CPP"; then
6596 if test -z "$CPP"; then
6597 if ${ac_cv_prog_CPP+:} false; then :
6598 $as_echo_n "(cached) " >&6
6600 # Double quotes because CPP needs to be expanded
6601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6604 for ac_c_preproc_warn_flag in '' yes
6606 # Use a header file that comes with gcc, so configuring glibc
6607 # with a fresh cross-compiler works.
6608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609 # <limits.h> exists even on freestanding compilers.
6610 # On the NeXT, cc -E runs the code through the compiler's parser,
6611 # not just through cpp. "Syntax error" is here to catch this case.
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 # include <limits.h>
6617 # include <assert.h>
6621 if ac_fn_c_try_cpp "$LINENO"; then :
6624 # Broken: fails on valid input.
6627 rm -f conftest.err conftest.i conftest.$ac_ext
6629 # OK, works on sane cases. Now check whether nonexistent headers
6630 # can be detected and how.
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <ac_nonexistent.h>
6635 if ac_fn_c_try_cpp "$LINENO"; then :
6636 # Broken: success on invalid input.
6639 # Passes both tests.
6643 rm -f conftest.err conftest.i conftest.$ac_ext
6646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6647 rm -f conftest.i conftest.err conftest.$ac_ext
6648 if $ac_preproc_ok; then :
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6661 $as_echo "$CPP" >&6; }
6663 for ac_c_preproc_warn_flag in '' yes
6665 # Use a header file that comes with gcc, so configuring glibc
6666 # with a fresh cross-compiler works.
6667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6668 # <limits.h> exists even on freestanding compilers.
6669 # On the NeXT, cc -E runs the code through the compiler's parser,
6670 # not just through cpp. "Syntax error" is here to catch this case.
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6674 # include <limits.h>
6676 # include <assert.h>
6680 if ac_fn_c_try_cpp "$LINENO"; then :
6683 # Broken: fails on valid input.
6686 rm -f conftest.err conftest.i conftest.$ac_ext
6688 # OK, works on sane cases. Now check whether nonexistent headers
6689 # can be detected and how.
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 #include <ac_nonexistent.h>
6694 if ac_fn_c_try_cpp "$LINENO"; then :
6695 # Broken: success on invalid input.
6698 # Passes both tests.
6702 rm -f conftest.err conftest.i conftest.$ac_ext
6705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6706 rm -f conftest.i conftest.err conftest.$ac_ext
6707 if $ac_preproc_ok; then :
6710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6713 See \`config.log' for more details" "$LINENO" 5; }
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6725 if ${ac_cv_path_GREP+:} false; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -z "$GREP"; then
6729 ac_path_GREP_found=false
6730 # Loop through the user's path and test for each of PROGNAME-LIST
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6735 test -z "$as_dir" && as_dir=.
6736 for ac_prog in grep ggrep; do
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6740 # Check for GNU ac_path_GREP and select it if it is found.
6741 # Check for GNU $ac_path_GREP
6742 case `"$ac_path_GREP" --version 2>&1` in
6744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6747 $as_echo_n 0123456789 >"conftest.in"
6750 cat "conftest.in" "conftest.in" >"conftest.tmp"
6751 mv "conftest.tmp" "conftest.in"
6752 cp "conftest.in" "conftest.nl"
6753 $as_echo 'GREP' >> "conftest.nl"
6754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6756 as_fn_arith $ac_count + 1 && ac_count=$as_val
6757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6758 # Best one so far, save it but keep looking for a better one
6759 ac_cv_path_GREP="$ac_path_GREP"
6760 ac_path_GREP_max=$ac_count
6762 # 10*(2^10) chars as input seems more than enough
6763 test $ac_count -gt 10 && break
6765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6768 $ac_path_GREP_found && break 3
6773 if test -z "$ac_cv_path_GREP"; then
6774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6777 ac_cv_path_GREP=$GREP
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6782 $as_echo "$ac_cv_path_GREP" >&6; }
6783 GREP="$ac_cv_path_GREP"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6787 $as_echo_n "checking for egrep... " >&6; }
6788 if ${ac_cv_path_EGREP+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6792 then ac_cv_path_EGREP="$GREP -E"
6794 if test -z "$EGREP"; then
6795 ac_path_EGREP_found=false
6796 # Loop through the user's path and test for each of PROGNAME-LIST
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6801 test -z "$as_dir" && as_dir=.
6802 for ac_prog in egrep; do
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6805 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6806 # Check for GNU ac_path_EGREP and select it if it is found.
6807 # Check for GNU $ac_path_EGREP
6808 case `"$ac_path_EGREP" --version 2>&1` in
6810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6813 $as_echo_n 0123456789 >"conftest.in"
6816 cat "conftest.in" "conftest.in" >"conftest.tmp"
6817 mv "conftest.tmp" "conftest.in"
6818 cp "conftest.in" "conftest.nl"
6819 $as_echo 'EGREP' >> "conftest.nl"
6820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6822 as_fn_arith $ac_count + 1 && ac_count=$as_val
6823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6824 # Best one so far, save it but keep looking for a better one
6825 ac_cv_path_EGREP="$ac_path_EGREP"
6826 ac_path_EGREP_max=$ac_count
6828 # 10*(2^10) chars as input seems more than enough
6829 test $ac_count -gt 10 && break
6831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6834 $ac_path_EGREP_found && break 3
6839 if test -z "$ac_cv_path_EGREP"; then
6840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6843 ac_cv_path_EGREP=$EGREP
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6849 $as_echo "$ac_cv_path_EGREP" >&6; }
6850 EGREP="$ac_cv_path_EGREP"
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6854 $as_echo_n "checking for ANSI C header files... " >&6; }
6855 if ${ac_cv_header_stdc+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 ac_cv_header_stdc=yes
6876 ac_cv_header_stdc=no
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 if test $ac_cv_header_stdc = yes; then
6881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 $EGREP "memchr" >/dev/null 2>&1; then :
6891 ac_cv_header_stdc=no
6897 if test $ac_cv_header_stdc = yes; then
6898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 $EGREP "free" >/dev/null 2>&1; then :
6908 ac_cv_header_stdc=no
6914 if test $ac_cv_header_stdc = yes; then
6915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6916 if test "$cross_compiling" = yes; then :
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6923 #if ((' ' & 0x0FF) == 0x020)
6924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6927 # define ISLOWER(c) \
6928 (('a' <= (c) && (c) <= 'i') \
6929 || ('j' <= (c) && (c) <= 'r') \
6930 || ('s' <= (c) && (c) <= 'z'))
6931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6939 for (i = 0; i < 256; i++)
6940 if (XOR (islower (i), ISLOWER (i))
6941 || toupper (i) != TOUPPER (i))
6946 if ac_fn_c_try_run "$LINENO"; then :
6949 ac_cv_header_stdc=no
6951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6952 conftest.$ac_objext conftest.beam conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6958 $as_echo "$ac_cv_header_stdc" >&6; }
6959 if test $ac_cv_header_stdc = yes; then
6961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6965 if test x$alsamixer = xtrue; then
6967 # Check whether --with-curses was given.
6968 if test "${with_curses+set}" = set; then :
6969 withval=$with_curses; curseslib="$withval"
6977 if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
6978 # Extract the first word of "ncursesw5-config", so it can be a program name with args.
6979 set dummy ncursesw5-config; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ncursesw5_config+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 if test -n "$ncursesw5_config"; then
6986 ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_prog_ncursesw5_config="yes"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7006 if test -n "$ncursesw5_config"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncursesw5_config" >&5
7008 $as_echo "$ncursesw5_config" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7015 if test "$ncursesw5_config" = "yes"; then
7016 CURSESINC="<ncurses.h>"
7017 CURSESLIB=`ncursesw5-config --libs`
7018 CURSESLIBDIR=`ncursesw5-config --libdir`
7019 CURSES_CFLAGS=`ncursesw5-config --cflags`
7020 curseslib="ncursesw"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7023 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7024 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lncursesw $LIBS"
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7032 /* Override any GCC internal prototype to avoid an error.
7033 Use char because int might match the return type of a GCC
7034 builtin and then its argument prototype would still apply. */
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_lib_ncursesw_initscr=yes
7050 ac_cv_lib_ncursesw_initscr=no
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 LIBS=$ac_check_lib_save_LIBS
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7057 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7058 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7059 CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
7063 if test -n "$CURSESINC"; then
7064 NCURSESLIBSUFFIX="w"
7068 if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
7069 # Extract the first word of "ncurses5-config", so it can be a program name with args.
7070 set dummy ncurses5-config; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_ncurses5_config+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 if test -n "$ncurses5_config"; then
7077 ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ncurses5_config="yes"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ncurses5_config=$ac_cv_prog_ncurses5_config
7097 if test -n "$ncurses5_config"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ncurses5_config" >&5
7099 $as_echo "$ncurses5_config" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7106 if test "$ncurses5_config" = "yes"; then
7107 CURSESINC="<ncurses.h>"
7108 CURSESLIB=`ncurses5-config --libs`
7109 CURSESLIBDIR=`ncurses5-config --libdir`
7110 CURSES_CFLAGS=`ncurses5-config --cflags`
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7114 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7115 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 ac_check_lib_save_LIBS=$LIBS
7119 LIBS="-lncurses $LIBS"
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7123 /* Override any GCC internal prototype to avoid an error.
7124 Use char because int might match the return type of a GCC
7125 builtin and then its argument prototype would still apply. */
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 ac_cv_lib_ncurses_initscr=yes
7141 ac_cv_lib_ncurses_initscr=no
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7148 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7149 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7150 CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
7155 if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
7157 $as_echo_n "checking for initscr in -lcurses... " >&6; }
7158 if ${ac_cv_lib_curses_initscr+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 ac_check_lib_save_LIBS=$LIBS
7162 LIBS="-lcurses $LIBS"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7166 /* Override any GCC internal prototype to avoid an error.
7167 Use char because int might match the return type of a GCC
7168 builtin and then its argument prototype would still apply. */
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 ac_cv_lib_curses_initscr=yes
7184 ac_cv_lib_curses_initscr=no
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
7191 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
7192 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
7193 CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
7197 if test -z "$CURSESINC"; then
7198 as_fn_error $? "this packages requires a curses library" "$LINENO" 5
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses library" >&5
7202 $as_echo_n "checking for curses library... " >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curseslib" >&5
7204 $as_echo "$curseslib" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses header name" >&5
7206 $as_echo_n "checking for curses header name... " >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESINC" >&5
7208 $as_echo "$CURSESINC" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses compiler flags" >&5
7210 $as_echo_n "checking for curses compiler flags... " >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CFLAGS" >&5
7212 $as_echo "$CURSES_CFLAGS" >&6; }
7214 if test -n "$CURSESLIBDIR"; then
7215 if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
7216 CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
7220 saved_CFLAGS="$CFLAGS"
7221 saved_LDFLAGS="$LDFLAGS"
7223 CFLAGS="$CFLAGS $CURSES_CFLAGS"
7224 if test -n "$CURSESLIBDIR"; then
7225 LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
7227 LIBS="$CURSESLIB $LIBS"
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7240 if ac_fn_c_try_link "$LINENO"; then :
7241 HAVE_CURSES_ESCDELAY="yes"
7243 rm -f core conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
7247 $as_echo "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
7251 if test "$USE_NLS" = "yes"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses NLS support" >&5
7253 $as_echo_n "checking for curses NLS support... " >&6; }
7254 if test "$curseslib" = "curses"; then
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7258 #define _XOPEN_SOURCE 1
7259 #define _XOPEN_SOURCE_EXTENDED 1
7267 setcchar(&wc, L"x", A_NORMAL, 0, 0);
7273 if ac_fn_c_try_link "$LINENO"; then :
7276 rm -f core conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_NLS" >&5
7280 $as_echo "$CURSES_NLS" >&6; }
7281 if test "$CURSES_NLS" = "yes"; then
7283 $as_echo "#define ENABLE_NLS_IN_CURSES 1" >>confdefs.h
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7290 inttypes.h stdint.h unistd.h
7292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305 for ac_header in panel.h menu.h form.h
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7310 cat >>confdefs.h <<_ACEOF
7311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7315 as_fn_error $? "required curses helper header not found" "$LINENO" 5
7320 as_ac_Lib=`$as_echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
7322 $as_echo_n "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... " >&6; }
7323 if eval \${$as_ac_Lib+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 ac_check_lib_save_LIBS=$LIBS
7327 LIBS="-lpanel$NCURSESLIBSUFFIX $LIBS"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7331 /* Override any GCC internal prototype to avoid an error.
7332 Use char because int might match the return type of a GCC
7333 builtin and then its argument prototype would still apply. */
7341 return new_panel ();
7346 if ac_fn_c_try_link "$LINENO"; then :
7347 eval "$as_ac_Lib=yes"
7349 eval "$as_ac_Lib=no"
7351 rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 LIBS=$ac_check_lib_save_LIBS
7355 eval ac_res=\$$as_ac_Lib
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7357 $as_echo "$ac_res" >&6; }
7358 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7359 CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
7361 as_fn_error $? "panel$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7364 as_ac_Lib=`$as_echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
7366 $as_echo_n "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... " >&6; }
7367 if eval \${$as_ac_Lib+:} false; then :
7368 $as_echo_n "(cached) " >&6
7370 ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lmenu$NCURSESLIBSUFFIX $LIBS"
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7375 /* Override any GCC internal prototype to avoid an error.
7376 Use char because int might match the return type of a GCC
7377 builtin and then its argument prototype would still apply. */
7390 if ac_fn_c_try_link "$LINENO"; then :
7391 eval "$as_ac_Lib=yes"
7393 eval "$as_ac_Lib=no"
7395 rm -f core conftest.err conftest.$ac_objext \
7396 conftest$ac_exeext conftest.$ac_ext
7397 LIBS=$ac_check_lib_save_LIBS
7399 eval ac_res=\$$as_ac_Lib
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7401 $as_echo "$ac_res" >&6; }
7402 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7403 CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
7405 as_fn_error $? "menu$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7408 as_ac_Lib=`$as_echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
7410 $as_echo_n "checking for new_form in -lform$NCURSESLIBSUFFIX... " >&6; }
7411 if eval \${$as_ac_Lib+:} false; then :
7412 $as_echo_n "(cached) " >&6
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lform$NCURSESLIBSUFFIX $LIBS"
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7434 if ac_fn_c_try_link "$LINENO"; then :
7435 eval "$as_ac_Lib=yes"
7437 eval "$as_ac_Lib=no"
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7441 LIBS=$ac_check_lib_save_LIBS
7443 eval ac_res=\$$as_ac_Lib
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7445 $as_echo "$ac_res" >&6; }
7446 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7447 CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
7449 as_fn_error $? "form$NCURSESLIBSUFFIX library not found" "$LINENO" 5
7453 CFLAGS="$saved_CFLAGS"
7454 LDFLAGS="$saved_LDFLAGS"
7457 if test -n "$CURSESLIBDIR"; then
7458 CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses linker flags" >&5
7462 $as_echo_n "checking for curses linker flags... " >&6; }
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSESLIB" >&5
7464 $as_echo "$CURSESLIB" >&6; }
7471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7476 *) dir="$prefix/share"
7479 soundsdir="$dir/sounds/alsa"
7481 cat >>confdefs.h <<_ACEOF
7482 #define SOUNDSDIR "$soundsdir"
7486 mydatadir="$dir/alsa"
7488 cat >>confdefs.h <<_ACEOF
7489 #define DATADIR "$mydatadir"
7494 # Check whether --with-testsound was given.
7495 if test "${with_testsound+set}" = set; then :
7496 withval=$with_testsound; TESTSOUND="$withval"
7498 TESTSOUND="$dir/test.wav"
7503 ac_config_headers="$ac_config_headers include/aconfig.h"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7507 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7508 if ${ac_cv_c_const+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7517 /* FIXME: Include the comments suggested by Paul. */
7519 /* Ultrix mips cc rejects this. */
7520 typedef int charset[2];
7522 /* SunOS 4.1.1 cc rejects this. */
7523 char const *const *pcpcc;
7525 /* NEC SVR4.0.2 mips cc rejects this. */
7526 struct point {int x, y;};
7527 static struct point const zero = {0,0};
7528 /* AIX XL C 1.02.0.0 rejects this.
7529 It does not let you subtract one const X* pointer from another in
7530 an arm of an if-expression whose if-part is not a constant
7532 const char *g = "string";
7533 pcpcc = &g + (g ? g-g : 0);
7534 /* HPUX 7.0 cc rejects these. */
7536 ppc = (char**) pcpcc;
7537 pcpcc = (char const *const *) ppc;
7538 { /* SCO 3.2v4 cc rejects this. */
7540 char const *s = 0 ? (char *) 0 : (char const *) 0;
7545 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7547 const int *foo = &x[0];
7550 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7551 typedef const int *iptr;
7555 { /* AIX XL C 1.02.0.0 rejects this saying
7556 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7557 struct s { int j; const int *ap[3]; };
7558 struct s *b; b->j = 5;
7560 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7564 return !cs[0] && !zero.x;
7571 if ac_fn_c_try_compile "$LINENO"; then :
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7579 $as_echo "$ac_cv_c_const" >&6; }
7580 if test $ac_cv_c_const = no; then
7582 $as_echo "#define const /**/" >>confdefs.h
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7587 $as_echo_n "checking for inline... " >&6; }
7588 if ${ac_cv_c_inline+:} false; then :
7589 $as_echo_n "(cached) " >&6
7592 for ac_kw in inline __inline__ __inline; do
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7597 static $ac_kw foo_t static_foo () {return 0; }
7598 $ac_kw foo_t foo () {return 0; }
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 ac_cv_c_inline=$ac_kw
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 test "$ac_cv_c_inline" != no && break
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7611 $as_echo "$ac_cv_c_inline" >&6; }
7613 case $ac_cv_c_inline in
7616 case $ac_cv_c_inline in
7618 *) ac_val=$ac_cv_c_inline;;
7620 cat >>confdefs.h <<_ACEOF
7622 #define inline $ac_val
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7629 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7630 if ${ac_cv_header_time+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 #include <sys/types.h>
7636 #include <sys/time.h>
7642 if ((struct tm *) 0)
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 ac_cv_header_time=yes
7651 ac_cv_header_time=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7656 $as_echo "$ac_cv_header_time" >&6; }
7657 if test $ac_cv_header_time = yes; then
7659 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7664 if test $ac_cv_c_compiler_gnu = yes; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7666 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7667 if ${ac_cv_prog_gcc_traditional+:} false; then :
7668 $as_echo_n "(cached) " >&6
7670 ac_pattern="Autoconf.*'x'"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7678 ac_cv_prog_gcc_traditional=yes
7680 ac_cv_prog_gcc_traditional=no
7685 if test $ac_cv_prog_gcc_traditional = no; then
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7693 ac_cv_prog_gcc_traditional=yes
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7700 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7701 if test $ac_cv_prog_gcc_traditional = yes; then
7702 CC="$CC -traditional"
7707 # Check whether --enable-largefile was given.
7708 if test "${enable_largefile+set}" = set; then :
7709 enableval=$enable_largefile;
7712 if test "$enable_largefile" != no; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7716 if ${ac_cv_sys_largefile_CC+:} false; then :
7717 $as_echo_n "(cached) " >&6
7719 ac_cv_sys_largefile_CC=no
7720 if test "$GCC" != yes; then
7723 # IRIX 6.2 and later do not support large files by default,
7724 # so use the C compiler's -n32 option if that helps.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #include <sys/types.h>
7728 /* Check that off_t can represent 2**63 - 1 correctly.
7729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7730 since some C++ compilers masquerading as C compilers
7731 incorrectly reject 9223372036854775807. */
7732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7734 && LARGE_OFF_T % 2147483647 == 1)
7744 if ac_fn_c_try_compile "$LINENO"; then :
7747 rm -f core conftest.err conftest.$ac_objext
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 ac_cv_sys_largefile_CC=' -n32'; break
7752 rm -f core conftest.err conftest.$ac_objext
7756 rm -f conftest.$ac_ext
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7761 if test "$ac_cv_sys_largefile_CC" != no; then
7762 CC=$CC$ac_cv_sys_largefile_CC
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7767 if ${ac_cv_sys_file_offset_bits+:} false; then :
7768 $as_echo_n "(cached) " >&6
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 #include <sys/types.h>
7774 /* Check that off_t can represent 2**63 - 1 correctly.
7775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7776 since some C++ compilers masquerading as C compilers
7777 incorrectly reject 9223372036854775807. */
7778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7780 && LARGE_OFF_T % 2147483647 == 1)
7790 if ac_fn_c_try_compile "$LINENO"; then :
7791 ac_cv_sys_file_offset_bits=no; break
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #define _FILE_OFFSET_BITS 64
7797 #include <sys/types.h>
7798 /* Check that off_t can represent 2**63 - 1 correctly.
7799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7800 since some C++ compilers masquerading as C compilers
7801 incorrectly reject 9223372036854775807. */
7802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7804 && LARGE_OFF_T % 2147483647 == 1)
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815 ac_cv_sys_file_offset_bits=64; break
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 ac_cv_sys_file_offset_bits=unknown
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7824 case $ac_cv_sys_file_offset_bits in #(
7827 cat >>confdefs.h <<_ACEOF
7828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7833 if test $ac_cv_sys_file_offset_bits = unknown; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7836 if ${ac_cv_sys_large_files+:} false; then :
7837 $as_echo_n "(cached) " >&6
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 #include <sys/types.h>
7843 /* Check that off_t can represent 2**63 - 1 correctly.
7844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7845 since some C++ compilers masquerading as C compilers
7846 incorrectly reject 9223372036854775807. */
7847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7849 && LARGE_OFF_T % 2147483647 == 1)
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_cv_sys_large_files=no; break
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #define _LARGE_FILES 1
7866 #include <sys/types.h>
7867 /* Check that off_t can represent 2**63 - 1 correctly.
7868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7869 since some C++ compilers masquerading as C compilers
7870 incorrectly reject 9223372036854775807. */
7871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7873 && LARGE_OFF_T % 2147483647 == 1)
7883 if ac_fn_c_try_compile "$LINENO"; then :
7884 ac_cv_sys_large_files=1; break
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 ac_cv_sys_large_files=unknown
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7892 $as_echo "$ac_cv_sys_large_files" >&6; }
7893 case $ac_cv_sys_large_files in #(
7896 cat >>confdefs.h <<_ACEOF
7897 #define _LARGE_FILES $ac_cv_sys_large_files
7907 SND_UTIL_VERSION=$VERSION
7908 echo $VERSION > $srcdir/version
7910 cat >>confdefs.h <<_ACEOF
7911 #define VERSION "$SND_UTIL_VERSION"
7915 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
7917 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
7919 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
7927 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7928 if test -n "$ac_tool_prefix"; then
7929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7934 $as_echo_n "(cached) " >&6
7938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7960 if test -n "$PKG_CONFIG"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7962 $as_echo "$PKG_CONFIG" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 if test -z "$ac_cv_path_PKG_CONFIG"; then
7971 ac_pt_PKG_CONFIG=$PKG_CONFIG
7972 # Extract the first word of "pkg-config", so it can be a program name with args.
7973 set dummy pkg-config; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7977 $as_echo_n "(cached) " >&6
7979 case $ac_pt_PKG_CONFIG in
7981 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8003 if test -n "$ac_pt_PKG_CONFIG"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8005 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8011 if test "x$ac_pt_PKG_CONFIG" = x; then
8014 case $cross_compiling:$ac_tool_warned in
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018 ac_tool_warned=yes ;;
8020 PKG_CONFIG=$ac_pt_PKG_CONFIG
8023 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8027 if test -n "$PKG_CONFIG"; then
8028 _pkg_min_version=0.9.0
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8030 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8031 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8033 $as_echo "yes" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8042 # Check whether --with-systemdsystemunitdir was given.
8043 if test "${with_systemdsystemunitdir+set}" = set; then :
8044 withval=$with_systemdsystemunitdir;
8046 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
8049 if test "x$with_systemdsystemunitdir" != xno; then
8050 systemdsystemunitdir=$with_systemdsystemunitdir
8053 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
8055 HAVE_SYSTEMD_FALSE='#'
8057 HAVE_SYSTEMD_TRUE='#'
8063 # Check whether --with-asound-state-dir was given.
8064 if test "${with_asound_state_dir+set}" = set; then :
8065 withval=$with_asound_state_dir; ASOUND_STATE_DIR="$withval"
8067 ASOUND_STATE_DIR="/var/lib/alsa"
8072 ac_config_files="$ac_config_files Makefile alsactl/Makefile alsactl/init/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile m4/Makefile po/Makefile.in alsaconf/alsaconf alsaconf/Makefile alsaconf/po/Makefile alsaucm/Makefile aplay/Makefile include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile speaker-test/Makefile speaker-test/samples/Makefile alsaloop/Makefile"
8074 cat >confcache <<\_ACEOF
8075 # This file is a shell script that caches the results of configure
8076 # tests run on this system so they can be shared between configure
8077 # scripts and configure runs, see configure's option --config-cache.
8078 # It is not useful on other systems. If it contains results you don't
8079 # want to keep, you may remove or edit it.
8081 # config.status only pays attention to the cache file if you give it
8082 # the --recheck option to rerun configure.
8084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8090 # The following way of writing the cache mishandles newlines in values,
8091 # but we know of no workaround that is simple, portable, and efficient.
8092 # So, we kill variables containing newlines.
8093 # Ultrix sh set writes to stderr and can't be redirected directly,
8094 # and sets the high bit in the cache file unless we assign to the vars.
8096 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8097 eval ac_val=\$$ac_var
8101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8105 _ | IFS | as_nl) ;; #(
8106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8107 *) { eval $ac_var=; unset $ac_var;} ;;
8113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8114 *${as_nl}ac_space=\ *)
8115 # `set' does not quote correctly, so add quotes: double-quote
8116 # substitution turns \\\\ into \\, and sed turns \\ into \.
8119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8122 # `set' quotes correctly as required by POSIX, so do not add quotes.
8123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8137 if test -w "$cache_file"; then
8138 if test "x$cache_file" != "x/dev/null"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8140 $as_echo "$as_me: updating cache $cache_file" >&6;}
8141 if test ! -f "$cache_file" || test -h "$cache_file"; then
8142 cat confcache >"$cache_file"
8144 case $cache_file in #(
8146 mv -f confcache "$cache_file"$$ &&
8147 mv -f "$cache_file"$$ "$cache_file" ;; #(
8149 mv -f confcache "$cache_file" ;;
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8155 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8161 # Let make expand exec_prefix.
8162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8164 DEFS=-DHAVE_CONFIG_H
8169 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8170 # 1. Remove the extension, and $U if already installed.
8171 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8172 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8173 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8174 # will be set to the directory where LIBOBJS objects are built.
8175 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8176 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8180 LTLIBOBJS=$ac_ltlibobjs
8183 if test -n "$EXEEXT"; then
8185 am__EXEEXT_FALSE='#'
8191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8192 as_fn_error $? "conditional \"AMDEP\" was never defined.
8193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8203 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
8204 as_fn_error $? "conditional \"HAVE_PCM\" was never defined.
8205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8207 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
8208 as_fn_error $? "conditional \"HAVE_MIXER\" was never defined.
8209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8211 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
8212 as_fn_error $? "conditional \"HAVE_RAWMIDI\" was never defined.
8213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8215 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
8216 as_fn_error $? "conditional \"HAVE_SEQ\" was never defined.
8217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8219 if test -z "${HAVE_SAMPLERATE_TRUE}" && test -z "${HAVE_SAMPLERATE_FALSE}"; then
8220 as_fn_error $? "conditional \"HAVE_SAMPLERATE\" was never defined.
8221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8223 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
8224 as_fn_error $? "conditional \"ALSAMIXER\" was never defined.
8225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8227 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
8228 as_fn_error $? "conditional \"ALSACONF\" was never defined.
8229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8231 if test -z "${ALSALOOP_TRUE}" && test -z "${ALSALOOP_FALSE}"; then
8232 as_fn_error $? "conditional \"ALSALOOP\" was never defined.
8233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8235 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
8236 as_fn_error $? "conditional \"USE_XMLTO\" was never defined.
8237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8239 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
8240 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
8241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8244 : "${CONFIG_STATUS=./config.status}"
8246 ac_clean_files_save=$ac_clean_files
8247 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8249 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8251 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8253 # Generated by $as_me.
8254 # Run this file to recreate the current configuration.
8255 # Compiler output produced by configure, useful for debugging
8256 # configure, is in config.log if it exists.
8262 SHELL=\${CONFIG_SHELL-$SHELL}
8265 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8266 ## -------------------- ##
8267 ## M4sh Initialization. ##
8268 ## -------------------- ##
8270 # Be more Bourne compatible
8271 DUALCASE=1; export DUALCASE # for MKS sh
8272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8275 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8276 # is contrary to our usage. Disable this feature.
8277 alias -g '${1+"$@"}'='"$@"'
8278 setopt NO_GLOB_SUBST
8280 case `(set -o) 2>/dev/null` in #(
8292 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8296 # Prefer a ksh shell builtin over an external printf program on Solaris,
8297 # but without wasting forks for bash or zsh.
8298 if test -z "$BASH_VERSION$ZSH_VERSION" \
8299 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8300 as_echo='print -r --'
8301 as_echo_n='print -rn --'
8302 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8303 as_echo='printf %s\n'
8304 as_echo_n='printf %s'
8306 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8307 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8308 as_echo_n='/usr/ucb/echo -n'
8310 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8311 as_echo_n_body='eval
8315 expr "X$arg" : "X\\(.*\\)$as_nl";
8316 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8318 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8320 export as_echo_n_body
8321 as_echo_n='sh -c $as_echo_n_body as_echo'
8324 as_echo='sh -c $as_echo_body as_echo'
8327 # The user is always right.
8328 if test "${PATH_SEPARATOR+set}" != set; then
8330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8331 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8338 # We need space, tab and new line, in precisely that order. Quoting is
8339 # there to prevent editors from complaining about space-tab.
8340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8341 # splitting by setting IFS to empty value.)
8344 # Find who we are. Look in the path if we contain no directory separator.
8347 *[\\/]* ) as_myself=$0 ;;
8348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8359 # We did not find ourselves, most probably we were run as `sh COMMAND'
8360 # in which case we are not to be found in the path.
8361 if test "x$as_myself" = x; then
8364 if test ! -f "$as_myself"; then
8365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8369 # Unset variables that we do not need and which cause bugs (e.g. in
8370 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8371 # suppresses any "Segmentation fault" message there. '((' could
8372 # trigger a bug in pdksh 5.2.14.
8373 for as_var in BASH_ENV ENV MAIL MAILPATH
8374 do eval test x\${$as_var+set} = xset \
8375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8391 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8392 # ----------------------------------------
8393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8395 # script with STATUS, using 1 if that was 0.
8398 as_status=$1; test $as_status -eq 0 && as_status=1
8400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8403 $as_echo "$as_me: error: $2" >&2
8404 as_fn_exit $as_status
8408 # as_fn_set_status STATUS
8409 # -----------------------
8410 # Set $? to STATUS, without forking.
8414 } # as_fn_set_status
8418 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8428 # Portably unset VAR.
8431 { eval $1=; unset $1;}
8433 as_unset=as_fn_unset
8434 # as_fn_append VAR VALUE
8435 # ----------------------
8436 # Append the text in VALUE to the end of the definition contained in VAR. Take
8437 # advantage of any shell optimizations that allow amortized linear growth over
8438 # repeated appends, instead of the typical quadratic growth present in naive
8440 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8441 eval 'as_fn_append ()
8452 # as_fn_arith ARG...
8453 # ------------------
8454 # Perform arithmetic evaluation on the ARGs, and store the result in the
8455 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8456 # must be portable across $(()) and expr.
8457 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8458 eval 'as_fn_arith ()
8465 as_val=`expr "$@" || test $? -eq 1`
8470 if expr a : '\(a\)' >/dev/null 2>&1 &&
8471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8477 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8478 as_basename=basename
8483 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8489 as_me=`$as_basename -- "$0" ||
8490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8491 X"$0" : 'X\(//\)$' \| \
8492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8494 sed '/^.*\/\([^/][^/]*\)\/*$/{
8508 # Avoid depending upon Character Ranges.
8509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8512 as_cr_digits='0123456789'
8513 as_cr_alnum=$as_cr_Letters$as_cr_digits
8515 ECHO_C= ECHO_N= ECHO_T=
8516 case `echo -n x` in #(((((
8518 case `echo 'xy\c'` in
8519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8528 rm -f conf$$ conf$$.exe conf$$.file
8529 if test -d conf$$.dir; then
8530 rm -f conf$$.dir/conf$$.file
8533 mkdir conf$$.dir 2>/dev/null
8535 if (echo >conf$$.file) 2>/dev/null; then
8536 if ln -s conf$$.file conf$$ 2>/dev/null; then
8538 # ... but there are two gotchas:
8539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8541 # In both cases, we have to default to `cp -p'.
8542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8544 elif ln conf$$.file conf$$ 2>/dev/null; then
8552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8553 rmdir conf$$.dir 2>/dev/null
8558 # Create "$as_dir" as a directory, including parents if necessary.
8563 -*) as_dir=./$as_dir;;
8565 test -d "$as_dir" || eval $as_mkdir_p || {
8569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8570 *) as_qdir=$as_dir;;
8572 as_dirs="'$as_qdir' $as_dirs"
8573 as_dir=`$as_dirname -- "$as_dir" ||
8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8575 X"$as_dir" : 'X\(//\)[^/]' \| \
8576 X"$as_dir" : 'X\(//\)$' \| \
8577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8578 $as_echo X"$as_dir" |
8579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8596 test -d "$as_dir" && break
8598 test -z "$as_dirs" || eval "mkdir $as_dirs"
8599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8603 if mkdir -p . 2>/dev/null; then
8604 as_mkdir_p='mkdir -p "$as_dir"'
8606 test -d ./-p && rmdir ./-p
8610 if test -x / >/dev/null 2>&1; then
8613 if ls -dL / >/dev/null 2>&1; then
8620 if test -d "$1"; then
8626 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8627 ???[sx]*):;;*)false;;esac;fi
8631 as_executable_p=$as_test_x
8633 # Sed expression to map a string onto a valid CPP name.
8634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8636 # Sed expression to map a string onto a valid variable name.
8637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8641 ## ----------------------------------- ##
8642 ## Main body of $CONFIG_STATUS script. ##
8643 ## ----------------------------------- ##
8645 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8648 # Save the log message, to keep $0 and so on meaningful, and to
8649 # report actual input values of CONFIG_FILES etc. instead of their
8650 # values after options handling.
8652 This file was extended by $as_me, which was
8653 generated by GNU Autoconf 2.68. Invocation command line was
8655 CONFIG_FILES = $CONFIG_FILES
8656 CONFIG_HEADERS = $CONFIG_HEADERS
8657 CONFIG_LINKS = $CONFIG_LINKS
8658 CONFIG_COMMANDS = $CONFIG_COMMANDS
8661 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8666 case $ac_config_files in *"
8667 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8670 case $ac_config_headers in *"
8671 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8676 # Files that config.status was made for.
8677 config_files="$ac_config_files"
8678 config_headers="$ac_config_headers"
8679 config_commands="$ac_config_commands"
8683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8685 \`$as_me' instantiates files and other configuration actions
8686 from templates according to the current configuration. Unless the files
8687 and actions are specified as TAGs, all are instantiated by default.
8689 Usage: $0 [OPTION]... [TAG]...
8691 -h, --help print this help, then exit
8692 -V, --version print version number and configuration settings, then exit
8693 --config print configuration, then exit
8694 -q, --quiet, --silent
8695 do not print progress messages
8696 -d, --debug don't remove temporary files
8697 --recheck update $as_me by reconfiguring in the same conditions
8698 --file=FILE[:TEMPLATE]
8699 instantiate the configuration file FILE
8700 --header=FILE[:TEMPLATE]
8701 instantiate the configuration header FILE
8703 Configuration files:
8706 Configuration headers:
8709 Configuration commands:
8712 Report bugs to the package provider."
8715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8716 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8719 configured by $0, generated by GNU Autoconf 2.68,
8720 with options \\"\$ac_cs_config\\"
8722 Copyright (C) 2010 Free Software Foundation, Inc.
8723 This config.status script is free software; the Free Software Foundation
8724 gives unlimited permission to copy, distribute and modify it."
8731 test -n "\$AWK" || AWK=awk
8734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8735 # The default lists apply if the user does not specify any file.
8741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8758 # Handling of the options.
8759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8762 $as_echo "$ac_cs_version"; exit ;;
8763 --config | --confi | --conf | --con | --co | --c )
8764 $as_echo "$ac_cs_config"; exit ;;
8765 --debug | --debu | --deb | --de | --d | -d )
8767 --file | --fil | --fi | --f )
8770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8771 '') as_fn_error $? "missing file argument" ;;
8773 as_fn_append CONFIG_FILES " '$ac_optarg'"
8774 ac_need_defaults=false;;
8775 --header | --heade | --head | --hea )
8778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8780 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8781 ac_need_defaults=false;;
8783 # Conflict between --help and --header
8784 as_fn_error $? "ambiguous option: \`$1'
8785 Try \`$0 --help' for more information.";;
8786 --help | --hel | -h )
8787 $as_echo "$ac_cs_usage"; exit ;;
8788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8793 -*) as_fn_error $? "unrecognized option: \`$1'
8794 Try \`$0 --help' for more information." ;;
8796 *) as_fn_append ac_config_targets " $1"
8797 ac_need_defaults=false ;;
8803 ac_configure_extra_args=
8805 if $ac_cs_silent; then
8807 ac_configure_extra_args="$ac_configure_extra_args --silent"
8811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8812 if \$ac_cs_recheck; then
8813 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8816 CONFIG_SHELL='$SHELL'
8822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8827 ## Running $as_me. ##
8833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8837 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8838 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8839 # from automake < 1.5.
8840 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8841 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8842 LINGUAS="${LINGUAS-%UNSET%}"
8844 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8850 # Handling of arguments.
8851 for ac_config_target in $ac_config_targets
8853 case $ac_config_target in
8854 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8856 "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
8857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8858 "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
8859 "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
8860 "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
8861 "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
8862 "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
8863 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8864 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8865 "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
8866 "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
8867 "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
8868 "alsaucm/Makefile") CONFIG_FILES="$CONFIG_FILES alsaucm/Makefile" ;;
8869 "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
8870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8871 "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
8872 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
8873 "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
8874 "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
8875 "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
8876 "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
8877 "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
8878 "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
8879 "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
8880 "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
8881 "alsaloop/Makefile") CONFIG_FILES="$CONFIG_FILES alsaloop/Makefile" ;;
8883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8888 # If the user did not use the arguments to specify the items to instantiate,
8889 # then the envvar interface is used. Set only those that are not.
8890 # We use the long form for the default assignment because of an extremely
8891 # bizarre bug on SunOS 4.1.3.
8892 if $ac_need_defaults; then
8893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8898 # Have a temporary directory for convenience. Make it in the build tree
8899 # simply because there is no reason against having it here, and in addition,
8900 # creating and moving files from /tmp can sometimes cause problems.
8901 # Hook for its removal unless debugging.
8902 # Note that there is a small window in which the directory will not be cleaned:
8903 # after its creation but before its name has been assigned to `$tmp'.
8907 trap 'exit_status=$?
8909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8911 trap 'as_fn_exit 1' 1 2 13 15
8913 # Create a (secure) tmp directory for tmp files.
8916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8920 tmp=./conf$$-$RANDOM
8921 (umask 077 && mkdir "$tmp")
8922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8925 # Set up the scripts for CONFIG_FILES section.
8926 # No need to generate them if there are no CONFIG_FILES.
8927 # This happens for instance with `./config.status config.h'.
8928 if test -n "$CONFIG_FILES"; then
8931 ac_cr=`echo X | tr X '\015'`
8932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8933 # But we know of no other shell where ac_cr would be empty at this
8934 # point, so we can use a bashism as a fallback.
8935 if test "x$ac_cr" = x; then
8936 eval ac_cr=\$\'\\r\'
8938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8950 echo "cat >conf$$subs.awk <<_ACEOF" &&
8951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8957 for ac_last_try in false false false false false :; do
8958 . ./conf$$subs.sh ||
8959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8962 if test $ac_delim_n = $ac_delim_num; then
8964 elif $ac_last_try; then
8965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8977 s/^/S["/; s/!.*/"]=/
8987 s/\(.\{148\}\)..*/\1/
8989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9001 s/\(.\{148\}\)..*/\1/
9003 s/["\\]/\\&/g; s/^/"/; s/$/"/
9007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9012 ' <conf$$subs.awk | sed '
9017 ' >>$CONFIG_STATUS || ac_write_fail=1
9018 rm -f conf$$subs.awk
9019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9022 for (key in S) S_is_set[key] = 1
9028 nfields = split(line, field, "@")
9030 len = length(field[1])
9031 for (i = 2; i < nfields; i++) {
9033 keylen = length(key)
9034 if (S_is_set[key]) {
9036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9037 len += length(value) + length(field[++i])
9048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9059 # trailing colons and then remove the whole line if VPATH becomes empty
9060 # (actually we leave an empty line to preserve line numbers).
9061 if test "x$srcdir" = x.; then
9062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9081 fi # test -n "$CONFIG_FILES"
9083 # Set up the scripts for CONFIG_HEADERS section.
9084 # No need to generate them if there are no CONFIG_HEADERS.
9085 # This happens for instance with `./config.status Makefile'.
9086 if test -n "$CONFIG_HEADERS"; then
9087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9091 # Transform confdefs.h into an awk script `defines.awk', embedded as
9092 # here-document in config.status, that substitutes the proper values into
9093 # config.h.in to produce config.h.
9095 # Create a delimiter string that does not exist in confdefs.h, to ease
9096 # handling of long lines.
9098 for ac_last_try in false false :; do
9099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9100 if test -z "$ac_tt"; then
9102 elif $ac_last_try; then
9103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9109 # For the awk script, D is an array of macro values keyed by name,
9110 # likewise P contains macro parameters if any. Preserve backslash
9111 # newline sequences.
9113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9115 s/.\{148\}/&'"$ac_delim"'/g
9118 s/^[ ]*#[ ]*define[ ][ ]*/ /
9125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9132 D["\1"]=" \3\\\\\\n"\\/p
9134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9139 s/.\{148\}/&'"$ac_delim"'/g
9144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9149 ' <confdefs.h | sed '
9150 s/'"$ac_delim"'/"\\\
9151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9154 for (key in D) D_is_set[key] = 1
9157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9159 split(line, arg, " ")
9160 if (arg[1] == "#") {
9164 defundef = substr(arg[1], 2)
9167 split(mac1, mac2, "(") #)
9169 prefix = substr(line, 1, index(line, defundef) - 1)
9170 if (D_is_set[macro]) {
9171 # Preserve the white space surrounding the "#".
9172 print prefix "define", macro P[macro] D[macro]
9175 # Replace #undef with comments. This is necessary, for example,
9176 # in the case of _POSIX_SOURCE, which is predefined and required
9177 # on some systems where configure will not decide to define it.
9178 if (defundef == "undef") {
9179 print "/*", prefix defundef, macro, "*/"
9187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9189 fi # test -n "$CONFIG_HEADERS"
9192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9197 :[FHLC]) ac_mode=$ac_tag; continue;;
9199 case $ac_mode$ac_tag in
9201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9202 :[FH]-) ac_tag=-:-;;
9203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9220 -) ac_f="$ac_tmp/stdin";;
9221 *) # Look for the file first in the build tree, then in the source tree
9222 # (if the path is not absolute). The absolute path cannot be DOS-style,
9223 # because $ac_f cannot contain `:'.
9227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9232 as_fn_append ac_file_inputs " '$ac_f'"
9235 # Let's still pretend it is `configure' which instantiates (i.e., don't
9236 # use $as_me), people would be surprised to read:
9237 # /* config.h. Generated by config.status. */
9238 configure_input='Generated from '`
9239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9241 if test x"$ac_file" != x-; then
9242 configure_input="$ac_file. $configure_input"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9244 $as_echo "$as_me: creating $ac_file" >&6;}
9246 # Neutralize special characters interpreted by sed in replacement strings.
9247 case $configure_input in #(
9248 *\&* | *\|* | *\\* )
9249 ac_sed_conf_input=`$as_echo "$configure_input" |
9250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9251 *) ac_sed_conf_input=$configure_input;;
9255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9261 ac_dir=`$as_dirname -- "$ac_file" ||
9262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9263 X"$ac_file" : 'X\(//\)[^/]' \| \
9264 X"$ac_file" : 'X\(//\)$' \| \
9265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9266 $as_echo X"$ac_file" |
9267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9284 as_dir="$ac_dir"; as_fn_mkdir_p
9288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9291 # A ".." for each directory in $ac_dir_suffix.
9292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9293 case $ac_top_builddir_sub in
9294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9298 ac_abs_top_builddir=$ac_pwd
9299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9300 # for backward compatibility:
9301 ac_top_builddir=$ac_top_build_prefix
9304 .) # We are building in place.
9306 ac_top_srcdir=$ac_top_builddir_sub
9307 ac_abs_top_srcdir=$ac_pwd ;;
9308 [\\/]* | ?:[\\/]* ) # Absolute name.
9309 ac_srcdir=$srcdir$ac_dir_suffix;
9310 ac_top_srcdir=$srcdir
9311 ac_abs_top_srcdir=$srcdir ;;
9313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9314 ac_top_srcdir=$ac_top_build_prefix$srcdir
9315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9332 [\\/$]* | ?:[\\/]* ) ;;
9333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9338 # If the template does not know about datarootdir, expand it.
9339 # FIXME: This hack should be removed a few years after 2.60.
9340 ac_datarootdir_hack=; ac_datarootdir_seen=
9351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9352 *datarootdir*) ac_datarootdir_seen=yes;;
9353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9358 ac_datarootdir_hack='
9359 s&@datadir@&$datadir&g
9360 s&@docdir@&$docdir&g
9361 s&@infodir@&$infodir&g
9362 s&@localedir@&$localedir&g
9363 s&@mandir@&$mandir&g
9364 s&\\\${datarootdir}&$datarootdir&g' ;;
9368 # Neutralize VPATH when `$srcdir' = `.'.
9369 # Shell code in configure.ac might set extrasub.
9370 # FIXME: do we really want to maintain this feature?
9371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9372 ac_sed_extra="$ac_vpsub
9375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9378 s|@configure_input@|$ac_sed_conf_input|;t t
9379 s&@top_builddir@&$ac_top_builddir_sub&;t t
9380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9381 s&@srcdir@&$ac_srcdir&;t t
9382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9383 s&@top_srcdir@&$ac_top_srcdir&;t t
9384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9385 s&@builddir@&$ac_builddir&;t t
9386 s&@abs_builddir@&$ac_abs_builddir&;t t
9387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9388 s&@INSTALL@&$ac_INSTALL&;t t
9389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9390 $ac_datarootdir_hack
9392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9400 which seems to be undefined. Please make sure it is defined" >&5
9401 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9402 which seems to be undefined. Please make sure it is defined" >&2;}
9404 rm -f "$ac_tmp/stdin"
9406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9415 if test x"$ac_file" != x-; then
9417 $as_echo "/* $configure_input */" \
9418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9419 } >"$ac_tmp/config.h" \
9420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9423 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9426 mv "$ac_tmp/config.h" "$ac_file" \
9427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9430 $as_echo "/* $configure_input */" \
9431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9432 || as_fn_error $? "could not create -" "$LINENO" 5
9434 # Compute "$ac_file"'s index in $config_headers.
9437 for _am_header in $config_headers :; do
9439 $_am_arg | $_am_arg:* )
9442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9445 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9446 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9447 X"$_am_arg" : 'X\(//\)[^/]' \| \
9448 X"$_am_arg" : 'X\(//\)$' \| \
9449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9450 $as_echo X"$_am_arg" |
9451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9467 s/.*/./; q'`/stamp-h$_am_stamp_count
9470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9471 $as_echo "$as_me: executing $ac_file commands" >&6;}
9476 case $ac_file$ac_mode in
9478 for ac_file in $CONFIG_FILES; do
9479 # Support "outfile[:infile[:infile...]]"
9481 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9483 # PO directories have a Makefile.in generated from Makefile.in.in.
9484 case "$ac_file" in */Makefile.in)
9485 # Adjust a relative srcdir.
9486 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9487 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9488 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9489 # In autoconf-2.13 it is called $ac_given_srcdir.
9490 # In autoconf-2.50 it is called $srcdir.
9491 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9492 case "$ac_given_srcdir" in
9493 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9494 /*) top_srcdir="$ac_given_srcdir" ;;
9495 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9497 # Treat a directory as a PO directory if and only if it has a
9498 # POTFILES.in file. This allows packages to have multiple PO
9499 # directories under different names or in different locations.
9500 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9501 rm -f "$ac_dir/POTFILES"
9502 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9503 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9504 POMAKEFILEDEPS="POTFILES.in"
9505 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9506 # on $ac_dir but don't depend on user-specified configuration
9508 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9509 # The LINGUAS file contains the set of available languages.
9510 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9511 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9513 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9514 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9515 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9516 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9518 # The set of available languages was given in configure.in.
9519 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9523 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9524 # Compute UPDATEPOFILES
9525 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9526 # Compute DUMMYPOFILES
9527 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9529 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9530 case "$ac_given_srcdir" in
9532 *) srcdirpre='$(srcdir)/' ;;
9538 for lang in $ALL_LINGUAS; do
9539 POFILES="$POFILES $srcdirpre$lang.po"
9540 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9541 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9542 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9544 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9545 # environment variable.
9547 if test -n "$ALL_LINGUAS"; then
9548 for presentlang in $ALL_LINGUAS; do
9550 if test "%UNSET%" != "$LINGUAS"; then
9551 desiredlanguages="$LINGUAS"
9553 desiredlanguages="$ALL_LINGUAS"
9555 for desiredlang in $desiredlanguages; do
9556 # Use the presentlang catalog if desiredlang is
9557 # a. equal to presentlang, or
9558 # b. a variant of presentlang (because in this case,
9559 # presentlang can be used as a fallback for messages
9560 # which are not translated in the desiredlang catalog).
9561 case "$desiredlang" in
9562 "$presentlang"*) useit=yes;;
9565 if test $useit = yes; then
9566 INST_LINGUAS="$INST_LINGUAS $presentlang"
9571 if test -n "$INST_LINGUAS"; then
9572 for lang in $INST_LINGUAS; do
9573 CATALOGS="$CATALOGS $lang.gmo"
9576 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9577 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"
9578 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9579 if test -f "$f"; then
9581 *.orig | *.bak | *~) ;;
9582 *) cat "$f" >> "$ac_dir/Makefile" ;;
9590 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9591 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9592 # are listed without --file. Let's play safe and only enable the eval
9593 # if we detect the quoting.
9594 case $CONFIG_FILES in
9595 *\'*) eval set x "$CONFIG_FILES" ;;
9596 *) set x $CONFIG_FILES ;;
9601 # Strip MF so we end up with the name of the file.
9602 mf=`echo "$mf" | sed -e 's/:.*$//'`
9603 # Check whether this is an Automake generated Makefile or not.
9604 # We used to match only the files named `Makefile.in', but
9605 # some people rename them; so instead we look at the file content.
9606 # Grep'ing the first line is not enough: some people post-process
9607 # each Makefile.in and add a new line on top of each file to say so.
9608 # Grep'ing the whole file is not good either: AIX grep has a line
9609 # limit of 2048, but all sed's we know have understand at least 4000.
9610 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9611 dirpart=`$as_dirname -- "$mf" ||
9612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9613 X"$mf" : 'X\(//\)[^/]' \| \
9614 X"$mf" : 'X\(//\)$' \| \
9615 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9637 # Extract the definition of DEPDIR, am__include, and am__quote
9638 # from the Makefile without running `make'.
9639 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9640 test -z "$DEPDIR" && continue
9641 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9642 test -z "am__include" && continue
9643 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9644 # When using ansi2knr, U may be empty or an underscore; expand it
9645 U=`sed -n 's/^U = //p' < "$mf"`
9646 # Find all dependency output files, they are included files with
9647 # $(DEPDIR) in their names. We invoke sed twice because it is the
9648 # simplest approach to changing $(DEPDIR) to its actual value in the
9650 for file in `sed -n "
9651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9653 # Make sure the directory exists.
9654 test -f "$dirpart/$file" && continue
9655 fdir=`$as_dirname -- "$file" ||
9656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9657 X"$file" : 'X\(//\)[^/]' \| \
9658 X"$file" : 'X\(//\)$' \| \
9659 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9678 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9679 # echo "creating $dirpart/$file"
9680 echo '# dummy' > "$dirpart/$file"
9692 ac_clean_files=$ac_clean_files_save
9694 test $ac_write_fail = 0 ||
9695 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9698 # configure is writing to config.log, and then calls config.status.
9699 # config.status does its own redirection, appending to config.log.
9700 # Unfortunately, on DOS this fails, as config.log is still kept open
9701 # by configure, so config.status won't be able to write to it; its
9702 # output is simply discarded. So we exec the FD to /dev/null,
9703 # effectively closing config.log, so it can be properly (re)opened and
9704 # appended to by config.status. When coming back to configure, we
9705 # need to make the FD available again.
9706 if test "$no_create" != yes; then
9708 ac_config_status_args=
9709 test "$silent" = yes &&
9710 ac_config_status_args="$ac_config_status_args --quiet"
9712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9715 # would make configure fail if this is the last instruction.
9716 $ac_cs_success || as_fn_exit 1
9718 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9720 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}