2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for TiMidity++ 2.13.2.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='TiMidity++'
576 PACKAGE_TARNAME='TiMidity++'
577 PACKAGE_VERSION='2.13.2'
578 PACKAGE_STRING='TiMidity++ 2.13.2'
579 PACKAGE_BUGREPORT='root@mput.dip.jp'
581 ac_unique_file="timidity/timidity.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
681 INSTALL_STRIP_PROGRAM
686 MAINTAINER_MODE_FALSE
753 ENABLE_DYNAMIC_TCLTK_TRUE
754 ENABLE_DYNAMIC_TCLTK_FALSE
764 ENABLE_DYNAMIC_XAW_TRUE
765 ENABLE_DYNAMIC_XAW_FALSE
785 ENABLE_PORTMIDISYN_TRUE
786 ENABLE_PORTMIDISYN_FALSE
791 ENABLE_W32G_SYN_FALSE
800 ENABLE_SOUND_SPEC_TRUE
801 ENABLE_SOUND_SPEC_FALSE
846 ac_precious_vars='build_alias
858 # Initialize some variables set by options.
860 ac_init_version=false
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
963 { (exit 1); exit 1; }; }
964 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
965 eval enable_$ac_feature=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 -enable-* | --enable-*)
978 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
981 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982 { (exit 1); exit 1; }; }
983 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
984 eval enable_$ac_feature=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid package name: $ac_package" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1181 eval with_$ac_package=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid package name: $ac_package" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1190 eval with_$ac_package=no ;;
1193 # Obsolete; use --with-x.
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) { echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 # Be sure to have absolute directory names.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1253 { (exit 1); exit 1; }; }
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 { echo "$as_me: error: Working directory cannot be determined" >&2
1284 { (exit 1); exit 1; }; }
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 { echo "$as_me: error: pwd does not report name of working directory" >&2
1287 { (exit 1); exit 1; }; }
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$0" ||
1295 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$0" : 'X\(//\)[^/]' \| \
1297 X"$0" : 'X\(//\)$' \| \
1298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1327 { (exit 1); exit 1; }; }
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1332 { (exit 1); exit 1; }; }
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/TiMidity++]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --x-includes=DIR X include files are in DIR
1422 --x-libraries=DIR X library files are in DIR
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 --target=TARGET configure for building compilers for TARGET [HOST]
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --enable-debug Build a debugging version.
1443 --disable-dependency-tracking Speeds up one-time builds
1444 --enable-dependency-tracking Do not reject slow dependency extractors
1445 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
1446 default: Automatically select audio device.
1448 sun: SunOS /dev/audio
1449 hpux: HPUX /dev/audio
1450 irix: IRIX audio library
1452 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
1454 darwin: Darwin CoreAudio
1455 alsa: ALSA pcm device
1456 alib: HPUX network audio (Alib)
1457 nas: NAS - Network Audio System
1459 esd: EsounD - Enlightened Sound Daemon
1460 portaudio: PortAudio
1461 npipe: Named Pipe(windows)
1465 flac: FLAC / OggFLAC
1467 gogo: MP3 GOGO (Only Windows is supported)
1468 --disable-alsatest Do not try to compile and run a test Alsa program
1469 --disable-esdtest Do not try to compile and run a test ESD program
1470 --disable-aotest Do not try to compile and run a test ao program
1471 --disable-oggtest Do not try to compile and run a test Ogg program
1472 --disable-vorbistest Do not try to compile and run a test Vorbis program
1473 --disable-libFLACtest Do not try to compile and run a test libFLAC program
1474 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
1475 --enable-interface=interface_list
1476 Comma separated interface list
1477 --enable-dynamic Enable dynamic link interface (default is no)
1478 --enable-dynamic=dynamic_list
1479 Comma separated dynamic interface list
1480 --enable-ncurses Enable ncurses interface (default is no)
1481 --enable-slang Enable slang interface (default is no)
1482 --enable-motif Enable motif interface (default is no)
1483 --enable-tcltk Enable tcltk interface (default is no)
1484 --enable-emacs Enable emacs interface (default is no)
1485 --enable-vt100 Enable VT100 interface (default is no)
1486 --enable-xaw Enable athena interface (default is no)
1487 --enable-xskin Enable X skin interface (default is no)
1488 --enable-gtk Enable GTK+ interface (default is no)
1489 --disable-gtktest do not try to compile and run a test GTK+ program
1490 --disable-gtktest Do not try to compile and run a test GTK program
1491 --enable-server Enable server interface (default is no)
1492 --enable-alsaseq Enable ALSA sequencer server interface
1494 --enable-winsyn Enable Windows Synthesizer interface
1496 --enable-portmidisyn Enable PortMIDI Synthesizer interface
1498 --enable-npsyn Enable Windows Named Pipe Synthesizer interface
1500 --enable-winsyng Enable Windows GUI Synthesizer interface
1502 --enable-w32gui Enable Windows GUI interface (default is no)
1503 --enable-ump UMP configuration (default is no)
1504 --enable-windrv Windows Driver interface(requires winsyn)
1505 --enable-offix Enable offix support (default is no)
1506 --enable-network Enable network support (default is no)
1507 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
1508 --enable-spline=method Specify spline method.
1509 one of no,linear,cubic,lagrange,newton,gauss
1511 --enable-wrd Enable WRD interface for X (default is no)
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-includes=DIR Specify include directories (colon separated)
1517 --with-libraries=DIR Specify library directories (colon separated)
1518 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
1519 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
1520 --with-lispdir Override the default lisp directory
1521 --with-elf create ELF shared object instead of AOUT
1522 --with-x use the X Window System
1523 --with-tcl-includes=DIR Tcl include file path
1524 --with-tcl-libs=DIR Tcl library file path
1525 --with-tk-includes=DIR Tk include file path
1526 --with-tk-libs=DIR Tk library file path
1527 --with-offix-includes=DIR Offix include file path
1528 --with-offix-libs=DIR Offix include file path
1529 --with-nas-library=library NAS absolute library path(Don't use -laudio)
1530 --with-nas-includes=DIR NAS include files are in dir
1531 --with-default-output=<mode> Specify default output mode (optional):
1532 (default|alsa|alib|arts|nas|
1533 esd|wav|au|aiff|list|vorbis|flac|speex|
1534 gogo|portaudio|npipe|jack|ao)
1535 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1536 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1537 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1538 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1539 --with-ao=PFX Prefix where libao is installed (optional)
1540 --with-ao-libraries=DIR Directory where libao library is installed (optional)
1541 --with-ao-includes=DIR Directory where libao header files are installed (optional)
1542 --with-ogg=PFX Prefix where libogg is installed (optional)
1543 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
1544 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
1545 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
1546 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
1547 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
1548 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
1549 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
1550 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
1551 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
1552 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
1553 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
1554 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1555 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1566 XMKMF Path to xmkmf, Makefile generator for X Window System
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <root@mput.dip.jp>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 TiMidity++ configure 2.13.2
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by TiMidity++ $as_me 2.13.2, which was
1647 generated by GNU Autoconf 2.61. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 *) $as_unset $ac_var ;;
1780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781 *${as_nl}ac_space=\ *)
1783 "s/'\''/'\''\\\\'\'''\''/g;
1784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1800 for ac_var in $ac_subst_vars
1802 eval ac_val=\$$ac_var
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 echo "$ac_var='\''$ac_val'\''"
1810 if test -n "$ac_subst_files"; then
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1817 for ac_var in $ac_subst_files
1819 eval ac_val=\$$ac_var
1821 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 echo "$ac_var='\''$ac_val'\''"
1828 if test -s confdefs.h; then
1838 test "$ac_signal" != 0 &&
1839 echo "$as_me: caught signal $ac_signal"
1840 echo "$as_me: exit $exit_status"
1842 rm -f core *.core core.conftest.* &&
1843 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 for ac_signal in 1 2 13 15; do
1847 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1854 # Predefined preprocessor variables.
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 set x "$ac_default_prefix/share/config.site" \
1889 "$ac_default_prefix/etc/config.site"
1894 if test -r "$ac_site_file"; then
1895 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1914 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1942 echo "$as_me: former value: $ac_old_val" >&2;}
1943 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1944 echo "$as_me: current value: $ac_new_val" >&2;}
1945 ac_cache_corrupted=:
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965 { (exit 1); exit 1; }; }
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 for ac_dir in autoconf "$srcdir"/autoconf; do
2001 if test -f "$ac_dir/install-sh"; then
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 elif test -f "$ac_dir/install.sh"; then
2007 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 elif test -f "$ac_dir/shtool"; then
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2015 if test -z "$ac_aux_dir"; then
2016 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2017 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2018 { (exit 1); exit 1; }; }
2021 # These three variables are undocumented and unsupported,
2022 # and are intended to be withdrawn in a future Autoconf release.
2023 # They can cause serious problems if a builder's source tree is in a directory
2024 # whose full name contains unusual characters.
2025 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2026 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2027 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2030 # Make sure we can run config.sub.
2031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2032 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2033 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2034 { (exit 1); exit 1; }; }
2036 { echo "$as_me:$LINENO: checking build system type" >&5
2037 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2038 if test "${ac_cv_build+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 ac_build_alias=$build_alias
2042 test "x$ac_build_alias" = x &&
2043 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2044 test "x$ac_build_alias" = x &&
2045 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2046 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2047 { (exit 1); exit 1; }; }
2048 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2049 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2051 { (exit 1); exit 1; }; }
2054 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2055 echo "${ECHO_T}$ac_cv_build" >&6; }
2056 case $ac_cv_build in
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2059 echo "$as_me: error: invalid value of canonical build" >&2;}
2060 { (exit 1); exit 1; }; };;
2063 ac_save_IFS=$IFS; IFS='-'
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2076 { echo "$as_me:$LINENO: checking host system type" >&5
2077 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_host+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test "x$host_alias" = x; then
2082 ac_cv_host=$ac_cv_build
2084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2085 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2092 echo "${ECHO_T}$ac_cv_host" >&6; }
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2096 echo "$as_me: error: invalid value of canonical host" >&2;}
2097 { (exit 1); exit 1; }; };;
2100 ac_save_IFS=$IFS; IFS='-'
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2113 { echo "$as_me:$LINENO: checking target system type" >&5
2114 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_target+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test "x$target_alias" = x; then
2119 ac_cv_target=$ac_cv_host
2121 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2122 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2129 echo "${ECHO_T}$ac_cv_target" >&6; }
2130 case $ac_cv_target in
2132 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2133 echo "$as_me: error: invalid value of canonical target" >&2;}
2134 { (exit 1); exit 1; }; };;
2136 target=$ac_cv_target
2137 ac_save_IFS=$IFS; IFS='-'
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2150 # The aliases save the names the user supplied, while $host etc.
2151 # will get canonicalized.
2152 test -n "$target_alias" &&
2153 test "$program_prefix$program_suffix$program_transform_name" = \
2155 program_prefix=${target_alias}-
2156 am__api_version="1.7"
2157 # Find a good install program. We prefer a C program (faster),
2158 # so one script is as good as another. But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2171 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 # Account for people who put trailing slashes in PATH elements.
2183 ./ | .// | /cC/* | \
2184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2185 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2188 # OSF1 and SCO ODT 3.0 have their own names for install.
2189 # Don't use installbsd from OSF since it installs stuff as root
2191 for ac_prog in ginstall scoinst install; do
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2194 if test $ac_prog = install &&
2195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196 # AIX install. It has an incompatible calling convention.
2198 elif test $ac_prog = install &&
2199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200 # program-specific install script used by HP pwplus--don't use.
2203 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2216 if test "${ac_cv_path_install+set}" = set; then
2217 INSTALL=$ac_cv_path_install
2219 # As a last resort, use the slow shell script. Don't cache a
2220 # value for INSTALL within a source directory, because that will
2221 # break other packages using the cache if that directory is
2222 # removed, or if the value is a relative name.
2223 INSTALL=$ac_install_sh
2226 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2227 echo "${ECHO_T}$INSTALL" >&6; }
2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230 # It thinks the first close brace ends the variable substitution.
2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2237 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2238 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2241 echo timestamp > conftest.file
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments. Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2248 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2249 if test "$*" = "X"; then
2251 set X `ls -t $srcdir/configure conftest.file`
2254 if test "$*" != "X $srcdir/configure conftest.file" \
2255 && test "$*" != "X conftest.file $srcdir/configure"; then
2257 # If neither matched, then we have a broken ls. This can happen
2258 # if, for instance, CONFIG_SHELL is bash and it inherits a
2259 # broken ls alias from the environment. This has actually
2260 # happened. Such a system could not be considered "sane".
2261 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2262 alias in your environment" >&5
2263 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" >&2;}
2265 { (exit 1); exit 1; }; }
2268 test "$2" = conftest.file
2274 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2275 Check your system clock" >&5
2276 echo "$as_me: error: newly created file is older than distributed files!
2277 Check your system clock" >&2;}
2278 { (exit 1); exit 1; }; }
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2282 test "$program_prefix" != NONE &&
2283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284 # Use a double $ so make ignores it.
2285 test "$program_suffix" != NONE &&
2286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287 # Double any \ or $. echo might interpret backslashes.
2288 # By default was `s,x,x', remove it if useless.
2289 cat <<\_ACEOF >conftest.sed
2290 s/[\\$]/&&/g;s/;s,x,x,$//
2292 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2296 # expand $ac_aux_dir to an absolute path
2297 am_aux_dir=`cd $ac_aux_dir && pwd`
2299 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302 am_missing_run="$MISSING --run "
2305 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2309 for ac_prog in gawk mawk nawk awk
2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_AWK+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$AWK"; then
2319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_AWK="$ac_prog"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test -n "$AWK"; then
2340 { echo "$as_me:$LINENO: result: $AWK" >&5
2341 echo "${ECHO_T}$AWK" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2348 test -n "$AWK" && break
2351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.make <<\_ACEOF
2360 @echo '@@@%%%=$(MAKE)=@@@%%%'
2362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2365 eval ac_cv_prog_make_${ac_make}_set=yes;;
2367 eval ac_cv_prog_make_${ac_make}_set=no;;
2371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2372 { echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 SET_MAKE="MAKE=${MAKE-make}"
2381 rm -rf .tst 2>/dev/null
2382 mkdir .tst 2>/dev/null
2383 if test -d .tst; then
2388 rmdir .tst 2>/dev/null
2390 # test to see if srcdir already configured
2391 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2392 test -f $srcdir/config.status; then
2393 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2394 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2395 { (exit 1); exit 1; }; }
2398 # test whether we have cygpath
2399 if test -z "$CYGPATH_W"; then
2400 if (cygpath --version) >/dev/null 2>/dev/null; then
2401 CYGPATH_W='cygpath -w'
2408 # Define the identity of the package.
2409 PACKAGE='TiMidity++'
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE "$PACKAGE"
2418 cat >>confdefs.h <<_ACEOF
2419 #define VERSION "$VERSION"
2422 # Some tools Automake needs.
2424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2439 AMTAR=${AMTAR-"${am_missing_run}tar"}
2441 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2443 # Installed binaries are usually stripped using `strip' when the user
2444 # run `make install-strip'. However `strip' might not be the right
2445 # tool to use in cross-compilation environments, therefore Automake
2446 # will honor the `STRIP' environment variable to overrule this program.
2447 if test "$cross_compiling" != no; then
2448 if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}strip; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_STRIP+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$STRIP"; then
2457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 STRIP=$ac_cv_prog_STRIP
2477 if test -n "$STRIP"; then
2478 { echo "$as_me:$LINENO: result: $STRIP" >&5
2479 echo "${ECHO_T}$STRIP" >&6; }
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2487 if test -z "$ac_cv_prog_STRIP"; then
2489 # Extract the first word of "strip", so it can be a program name with args.
2490 set dummy strip; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$ac_ct_STRIP"; then
2497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_ac_ct_STRIP="strip"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2517 if test -n "$ac_ct_STRIP"; then
2518 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2519 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2525 if test "x$ac_ct_STRIP" = x; then
2528 case $cross_compiling:$ac_tool_warned in
2530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet. If you think this
2532 configuration is useful to you, please write to autoconf@gnu.org." >&5
2533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet. If you think this
2535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2536 ac_tool_warned=yes ;;
2541 STRIP="$ac_cv_prog_STRIP"
2545 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2547 # We need awk for the "check" target. The system "awk" is bad on
2553 ac_config_headers="$ac_config_headers config.h interface.h"
2555 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2556 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2557 # Check whether --enable-maintainer-mode was given.
2558 if test "${enable_maintainer_mode+set}" = set; then
2559 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2561 USE_MAINTAINER_MODE=no
2564 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2565 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2568 if test $USE_MAINTAINER_MODE = yes; then
2569 MAINTAINER_MODE_TRUE=
2570 MAINTAINER_MODE_FALSE='#'
2572 MAINTAINER_MODE_TRUE='#'
2573 MAINTAINER_MODE_FALSE=
2576 MAINT=$MAINTAINER_MODE_TRUE
2580 SHELL=${CONFIG_SHELL-"/bin/sh"}
2583 { echo "$as_me:$LINENO: checking whether grep returns status" >&5
2584 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6; }
2585 echo "grimblepritz" >grimble
2586 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2587 contains="./contains"
2588 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2591 contains="./contains"
2595 grep) { echo "$as_me:$LINENO: result: yes" >&5
2596 echo "${ECHO_T}yes" >&6; }
2599 { echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
2600 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6; }
2601 cat >./contains <<'EOSS'
2602 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2604 chmod +x "./contains"
2609 # Check for compiler options -- such as debug flags.
2611 { echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2612 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
2613 # Check whether --enable-debug was given.
2614 if test "${enable_debug+set}" = set; then
2615 enableval=$enable_debug; timidity_cv_debug="yes"
2617 timidity_cv_debug="no"
2620 if test "x$timidity_cv_debug" = "xyes"; then
2622 cat >>confdefs.h <<\_ACEOF
2626 CFLAGS=${CFLAGS-"-g"}
2628 if test "x$timidity_cv_debug" = "xno"; then
2630 cat >>confdefs.h <<\_ACEOF
2635 { echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2636 echo "${ECHO_T}$timidity_cv_debug" >&6; }
2638 if test "x$CFLAGS" = "x"; then
2642 if test "x$with_x" = x; then
2648 # Checking gcc environment
2649 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2650 LDFLAGS="$LDFLAGS -L${i}"
2652 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2653 CPPFLAGS="$CPPFLAGS -I${i}"
2656 # add $prefix if specified.
2657 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2658 LDFLAGS="-L$prefix/lib $LDFLAGS"
2659 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2660 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2664 # Check whether --with-includes was given.
2665 if test "${with_includes+set}" = set; then
2666 withval=$with_includes; j=' '
2667 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2670 CPPFLAGS="$j$CPPFLAGS"
2676 # Check whether --with-libraries was given.
2677 if test "${with_libraries+set}" = set; then
2678 withval=$with_libraries; j=' '
2679 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2682 LDFLAGS="$j$LDFLAGS"
2689 # Check whether --with-default-path was given.
2690 if test "${with_default_path+set}" = set; then
2691 withval=$with_default_path; pkgdatadir=$withval
2694 if test "x$prefix" != "xNONE"; then
2695 pkgdatadir='${prefix}/share/timidity'
2697 pkgdatadir='/usr/local/share/timidity'
2702 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2704 cat >>confdefs.h <<_ACEOF
2705 #define DEFAULT_PATH "$tmpdefpath"
2709 cat >>confdefs.h <<\_ACEOF
2710 #define PKGDATADIR DEFAULT_PATH
2715 # Check whether --with-module-dir was given.
2716 if test "${with_module_dir+set}" = set; then
2717 withval=$with_module_dir; pkglibdir=$withval
2720 if test "x$prefix" != "xNONE"; then
2721 pkglibdir='${prefix}/lib/timidity'
2723 pkglibdir='/usr/local/lib/timidity'
2728 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2730 cat >>confdefs.h <<_ACEOF
2731 #define PKGLIBDIR "$tmplibdir"
2736 # Checks for programs.
2738 # Check whether --with-lispdir was given.
2739 if test "${with_lispdir+set}" = set; then
2740 withval=$with_lispdir; lispdir="$withval"
2741 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2742 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2743 { echo "$as_me:$LINENO: result: $lispdir" >&5
2744 echo "${ECHO_T}$lispdir" >&6; }
2747 # If set to t, that means we are running in a shell under Emacs.
2748 # If you have an Emacs named "t", then use the full path.
2749 test x"$EMACS" = xt && EMACS=
2750 for ac_prog in emacs xemacs
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_EMACS+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$EMACS"; then
2760 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_EMACS="$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 EMACS=$ac_cv_prog_EMACS
2780 if test -n "$EMACS"; then
2781 { echo "$as_me:$LINENO: result: $EMACS" >&5
2782 echo "${ECHO_T}$EMACS" >&6; }
2784 { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2789 test -n "$EMACS" && break
2791 test -n "$EMACS" || EMACS="no"
2793 if test $EMACS != "no"; then
2794 if test x${lispdir+set} != xset; then
2795 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2796 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2797 if test "${am_cv_lispdir+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2801 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2802 # which is non-obvious for non-emacs users.
2803 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2804 # emacsen earlier and avoid running this altogether.
2805 { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2806 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }
2810 am_cv_lispdir=`sed -n \
2812 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2813 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2816 if test -z "$am_cv_lispdir"; then
2817 am_cv_lispdir='${datadir}/emacs/site-lisp'
2821 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2822 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2823 lispdir="$am_cv_lispdir"
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6; }
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2916 case $cross_compiling:$ac_tool_warned in
2918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&5
2921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2922 whose name does not start with the host triplet. If you think this
2923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2924 ac_tool_warned=yes ;;
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}cc; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="${ac_tool_prefix}cc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CC"; then
2963 { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2973 if test -z "$CC"; then
2974 # Extract the first word of "cc", so it can be a program name with args.
2975 set dummy cc; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2993 ac_prog_rejected=yes
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 if test -n "$CC"; then
3020 { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3023 { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 for ac_prog in cl.exe
3033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6; }
3065 { echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6; }
3070 test -n "$CC" && break
3073 if test -z "$CC"; then
3075 for ac_prog in cl.exe
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC="$ac_prog"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3107 echo "${ECHO_T}$ac_ct_CC" >&6; }
3109 { echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6; }
3114 test -n "$ac_ct_CC" && break
3117 if test "x$ac_ct_CC" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3123 whose name does not start with the host triplet. If you think this
3124 configuration is useful to you, please write to autoconf@gnu.org." >&5
3125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3126 whose name does not start with the host triplet. If you think this
3127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3128 ac_tool_warned=yes ;;
3137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3143 # Provide some information about the compiler.
3144 echo "$as_me:$LINENO: checking for C compiler version" >&5
3145 ac_compiler=`set X $ac_compile; echo $2`
3146 { (ac_try="$ac_compiler --version >&5"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compiler --version >&5") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }
3156 { (ac_try="$ac_compiler -v >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler -v >&5") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166 { (ac_try="$ac_compiler -V >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler -V >&5") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3192 ac_clean_files_save=$ac_clean_files
3193 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3194 # Try to create an executable without -o first, disregard a.out.
3195 # It will help us diagnose broken compilers, and finding out an intuition
3197 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3198 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3199 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201 # List of possible output files, starting from the most likely.
3202 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3203 # only as a last resort. b.out is created by i960 compilers.
3204 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3206 # The IRIX 6 linker writes into existing files which may not be
3207 # executable, retaining their permissions. Remove them first so a
3208 # subsequent execution test works.
3210 for ac_file in $ac_files
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3214 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 if { (ac_try="$ac_link_default"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_link_default") 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; then
3229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3234 for ac_file in $ac_files ''
3236 test -f "$ac_file" || continue
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3241 # We found the default executable, but exeext='' is most
3245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3265 { echo "$as_me:$LINENO: result: $ac_file" >&5
3266 echo "${ECHO_T}$ac_file" >&6; }
3267 if test -z "$ac_file"; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C compiler cannot create executables
3274 See \`config.log' for more details." >&2;}
3275 { (exit 77); exit 77; }; }
3278 ac_exeext=$ac_cv_exeext
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3283 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3284 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3285 # If not cross compiling, check that we can run a simple program.
3286 if test "$cross_compiling" != yes; then
3287 if { ac_try='./$ac_file'
3288 { (case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_try") 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3299 if test "$cross_compiling" = maybe; then
3302 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: cannot run C compiled programs.
3306 If you meant to cross compile, use \`--host'.
3307 See \`config.log' for more details." >&2;}
3308 { (exit 1); exit 1; }; }
3312 { echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6; }
3315 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 # Check that the compiler produces executables we can run. If not, either
3318 # the compiler is broken, or we cross compile.
3319 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3320 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3321 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3322 echo "${ECHO_T}$cross_compiling" >&6; }
3324 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3325 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3326 if { (ac_try="$ac_link"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_link") 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; then
3336 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3338 # work properly (i.e., refer to `conftest.exe'), while it won't with
3340 for ac_file in conftest.exe conftest conftest.*; do
3341 test -f "$ac_file" || continue
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&5
3352 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3357 rm -f conftest$ac_cv_exeext
3358 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3359 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3364 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3365 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3366 if test "${ac_cv_objext+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3384 rm -f conftest.o conftest.obj
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; then
3395 for ac_file in conftest.o conftest.obj conftest.*; do
3396 test -f "$ac_file" || continue;
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&5
3409 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3417 echo "${ECHO_T}$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3420 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3421 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3422 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3472 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3473 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3474 GCC=`test $ac_compiler_gnu = yes && echo yes`
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3478 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_cc_g+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 ac_save_c_werror_flag=$ac_c_werror_flag
3483 ac_c_werror_flag=yes
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compile") 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } && {
3553 test -z "$ac_c_werror_flag" ||
3554 test ! -s conftest.err
3555 } && test -s conftest.$ac_objext; then
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3578 rm -f conftest.$ac_objext
3579 if { (ac_try="$ac_compile"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compile") 2>conftest.er1
3587 grep -v '^ *+' conftest.er1 >conftest.err
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } && {
3592 test -z "$ac_c_werror_flag" ||
3593 test ! -s conftest.err
3594 } && test -s conftest.$ac_objext; then
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3623 if test "$GCC" = yes; then
3629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3631 if test "${ac_cv_prog_cc_c89+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 ac_cv_prog_cc_c89=no
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3644 #include <sys/types.h>
3645 #include <sys/stat.h>
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3660 s = g (p, va_arg (v,int));
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
3668 as 'x'. The following induces an error, until -std is added to get
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
3671 that's true only with -std. */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3696 CC="$ac_save_CC $ac_arg"
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 ac_cv_prog_cc_c89=$ac_arg
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext
3723 test "x$ac_cv_prog_cc_c89" != "xno" && break
3725 rm -f conftest.$ac_ext
3730 case "x$ac_cv_prog_cc_c89" in
3732 { echo "$as_me:$LINENO: result: none needed" >&5
3733 echo "${ECHO_T}none needed" >&6; } ;;
3735 { echo "$as_me:$LINENO: result: unsupported" >&5
3736 echo "${ECHO_T}unsupported" >&6; } ;;
3738 CC="$CC $ac_cv_prog_cc_c89"
3739 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3740 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 DEPDIR="${am__leading_dot}deps"
3751 ac_config_commands="$ac_config_commands depfiles"
3754 am_make=${MAKE-make}
3755 cat > confinc << 'END'
3760 # If we don't find an include directive, just comment out the code.
3761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3766 # First try GNU make style include.
3767 echo "include confinc" > confmf
3768 # We grep out `Entering directory' and `Leaving directory'
3769 # messages which can occur if `w' ends up in MAKEFLAGS.
3770 # In particular we don't look at `^make:' because GNU make might
3771 # be invoked under some other name (usually "gmake"), in which
3772 # case it prints its new name instead of `make'.
3773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3778 # Now try BSD make style include.
3779 if test "$am__include" = "#"; then
3780 echo '.include "confinc"' > confmf
3781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3782 am__include=.include
3789 { echo "$as_me:$LINENO: result: $_am_result" >&5
3790 echo "${ECHO_T}$_am_result" >&6; }
3791 rm -f confinc confmf
3793 # Check whether --enable-dependency-tracking was given.
3794 if test "${enable_dependency_tracking+set}" = set; then
3795 enableval=$enable_dependency_tracking;
3798 if test "x$enable_dependency_tracking" != xno; then
3799 am_depcomp="$ac_aux_dir/depcomp"
3804 if test "x$enable_dependency_tracking" != xno; then
3815 depcc="$CC" am_compiler_list=
3817 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823 # We make a subdir and do the tests there. Otherwise we can end up
3824 # making bogus files that we don't know about and never remove. For
3825 # instance it was reported that on HP-UX the gcc test will end up
3826 # making a dummy file named `D' -- because `-MD' means `put the output
3829 # Copy depcomp to subdir because otherwise we won't find it if we're
3830 # using a relative directory.
3831 cp "$am_depcomp" conftest.dir
3833 # We will build objects and dependencies in a subdirectory because
3834 # it helps to detect inapplicable dependency modes. For instance
3835 # both Tru64's cc and ICC support -MD to output dependencies as a
3836 # side effect of compilation, but ICC will put the dependencies in
3837 # the current directory while Tru64 will put them in the object
3841 am_cv_CC_dependencies_compiler_type=none
3842 if test "$am_compiler_list" = ""; then
3843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 for depmode in $am_compiler_list; do
3846 # Setup a source with many dependencies, because some compilers
3847 # like to wrap large dependency lists on column 80 (with \), and
3848 # we should not choose a depcomp mode which is confused by this.
3850 # We need to recreate these files for each test, as the compiler may
3851 # overwrite some of them when testing with obscure command lines.
3852 # This happens at least with the AIX C compiler.
3854 for i in 1 2 3 4 5 6; do
3855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862 # after this tag, mechanisms are not by side-effect, so they'll
3863 # only be used when explicitly requested
3864 if test "x$enable_dependency_tracking" = xyes; then
3872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873 # mode. It turns out that the SunPro C++ compiler does not properly
3874 # handle `-M -o', and we need to detect this.
3875 if depmode=$depmode \
3876 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3879 >/dev/null 2>conftest.err &&
3880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3883 # icc doesn't choke on unknown options, it will just issue warnings
3884 # (even with -Werror). So we grep stderr for any message
3885 # that says an option was ignored.
3886 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3887 am_cv_CC_dependencies_compiler_type=$depmode
3896 am_cv_CC_dependencies_compiler_type=none
3900 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907 test "x$enable_dependency_tracking" != xno \
3908 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910 am__fastdepCC_FALSE='#'
3912 am__fastdepCC_TRUE='#'
3913 am__fastdepCC_FALSE=
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3929 if test -z "$CPP"; then
3930 if test "${ac_cv_prog_CPP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3952 # include <limits.h>
3954 # include <assert.h>
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null && {
3971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Broken: fails on valid input.
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4011 # Broken: success on invalid input.
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4022 rm -f conftest.err conftest.$ac_ext
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4039 { echo "$as_me:$LINENO: result: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4042 for ac_c_preproc_warn_flag in '' yes
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error" is here to catch this case.
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4057 # include <limits.h>
4059 # include <assert.h>
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Broken: fails on valid input.
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4116 # Broken: success on invalid input.
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 # Passes both tests.
4127 rm -f conftest.err conftest.$ac_ext
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&2;}
4139 { (exit 1); exit 1; }; }
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in grep ggrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 ac_count=`expr $ac_count + 1`
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP="$ac_path_GREP"
4191 ac_path_GREP_max=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 $ac_path_GREP_found && break 3
4210 GREP="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214 { (exit 1); exit 1; }; }
4218 ac_cv_path_GREP=$GREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4236 # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy egrep; ac_prog_name=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4260 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 ac_count=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282 $ac_path_EGREP_found && break 3
4292 EGREP="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296 { (exit 1); exit 1; }; }
4300 ac_cv_path_EGREP=$EGREP
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4311 if test $ac_cv_c_compiler_gnu = yes; then
4312 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 ac_pattern="Autoconf.*'x'"
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4329 ac_cv_prog_gcc_traditional=yes
4331 ac_cv_prog_gcc_traditional=no
4336 if test $ac_cv_prog_gcc_traditional = no; then
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4348 ac_cv_prog_gcc_traditional=yes
4354 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4355 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4356 if test $ac_cv_prog_gcc_traditional = yes; then
4357 CC="$CC -traditional"
4361 # Find a good install program. We prefer a C program (faster),
4362 # so one script is as good as another. But avoid the broken or
4363 # incompatible versions:
4364 # SysV /etc/install, /usr/sbin/install
4365 # SunOS /usr/etc/install
4366 # IRIX /sbin/install
4368 # AmigaOS /C/install, which installs bootblocks on floppy discs
4369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4372 # OS/2's system install, which has a completely different semantic
4373 # ./install, which can be erroneously created by make from ./install.sh.
4374 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4376 if test -z "$INSTALL"; then
4377 if test "${ac_cv_path_install+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 # Account for people who put trailing slashes in PATH elements.
4387 ./ | .// | /cC/* | \
4388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4389 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4392 # OSF1 and SCO ODT 3.0 have their own names for install.
4393 # Don't use installbsd from OSF since it installs stuff as root
4395 for ac_prog in ginstall scoinst install; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4398 if test $ac_prog = install &&
4399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4400 # AIX install. It has an incompatible calling convention.
4402 elif test $ac_prog = install &&
4403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4404 # program-specific install script used by HP pwplus--don't use.
4407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4420 if test "${ac_cv_path_install+set}" = set; then
4421 INSTALL=$ac_cv_path_install
4423 # As a last resort, use the slow shell script. Don't cache a
4424 # value for INSTALL within a source directory, because that will
4425 # break other packages using the cache if that directory is
4426 # removed, or if the value is a relative name.
4427 INSTALL=$ac_install_sh
4430 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4431 echo "${ECHO_T}$INSTALL" >&6; }
4433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434 # It thinks the first close brace ends the variable substitution.
4435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4441 for ac_prog in gawk mawk nawk awk
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_AWK+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -n "$AWK"; then
4451 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_AWK="$ac_prog"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 if test -n "$AWK"; then
4472 { echo "$as_me:$LINENO: result: $AWK" >&5
4473 echo "${ECHO_T}$AWK" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 test -n "$AWK" && break
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_RANLIB+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if test -n "$RANLIB"; then
4492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 RANLIB=$ac_cv_prog_RANLIB
4512 if test -n "$RANLIB"; then
4513 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4514 echo "${ECHO_T}$RANLIB" >&6; }
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4522 if test -z "$ac_cv_prog_RANLIB"; then
4523 ac_ct_RANLIB=$RANLIB
4524 # Extract the first word of "ranlib", so it can be a program name with args.
4525 set dummy ranlib; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$ac_ct_RANLIB"; then
4532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_ac_ct_RANLIB="ranlib"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4552 if test -n "$ac_ct_RANLIB"; then
4553 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4554 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4560 if test "x$ac_ct_RANLIB" = x; then
4563 case $cross_compiling:$ac_tool_warned in
4565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&5
4568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4569 whose name does not start with the host triplet. If you think this
4570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4571 ac_tool_warned=yes ;;
4573 RANLIB=$ac_ct_RANLIB
4576 RANLIB="$ac_cv_prog_RANLIB"
4579 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4580 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4582 if test "$LN_S" = "ln -s"; then
4583 { echo "$as_me:$LINENO: result: yes" >&5
4584 echo "${ECHO_T}yes" >&6; }
4586 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4587 echo "${ECHO_T}no, using $LN_S" >&6; }
4590 { echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4591 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6; }
4592 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4593 if { as_var=timidity_cv_ccoption_$ac_ccoption; eval "test \"\${$as_var+set}\" = set"; }; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat > conftest.$ac_ext <<EOF
4597 int main() {return 0;}
4599 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4600 if test -s conftest.out; then
4601 eval "timidity_cv_ccoption_$ac_ccoption=no"
4603 eval "timidity_cv_ccoption_$ac_ccoption=yes"
4606 eval "timidity_cv_ccoption_$ac_ccoption=no"
4611 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4612 { echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4622 if test "x$NOCFLAGS" = "xyes"; then
4623 if test "x$GCC" = "xyes"; then
4630 # Checks for target dependencies
4633 # Check whether --with-elf was given.
4634 if test "${with_elf+set}" = set; then
4635 withval=$with_elf; ELFFORMAT=$withval
4642 # [ --with-simd create SIMD friendly binary (default is no) ],
4643 # [ SIMD=$withval ], [ SIMD="no" ])
4648 test -n "$SHLD" || SHLD="ld -b"
4652 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4653 test -n "$SHLD" || SHLD="cc -shared -all"
4657 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4662 test -n "$SHLD" || SHLD="ld -Bshareable"
4666 if test "$ELFFORMAT" = yes; then
4667 test -n "$SHLD" || SHLD="ld -Bshareable"
4670 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4671 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4677 # EXTRALIBS="$EXTRALIBS -lxpg4"
4678 # test -n "$SHLD" || SHLD="ld -Bshareable"
4682 *-*-cygwin*|*-*-mingw*)
4683 EXTRADEFS="-D__W32__"
4687 # test -n "$SHLD" || SHLD="tlink32 -Tpd"
4688 test -n "$SHLD" || SHLD="BCC32 -WD"
4690 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4691 BORLANDC_START='C0X32.OBJ'
4692 CFLAGS="$CFLAGS -tWM -VM"
4693 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4696 test -n "$SHLD" || SHLD="polink -DLL"
4699 *" -MT "*) NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crt.lib -defaultlib:crtmt.lib" ;;
4700 *" -MD "*) NODEF="-nodefaultlib:crtmt.lib -nodefaultlib:crt.lib -defaultlib:pocrt.lib" ;;
4701 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crtmt.lib -defaultlib:crt.lib" ;;
4703 POCC_LDFLAGS="$NODEF winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib oldnames.lib"
4704 CFLAGS="$CFLAGS -Ze -D__POCC__OLDNAMES"
4705 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4708 test -n "$SHLD" || SHLD="dmc -WD"
4710 DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4711 CFLAGS="$CFLAGS -mn -j0"
4713 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4715 "xwcc386_w.sh "*|xwcc386)
4717 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4720 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4723 test -n "$SHLD" || SHLD="link -dll"
4726 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4727 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4728 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4729 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4730 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;;
4732 VCPP_LDFLAGS="-nologo -incremental:no $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4733 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2"
4734 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c"
4736 "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4737 *) test -n "$SHLD" || SHLD="unknown" ;;
4741 lib_user32_test=-luser32
4745 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4749 EXTRADEFS="-DSOLARIS"
4750 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4754 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4758 if test "x$SIMD" = "xyes"; then
4760 cat >>confdefs.h <<\_ACEOF
4761 #define USE_ALTIVEC 1
4764 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4765 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4768 cat >>confdefs.h <<\_ACEOF
4769 #define USE_ALTIVEC 0
4773 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4774 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4775 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4779 test -n "$SHLD" || \
4780 if test "x$GCC" = xyes; then
4783 SHLD="ld -Bdynamic -G"
4790 # Checks for libraries.
4792 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4793 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
4794 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 ac_check_lib_save_LIBS=$LIBS
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4806 /* Override any GCC internal prototype to avoid an error.
4807 Use char because int might match the return type of a GCC
4808 builtin and then its argument prototype would still apply. */
4821 rm -f conftest.$ac_objext conftest$ac_exeext
4822 if { (ac_try="$ac_link"
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_link") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && {
4835 test -z "$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 } && test -s conftest$ac_exeext &&
4838 $as_test_x conftest$ac_exeext; then
4839 ac_cv_lib_m_sqrt=yes
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4848 conftest$ac_exeext conftest.$ac_ext
4849 LIBS=$ac_check_lib_save_LIBS
4851 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4852 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
4853 if test $ac_cv_lib_m_sqrt = yes; then
4854 cat >>confdefs.h <<_ACEOF
4863 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4864 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4865 if test "${ac_cv_lib_socket_socket+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 ac_check_lib_save_LIBS=$LIBS
4869 LIBS="-lsocket $LIBS"
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 /* Override any GCC internal prototype to avoid an error.
4878 Use char because int might match the return type of a GCC
4879 builtin and then its argument prototype would still apply. */
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest$ac_exeext &&
4909 $as_test_x conftest$ac_exeext; then
4910 ac_cv_lib_socket_socket=yes
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 ac_cv_lib_socket_socket=no
4918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4919 conftest$ac_exeext conftest.$ac_ext
4920 LIBS=$ac_check_lib_save_LIBS
4922 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4923 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4924 if test $ac_cv_lib_socket_socket = yes; then
4925 cat >>confdefs.h <<_ACEOF
4926 #define HAVE_LIBSOCKET 1
4929 LIBS="-lsocket $LIBS"
4933 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_check_lib_save_LIBS=$LIBS
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 /* Override any GCC internal prototype to avoid an error.
4948 Use char because int might match the return type of a GCC
4949 builtin and then its argument prototype would still apply. */
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest$ac_exeext &&
4979 $as_test_x conftest$ac_exeext; then
4980 ac_cv_lib_dl_dlopen=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ac_cv_lib_dl_dlopen=no
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989 conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4993 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
4994 if test $ac_cv_lib_dl_dlopen = yes; then
4998 { echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4999 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6; }
5000 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_check_lib_save_LIBS=$LIBS
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5018 char NSLinkModule ();
5022 return NSLinkModule ();
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (ac_try="$ac_link"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_link") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest$ac_exeext &&
5044 $as_test_x conftest$ac_exeext; then
5045 ac_cv_lib_objc_NSLinkModule=yes
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_cv_lib_objc_NSLinkModule=no
5053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054 conftest$ac_exeext conftest.$ac_ext
5055 LIBS=$ac_check_lib_save_LIBS
5057 { echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
5058 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6; }
5059 if test $ac_cv_lib_objc_NSLinkModule = yes; then
5062 # Mac OS X need this.
5063 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
5065 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5066 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
5067 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 ac_check_lib_save_LIBS=$LIBS
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 /* Override any GCC internal prototype to avoid an error.
5080 Use char because int might match the return type of a GCC
5081 builtin and then its argument prototype would still apply. */
5089 return setlocale ();
5094 rm -f conftest.$ac_objext conftest$ac_exeext
5095 if { (ac_try="$ac_link"
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_link") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest$ac_exeext &&
5111 $as_test_x conftest$ac_exeext; then
5112 ac_cv_lib_xpg4_setlocale=yes
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 ac_cv_lib_xpg4_setlocale=no
5120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5121 conftest$ac_exeext conftest.$ac_ext
5122 LIBS=$ac_check_lib_save_LIBS
5124 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5125 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
5126 if test $ac_cv_lib_xpg4_setlocale = yes; then
5127 cat >>confdefs.h <<_ACEOF
5128 #define HAVE_LIBXPG4 1
5134 # Mac OS X (and maybe NetBSD) need this.
5137 for ac_func in gethostbyname
5139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5153 #define $ac_func innocuous_$ac_func
5155 /* System header to define __stub macros and hopefully few prototypes,
5156 which can conflict with char $ac_func (); below.
5157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 <limits.h> exists even on freestanding compilers. */
5161 # include <limits.h>
5163 # include <assert.h>
5168 /* Override any GCC internal prototype to avoid an error.
5169 Use char because int might match the return type of a GCC
5170 builtin and then its argument prototype would still apply. */
5175 /* The GNU C library defines this for functions which it implements
5176 to always fail with ENOSYS. Some functions are actually named
5177 something starting with __ and the normal name is an alias. */
5178 #if defined __stub_$ac_func || defined __stub___$ac_func
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest$ac_exeext &&
5207 $as_test_x conftest$ac_exeext; then
5208 eval "$as_ac_var=yes"
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 eval "$as_ac_var=no"
5216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5217 conftest$ac_exeext conftest.$ac_ext
5219 ac_res=`eval echo '${'$as_ac_var'}'`
5220 { echo "$as_me:$LINENO: result: $ac_res" >&5
5221 echo "${ECHO_T}$ac_res" >&6; }
5222 if test `eval echo '${'$as_ac_var'}'` = yes; then
5223 cat >>confdefs.h <<_ACEOF
5224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5229 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5230 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5231 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_check_lib_save_LIBS=$LIBS
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5243 /* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
5249 char gethostbyname ();
5253 return gethostbyname ();
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest$ac_exeext &&
5275 $as_test_x conftest$ac_exeext; then
5276 ac_cv_lib_nsl_gethostbyname=yes
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_lib_nsl_gethostbyname=no
5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5285 conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5288 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5289 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5290 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_LIBNSL 1
5302 { echo "$as_me:$LINENO: checking for X" >&5
5303 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5306 # Check whether --with-x was given.
5307 if test "${with_x+set}" = set; then
5311 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5312 if test "x$with_x" = xno; then
5313 # The user explicitly disabled X.
5316 case $x_includes,$x_libraries in #(
5317 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5318 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5319 { (exit 1); exit 1; }; };; #(
5320 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 # One or both of the vars are not set, and there is no cached value.
5324 ac_x_includes=no ac_x_libraries=no
5325 rm -f -r conftest.dir
5326 if mkdir conftest.dir; then
5328 cat >Imakefile <<'_ACEOF'
5330 @echo incroot='${INCROOT}'
5332 @echo usrlibdir='${USRLIBDIR}'
5334 @echo libdir='${LIBDIR}'
5336 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5337 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5338 for ac_var in incroot usrlibdir libdir; do
5339 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5341 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5342 for ac_extension in a so sl; do
5343 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5344 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5345 ac_im_usrlibdir=$ac_im_libdir; break
5348 # Screen out bogus values from the imake configuration. They are
5349 # bogus both because they are the default anyway, and because
5350 # using them would break gcc on systems where it needs fixed includes.
5351 case $ac_im_incroot in
5352 /usr/include) ac_x_includes= ;;
5353 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5355 case $ac_im_usrlibdir in
5357 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5361 rm -f -r conftest.dir
5364 # Standard set of common directories for X headers.
5365 # Check X11 before X11Rn because it is often a symlink to the current release.
5377 /usr/local/X11/include
5378 /usr/local/X11R6/include
5379 /usr/local/X11R5/include
5380 /usr/local/X11R4/include
5382 /usr/local/include/X11
5383 /usr/local/include/X11R6
5384 /usr/local/include/X11R5
5385 /usr/local/include/X11R4
5389 /usr/XFree86/include/X11
5393 /usr/unsupported/include
5395 /usr/local/x11r5/include
5396 /usr/lpp/Xamples/include
5398 /usr/openwin/include
5399 /usr/openwin/share/include'
5401 if test "$ac_x_includes" = no; then
5402 # Guess where to find include files, by looking for Xlib.h.
5403 # First, try using that file with no special directory specified.
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #include <X11/Xlib.h>
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426 test ! -s conftest.err
5428 # We can compile using X headers with no special include directory.
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 for ac_dir in $ac_x_header_dirs; do
5435 if test -r "$ac_dir/X11/Xlib.h"; then
5436 ac_x_includes=$ac_dir
5442 rm -f conftest.err conftest.$ac_ext
5443 fi # $ac_x_includes = no
5445 if test "$ac_x_libraries" = no; then
5446 # Check for the libraries.
5447 # See if we find them without any special options.
5448 # Don't add to $LIBS permanently.
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <X11/Xlib.h>
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (ac_try="$ac_link"
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_link") 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest$ac_exeext &&
5483 $as_test_x conftest$ac_exeext; then
5485 # We can link X programs with no special library path.
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5492 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5494 # Don't even attempt the hair of trying to link an X program!
5495 for ac_extension in a so sl; do
5496 if test -r "$ac_dir/libX11.$ac_extension"; then
5497 ac_x_libraries=$ac_dir
5504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5505 conftest$ac_exeext conftest.$ac_ext
5506 fi # $ac_x_libraries = no
5508 case $ac_x_includes,$ac_x_libraries in #(
5510 # Didn't find X, or a directory has "'" in its name.
5511 ac_cv_have_x="have_x=no";; #(
5513 # Record where we found X for the cache.
5514 ac_cv_have_x="have_x=yes\
5515 ac_x_includes='$ac_x_includes'\
5516 ac_x_libraries='$ac_x_libraries'"
5522 eval "$ac_cv_have_x"
5525 if test "$have_x" != yes; then
5526 { echo "$as_me:$LINENO: result: $have_x" >&5
5527 echo "${ECHO_T}$have_x" >&6; }
5530 # If each of the values was on the command line, it overrides each guess.
5531 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5532 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5533 # Update the cache value to reflect the command line values.
5534 ac_cv_have_x="have_x=yes\
5535 ac_x_includes='$x_includes'\
5536 ac_x_libraries='$x_libraries'"
5537 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5538 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5541 if test "$no_x" = yes; then
5542 # Not all programs may use this symbol, but it does not hurt to define it.
5544 cat >>confdefs.h <<\_ACEOF
5545 #define X_DISPLAY_MISSING 1
5548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5550 if test -n "$x_includes"; then
5551 X_CFLAGS="$X_CFLAGS -I$x_includes"
5554 # It would also be nice to do this for all -L options, not just this one.
5555 if test -n "$x_libraries"; then
5556 X_LIBS="$X_LIBS -L$x_libraries"
5557 # For Solaris; some versions of Sun CC require a space after -R and
5558 # others require no space. Words are not sufficient . . . .
5559 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5560 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5561 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5562 ac_xsave_c_werror_flag=$ac_c_werror_flag
5563 ac_c_werror_flag=yes
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_link") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest$ac_exeext &&
5596 $as_test_x conftest$ac_exeext; then
5597 { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5599 X_LIBS="$X_LIBS -R$x_libraries"
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 LIBS="$ac_xsave_LIBS -R $x_libraries"
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (ac_try="$ac_link"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_link") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest$ac_exeext &&
5637 $as_test_x conftest$ac_exeext; then
5638 { echo "$as_me:$LINENO: result: yes" >&5
5639 echo "${ECHO_T}yes" >&6; }
5640 X_LIBS="$X_LIBS -R $x_libraries"
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 { echo "$as_me:$LINENO: result: neither works" >&5
5646 echo "${ECHO_T}neither works" >&6; }
5649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5650 conftest$ac_exeext conftest.$ac_ext
5653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5654 conftest$ac_exeext conftest.$ac_ext
5655 ac_c_werror_flag=$ac_xsave_c_werror_flag
5659 # Check for system-dependent libraries X programs must link with.
5660 # Do this before checking for the system-independent R6 libraries
5661 # (-lICE), since we may need -lsocket or whatever for X linking.
5663 if test "$ISC" = yes; then
5664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5666 # Martyn Johnson says this is needed for Ultrix, if the X
5667 # libraries were built with DECnet support. And Karl Berry says
5668 # the Alpha needs dnet_stub (dnet does not exist).
5669 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5677 /* Override any GCC internal prototype to avoid an error.
5678 Use char because int might match the return type of a GCC
5679 builtin and then its argument prototype would still apply. */
5683 char XOpenDisplay ();
5687 return XOpenDisplay ();
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (ac_try="$ac_link"
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_link") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest$ac_exeext &&
5709 $as_test_x conftest$ac_exeext; then
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5715 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5716 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5717 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 ac_check_lib_save_LIBS=$LIBS
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5729 /* Override any GCC internal prototype to avoid an error.
5730 Use char because int might match the return type of a GCC
5731 builtin and then its argument prototype would still apply. */
5739 return dnet_ntoa ();
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_link") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest$ac_exeext &&
5761 $as_test_x conftest$ac_exeext; then
5762 ac_cv_lib_dnet_dnet_ntoa=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_cv_lib_dnet_dnet_ntoa=no
5770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5771 conftest$ac_exeext conftest.$ac_ext
5772 LIBS=$ac_check_lib_save_LIBS
5774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5775 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5776 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5777 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5780 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5781 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5782 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5783 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_check_lib_save_LIBS=$LIBS
5787 LIBS="-ldnet_stub $LIBS"
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5795 /* Override any GCC internal prototype to avoid an error.
5796 Use char because int might match the return type of a GCC
5797 builtin and then its argument prototype would still apply. */
5805 return dnet_ntoa ();
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (ac_try="$ac_link"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_link") 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && {
5824 test -z "$ac_c_werror_flag" ||
5825 test ! -s conftest.err
5826 } && test -s conftest$ac_exeext &&
5827 $as_test_x conftest$ac_exeext; then
5828 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_cv_lib_dnet_stub_dnet_ntoa=no
5836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5841 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5842 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5843 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5850 conftest$ac_exeext conftest.$ac_ext
5851 LIBS="$ac_xsave_LIBS"
5853 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5854 # to get the SysV transport functions.
5855 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5857 # The nsl library prevents programs from opening the X display
5858 # on Irix 5.2, according to T.E. Dickey.
5859 # The functions gethostbyname, getservbyname, and inet_addr are
5860 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5861 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5862 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5863 if test "${ac_cv_func_gethostbyname+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5874 #define gethostbyname innocuous_gethostbyname
5876 /* System header to define __stub macros and hopefully few prototypes,
5877 which can conflict with char gethostbyname (); below.
5878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5879 <limits.h> exists even on freestanding compilers. */
5882 # include <limits.h>
5884 # include <assert.h>
5887 #undef gethostbyname
5889 /* Override any GCC internal prototype to avoid an error.
5890 Use char because int might match the return type of a GCC
5891 builtin and then its argument prototype would still apply. */
5895 char gethostbyname ();
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5906 return gethostbyname ();
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (ac_try="$ac_link"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_link") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest$ac_exeext &&
5928 $as_test_x conftest$ac_exeext; then
5929 ac_cv_func_gethostbyname=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_func_gethostbyname=no
5937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5938 conftest$ac_exeext conftest.$ac_ext
5940 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5941 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5943 if test $ac_cv_func_gethostbyname = no; then
5944 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5945 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5946 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 ac_check_lib_save_LIBS=$LIBS
5951 cat >conftest.$ac_ext <<_ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5958 /* Override any GCC internal prototype to avoid an error.
5959 Use char because int might match the return type of a GCC
5960 builtin and then its argument prototype would still apply. */
5964 char gethostbyname ();
5968 return gethostbyname ();
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
5991 ac_cv_lib_nsl_gethostbyname=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_cv_lib_nsl_gethostbyname=no
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6004 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6005 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6009 if test $ac_cv_lib_nsl_gethostbyname = no; then
6010 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6011 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6012 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_check_lib_save_LIBS=$LIBS
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6024 /* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
6030 char gethostbyname ();
6034 return gethostbyname ();
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (ac_try="$ac_link"
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_link") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest$ac_exeext &&
6056 $as_test_x conftest$ac_exeext; then
6057 ac_cv_lib_bsd_gethostbyname=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_lib_bsd_gethostbyname=no
6065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6066 conftest$ac_exeext conftest.$ac_ext
6067 LIBS=$ac_check_lib_save_LIBS
6069 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6070 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6071 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6078 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6079 # socket/setsockopt and other routines are undefined under SCO ODT
6080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6081 # on later versions), says Simon Leinen: it contains gethostby*
6082 # variants that don't use the name server (or something). -lsocket
6083 # must be given before -lnsl if both are needed. We assume that
6084 # if connect needs -lnsl, so does gethostbyname.
6085 { echo "$as_me:$LINENO: checking for connect" >&5
6086 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6087 if test "${ac_cv_func_connect+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6098 #define connect innocuous_connect
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char connect (); below.
6102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103 <limits.h> exists even on freestanding compilers. */
6106 # include <limits.h>
6108 # include <assert.h>
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6120 /* The GNU C library defines this for functions which it implements
6121 to always fail with ENOSYS. Some functions are actually named
6122 something starting with __ and the normal name is an alias. */
6123 #if defined __stub_connect || defined __stub___connect
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (ac_try="$ac_link"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_link") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest$ac_exeext &&
6152 $as_test_x conftest$ac_exeext; then
6153 ac_cv_func_connect=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_cv_func_connect=no
6161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6162 conftest$ac_exeext conftest.$ac_ext
6164 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6165 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6167 if test $ac_cv_func_connect = no; then
6168 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6169 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6170 if test "${ac_cv_lib_socket_connect+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6182 /* Override any GCC internal prototype to avoid an error.
6183 Use char because int might match the return type of a GCC
6184 builtin and then its argument prototype would still apply. */
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_link") 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest$ac_exeext &&
6214 $as_test_x conftest$ac_exeext; then
6215 ac_cv_lib_socket_connect=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_lib_socket_connect=no
6223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6224 conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6227 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6228 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6229 if test $ac_cv_lib_socket_connect = yes; then
6230 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6235 # Guillermo Gomez says -lposix is necessary on A/UX.
6236 { echo "$as_me:$LINENO: checking for remove" >&5
6237 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6238 if test "${ac_cv_func_remove+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 cat >conftest.$ac_ext <<_ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6249 #define remove innocuous_remove
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char remove (); below.
6253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6254 <limits.h> exists even on freestanding compilers. */
6257 # include <limits.h>
6259 # include <assert.h>
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined __stub_remove || defined __stub___remove
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (ac_try="$ac_link"
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_link") 2>conftest.er1
6295 grep -v '^ *+' conftest.er1 >conftest.err
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest$ac_exeext &&
6303 $as_test_x conftest$ac_exeext; then
6304 ac_cv_func_remove=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_cv_func_remove=no
6312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6313 conftest$ac_exeext conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6316 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6318 if test $ac_cv_func_remove = no; then
6319 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6320 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6321 if test "${ac_cv_lib_posix_remove+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 ac_check_lib_save_LIBS=$LIBS
6325 LIBS="-lposix $LIBS"
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 /* Override any GCC internal prototype to avoid an error.
6334 Use char because int might match the return type of a GCC
6335 builtin and then its argument prototype would still apply. */
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_link") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest$ac_exeext &&
6365 $as_test_x conftest$ac_exeext; then
6366 ac_cv_lib_posix_remove=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_cv_lib_posix_remove=no
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375 conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6378 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6379 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6380 if test $ac_cv_lib_posix_remove = yes; then
6381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6387 { echo "$as_me:$LINENO: checking for shmat" >&5
6388 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6389 if test "${ac_cv_func_shmat+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6400 #define shmat innocuous_shmat
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char shmat (); below.
6404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405 <limits.h> exists even on freestanding compilers. */
6408 # include <limits.h>
6410 # include <assert.h>
6415 /* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined __stub_shmat || defined __stub___shmat
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_link") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest$ac_exeext &&
6454 $as_test_x conftest$ac_exeext; then
6455 ac_cv_func_shmat=yes
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6464 conftest$ac_exeext conftest.$ac_ext
6466 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6467 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6469 if test $ac_cv_func_shmat = no; then
6470 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6471 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6472 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_check_lib_save_LIBS=$LIBS
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6484 /* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_link") 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && {
6513 test -z "$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 } && test -s conftest$ac_exeext &&
6516 $as_test_x conftest$ac_exeext; then
6517 ac_cv_lib_ipc_shmat=yes
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_cv_lib_ipc_shmat=no
6525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6526 conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_check_lib_save_LIBS
6529 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6530 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6531 if test $ac_cv_lib_ipc_shmat = yes; then
6532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6538 # Check for libraries that X11R6 Xt/Xaw programs need.
6539 ac_save_LDFLAGS=$LDFLAGS
6540 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6541 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6542 # check for ICE first), but we must link in the order -lSM -lICE or
6543 # we get undefined symbols. So assume we have SM if we have ICE.
6544 # These have to be linked with before -lX11, unlike the other
6545 # libraries we check for below, so use a different variable.
6546 # John Interrante, Karl Berry
6547 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6548 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6549 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_check_lib_save_LIBS=$LIBS
6553 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6561 /* Override any GCC internal prototype to avoid an error.
6562 Use char because int might match the return type of a GCC
6563 builtin and then its argument prototype would still apply. */
6567 char IceConnectionNumber ();
6571 return IceConnectionNumber ();
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_link") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest$ac_exeext &&
6593 $as_test_x conftest$ac_exeext; then
6594 ac_cv_lib_ICE_IceConnectionNumber=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_lib_ICE_IceConnectionNumber=no
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603 conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$ac_check_lib_save_LIBS
6606 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6607 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6608 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6612 LDFLAGS=$ac_save_LDFLAGS
6618 if test "x$with_x" = xyes; then
6619 if test "x$have_x" = xno; then
6620 if test "x$x_config_flag" = xyes; then
6621 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6622 echo "$as_me: error: Could not configure X" >&2;}
6623 { (exit 1); exit 1; }; }
6625 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6626 echo "$as_me: WARNING: Could not configure X" >&2;}
6630 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6631 if test "x$x_libraries" != x; then
6632 ldflags_x_opt="-L$x_libraries"
6633 LDFLAGS="$LDFLAGS $ldflags_x_opt"
6634 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6638 if test "x$x_includes" != x; then
6639 CPPFLAGS="$CPPFLAGS -I$x_includes"
6643 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6644 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
6645 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_check_lib_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any GCC internal prototype to avoid an error.
6658 Use char because int might match the return type of a GCC
6659 builtin and then its argument prototype would still apply. */
6663 char XOpenDisplay ();
6667 return XOpenDisplay ();
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (ac_try="$ac_link"
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_link") 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest$ac_exeext &&
6689 $as_test_x conftest$ac_exeext; then
6690 ac_cv_lib_X11_XOpenDisplay=yes
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_cv_lib_X11_XOpenDisplay=no
6698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6699 conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6702 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6703 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
6704 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_LIBX11 1
6713 { echo "$as_me:$LINENO: checking X11 version 6" >&5
6714 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
6715 if test "${timidity_cv_x11_version_6+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <X11/Xlib.h>
6729 #if XlibSpecificationRelease < 6
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (ac_try="$ac_link"
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_link") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest$ac_exeext &&
6754 $as_test_x conftest$ac_exeext; then
6755 timidity_cv_x11_version_6=yes
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 timidity_cv_x11_version_6=no
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6767 if test "$timidity_cv_x11_version_6" = "yes"; then
6768 { echo "$as_me:$LINENO: result: 6 or newer" >&5
6769 echo "${ECHO_T}6 or newer" >&6; }
6771 { echo "$as_me:$LINENO: result: before 6" >&5
6772 echo "${ECHO_T}before 6" >&6; }
6776 { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6777 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; }
6778 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_check_lib_save_LIBS=$LIBS
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6790 /* Override any GCC internal prototype to avoid an error.
6791 Use char because int might match the return type of a GCC
6792 builtin and then its argument prototype would still apply. */
6796 char XShapeCombineMask ();
6800 return XShapeCombineMask ();
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_link") 2>conftest.er1
6814 grep -v '^ *+' conftest.er1 >conftest.err
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest$ac_exeext &&
6822 $as_test_x conftest$ac_exeext; then
6823 ac_cv_lib_Xext_XShapeCombineMask=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 ac_cv_lib_Xext_XShapeCombineMask=no
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LIBS=$ac_check_lib_save_LIBS
6835 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6836 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
6837 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6838 have_xext=yes; LIBS="-lXext $LIBS"
6844 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6845 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6846 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_check_lib_save_LIBS=$LIBS
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any GCC internal prototype to avoid an error.
6859 Use char because int might match the return type of a GCC
6860 builtin and then its argument prototype would still apply. */
6864 char IceConnectionNumber ();
6868 return IceConnectionNumber ();
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (ac_try="$ac_link"
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880 (eval "$ac_link") 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest$ac_exeext &&
6890 $as_test_x conftest$ac_exeext; then
6891 ac_cv_lib_ICE_IceConnectionNumber=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_lib_ICE_IceConnectionNumber=no
6899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6900 conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_check_lib_save_LIBS
6903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6904 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6905 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_LIBICE 1
6914 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6915 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
6916 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 ac_check_lib_save_LIBS=$LIBS
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any GCC internal prototype to avoid an error.
6929 Use char because int might match the return type of a GCC
6930 builtin and then its argument prototype would still apply. */
6934 char SmcOpenConnection ();
6938 return SmcOpenConnection ();
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest$ac_exeext &&
6960 $as_test_x conftest$ac_exeext; then
6961 ac_cv_lib_SM_SmcOpenConnection=yes
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_lib_SM_SmcOpenConnection=no
6969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6970 conftest$ac_exeext conftest.$ac_ext
6971 LIBS=$ac_check_lib_save_LIBS
6973 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6974 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
6975 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6976 have_xprelibs=yes; LIBS="-lSM $LIBS"
6981 { echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6982 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6; }
6983 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 ac_check_lib_save_LIBS=$LIBS
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6995 /* Override any GCC internal prototype to avoid an error.
6996 Use char because int might match the return type of a GCC
6997 builtin and then its argument prototype would still apply. */
7001 char XtVaAppInitialize ();
7005 return XtVaAppInitialize ();
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (ac_try="$ac_link"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_link") 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest$ac_exeext &&
7027 $as_test_x conftest$ac_exeext; then
7028 ac_cv_lib_Xt_XtVaAppInitialize=yes
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_cv_lib_Xt_XtVaAppInitialize=no
7036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7037 conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7040 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
7041 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6; }
7042 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
7043 have_xt=yes; LIBS="-lXt $LIBS"
7048 { echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
7049 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6; }
7050 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_check_lib_save_LIBS=$LIBS
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7062 /* Override any GCC internal prototype to avoid an error.
7063 Use char because int might match the return type of a GCC
7064 builtin and then its argument prototype would still apply. */
7068 char XmuInternAtom ();
7072 return XmuInternAtom ();
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_link") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest$ac_exeext &&
7094 $as_test_x conftest$ac_exeext; then
7095 ac_cv_lib_Xmu_XmuInternAtom=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_cv_lib_Xmu_XmuInternAtom=no
7103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7104 conftest$ac_exeext conftest.$ac_ext
7105 LIBS=$ac_check_lib_save_LIBS
7107 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
7108 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6; }
7109 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
7114 for ac_func in XmuRegisterExternalAgent
7116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7130 #define $ac_func innocuous_$ac_func
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func (); below.
7134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135 <limits.h> exists even on freestanding compilers. */
7138 # include <limits.h>
7140 # include <assert.h>
7145 /* Override any GCC internal prototype to avoid an error.
7146 Use char because int might match the return type of a GCC
7147 builtin and then its argument prototype would still apply. */
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined __stub_$ac_func || defined __stub___$ac_func
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (ac_try="$ac_link"
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_link") 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest$ac_exeext &&
7184 $as_test_x conftest$ac_exeext; then
7185 eval "$as_ac_var=yes"
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 eval "$as_ac_var=no"
7193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7194 conftest$ac_exeext conftest.$ac_ext
7196 ac_res=`eval echo '${'$as_ac_var'}'`
7197 { echo "$as_me:$LINENO: result: $ac_res" >&5
7198 echo "${ECHO_T}$ac_res" >&6; }
7199 if test `eval echo '${'$as_ac_var'}'` = yes; then
7200 cat >>confdefs.h <<_ACEOF
7201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7207 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7208 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6; }
7209 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_check_lib_save_LIBS=$LIBS
7213 LIBS="-lXaw3d $LIBS"
7214 cat >conftest.$ac_ext <<_ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7221 /* Override any GCC internal prototype to avoid an error.
7222 Use char because int might match the return type of a GCC
7223 builtin and then its argument prototype would still apply. */
7227 char XawInitializeWidgetSet ();
7231 return XawInitializeWidgetSet ();
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_link") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest$ac_exeext &&
7253 $as_test_x conftest$ac_exeext; then
7254 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263 conftest$ac_exeext conftest.$ac_ext
7264 LIBS=$ac_check_lib_save_LIBS
7266 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7267 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; }
7268 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7271 { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7272 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6; }
7273 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 ac_check_lib_save_LIBS=$LIBS
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7291 char XawInitializeWidgetSet ();
7295 return XawInitializeWidgetSet ();
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (ac_try="$ac_link"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_link") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest$ac_exeext &&
7317 $as_test_x conftest$ac_exeext; then
7318 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7327 conftest$ac_exeext conftest.$ac_ext
7328 LIBS=$ac_check_lib_save_LIBS
7330 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7331 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
7332 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7340 { echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7341 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6; }
7342 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_check_lib_save_LIBS=$LIBS
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7360 char XmCreateForm ();
7364 return XmCreateForm ();
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (ac_try="$ac_link"
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376 (eval "$ac_link") 2>conftest.er1
7378 grep -v '^ *+' conftest.er1 >conftest.err
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && {
7383 test -z "$ac_c_werror_flag" ||
7384 test ! -s conftest.err
7385 } && test -s conftest$ac_exeext &&
7386 $as_test_x conftest$ac_exeext; then
7387 ac_cv_lib_Xm_XmCreateForm=yes
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_cv_lib_Xm_XmCreateForm=no
7395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7396 conftest$ac_exeext conftest.$ac_ext
7397 LIBS=$ac_check_lib_save_LIBS
7399 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7400 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6; }
7401 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7408 for ac_func in XShmCreatePixmap
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7424 #define $ac_func innocuous_$ac_func
7426 /* System header to define __stub macros and hopefully few prototypes,
7427 which can conflict with char $ac_func (); below.
7428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7429 <limits.h> exists even on freestanding compilers. */
7432 # include <limits.h>
7434 # include <assert.h>
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7446 /* The GNU C library defines this for functions which it implements
7447 to always fail with ENOSYS. Some functions are actually named
7448 something starting with __ and the normal name is an alias. */
7449 #if defined __stub_$ac_func || defined __stub___$ac_func
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_link") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest$ac_exeext &&
7478 $as_test_x conftest$ac_exeext; then
7479 eval "$as_ac_var=yes"
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 eval "$as_ac_var=no"
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488 conftest$ac_exeext conftest.$ac_ext
7490 ac_res=`eval echo '${'$as_ac_var'}'`
7491 { echo "$as_me:$LINENO: result: $ac_res" >&5
7492 echo "${ECHO_T}$ac_res" >&6; }
7493 if test `eval echo '${'$as_ac_var'}'` = yes; then
7494 cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7504 # Checks for header files.
7505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7507 if test "${ac_cv_header_stdc+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 ac_cv_header_stdc=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_header_stdc=no
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 if test $ac_cv_header_stdc = yes; then
7557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7568 $EGREP "memchr" >/dev/null 2>&1; then
7571 ac_cv_header_stdc=no
7577 if test $ac_cv_header_stdc = yes; then
7578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 $EGREP "free" >/dev/null 2>&1; then
7592 ac_cv_header_stdc=no
7598 if test $ac_cv_header_stdc = yes; then
7599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7600 if test "$cross_compiling" = yes; then
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7611 #if ((' ' & 0x0FF) == 0x020)
7612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7615 # define ISLOWER(c) \
7616 (('a' <= (c) && (c) <= 'i') \
7617 || ('j' <= (c) && (c) <= 'r') \
7618 || ('s' <= (c) && (c) <= 'z'))
7619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7627 for (i = 0; i < 256; i++)
7628 if (XOR (islower (i), ISLOWER (i))
7629 || toupper (i) != TOUPPER (i))
7634 rm -f conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7656 echo "$as_me: program exited with status $ac_status" >&5
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_header_stdc=no
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7671 if test $ac_cv_header_stdc = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define STDC_HEADERS 1
7680 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7681 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7682 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #include <sys/types.h>
7692 #include <sys/wait.h>
7694 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7705 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_cv_header_sys_wait_h=yes
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_cv_header_sys_wait_h=no
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7738 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7739 if test $ac_cv_header_sys_wait_h = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_SYS_WAIT_H 1
7747 if test "x$WATCOM_C" != xyes ; then
7748 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7750 if test "${ac_cv_header_time+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7766 if ((struct tm *) 0)
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 ac_cv_header_time=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_header_time=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7800 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define TIME_WITH_SYS_TIME 1
7816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7817 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7818 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 #include <sys/types.h>
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7858 eval "$as_ac_Header=yes"
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 eval "$as_ac_Header=no"
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 ac_res=`eval echo '${'$as_ac_Header'}'`
7869 { echo "$as_me:$LINENO: result: $ac_res" >&5
7870 echo "${ECHO_T}$ac_res" >&6; }
7871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7872 cat >>confdefs.h <<_ACEOF
7873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7876 ac_header_dirent=$ac_hdr; break
7880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7881 if test $ac_header_dirent = dirent.h; then
7882 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7884 if test "${ac_cv_search_opendir+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_func_search_save_LIBS=$LIBS
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7910 for ac_lib in '' dir; do
7911 if test -z "$ac_lib"; then
7912 ac_res="none required"
7915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>conftest.er1
7926 grep -v '^ *+' conftest.er1 >conftest.err
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } && {
7931 test -z "$ac_c_werror_flag" ||
7932 test ! -s conftest.err
7933 } && test -s conftest$ac_exeext &&
7934 $as_test_x conftest$ac_exeext; then
7935 ac_cv_search_opendir=$ac_res
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7945 if test "${ac_cv_search_opendir+set}" = set; then
7949 if test "${ac_cv_search_opendir+set}" = set; then
7952 ac_cv_search_opendir=no
7955 LIBS=$ac_func_search_save_LIBS
7957 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7958 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7959 ac_res=$ac_cv_search_opendir
7960 if test "$ac_res" != no; then
7961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7966 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7968 if test "${ac_cv_search_opendir+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_func_search_save_LIBS=$LIBS
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7979 /* Override any GCC internal prototype to avoid an error.
7980 Use char because int might match the return type of a GCC
7981 builtin and then its argument prototype would still apply. */
7994 for ac_lib in '' x; do
7995 if test -z "$ac_lib"; then
7996 ac_res="none required"
7999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (ac_try="$ac_link"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_link") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest$ac_exeext &&
8018 $as_test_x conftest$ac_exeext; then
8019 ac_cv_search_opendir=$ac_res
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 if test "${ac_cv_search_opendir+set}" = set; then
8033 if test "${ac_cv_search_opendir+set}" = set; then
8036 ac_cv_search_opendir=no
8039 LIBS=$ac_func_search_save_LIBS
8041 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8042 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8043 ac_res=$ac_cv_search_opendir
8044 if test "$ac_res" != no; then
8045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8062 inttypes.h stdint.h unistd.h
8064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 $ac_includes_default
8078 #include <$ac_header>
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 eval "$as_ac_Header=yes"
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 eval "$as_ac_Header=no"
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108 { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8111 cat >>confdefs.h <<_ACEOF
8112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 ac_res=`eval echo '${'$as_ac_Header'}'`
8206 { echo "$as_me:$LINENO: result: $ac_res" >&5
8207 echo "${ECHO_T}$ac_res" >&6; }
8209 # Is the header compilable?
8210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 $ac_includes_default
8219 #include <$ac_header>
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_header_compiler=yes
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_header_compiler=no
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8248 echo "${ECHO_T}$ac_header_compiler" >&6; }
8250 # Is the header present?
8251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 #include <$ac_header>
8261 if { (ac_try="$ac_cpp conftest.$ac_ext"
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } >/dev/null && {
8274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8277 ac_header_preproc=yes
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_header_preproc=no
8285 rm -f conftest.err conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8287 echo "${ECHO_T}$ac_header_preproc" >&6; }
8289 # So? What about this header?
8290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8296 ac_header_preproc=yes
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8312 ## ------------------------------- ##
8313 ## Report this to root@mput.dip.jp ##
8314 ## ------------------------------- ##
8316 ) | sed "s/^/$as_me: WARNING: /" >&2
8319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 eval "$as_ac_Header=\$ac_header_preproc"
8326 ac_res=`eval echo '${'$as_ac_Header'}'`
8327 { echo "$as_me:$LINENO: result: $ac_res" >&5
8328 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8343 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 #ifdef HAVE_X11_XLIB_H
8359 #include <X11/Xlib.h>
8363 #include <$ac_header>
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest.$ac_objext; then
8382 eval "$as_ac_Header=yes"
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 eval "$as_ac_Header=no"
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 ac_res=`eval echo '${'$as_ac_Header'}'`
8393 { echo "$as_me:$LINENO: result: $ac_res" >&5
8394 echo "${ECHO_T}$ac_res" >&6; }
8395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8396 cat >>confdefs.h <<_ACEOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 if test "${ac_cv_header_string_h+set}" = set; then
8405 { echo "$as_me:$LINENO: checking for string.h" >&5
8406 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8407 if test "${ac_cv_header_string_h+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8413 # Is the header compilable?
8414 { echo "$as_me:$LINENO: checking string.h usability" >&5
8415 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest.$ac_objext; then
8442 ac_header_compiler=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_header_compiler=no
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8452 echo "${ECHO_T}$ac_header_compiler" >&6; }
8454 # Is the header present?
8455 { echo "$as_me:$LINENO: checking string.h presence" >&5
8456 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8465 if { (ac_try="$ac_cpp conftest.$ac_ext"
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } >/dev/null && {
8478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8481 ac_header_preproc=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_header_preproc=no
8489 rm -f conftest.err conftest.$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491 echo "${ECHO_T}$ac_header_preproc" >&6; }
8493 # So? What about this header?
8494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8496 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8497 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8499 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8500 ac_header_preproc=yes
8503 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8504 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8506 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8508 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8510 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8514 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8516 ## ------------------------------- ##
8517 ## Report this to root@mput.dip.jp ##
8518 ## ------------------------------- ##
8520 ) | sed "s/^/$as_me: WARNING: /" >&2
8523 { echo "$as_me:$LINENO: checking for string.h" >&5
8524 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8525 if test "${ac_cv_header_string_h+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 ac_cv_header_string_h=$ac_header_preproc
8530 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8531 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8534 if test $ac_cv_header_string_h = yes; then
8538 cat >>confdefs.h <<\_ACEOF
8539 #define NO_STRING_H 1
8546 # Checks for typedefs, structures, and compiler characteristics.
8547 if test "x$WATCOM_C" != xyes ; then
8548 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8549 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
8550 if test "${ac_cv_c_bigendian+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 # See if sys/param.h defines the BYTE_ORDER macro.
8554 cat >conftest.$ac_ext <<_ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 #include <sys/types.h>
8561 #include <sys/param.h>
8566 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
8567 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 # It does; now see whether it defined to BIG_ENDIAN or not.
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 #include <sys/types.h>
8600 #include <sys/param.h>
8605 #if BYTE_ORDER != BIG_ENDIAN
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8630 ac_cv_c_bigendian=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_c_bigendian=no
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 # It does not; compile a test program.
8644 if test "$cross_compiling" = yes; then
8645 # try to guess the endianness by grepping values into an object file
8646 ac_cv_c_bigendian=unknown
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8654 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8655 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8656 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8657 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8658 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8662 _ascii (); _ebcdic ();
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8685 ac_cv_c_bigendian=yes
8687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8688 if test "$ac_cv_c_bigendian" = unknown; then
8689 ac_cv_c_bigendian=no
8691 # finding both strings is unlikely to happen, but who knows?
8692 ac_cv_c_bigendian=unknown
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8715 /* Are we little or big endian? From Harbison&Steele. */
8719 char c[sizeof (long int)];
8722 return u.c[sizeof (long int) - 1] == 1;
8728 rm -f conftest$ac_exeext
8729 if { (ac_try="$ac_link"
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_link") 2>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8739 { (case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_try") 2>&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_c_bigendian=no
8750 echo "$as_me: program exited with status $ac_status" >&5
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_cv_c_bigendian=yes
8757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8767 case $ac_cv_c_bigendian in
8770 cat >>confdefs.h <<\_ACEOF
8771 #define WORDS_BIGENDIAN 1
8777 { { echo "$as_me:$LINENO: error: unknown endianness
8778 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8779 echo "$as_me: error: unknown endianness
8780 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8781 { (exit 1); exit 1; }; } ;;
8786 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8787 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
8788 if test "${ac_cv_c_char_unsigned+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8801 static int test_array [1 - 2 * !(((char) -1) < 0)];
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_cv_c_char_unsigned=no
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_c_char_unsigned=yes
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8836 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
8837 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8838 cat >>confdefs.h <<\_ACEOF
8839 #define __CHAR_UNSIGNED__ 1
8844 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8846 if test "${ac_cv_c_const+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8859 /* FIXME: Include the comments suggested by Paul. */
8861 /* Ultrix mips cc rejects this. */
8862 typedef int charset[2];
8864 /* SunOS 4.1.1 cc rejects this. */
8865 char const *const *pcpcc;
8867 /* NEC SVR4.0.2 mips cc rejects this. */
8868 struct point {int x, y;};
8869 static struct point const zero = {0,0};
8870 /* AIX XL C 1.02.0.0 rejects this.
8871 It does not let you subtract one const X* pointer from another in
8872 an arm of an if-expression whose if-part is not a constant
8874 const char *g = "string";
8875 pcpcc = &g + (g ? g-g : 0);
8876 /* HPUX 7.0 cc rejects these. */
8878 ppc = (char**) pcpcc;
8879 pcpcc = (char const *const *) ppc;
8880 { /* SCO 3.2v4 cc rejects this. */
8882 char const *s = 0 ? (char *) 0 : (char const *) 0;
8887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8889 const int *foo = &x[0];
8892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8893 typedef const int *iptr;
8897 { /* AIX XL C 1.02.0.0 rejects this saying
8898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8899 struct s { int j; const int *ap[3]; };
8900 struct s *b; b->j = 5;
8902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8906 return !cs[0] && !zero.x;
8913 rm -f conftest.$ac_objext
8914 if { (ac_try="$ac_compile"
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no; then
8944 cat >>confdefs.h <<\_ACEOF
8950 { echo "$as_me:$LINENO: checking for inline" >&5
8951 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8952 if test "${ac_cv_c_inline+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 for ac_kw in inline __inline__ __inline; do
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8965 static $ac_kw foo_t static_foo () {return 0; }
8966 $ac_kw foo_t foo () {return 0; }
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
8987 ac_cv_c_inline=$ac_kw
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 test "$ac_cv_c_inline" != no && break
9000 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9001 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9004 case $ac_cv_c_inline in
9007 case $ac_cv_c_inline in
9009 *) ac_val=$ac_cv_c_inline;;
9011 cat >>confdefs.h <<_ACEOF
9013 #define inline $ac_val
9019 { echo "$as_me:$LINENO: checking for working volatile" >&5
9020 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9021 if test "${ac_cv_c_volatile+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9036 int * volatile y = (int *) 0;
9042 rm -f conftest.$ac_objext
9043 if { (ac_try="$ac_compile"
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_compile") 2>conftest.er1
9051 grep -v '^ *+' conftest.er1 >conftest.err
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest.$ac_objext; then
9059 ac_cv_c_volatile=yes
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9070 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9071 if test $ac_cv_c_volatile = no; then
9073 cat >>confdefs.h <<\_ACEOF
9079 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9080 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
9081 if test "${ac_cv_c_stringize+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9092 char *s = x(teststring);
9094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9095 $EGREP "#teststring" >/dev/null 2>&1; then
9096 ac_cv_c_stringize=no
9098 ac_cv_c_stringize=yes
9103 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9104 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
9105 if test $ac_cv_c_stringize = yes; then
9107 cat >>confdefs.h <<\_ACEOF
9108 #define HAVE_STRINGIZE 1
9113 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9114 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9115 if test "$ac_cv_prog_cc_c89" != no; then
9116 { echo "$as_me:$LINENO: result: yes" >&5
9117 echo "${ECHO_T}yes" >&6; }
9119 cat >>confdefs.h <<\_ACEOF
9120 #define PROTOTYPES 1
9124 cat >>confdefs.h <<\_ACEOF
9125 #define __PROTOTYPES 1
9129 { echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6; }
9133 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9134 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9135 if test "${ac_cv_struct_tm+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <sys/types.h>
9151 int *p = &tm.tm_sec;
9157 rm -f conftest.$ac_objext
9158 if { (ac_try="$ac_compile"
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 ac_cv_struct_tm=time.h
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_cv_struct_tm=sys/time.h
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9185 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9186 if test $ac_cv_struct_tm = sys/time.h; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define TM_IN_SYS_TIME 1
9194 { echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 typedef size_t ac__type_new_;
9210 if ((ac__type_new_ *) 0)
9212 if (sizeof (ac__type_new_))
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.$ac_objext; then
9235 ac_cv_type_size_t=yes
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 ac_cv_type_size_t=no
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9246 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9247 if test $ac_cv_type_size_t = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252 #define size_t unsigned int
9257 if test "x$POCC" != xyes ; then
9258 { echo "$as_me:$LINENO: checking for off_t" >&5
9259 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9260 if test "${ac_cv_type_off_t+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 typedef off_t ac__type_new_;
9274 if ((ac__type_new_ *) 0)
9276 if (sizeof (ac__type_new_))
9282 rm -f conftest.$ac_objext
9283 if { (ac_try="$ac_compile"
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9291 grep -v '^ *+' conftest.er1 >conftest.err
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 ac_cv_type_off_t=yes
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9310 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9311 if test $ac_cv_type_off_t = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define off_t long int
9321 { echo "$as_me:$LINENO: checking for pid_t" >&5
9322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9323 if test "${ac_cv_type_pid_t+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 typedef pid_t ac__type_new_;
9337 if ((ac__type_new_ *) 0)
9339 if (sizeof (ac__type_new_))
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_cv_type_pid_t=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9374 if test $ac_cv_type_pid_t = yes; then
9378 cat >>confdefs.h <<_ACEOF
9386 { echo "$as_me:$LINENO: checking volatile declaration" >&5
9387 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6; }
9388 if test "${timidity_cv_type_volatile+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9423 timidity_cv_type_volatile=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 timidity_cv_type_volatile=no
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 { echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9434 echo "${ECHO_T}$timidity_cv_type_volatile" >&6; }
9435 if test $timidity_cv_type_volatile = no; then
9437 cat >>confdefs.h <<\_ACEOF
9438 #define NO_VOLATILE 1
9443 { echo "$as_me:$LINENO: checking union semun declaration" >&5
9444 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6; }
9445 if test "${timidity_cv_type_union_semun+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 #include <sys/types.h>
9456 #include <sys/ipc.h>
9457 #include <sys/sem.h>
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_compile") 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest.$ac_objext; then
9484 timidity_cv_type_union_semun=yes
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 timidity_cv_type_union_semun=no
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9495 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6; }
9496 if test $timidity_cv_type_union_semun = yes; then
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE_UNION_SEMUN 1
9504 if test "x$MSYS" = xyes ; then
9508 { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9509 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
9510 if test -z "$ac_cv_prog_CC"; then
9513 our_gcc="$ac_cv_prog_CC"
9515 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9517 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9518 msnative_struct='-fnative-struct'
9522 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9523 msnative_struct='-mms-bitfields'
9527 if test x"$msnative_struct" = x ; then
9528 { echo "$as_me:$LINENO: result: no way" >&5
9529 echo "${ECHO_T}no way" >&6; }
9530 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9531 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9533 CFLAGS="$CFLAGS $msnative_struct"
9534 CPPFLAGS="$CPPFLAGS $msnative_struct"
9535 { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9536 echo "${ECHO_T}${msnative_struct}" >&6; }
9543 if test "x$MSYS" = xyes ; then
9544 { echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9545 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6; }
9546 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 #include <windows.h>
9557 #include <mmsystem.h>
9562 return WOM_OPEN != 0x3BB
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
9584 timidity_cv_header_new_mmsystem=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 timidity_cv_header_new_mmsystem=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 { echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9595 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6; }
9596 if test $timidity_cv_header_new_mmsystem = yes; then
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_NEW_MMSYSTEM 1
9605 # Checks for library functions.
9606 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9607 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_error_at_line+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9621 error_at_line (0, 0, "", 0, "an error occurred");
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_lib_error_at_line=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_lib_error_at_line=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9656 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
9657 if test $ac_cv_lib_error_at_line = no; then
9658 case " $LIBOBJS " in
9659 *" error.$ac_objext "* ) ;;
9660 *) LIBOBJS="$LIBOBJS error.$ac_objext"
9667 for ac_header in vfork.h
9669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 ac_res=`eval echo '${'$as_ac_Header'}'`
9677 { echo "$as_me:$LINENO: result: $ac_res" >&5
9678 echo "${ECHO_T}$ac_res" >&6; }
9680 # Is the header compilable?
9681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 $ac_includes_default
9690 #include <$ac_header>
9692 rm -f conftest.$ac_objext
9693 if { (ac_try="$ac_compile"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_compile") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest.$ac_objext; then
9709 ac_header_compiler=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_header_compiler=no
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9719 echo "${ECHO_T}$ac_header_compiler" >&6; }
9721 # Is the header present?
9722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <$ac_header>
9732 if { (ac_try="$ac_cpp conftest.$ac_ext"
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } >/dev/null && {
9745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9748 ac_header_preproc=yes
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9753 ac_header_preproc=no
9756 rm -f conftest.err conftest.$ac_ext
9757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9758 echo "${ECHO_T}$ac_header_preproc" >&6; }
9760 # So? What about this header?
9761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9767 ac_header_preproc=yes
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9783 ## ------------------------------- ##
9784 ## Report this to root@mput.dip.jp ##
9785 ## ------------------------------- ##
9787 ) | sed "s/^/$as_me: WARNING: /" >&2
9790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 eval "$as_ac_Header=\$ac_header_preproc"
9797 ac_res=`eval echo '${'$as_ac_Header'}'`
9798 { echo "$as_me:$LINENO: result: $ac_res" >&5
9799 echo "${ECHO_T}$ac_res" >&6; }
9802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9803 cat >>confdefs.h <<_ACEOF
9804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9813 for ac_func in fork vfork
9815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9829 #define $ac_func innocuous_$ac_func
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char $ac_func (); below.
9833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 <limits.h> exists even on freestanding compilers. */
9837 # include <limits.h>
9839 # include <assert.h>
9844 /* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9851 /* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854 #if defined __stub_$ac_func || defined __stub___$ac_func
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && {
9880 test -z "$ac_c_werror_flag" ||
9881 test ! -s conftest.err
9882 } && test -s conftest$ac_exeext &&
9883 $as_test_x conftest$ac_exeext; then
9884 eval "$as_ac_var=yes"
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 eval "$as_ac_var=no"
9892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9893 conftest$ac_exeext conftest.$ac_ext
9895 ac_res=`eval echo '${'$as_ac_var'}'`
9896 { echo "$as_me:$LINENO: result: $ac_res" >&5
9897 echo "${ECHO_T}$ac_res" >&6; }
9898 if test `eval echo '${'$as_ac_var'}'` = yes; then
9899 cat >>confdefs.h <<_ACEOF
9900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9906 if test "x$ac_cv_func_fork" = xyes; then
9907 { echo "$as_me:$LINENO: checking for working fork" >&5
9908 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9909 if test "${ac_cv_func_fork_works+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 if test "$cross_compiling" = yes; then
9913 ac_cv_func_fork_works=cross
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 $ac_includes_default
9926 /* By Ruediger Kuhlmann. */
9933 rm -f conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_func_fork_works=yes
9955 echo "$as_me: program exited with status $ac_status" >&5
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_func_fork_works=no
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9967 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9968 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
9971 ac_cv_func_fork_works=$ac_cv_func_fork
9973 if test "x$ac_cv_func_fork_works" = xcross; then
9975 *-*-amigaos* | *-*-msdosdjgpp*)
9976 # Override, as these systems have only a dummy fork() stub
9977 ac_cv_func_fork_works=no
9980 ac_cv_func_fork_works=yes
9983 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9984 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9986 ac_cv_func_vfork_works=$ac_cv_func_vfork
9987 if test "x$ac_cv_func_vfork" = xyes; then
9988 { echo "$as_me:$LINENO: checking for working vfork" >&5
9989 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9990 if test "${ac_cv_func_vfork_works+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 if test "$cross_compiling" = yes; then
9994 ac_cv_func_vfork_works=cross
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 /* Thanks to Paul Eggert for this test. */
10003 $ac_includes_default
10004 #include <sys/wait.h>
10005 #ifdef HAVE_VFORK_H
10006 # include <vfork.h>
10008 /* On some sparc systems, changes by the child to local and incoming
10009 argument registers are propagated back to the parent. The compiler
10010 is told about this with #include <vfork.h>, but some compilers
10011 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10012 static variable whose address is put into a register that is
10013 clobbered by the vfork. */
10016 sparc_address_test (int arg)
10018 sparc_address_test (arg) int arg;
10021 static pid_t child;
10039 pid_t parent = getpid ();
10042 sparc_address_test (0);
10047 /* Here is another test for sparc vfork register problems. This
10048 test uses lots of local variables, at least as many local
10049 variables as main has allocated so far including compiler
10050 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10051 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10052 reuse the register of parent for one of the local variables,
10053 since it will think that parent can't possibly be used any more
10054 in this routine. Assigning to the local variable will thus
10055 munge parent in the parent process. */
10057 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10058 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10059 /* Convince the compiler that p..p7 are live; otherwise, it might
10060 use the same hardware register for all 8 local variables. */
10061 if (p != p1 || p != p2 || p != p3 || p != p4
10062 || p != p5 || p != p6 || p != p7)
10065 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10066 from child file descriptors. If the child closes a descriptor
10067 before it execs or exits, this munges the parent's descriptor
10068 as well. Test for this by closing stdout in the child. */
10069 _exit(close(fileno(stdout)) != 0);
10074 while (wait(&status) != child)
10077 /* Was there some problem with vforking? */
10080 /* Did the child fail? (This shouldn't happen.) */
10083 /* Did the vfork/compiler bug occur? */
10084 || parent != getpid()
10086 /* Did the file descriptor bug occur? */
10087 || fstat(fileno(stdout), &st) != 0
10092 rm -f conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_func_vfork_works=yes
10114 echo "$as_me: program exited with status $ac_status" >&5
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ( exit $ac_status )
10119 ac_cv_func_vfork_works=no
10121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10127 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10130 if test "x$ac_cv_func_fork_works" = xcross; then
10131 ac_cv_func_vfork_works=$ac_cv_func_vfork
10132 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10133 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10136 if test "x$ac_cv_func_vfork_works" = xyes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_WORKING_VFORK 1
10144 cat >>confdefs.h <<\_ACEOF
10149 if test "x$ac_cv_func_fork_works" = xyes; then
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_WORKING_FORK 1
10157 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10158 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10159 if test "${ac_cv_func_memcmp_working+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 if test "$cross_compiling" = yes; then
10163 ac_cv_func_memcmp_working=no
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 $ac_includes_default
10176 /* Some versions of memcmp are not 8-bit clean. */
10177 char c0 = '\100', c1 = '\200', c2 = '\201';
10178 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10181 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10182 or more and with at least one buffer not starting on a 4-byte boundary.
10183 William Lewis provided this test program. */
10188 for (i = 0; i < 4; i++)
10192 strcpy (a, "--------01111111");
10193 strcpy (b, "--------10000000");
10194 if (memcmp (a, b, 16) >= 0)
10204 rm -f conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_cv_func_memcmp_working=yes
10226 echo "$as_me: program exited with status $ac_status" >&5
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ( exit $ac_status )
10231 ac_cv_func_memcmp_working=no
10233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10239 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10240 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10241 *" memcmp.$ac_objext "* ) ;;
10242 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10249 for ac_header in stdlib.h unistd.h
10251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_res=`eval echo '${'$as_ac_Header'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10262 # Is the header compilable?
10263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_compile") 2>conftest.er1
10283 grep -v '^ *+' conftest.er1 >conftest.err
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.$ac_objext; then
10291 ac_header_compiler=yes
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_header_compiler=no
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301 echo "${ECHO_T}$ac_header_compiler" >&6; }
10303 # Is the header present?
10304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 #include <$ac_header>
10314 if { (ac_try="$ac_cpp conftest.$ac_ext"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } >/dev/null && {
10327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10330 ac_header_preproc=yes
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_header_preproc=no
10338 rm -f conftest.err conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340 echo "${ECHO_T}$ac_header_preproc" >&6; }
10342 # So? What about this header?
10343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10365 ## ------------------------------- ##
10366 ## Report this to root@mput.dip.jp ##
10367 ## ------------------------------- ##
10369 ) | sed "s/^/$as_me: WARNING: /" >&2
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 eval "$as_ac_Header=\$ac_header_preproc"
10379 ac_res=`eval echo '${'$as_ac_Header'}'`
10380 { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10394 for ac_func in getpagesize
10396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10410 #define $ac_func innocuous_$ac_func
10412 /* System header to define __stub macros and hopefully few prototypes,
10413 which can conflict with char $ac_func (); below.
10414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10415 <limits.h> exists even on freestanding compilers. */
10418 # include <limits.h>
10420 # include <assert.h>
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10432 /* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435 #if defined __stub_$ac_func || defined __stub___$ac_func
10442 return $ac_func ();
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext &&
10464 $as_test_x conftest$ac_exeext; then
10465 eval "$as_ac_var=yes"
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 eval "$as_ac_var=no"
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10476 ac_res=`eval echo '${'$as_ac_var'}'`
10477 { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 { echo "$as_me:$LINENO: checking for working mmap" >&5
10488 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10489 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 if test "$cross_compiling" = yes; then
10493 ac_cv_func_mmap_fixed_mapped=no
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 /* malloc might have been renamed as rpl_malloc. */
10505 /* Thanks to Mike Haertel and Jim Avera for this test.
10506 Here is a matrix of mmap possibilities:
10507 mmap private not fixed
10508 mmap private fixed at somewhere currently unmapped
10509 mmap private fixed at somewhere already mapped
10510 mmap shared not fixed
10511 mmap shared fixed at somewhere currently unmapped
10512 mmap shared fixed at somewhere already mapped
10513 For private mappings, we should verify that changes cannot be read()
10514 back from the file, nor mmap's back from the file at a different
10515 address. (There have been systems where private was not correctly
10516 implemented like the infamous i386 svr4.0, and systems where the
10517 VM page cache was not coherent with the file system buffer cache
10518 like early versions of FreeBSD and possibly contemporary NetBSD.)
10519 For shared mappings, we should conversely verify that changes get
10520 propagated back to all the places they're supposed to be.
10522 Grep wants private fixed already mapped.
10523 The main things grep needs to know about mmap are:
10524 * does it exist and is it safe to write into the mmap'd area
10525 * how to use it (BSD variants) */
10528 #include <sys/mman.h>
10530 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10534 /* This mess was copied from the GNU getpagesize.h. */
10535 #ifndef HAVE_GETPAGESIZE
10536 /* Assume that all systems that can run configure have sys/param.h. */
10537 # ifndef HAVE_SYS_PARAM_H
10538 # define HAVE_SYS_PARAM_H 1
10541 # ifdef _SC_PAGESIZE
10542 # define getpagesize() sysconf(_SC_PAGESIZE)
10543 # else /* no _SC_PAGESIZE */
10544 # ifdef HAVE_SYS_PARAM_H
10545 # include <sys/param.h>
10546 # ifdef EXEC_PAGESIZE
10547 # define getpagesize() EXEC_PAGESIZE
10548 # else /* no EXEC_PAGESIZE */
10550 # define getpagesize() NBPG * CLSIZE
10553 # endif /* no CLSIZE */
10554 # else /* no NBPG */
10556 # define getpagesize() NBPC
10557 # else /* no NBPC */
10559 # define getpagesize() PAGESIZE
10560 # endif /* PAGESIZE */
10561 # endif /* no NBPC */
10562 # endif /* no NBPG */
10563 # endif /* no EXEC_PAGESIZE */
10564 # else /* no HAVE_SYS_PARAM_H */
10565 # define getpagesize() 8192 /* punt totally */
10566 # endif /* no HAVE_SYS_PARAM_H */
10567 # endif /* no _SC_PAGESIZE */
10569 #endif /* no HAVE_GETPAGESIZE */
10574 char *data, *data2, *data3;
10578 pagesize = getpagesize ();
10580 /* First, make a file with some known garbage in it. */
10581 data = (char *) malloc (pagesize);
10584 for (i = 0; i < pagesize; ++i)
10585 *(data + i) = rand ();
10587 fd = creat ("conftest.mmap", 0600);
10590 if (write (fd, data, pagesize) != pagesize)
10594 /* Next, try to mmap the file at a fixed address which already has
10595 something else allocated at it. If we can, also make sure that
10596 we see the same garbage. */
10597 fd = open ("conftest.mmap", O_RDWR);
10600 data2 = (char *) malloc (2 * pagesize);
10603 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10607 for (i = 0; i < pagesize; ++i)
10608 if (*(data + i) != *(data2 + i))
10611 /* Finally, make sure that changes to the mapped area do not
10612 percolate back to the file as seen by read(). (This is a bug on
10613 some variants of i386 svr4.0.) */
10614 for (i = 0; i < pagesize; ++i)
10615 *(data2 + i) = *(data2 + i) + 1;
10616 data3 = (char *) malloc (pagesize);
10619 if (read (fd, data3, pagesize) != pagesize)
10621 for (i = 0; i < pagesize; ++i)
10622 if (*(data + i) != *(data3 + i))
10628 rm -f conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_func_mmap_fixed_mapped=yes
10650 echo "$as_me: program exited with status $ac_status" >&5
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ( exit $ac_status )
10655 ac_cv_func_mmap_fixed_mapped=no
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10662 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10663 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10664 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_MMAP 1
10671 rm -f conftest.mmap
10673 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10674 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
10675 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 ac_cv_func_setvbuf_reversed=no
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10687 int (setvbuf) (FILE *, int, char *, size_t);
10692 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext &&
10714 $as_test_x conftest$ac_exeext; then
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10723 int (setvbuf) (FILE *, int, char *, size_t);
10728 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_link") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest$ac_exeext &&
10750 $as_test_x conftest$ac_exeext; then
10751 # It compiles and links either way, so it must not be declared
10752 # with a prototype and most likely this is a K&R C compiler.
10754 if test "$cross_compiling" = yes; then
10755 : # Assume setvbuf is not reversed when cross-compiling.
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 $ac_includes_default
10767 /* This call has the arguments reversed.
10768 A reversed system may check and see that the address of buf
10769 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10771 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10774 return 0; /* Non-reversed systems SEGV here. */
10779 rm -f conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_cv_func_setvbuf_reversed=yes
10801 echo "$as_me: program exited with status $ac_status" >&5
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10810 ac_cv_func_setvbuf_reversed=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10819 conftest$ac_exeext conftest.$ac_ext
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10831 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
10832 if test $ac_cv_func_setvbuf_reversed = yes; then
10834 cat >>confdefs.h <<\_ACEOF
10835 #define SETVBUF_REVERSED 1
10840 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10841 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10842 if test "${ac_cv_type_signal+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <sys/types.h>
10852 #include <signal.h>
10857 return *(signal (0, 0)) (0) == 1;
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest.$ac_objext; then
10879 ac_cv_type_signal=int
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_type_signal=void
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10890 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10892 cat >>confdefs.h <<_ACEOF
10893 #define RETSIGTYPE $ac_cv_type_signal
10897 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
10899 for ac_func in vprintf
10901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10915 #define $ac_func innocuous_$ac_func
10917 /* System header to define __stub macros and hopefully few prototypes,
10918 which can conflict with char $ac_func (); below.
10919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10920 <limits.h> exists even on freestanding compilers. */
10923 # include <limits.h>
10925 # include <assert.h>
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined __stub_$ac_func || defined __stub___$ac_func
10947 return $ac_func ();
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_link") 2>conftest.er1
10961 grep -v '^ *+' conftest.er1 >conftest.err
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_c_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest$ac_exeext &&
10969 $as_test_x conftest$ac_exeext; then
10970 eval "$as_ac_var=yes"
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 eval "$as_ac_var=no"
10978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979 conftest$ac_exeext conftest.$ac_ext
10981 ac_res=`eval echo '${'$as_ac_var'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10984 if test `eval echo '${'$as_ac_var'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 { echo "$as_me:$LINENO: checking for _doprnt" >&5
10990 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
10991 if test "${ac_cv_func__doprnt+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define _doprnt innocuous__doprnt
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char _doprnt (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11024 /* The GNU C library defines this for functions which it implements
11025 to always fail with ENOSYS. Some functions are actually named
11026 something starting with __ and the normal name is an alias. */
11027 #if defined __stub__doprnt || defined __stub____doprnt
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_link") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest$ac_exeext &&
11056 $as_test_x conftest$ac_exeext; then
11057 ac_cv_func__doprnt=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_func__doprnt=no
11065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11066 conftest$ac_exeext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11069 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11070 if test $ac_cv_func__doprnt = yes; then
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_DOPRNT 1
11157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11171 #define $ac_func innocuous_$ac_func
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char $ac_func (); below.
11175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11176 <limits.h> exists even on freestanding compilers. */
11179 # include <limits.h>
11181 # include <assert.h>
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11193 /* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196 #if defined __stub_$ac_func || defined __stub___$ac_func
11203 return $ac_func ();
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (ac_try="$ac_link"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_link") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext &&
11225 $as_test_x conftest$ac_exeext; then
11226 eval "$as_ac_var=yes"
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 eval "$as_ac_var=no"
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235 conftest$ac_exeext conftest.$ac_ext
11237 ac_res=`eval echo '${'$as_ac_var'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 if test "x$VCPP" = xyes; then
11249 cat >>confdefs.h <<\_ACEOF
11250 #define RETSIGTYPE int
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_GETCWD 1
11258 if test "x$POCC" = xyes; then
11259 cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_GETCWD 1
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_GETHOSTBYNAME 1
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_POPEN 1
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_SELECT 1
11275 cat >>confdefs.h <<\_ACEOF
11276 #define HAVE_SNPRINTF 1
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_STRDUP 1
11283 cat >>confdefs.h <<\_ACEOF
11284 #define HAVE_STRERROR 1
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_STRCASECMP 1
11291 cat >>confdefs.h <<\_ACEOF
11292 #define HAVE_STRSTR 1
11295 cat >>confdefs.h <<\_ACEOF
11296 #define HAVE_SOCKET 1
11299 cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_VSNPRINTF 1
11303 cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_GETOPT 1
11308 cat >>confdefs.h <<\_ACEOF
11309 #define TIMID_VERSION $(PACKAGE_VERSION)
11313 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11314 cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_GETHOSTBYNAME 1
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_POPEN 1
11323 cat >>confdefs.h <<\_ACEOF
11324 #define popen _popen
11328 cat >>confdefs.h <<\_ACEOF
11329 #define pclose _pclose
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_SELECT 1
11336 cat >>confdefs.h <<\_ACEOF
11337 #define HAVE_SNPRINTF 1
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_STRDUP 1
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_STRERROR 1
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_STRNCASECMP 1
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_STRSTR 1
11357 cat >>confdefs.h <<\_ACEOF
11358 #define snprintf _snprintf
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_SOCKET 1
11365 cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_VSNPRINTF 1
11370 cat >>confdefs.h <<\_ACEOF
11371 #define vsnprintf _vsnprintf
11375 cat >>confdefs.h <<\_ACEOF
11376 #define TIMID_VERSION $(PACKAGE_VERSION)
11381 { echo "$as_me:$LINENO: checking for getopt_long" >&5
11382 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
11383 if test "${ac_cv_func_getopt_long+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11394 #define getopt_long innocuous_getopt_long
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char getopt_long (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11402 # include <limits.h>
11404 # include <assert.h>
11409 /* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11415 char getopt_long ();
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined __stub_getopt_long || defined __stub___getopt_long
11426 return getopt_long ();
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
11449 ac_cv_func_getopt_long=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_func_getopt_long=no
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458 conftest$ac_exeext conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11461 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
11462 if test $ac_cv_func_getopt_long = yes; then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_GETOPT_LONG 1
11468 tm_cv_needgetopt="no"
11470 tm_cv_needgetopt="yes"
11475 if test "x$tm_cv_needgetopt" = "xyes"; then
11477 NEEDGETOPT_FALSE='#'
11479 NEEDGETOPT_TRUE='#'
11484 { echo "$as_me:$LINENO: checking for open_memstream" >&5
11485 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6; }
11486 if test "${ac_cv_func_open_memstream+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define open_memstream innocuous_open_memstream
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char open_memstream (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11505 # include <limits.h>
11507 # include <assert.h>
11510 #undef open_memstream
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11518 char open_memstream ();
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_open_memstream || defined __stub___open_memstream
11529 return open_memstream ();
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest$ac_exeext &&
11551 $as_test_x conftest$ac_exeext; then
11552 ac_cv_func_open_memstream=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_cv_func_open_memstream=no
11560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11561 conftest$ac_exeext conftest.$ac_ext
11563 { echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
11564 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6; }
11565 if test $ac_cv_func_open_memstream = yes; then
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_OPEN_MEMSTREAM 1
11576 # Checks on cygnus and MSYS
11577 if test "x$MSYS" = xyes ; then
11578 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11580 { echo "$as_me:$LINENO: checking for opendir" >&5
11581 echo $ECHO_N "checking for opendir... $ECHO_C" >&6; }
11582 if test "${ac_cv_func_opendir+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11593 #define opendir innocuous_opendir
11595 /* System header to define __stub macros and hopefully few prototypes,
11596 which can conflict with char opendir (); below.
11597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 <limits.h> exists even on freestanding compilers. */
11601 # include <limits.h>
11603 # include <assert.h>
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11615 /* The GNU C library defines this for functions which it implements
11616 to always fail with ENOSYS. Some functions are actually named
11617 something starting with __ and the normal name is an alias. */
11618 #if defined __stub_opendir || defined __stub___opendir
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (ac_try="$ac_link"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_link") 2>conftest.er1
11639 grep -v '^ *+' conftest.er1 >conftest.err
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest$ac_exeext &&
11647 $as_test_x conftest$ac_exeext; then
11648 ac_cv_func_opendir=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_cv_func_opendir=no
11656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11657 conftest$ac_exeext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11660 echo "${ECHO_T}$ac_cv_func_opendir" >&6; }
11661 if test $ac_cv_func_opendir = yes; then
11664 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11669 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11673 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
11674 EXTRALIBS="$EXTRALIBS wsock32.lib"
11675 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11677 { echo "$as_me:$LINENO: checking for socket" >&5
11678 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
11679 if test "${ac_cv_func_socket+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11690 #define socket innocuous_socket
11692 /* System header to define __stub macros and hopefully few prototypes,
11693 which can conflict with char socket (); below.
11694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695 <limits.h> exists even on freestanding compilers. */
11698 # include <limits.h>
11700 # include <assert.h>
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11712 /* The GNU C library defines this for functions which it implements
11713 to always fail with ENOSYS. Some functions are actually named
11714 something starting with __ and the normal name is an alias. */
11715 #if defined __stub_socket || defined __stub___socket
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_link") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest$ac_exeext &&
11744 $as_test_x conftest$ac_exeext; then
11745 ac_cv_func_socket=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_cv_func_socket=no
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754 conftest$ac_exeext conftest.$ac_ext
11756 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11757 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
11758 if test $ac_cv_func_socket = yes; then
11761 { echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11762 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6; }
11763 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11764 if { as_var=wapi_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 ac_save_LIBS="$LIBS"
11768 LIBS="-lwsock32 $LIBS"
11769 cat >conftest.$ac_ext <<_ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <windows.h>
11776 #include <winsock.h>
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (ac_try="$ac_link"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_link") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest$ac_exeext &&
11803 $as_test_x conftest$ac_exeext; then
11804 eval "wapi_cv_lib_$ac_lib_var=yes"
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 eval "wapi_cv_lib_$ac_lib_var=no"
11812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS="$ac_save_LIBS"
11817 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11818 { echo "$as_me:$LINENO: result: yes" >&5
11819 echo "${ECHO_T}yes" >&6; }
11820 EXTRALIBS="$EXTRALIBS -lwsock32"
11821 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11824 { echo "$as_me:$LINENO: result: no" >&5
11825 echo "${ECHO_T}no" >&6; }
11834 # Checks on extra paths
11837 # Check whether --with-tcl-includes was given.
11838 if test "${with_tcl_includes+set}" = set; then
11839 withval=$with_tcl_includes; if test ! -d $withval; then
11840 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11841 echo "$as_me: WARNING: $withval is not found." >&2;}
11843 tcl_include_dir="-I$withval"
11848 # Check whether --with-tcl-libs was given.
11849 if test "${with_tcl_libs+set}" = set; then
11850 withval=$with_tcl_libs; if test ! -d $withval; then
11851 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11852 echo "$as_me: WARNING: $withval is not found." >&2;}
11854 tcl_libdir="-L$withval"
11858 # Check whether --with-tk-includes was given.
11859 if test "${with_tk_includes+set}" = set; then
11860 withval=$with_tk_includes; if test ! -d $withval; then
11861 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11862 echo "$as_me: WARNING: $withval is not found." >&2;}
11864 tk_includes="-I$withval"
11868 # Check whether --with-tk-libs was given.
11869 if test "${with_tk_libs+set}" = set; then
11870 withval=$with_tk_libs; if test ! -d $withval; then
11871 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11872 echo "$as_me: WARNING: $withval is not found." >&2;}
11874 tk_libdir="-L$withval"
11879 # Check whether --with-offix-includes was given.
11880 if test "${with_offix_includes+set}" = set; then
11881 withval=$with_offix_includes; if test ! -d $withval; then
11882 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11883 echo "$as_me: WARNING: $withval is not found." >&2;}
11885 offix_include_dir="-I$withval"
11889 # Check whether --with-offix-libs was given.
11890 if test "${with_offix_libs+set}" = set; then
11891 withval=$with_offix_libs; if test ! -d $withval; then
11892 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11893 echo "$as_me: WARNING: $withval is not found." >&2;}
11895 offix_lib_dir="-L$withval"
11904 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio npipe jack ao'
11907 # Check whether --with-nas-library was given.
11908 if test "${with_nas_library+set}" = set; then
11909 withval=$with_nas_library;
11913 # Check whether --with-nas-includes was given.
11914 if test "${with_nas_includes+set}" = set; then
11915 withval=$with_nas_includes;
11920 # Check whether --enable-audio was given.
11921 if test "${enable_audio+set}" = set; then
11922 enableval=$enable_audio; enable_audio=$enableval
11930 test "x$enable_audio" = xyes && enable_audio=default
11932 if test "x$enable_audio" != xno; then
11933 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11934 eval "au_enable_$i=yes"
11940 # Check whether --with-default-output was given.
11941 if test "${with_default_output+set}" = set; then
11942 withval=$with_default_output; if test "$enable_audio" != no; then
11943 DEFAULT_PLAYMODE=$withval
11944 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11946 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11947 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11953 if test "x$au_enable_default" = xyes; then
11955 *-*-linux*|*-*-freebsd*)
11959 au_enable_sb_dsp=yes
11961 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11992 au_enable_darwin=yes
11995 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11996 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
12002 # Each audio mode's configurations
12003 { echo "$as_me:$LINENO: checking enable_audio=oss" >&5
12004 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6; }
12005 if test "x$au_enable_oss" = xyes; then
12006 EXTRADEFS="$EXTRADEFS -DAU_OSS"
12007 SYSEXTRAS="$SYSEXTRAS oss_a.c"
12008 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
12009 { echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
12010 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6; }
12014 { echo "$as_me:$LINENO: result: yes" >&5
12015 echo "${ECHO_T}yes" >&6; }
12018 if test "x$ac_cv_header_soundcard_h" = xyes; then
12019 { echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
12020 echo "${ECHO_T}yes - <soundcard.h>" >&6; }
12022 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
12023 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
12029 { echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
12030 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6; }
12031 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lossaudio $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12067 grep -v '^ *+' conftest.er1 >conftest.err
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest$ac_exeext &&
12075 $as_test_x conftest$ac_exeext; then
12076 ac_cv_lib_ossaudio_open=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_lib_ossaudio_open=no
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
12089 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6; }
12090 if test $ac_cv_lib_ossaudio_open = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092 #define HAVE_LIBOSSAUDIO 1
12095 LIBS="-lossaudio $LIBS"
12102 if test ! -e "/dev/dsp"; then
12103 oss_device=/dev/audio
12108 { echo "$as_me:$LINENO: result: no" >&5
12109 echo "${ECHO_T}no" >&6; }
12112 { echo "$as_me:$LINENO: checking enable_audio=sun" >&5
12113 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6; }
12114 if test "x$au_enable_sun" = xyes; then
12117 if test -f /usr/demo/SOUND/libaudio.a; then
12118 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
12119 { echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6; }
12122 { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12123 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
12127 if test -f /usr/demo/SOUND/lib/libaudio.a; then
12128 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
12129 { echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6; }
12132 { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12133 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
12136 *) { echo "$as_me:$LINENO: result: yes" >&5
12137 echo "${ECHO_T}yes" >&6; }
12140 EXTRADEFS="$EXTRADEFS -DAU_SUN"
12141 SYSEXTRAS="$SYSEXTRAS sun_a.c"
12143 { echo "$as_me:$LINENO: result: no" >&5
12144 echo "${ECHO_T}no" >&6; }
12147 { echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12148 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6; }
12149 if test "x$au_enable_hpux" = xyes; then
12151 *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6; } ;;
12153 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12154 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12156 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12157 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12159 { echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6; }
12163 { echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12164 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6; }
12165 if test "x$au_enable_irix" = xyes; then
12167 *-sgi-irix5*|*-sgi-irix6.2)
12168 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12169 { echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6; }
12173 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12174 { echo "$as_me:$LINENO: result: yes" >&5
12175 echo "${ECHO_T}yes" >&6; }
12177 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12178 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12180 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12181 EXTRALIBS="$EXTRASLIBS -laudio"
12183 { echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6; }
12187 { echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12188 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6; }
12189 if test "x$au_enable_mme" = xyes; then
12191 *-dec-*) { echo "$as_me:$LINENO: result: yes" >&5
12192 echo "${ECHO_T}yes" >&6; } ;;
12193 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12194 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12196 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
12197 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12198 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12199 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12201 { echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6; }
12205 { echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12206 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6; }
12207 if test "x$au_enable_sb_dsp" = xyes; then
12209 *-*-bsdi2.0) { echo "$as_me:$LINENO: result: yes" >&5
12210 echo "${ECHO_T}yes" >&6; } ;;
12211 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12212 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12214 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12215 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12217 { echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6; }
12221 { echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12222 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6; }
12223 if test "x$au_enable_w32" = xyes; then
12226 { echo "$as_me:$LINENO: result: yes" >&5
12227 echo "${ECHO_T}yes" >&6; }
12230 { echo "$as_me:$LINENO: result: yes" >&5
12231 echo "${ECHO_T}yes" >&6; }
12234 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12235 echo "$as_me: WARNING: may not work on $target" >&2;}
12238 SYSEXTRAS="$SYSEXTRAS w32_a.c"
12239 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
12240 EXTRALIBS="$EXTRALIBS winmm.lib"
12242 EXTRALIBS="$EXTRALIBS -lwinmm"
12244 EXTRADEFS="$EXTRADEFS -DAU_W32"
12246 { echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6; }
12250 { echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12251 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6; }
12252 if test "x$au_enable_darwin" = xyes; then
12253 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12254 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12255 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12258 { echo "$as_me:$LINENO: result: yes" >&5
12259 echo "${ECHO_T}yes" >&6; };;
12261 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12262 echo "$as_me: WARNING: may not work on $target" >&2;}
12266 { echo "$as_me:$LINENO: result: no" >&5
12267 echo "${ECHO_T}no" >&6; }
12271 { echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12272 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6; }
12273 if test "x$au_enable_alsa" = xyes; then
12274 { echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12275 echo "${ECHO_T}yes, configuring alsa" >&6; }
12278 KEEPLDFLAGS=$LDFLAGS
12279 alsa_save_CFLAGS="$CFLAGS"
12280 alsa_save_LDFLAGS="$LDFLAGS"
12281 alsa_save_LIBS="$LIBS"
12285 # Check whether --with-alsa-prefix was given.
12286 if test "${with_alsa_prefix+set}" = set; then
12287 withval=$with_alsa_prefix; alsa_prefix="$withval"
12294 # Check whether --with-alsa-inc-prefix was given.
12295 if test "${with_alsa_inc_prefix+set}" = set; then
12296 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
12302 # Check whether --enable-alsatest was given.
12303 if test "${enable_alsatest+set}" = set; then
12304 enableval=$enable_alsatest; enable_alsatest=no
12306 enable_alsatest=yes
12310 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12311 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
12312 if test "$alsa_inc_prefix" != "" ; then
12313 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12314 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12316 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12317 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
12319 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12320 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
12321 if test "$alsa_prefix" != "" ; then
12322 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12323 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12326 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12327 LIBS=`echo $LIBS | sed 's/-lm//'`
12328 LIBS=`echo $LIBS | sed 's/-ldl//'`
12329 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12330 LIBS=`echo $LIBS | sed 's/ //'`
12331 LIBS="$ALSA_LIBS $LIBS"
12332 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12333 echo "${ECHO_T}$ALSA_LIBS" >&6; }
12335 min_alsa_version=0.1.1
12336 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12337 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
12339 alsa_min_major_version=`echo $min_alsa_version | \
12340 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12341 alsa_min_minor_version=`echo $min_alsa_version | \
12342 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12343 alsa_min_micro_version=`echo $min_alsa_version | \
12344 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354 cat >conftest.$ac_ext <<_ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12361 #include <alsa/asoundlib.h>
12367 /* ensure backward compatibility */
12368 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12369 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12371 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12372 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12374 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12375 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12378 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12381 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12382 # error not present
12385 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12388 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12389 # error not present
12392 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12393 # error not present
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 { echo "$as_me:$LINENO: result: found." >&5
12421 echo "${ECHO_T}found." >&6; }
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 #include <sys/asoundlib.h>
12439 /* ensure backward compatibility */
12440 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12441 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12443 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12444 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12446 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12447 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12450 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12453 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12454 # error not present
12457 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12460 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12461 # error not present
12464 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12465 # error not present
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_compile") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } && {
12489 test -z "$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12491 } && test -s conftest.$ac_objext; then
12492 { echo "$as_me:$LINENO: result: found." >&5
12493 echo "${ECHO_T}found." >&6; }
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 { echo "$as_me:$LINENO: result: not present." >&5
12499 echo "${ECHO_T}not present." >&6; }
12500 { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12501 echo "${ECHO_T}libasound was not found anywhere." >&6; }
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12507 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12520 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12521 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lasound $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12540 char snd_ctl_open ();
12544 return snd_ctl_open ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_asound_snd_ctl_open=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_asound_snd_ctl_open=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12580 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
12581 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_LIBASOUND 1
12586 LIBS="-lasound $LIBS"
12589 { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12590 echo "${ECHO_T}No linkable libasound was found." >&6; }
12596 if test "x$alsa_found" = "xyes" ; then
12598 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12599 LIBS=`echo $LIBS | sed 's/ //'`
12600 LIBS="-lasound $LIBS"
12603 CFLAGS="$alsa_save_CFLAGS"
12604 LDFLAGS="$alsa_save_LDFLAGS"
12605 LIBS="$alsa_save_LIBS"
12613 if test "x$alsa_found" = "xyes" ; then
12614 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12615 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12616 for f in $ALSA_CFLAGS; do
12618 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12619 *) CFLAGS="$CFLAGS $f" ;;
12623 LIBS="$LIBS $ALSA_LIBS"
12625 for ac_func in snd_seq_port_info_set_timestamping
12627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12641 #define $ac_func innocuous_$ac_func
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func (); below.
12645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 <limits.h> exists even on freestanding compilers. */
12649 # include <limits.h>
12651 # include <assert.h>
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12663 /* The GNU C library defines this for functions which it implements
12664 to always fail with ENOSYS. Some functions are actually named
12665 something starting with __ and the normal name is an alias. */
12666 #if defined __stub_$ac_func || defined __stub___$ac_func
12673 return $ac_func ();
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 eval "$as_ac_var=yes"
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 eval "$as_ac_var=no"
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12719 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12720 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12723 LDFLAGS=$KEEPLDFLAGS
12726 { echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6; }
12730 { echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12731 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6; }
12732 if test "x$au_enable_alib" = xyes; then
12734 *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
12735 echo "${ECHO_T}yes" >&6; } ;;
12736 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12737 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12739 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12740 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12741 if test -d /opt/audio/include; then
12742 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12744 if test -d /opt/audio/lib; then
12745 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12747 EXTRALIBS="$EXTRALIBS -lAlib"
12749 { echo "$as_me:$LINENO: result: no" >&5
12750 echo "${ECHO_T}no" >&6; }
12753 { echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12754 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6; }
12755 if test "x$au_enable_nas" = xyes; then
12756 if test "x$with_x" != xyes; then
12757 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12758 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12759 { (exit 1); exit 1; }; }
12761 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12762 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12765 if test "x$with_nas_library" != x; then
12766 { echo "$as_me:$LINENO: result: $with_nas_library" >&5
12767 echo "${ECHO_T}$with_nas_library" >&6; };
12768 EXTRALIBS="$EXTRALIBS $with_nas_library"
12770 { echo "$as_me:$LINENO: result: " >&5
12771 echo "${ECHO_T}" >&6; }
12772 { echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12773 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6; }
12774 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 ac_func_search_save_LIBS="$LIBS"
12778 timidity_cv_search_AuOpenServer="no"
12779 for i in $x_libraries/libaudio.a \
12780 /usr/lib/libaudio.so \
12781 /usr/lib/libaudio.a ; do
12782 LIBS="$i $ac_func_search_save_LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12796 char AuOpenServer ();
12800 return AuOpenServer ();
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_link") 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_c_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest$ac_exeext &&
12822 $as_test_x conftest$ac_exeext; then
12823 timidity_cv_search_AuOpenServer="$i"; break
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832 conftest$ac_exeext conftest.$ac_ext
12834 LIBS="$ac_func_search_save_LIBS"
12836 { echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12837 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6; }
12838 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12839 { echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12840 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6; }
12841 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12843 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12844 echo "$as_me: WARNING: NAS library is not found." >&2;}
12847 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12849 if test "x$have_xext" = xyes; then
12850 lib_xext_opt=-lXext
12852 if test "x$have_xprelibs" = xyes; then
12853 lib_xprelibs_opt='-lSM -lICE'
12856 { echo "$as_me:$LINENO: result: no" >&5
12857 echo "${ECHO_T}no" >&6; }
12860 { echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12861 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6; }
12862 if test "x$au_enable_arts" = xyes; then
12863 { echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12864 echo "${ECHO_T}yes, configuring aRts" >&6; }
12865 # Extract the first word of "artsc-config", so it can be a program name with args.
12866 set dummy artsc-config; ac_word=$2
12867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12869 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 case $ARTSCCONFIG in
12874 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12884 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12896 if test -n "$ARTSCCONFIG"; then
12897 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12898 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12900 { echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6; }
12905 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12908 for i in `$ARTSCCONFIG --cflags`
12911 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12914 ARTSC_LIBS=`$ARTSCCONFIG --libs`
12915 save_CFLAGS="$CFLAGS"
12916 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12927 arts_stream_t stream;
12932 rm -f conftest.$ac_objext
12933 if { (ac_try="$ac_compile"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_compile") 2>conftest.er1
12941 grep -v '^ *+' conftest.er1 >conftest.err
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } && {
12946 test -z "$ac_c_werror_flag" ||
12947 test ! -s conftest.err
12948 } && test -s conftest.$ac_objext; then
12949 ARTSLIBS=$ARTSC_LIBS
12951 ARTSINCL=$ARTSC_CFLAGS
12954 cat >>confdefs.h <<\_ACEOF
12955 #define HAVE_ARTS 1
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 CFLAGS="$save_CFLAGS"
12971 if test "$have_arts" = "yes"; then
12972 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12973 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12974 for f in $ARTSC_CFLAGS; do
12976 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12977 *) CFLAGS="$CFLAGS $f" ;;
12981 LIBS="$LIBS $ARTSC_LIBS"
12983 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12984 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12987 { echo "$as_me:$LINENO: result: no" >&5
12988 echo "${ECHO_T}no" >&6; }
12991 { echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12992 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6; }
12993 if test "x$au_enable_esd" = xyes; then
12994 { echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12995 echo "${ECHO_T}yes, configuring esd" >&6; }
12998 KEEPLDFLAGS=$LDFLAGS
13000 # Check whether --with-esd-prefix was given.
13001 if test "${with_esd_prefix+set}" = set; then
13002 withval=$with_esd_prefix; esd_prefix="$withval"
13008 # Check whether --with-esd-exec-prefix was given.
13009 if test "${with_esd_exec_prefix+set}" = set; then
13010 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
13015 # Check whether --enable-esdtest was given.
13016 if test "${enable_esdtest+set}" = set; then
13017 enableval=$enable_esdtest;
13023 if test x$esd_exec_prefix != x ; then
13024 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13025 if test x${ESD_CONFIG+set} != xset ; then
13026 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13029 if test x$esd_prefix != x ; then
13030 esd_args="$esd_args --prefix=$esd_prefix"
13031 if test x${ESD_CONFIG+set} != xset ; then
13032 ESD_CONFIG=$esd_prefix/bin/esd-config
13036 # Extract the first word of "esd-config", so it can be a program name with args.
13037 set dummy esd-config; ac_word=$2
13038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13040 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 case $ESD_CONFIG in
13045 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13067 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13068 if test -n "$ESD_CONFIG"; then
13069 { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13070 echo "${ECHO_T}$ESD_CONFIG" >&6; }
13072 { echo "$as_me:$LINENO: result: no" >&5
13073 echo "${ECHO_T}no" >&6; }
13077 min_esd_version=0.2.7
13078 { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13079 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
13081 if test "$ESD_CONFIG" = "no" ; then
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13092 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13094 esd_major_version=`$ESD_CONFIG $esd_args --version | \
13095 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13096 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13097 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13098 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13100 if test "x$enable_esdtest" = "xyes" ; then
13101 ac_save_CFLAGS="$CFLAGS"
13102 ac_save_LIBS="$LIBS"
13103 CFLAGS="$CFLAGS $ESD_CFLAGS"
13104 LIBS="$LIBS $ESD_LIBS"
13106 if test "$cross_compiling" = yes; then
13107 echo $ac_n "cross compiling; assumed OK... $ac_c"
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13117 #include <stdlib.h>
13118 #include <string.h>
13122 my_strdup (char *str)
13128 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13129 strcpy (new_str, str);
13139 int major, minor, micro;
13142 system ("touch conf.esdtest");
13144 /* HP/UX 9 (%@#!) writes to sscanf strings */
13145 tmp_version = my_strdup("$min_esd_version");
13146 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13147 printf("%s, bad version string\n", "$min_esd_version");
13151 if (($esd_major_version > major) ||
13152 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13153 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13159 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13160 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13161 printf("*** best to upgrade to the required version.\n");
13162 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13163 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13164 printf("*** config.cache before re-running configure\n");
13171 rm -f conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13193 echo "$as_me: program exited with status $ac_status" >&5
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ( exit $ac_status )
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13204 CFLAGS="$ac_save_CFLAGS"
13205 LIBS="$ac_save_LIBS"
13207 ac_cpp='$CPP $CPPFLAGS'
13208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214 if test "x$no_esd" = x ; then
13215 { echo "$as_me:$LINENO: result: yes" >&5
13216 echo "${ECHO_T}yes" >&6; }
13219 { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13221 if test "$ESD_CONFIG" = "no" ; then
13222 echo "*** The esd-config script installed by ESD could not be found"
13223 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13224 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13225 echo "*** full path to esd-config."
13227 if test -f conf.esdtest ; then
13230 echo "*** Could not run ESD test program, checking why..."
13231 CFLAGS="$CFLAGS $ESD_CFLAGS"
13232 LIBS="$LIBS $ESD_LIBS"
13235 ac_cpp='$CPP $CPPFLAGS'
13236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240 cat >conftest.$ac_ext <<_ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest$ac_exeext &&
13275 $as_test_x conftest$ac_exeext; then
13276 echo "*** The test program compiled, but did not run. This usually means"
13277 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13278 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13279 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13280 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13281 echo "*** is required on your system"
13283 echo "*** If you have an old version installed, it is best to remove it, although"
13284 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 echo "*** The test program failed to compile or link. See the file config.log for the"
13290 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13291 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13292 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13296 conftest$ac_exeext conftest.$ac_ext
13297 CFLAGS="$ac_save_CFLAGS"
13298 LIBS="$ac_save_LIBS"
13300 ac_cpp='$CPP $CPPFLAGS'
13301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 LDFLAGS=$KEEPLDFLAGS
13318 if test "x$no_esd" = x; then
13319 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13320 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13321 for f in $ESD_CFLAGS; do
13323 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13324 *) CFLAGS="$CFLAGS $f" ;;
13328 LIBS="$LIBS $ESD_LIBS"
13330 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13331 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13334 { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13338 { echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13339 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6; }
13340 if test "x$au_enable_portaudio" = xyes; then
13341 { echo "$as_me:$LINENO: result: yes" >&5
13342 echo "${ECHO_T}yes" >&6; }
13343 if test "x$MSYS" = xyes ; then
13344 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13345 EXTRALIBS="$EXTRALIBS -lportaudio"
13346 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13348 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13349 EXTRALIBS="$EXTRALIBS -lportaudio"
13350 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13353 { echo "$as_me:$LINENO: result: no" >&5
13354 echo "${ECHO_T}no" >&6; }
13357 { echo "$as_me:$LINENO: checking enable_audio=npipe" >&5
13358 echo $ECHO_N "checking enable_audio=npipe... $ECHO_C" >&6; }
13359 if test "x$au_enable_npipe" = xyes; then
13360 { echo "$as_me:$LINENO: result: yes" >&5
13361 echo "${ECHO_T}yes" >&6; }
13362 SYSEXTRAS="$SYSEXTRAS npipe_a.c"
13363 EXTRADEFS="$EXTRADEFS -DAU_NPIPE"
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13370 { echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13371 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6; }
13372 if test "x$au_enable_jack" = xyes; then
13373 { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13375 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13376 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13377 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13379 { echo "$as_me:$LINENO: result: no" >&5
13380 echo "${ECHO_T}no" >&6; }
13383 { echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13384 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6; }
13385 if test "x$au_enable_ao" = xyes; then
13386 { echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13387 echo "${ECHO_T}yes, configuring ao" >&6; }
13389 # Check whether --with-ao was given.
13390 if test "${with_ao+set}" = set; then
13391 withval=$with_ao; ao_prefix="$withval"
13397 # Check whether --with-ao-libraries was given.
13398 if test "${with_ao_libraries+set}" = set; then
13399 withval=$with_ao_libraries; ao_libraries="$withval"
13405 # Check whether --with-ao-includes was given.
13406 if test "${with_ao_includes+set}" = set; then
13407 withval=$with_ao_includes; ao_includes="$withval"
13412 # Check whether --enable-aotest was given.
13413 if test "${enable_aotest+set}" = set; then
13414 enableval=$enable_aotest;
13421 if test "x$ao_libraries" != "x" ; then
13422 AO_LIBS="-L$ao_libraries"
13423 elif test "x$ao_prefix" != "x"; then
13424 AO_LIBS="-L$ao_prefix/lib"
13425 elif test "x$prefix" != "xNONE"; then
13426 AO_LIBS="-L$prefix/lib"
13429 if test "x$ao_includes" != "x" ; then
13430 AO_CFLAGS="-I$ao_includes"
13431 elif test "x$ao_prefix" != "x"; then
13432 AO_CFLAGS="-I$ao_prefix/include"
13433 elif test "x$prefix" != "xNONE"; then
13434 AO_CFLAGS="-I$prefix/include"
13437 # see where dl* and friends live
13439 for ac_func in dlopen
13441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13455 #define $ac_func innocuous_$ac_func
13457 /* System header to define __stub macros and hopefully few prototypes,
13458 which can conflict with char $ac_func (); below.
13459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460 <limits.h> exists even on freestanding compilers. */
13463 # include <limits.h>
13465 # include <assert.h>
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13477 /* The GNU C library defines this for functions which it implements
13478 to always fail with ENOSYS. Some functions are actually named
13479 something starting with __ and the normal name is an alias. */
13480 #if defined __stub_$ac_func || defined __stub___$ac_func
13487 return $ac_func ();
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest$ac_exeext &&
13509 $as_test_x conftest$ac_exeext; then
13510 eval "$as_ac_var=yes"
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 eval "$as_ac_var=no"
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13521 ac_res=`eval echo '${'$as_ac_var'}'`
13522 { echo "$as_me:$LINENO: result: $ac_res" >&5
13523 echo "${ECHO_T}$ac_res" >&6; }
13524 if test `eval echo '${'$as_ac_var'}'` = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13531 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 ac_check_lib_save_LIBS=$LIBS
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } && {
13574 test -z "$ac_c_werror_flag" ||
13575 test ! -s conftest.err
13576 } && test -s conftest$ac_exeext &&
13577 $as_test_x conftest$ac_exeext; then
13578 ac_cv_lib_dl_dlopen=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_dl_dlopen=no
13586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13592 if test $ac_cv_lib_dl_dlopen = yes; then
13596 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13597 your system may not be supported." >&5
13598 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13599 your system may not be supported." >&2;}
13608 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13610 { echo "$as_me:$LINENO: checking for ao" >&5
13611 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
13615 if test "x$enable_aotest" = "xyes" ; then
13616 ac_save_CFLAGS="$CFLAGS"
13617 ac_save_LIBS="$LIBS"
13618 CFLAGS="$CFLAGS $AO_CFLAGS"
13619 LIBS="$LIBS $AO_LIBS"
13621 if test "$cross_compiling" = yes; then
13622 echo $ac_n "cross compiling; assumed OK... $ac_c"
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13632 #include <stdlib.h>
13633 #include <string.h>
13638 system("touch conf.aotest");
13644 rm -f conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13666 echo "$as_me: program exited with status $ac_status" >&5
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ( exit $ac_status )
13673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13677 CFLAGS="$ac_save_CFLAGS"
13678 LIBS="$ac_save_LIBS"
13681 if test "x$no_ao" = "x" ; then
13682 { echo "$as_me:$LINENO: result: yes" >&5
13683 echo "${ECHO_T}yes" >&6; }
13686 { echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6; }
13688 if test -f conf.aotest ; then
13691 echo "*** Could not run ao test program, checking why..."
13692 CFLAGS="$CFLAGS $AO_CFLAGS"
13693 LIBS="$LIBS $AO_LIBS"
13694 cat >conftest.$ac_ext <<_ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (ac_try="$ac_link"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest$ac_exeext &&
13729 $as_test_x conftest$ac_exeext; then
13730 echo "*** The test program compiled, but did not run. This usually means"
13731 echo "*** that the run-time linker is not finding ao or finding the wrong"
13732 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13733 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13734 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13735 echo "*** is required on your system"
13737 echo "*** If you have an old version installed, it is best to remove it, although"
13738 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 echo "*** The test program failed to compile or link. See the file config.log for the"
13744 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13745 echo "*** or that you have moved ao since it was installed."
13748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13749 conftest$ac_exeext conftest.$ac_ext
13750 CFLAGS="$ac_save_CFLAGS"
13751 LIBS="$ac_save_LIBS"
13761 if test "x$no_ao" = "x" ; then
13762 # AC_MSG_RESULT(yes)
13763 EXTRADEFS="$EXTRADEFS -DAU_AO"
13764 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13765 for f in $AO_CFLAGS; do
13767 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13768 *) CFLAGS="$CFLAGS $f" ;;
13772 LIBS="$LIBS $AO_LIBS"
13774 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13775 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13778 { echo "$as_me:$LINENO: result: no" >&5
13779 echo "${ECHO_T}no" >&6; }
13782 { echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13783 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6; }
13784 if test "x$au_enable_vorbis" = xyes; then
13785 { echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13786 echo "${ECHO_T}yes, configuring vorbis" >&6; }
13787 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" != "xyes" ; then
13788 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13789 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13792 # Check whether --with-ogg was given.
13793 if test "${with_ogg+set}" = set; then
13794 withval=$with_ogg; ogg_prefix="$withval"
13800 # Check whether --with-ogg-libraries was given.
13801 if test "${with_ogg_libraries+set}" = set; then
13802 withval=$with_ogg_libraries; ogg_libraries="$withval"
13808 # Check whether --with-ogg-includes was given.
13809 if test "${with_ogg_includes+set}" = set; then
13810 withval=$with_ogg_includes; ogg_includes="$withval"
13815 # Check whether --enable-oggtest was given.
13816 if test "${enable_oggtest+set}" = set; then
13817 enableval=$enable_oggtest;
13823 if test "x$ogg_libraries" != "x" ; then
13824 OGG_LIBS="-L$ogg_libraries"
13825 elif test "x$ogg_prefix" != "x" ; then
13826 OGG_LIBS="-L$ogg_prefix/lib"
13827 elif test "x$prefix" != "xNONE" ; then
13828 OGG_LIBS="-L$prefix/lib"
13831 OGG_LIBS="$OGG_LIBS -logg"
13833 if test "x$ogg_includes" != "x" ; then
13834 OGG_CFLAGS="-I$ogg_includes"
13835 elif test "x$ogg_prefix" != "x" ; then
13836 OGG_CFLAGS="-I$ogg_prefix/include"
13837 elif test "x$prefix" != "xNONE"; then
13838 OGG_CFLAGS="-I$prefix/include"
13841 { echo "$as_me:$LINENO: checking for Ogg" >&5
13842 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
13846 if test "x$enable_oggtest" = "xyes" ; then
13847 ac_save_CFLAGS="$CFLAGS"
13848 ac_save_LIBS="$LIBS"
13849 CFLAGS="$CFLAGS $OGG_CFLAGS"
13850 LIBS="$LIBS $OGG_LIBS"
13852 if test "$cross_compiling" = yes; then
13853 echo $ac_n "cross compiling; assumed OK... $ac_c"
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13863 #include <stdlib.h>
13864 #include <string.h>
13865 #include <ogg/ogg.h>
13869 system("touch conf.oggtest");
13875 rm -f conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_link") 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13897 echo "$as_me: program exited with status $ac_status" >&5
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ( exit $ac_status )
13904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13908 CFLAGS="$ac_save_CFLAGS"
13909 LIBS="$ac_save_LIBS"
13912 if test "x$no_ogg" = "x" ; then
13913 { echo "$as_me:$LINENO: result: yes" >&5
13914 echo "${ECHO_T}yes" >&6; }
13917 # Check whether --with-vorbis was given.
13918 if test "${with_vorbis+set}" = set; then
13919 withval=$with_vorbis; vorbis_prefix="$withval"
13925 # Check whether --with-vorbis-libraries was given.
13926 if test "${with_vorbis_libraries+set}" = set; then
13927 withval=$with_vorbis_libraries; vorbis_libraries="$withval"
13929 vorbis_libraries=""
13933 # Check whether --with-vorbis-includes was given.
13934 if test "${with_vorbis_includes+set}" = set; then
13935 withval=$with_vorbis_includes; vorbis_includes="$withval"
13940 # Check whether --enable-vorbistest was given.
13941 if test "${enable_vorbistest+set}" = set; then
13942 enableval=$enable_vorbistest;
13944 enable_vorbistest=yes
13948 if test "x$vorbis_libraries" != "x" ; then
13949 VORBIS_LIBS="-L$vorbis_libraries"
13950 elif test "x$vorbis_prefix" != "x" ; then
13951 VORBIS_LIBS="-L$vorbis_prefix/lib"
13952 elif test "x$prefix" != "xNONE"; then
13953 VORBIS_LIBS="-L$prefix/lib"
13956 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13957 VORBISFILE_LIBS="-lvorbisfile"
13958 VORBISENC_LIBS="-lvorbisenc"
13960 if test "x$vorbis_includes" != "x" ; then
13961 VORBIS_CFLAGS="-I$vorbis_includes"
13962 elif test "x$vorbis_prefix" != "x" ; then
13963 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13964 elif test "x$prefix" != "xNONE"; then
13965 VORBIS_CFLAGS="-I$prefix/include"
13969 { echo "$as_me:$LINENO: checking for Vorbis" >&5
13970 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
13974 if test "x$enable_vorbistest" = "xyes" ; then
13975 ac_save_CFLAGS="$CFLAGS"
13976 ac_save_LIBS="$LIBS"
13977 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13978 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13979 rm -f conf.vorbistest
13980 if test "$cross_compiling" = yes; then
13981 echo $ac_n "cross compiling; assumed OK... $ac_c"
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13991 #include <stdlib.h>
13992 #include <string.h>
13993 #include <vorbis/codec.h>
13994 #include <vorbis/vorbisenc.h>
13999 vorbis_dsp_state vd;
14002 vorbis_info_init (&vi);
14003 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
14004 vorbis_analysis_init (&vd, &vi);
14005 vorbis_block_init (&vd, &vb);
14006 /* this function was added in 1.0rc3, so this is what we're testing for */
14007 vorbis_bitrate_addblock (&vb);
14009 system("touch conf.vorbistest");
14015 rm -f conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_link") 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_try") 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14037 echo "$as_me: program exited with status $ac_status" >&5
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ( exit $ac_status )
14044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14048 CFLAGS="$ac_save_CFLAGS"
14049 LIBS="$ac_save_LIBS"
14052 if test "x$no_vorbis" = "x" ; then
14053 { echo "$as_me:$LINENO: result: yes" >&5
14054 echo "${ECHO_T}yes" >&6; }
14057 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14058 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14059 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14060 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" = "xyes" ; then
14061 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14062 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14066 { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14068 if test -f conf.vorbistest ; then
14071 echo "*** Could not run Vorbis test program, checking why..."
14072 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14073 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14082 #include <vorbis/codec.h>
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest$ac_exeext &&
14109 $as_test_x conftest$ac_exeext; then
14110 echo "*** The test program compiled, but did not run. This usually means"
14111 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14112 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14113 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14114 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14115 echo "*** is required on your system"
14117 echo "*** If you have an old version installed, it is best to remove it, although"
14118 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 echo "*** The test program failed to compile or link. See the file config.log for the"
14124 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14125 echo "*** or that you have moved Vorbis since it was installed."
14128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14129 conftest$ac_exeext conftest.$ac_ext
14130 CFLAGS="$ac_save_CFLAGS"
14131 LIBS="$ac_save_LIBS"
14138 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14139 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14146 rm -f conf.vorbistest
14150 { echo "$as_me:$LINENO: result: no" >&5
14151 echo "${ECHO_T}no" >&6; }
14152 if test -f conf.oggtest ; then
14155 echo "*** Could not run Ogg test program, checking why..."
14156 CFLAGS="$CFLAGS $OGG_CFLAGS"
14157 LIBS="$LIBS $OGG_LIBS"
14158 cat >conftest.$ac_ext <<_ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14166 #include <ogg/ogg.h>
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 echo "*** The test program compiled, but did not run. This usually means"
14195 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14196 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14197 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14198 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14199 echo "*** is required on your system"
14201 echo "*** If you have an old version installed, it is best to remove it, although"
14202 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 echo "*** The test program failed to compile or link. See the file config.log for the"
14208 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14209 echo "*** or that you have moved Ogg since it was installed."
14212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14213 conftest$ac_exeext conftest.$ac_ext
14214 CFLAGS="$ac_save_CFLAGS"
14215 LIBS="$ac_save_LIBS"
14220 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14221 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14231 { echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6; }
14235 if test "x$MSYS" = xyes ; then
14236 { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14237 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
14238 if test "x$au_enable_flac" = xyes; then
14239 { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14240 echo "${ECHO_T}yes, configuring flac" >&6; }
14241 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14243 # Check whether --with-libFLAC was given.
14244 if test "${with_libFLAC+set}" = set; then
14245 withval=$with_libFLAC; libFLAC_prefix="$withval"
14251 # Check whether --with-libFLAC-libraries was given.
14252 if test "${with_libFLAC_libraries+set}" = set; then
14253 withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
14255 libFLAC_libraries=""
14259 # Check whether --with-libFLAC-includes was given.
14260 if test "${with_libFLAC_includes+set}" = set; then
14261 withval=$with_libFLAC_includes; libFLAC_includes="$withval"
14263 libFLAC_includes=""
14266 # Check whether --enable-libFLACtest was given.
14267 if test "${enable_libFLACtest+set}" = set; then
14268 enableval=$enable_libFLACtest;
14270 enable_libFLACtest=yes
14274 if test "x$libFLAC_libraries" != "x" ; then
14275 LIBFLAC_LIBS="-L$libFLAC_libraries"
14276 elif test "x$libFLAC_prefix" != "x" ; then
14277 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14278 elif test "x$prefix" != "xNONE" ; then
14279 LIBFLAC_LIBS="-L$prefix/lib"
14282 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14284 if test "x$libFLAC_includes" != "x" ; then
14285 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14286 elif test "x$libFLAC_prefix" != "x" ; then
14287 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14288 elif test "$prefix" != "xNONE"; then
14289 LIBFLAC_CFLAGS="-I$prefix/include"
14292 { echo "$as_me:$LINENO: checking for libFLAC" >&5
14293 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
14297 if test "x$enable_libFLACtest" = "xyes" ; then
14298 ac_save_CFLAGS="$CFLAGS"
14299 ac_save_CXXFLAGS="$CXXFLAGS"
14300 ac_save_LIBS="$LIBS"
14301 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14302 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14303 LIBS="$LIBS $LIBFLAC_LIBS"
14304 rm -f conf.libFLACtest
14305 if test "$cross_compiling" = yes; then
14306 echo $ac_n "cross compiling; assumed OK... $ac_c"
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14316 #include <stdlib.h>
14317 #include <string.h>
14318 #include <FLAC/format.h>
14322 system("touch conf.libFLACtest");
14328 rm -f conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14350 echo "$as_me: program exited with status $ac_status" >&5
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ( exit $ac_status )
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14361 CFLAGS="$ac_save_CFLAGS"
14362 LIBS="$ac_save_LIBS"
14365 if test "x$no_libFLAC" = "x" ; then
14366 { echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6; }
14369 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14370 for f in $LIBFLAC_CFLAGS; do
14372 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14373 *) CFLAGS="$CFLAGS $f" ;;
14377 LIBS="$LIBS $LIBFLAC_LIBS"
14380 { echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6; }
14382 if test -f conf.libFLACtest ; then
14385 echo "*** Could not run libFLAC test program, checking why..."
14386 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14387 LIBS="$LIBS $LIBFLAC_LIBS"
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14396 #include <FLAC/format.h>
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest$ac_exeext &&
14423 $as_test_x conftest$ac_exeext; then
14424 echo "*** The test program compiled, but did not run. This usually means"
14425 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14426 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14427 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14428 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14429 echo "*** is required on your system"
14431 echo "*** If you have an old version installed, it is best to remove it, although"
14432 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 echo "*** The test program failed to compile or link. See the file config.log for the"
14438 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14439 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14440 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14444 conftest$ac_exeext conftest.$ac_ext
14445 CFLAGS="$ac_save_CFLAGS"
14446 LIBS="$ac_save_LIBS"
14454 rm -f conf.libFLACtest
14457 # Check whether --with-libOggFLAC was given.
14458 if test "${with_libOggFLAC+set}" = set; then
14459 withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
14461 libOggFLAC_prefix=""
14465 # Check whether --with-libOggFLAC-libraries was given.
14466 if test "${with_libOggFLAC_libraries+set}" = set; then
14467 withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
14469 libOggFLAC_libraries=""
14473 # Check whether --with-libOggFLAC-includes was given.
14474 if test "${with_libOggFLAC_includes+set}" = set; then
14475 withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
14477 libOggFLAC_includes=""
14480 # Check whether --enable-libOggFLACtest was given.
14481 if test "${enable_libOggFLACtest+set}" = set; then
14482 enableval=$enable_libOggFLACtest;
14484 enable_libOggFLACtest=yes
14488 if test "x$libOggFLAC_libraries" != "x" ; then
14489 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14490 elif test "x$libOggFLAC_prefix" != "x" ; then
14491 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14492 elif test "x$prefix" != "xNONE" ; then
14493 LIBOGGFLAC_LIBS="-L$prefix/lib"
14496 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14498 if test "x$libOggFLAC_includes" != "x" ; then
14499 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14500 elif test "x$libOggFLAC_prefix" != "x" ; then
14501 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14502 elif test "$prefix" != "xNONE"; then
14503 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14506 { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14507 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
14511 if test "x$enable_libOggFLACtest" = "xyes" ; then
14512 ac_save_CFLAGS="$CFLAGS"
14513 ac_save_CXXFLAGS="$CXXFLAGS"
14514 ac_save_LIBS="$LIBS"
14515 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14516 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14517 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14518 rm -f conf.libOggFLACtest
14519 if test "$cross_compiling" = yes; then
14520 echo $ac_n "cross compiling; assumed OK... $ac_c"
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14530 #include <stdlib.h>
14531 #include <string.h>
14532 #include <OggFLAC/stream_decoder.h>
14536 system("touch conf.libOggFLACtest");
14542 rm -f conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14564 echo "$as_me: program exited with status $ac_status" >&5
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ( exit $ac_status )
14571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14575 CFLAGS="$ac_save_CFLAGS"
14576 LIBS="$ac_save_LIBS"
14579 if test "x$no_libOggFLAC" = "x" ; then
14580 { echo "$as_me:$LINENO: result: yes" >&5
14581 echo "${ECHO_T}yes" >&6; }
14583 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14584 for f in $LIBOGGFLAC_CFLAGS; do
14586 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14587 *) CFLAGS="$CFLAGS $f" ;;
14591 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14594 { echo "$as_me:$LINENO: result: no" >&5
14595 echo "${ECHO_T}no" >&6; }
14596 if test -f conf.libOggFLACtest ; then
14599 echo "*** Could not run libOggFLAC test program, checking why..."
14600 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14601 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14610 #include <OggFLAC/stream_decoder.h>
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14629 grep -v '^ *+' conftest.er1 >conftest.err
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && {
14634 test -z "$ac_c_werror_flag" ||
14635 test ! -s conftest.err
14636 } && test -s conftest$ac_exeext &&
14637 $as_test_x conftest$ac_exeext; then
14638 echo "*** The test program compiled, but did not run. This usually means"
14639 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14640 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14641 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14642 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14643 echo "*** is required on your system"
14645 echo "*** If you have an old version installed, it is best to remove it, although"
14646 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 echo "*** The test program failed to compile or link. See the file config.log for the"
14652 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14653 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14654 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658 conftest$ac_exeext conftest.$ac_ext
14659 CFLAGS="$ac_save_CFLAGS"
14660 LIBS="$ac_save_LIBS"
14662 LIBOGGFLAC_CFLAGS=""
14668 rm -f conf.libOggFLACtest
14671 { echo "$as_me:$LINENO: result: no" >&5
14672 echo "${ECHO_T}no" >&6; }
14675 { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14676 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
14677 if test "x$au_enable_flac" = xyes; then
14678 { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14679 echo "${ECHO_T}yes, configuring flac" >&6; }
14680 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14682 # Check whether --with-libFLAC was given.
14683 if test "${with_libFLAC+set}" = set; then
14684 withval=$with_libFLAC; libFLAC_prefix="$withval"
14690 # Check whether --with-libFLAC-libraries was given.
14691 if test "${with_libFLAC_libraries+set}" = set; then
14692 withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
14694 libFLAC_libraries=""
14698 # Check whether --with-libFLAC-includes was given.
14699 if test "${with_libFLAC_includes+set}" = set; then
14700 withval=$with_libFLAC_includes; libFLAC_includes="$withval"
14702 libFLAC_includes=""
14705 # Check whether --enable-libFLACtest was given.
14706 if test "${enable_libFLACtest+set}" = set; then
14707 enableval=$enable_libFLACtest;
14709 enable_libFLACtest=yes
14713 if test "x$libFLAC_libraries" != "x" ; then
14714 LIBFLAC_LIBS="-L$libFLAC_libraries"
14715 elif test "x$libFLAC_prefix" != "x" ; then
14716 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14717 elif test "x$prefix" != "xNONE" ; then
14718 LIBFLAC_LIBS="-L$prefix/lib"
14721 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14723 if test "x$libFLAC_includes" != "x" ; then
14724 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14725 elif test "x$libFLAC_prefix" != "x" ; then
14726 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14727 elif test "$prefix" != "xNONE"; then
14728 LIBFLAC_CFLAGS="-I$prefix/include"
14731 { echo "$as_me:$LINENO: checking for libFLAC" >&5
14732 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
14736 if test "x$enable_libFLACtest" = "xyes" ; then
14737 ac_save_CFLAGS="$CFLAGS"
14738 ac_save_CXXFLAGS="$CXXFLAGS"
14739 ac_save_LIBS="$LIBS"
14740 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14741 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14742 LIBS="$LIBS $LIBFLAC_LIBS"
14743 rm -f conf.libFLACtest
14744 if test "$cross_compiling" = yes; then
14745 echo $ac_n "cross compiling; assumed OK... $ac_c"
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14755 #include <stdlib.h>
14756 #include <string.h>
14757 #include <FLAC/format.h>
14761 system("touch conf.libFLACtest");
14767 rm -f conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_link") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14778 { (case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_try") 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14789 echo "$as_me: program exited with status $ac_status" >&5
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ( exit $ac_status )
14796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14800 CFLAGS="$ac_save_CFLAGS"
14801 LIBS="$ac_save_LIBS"
14804 if test "x$no_libFLAC" = "x" ; then
14805 { echo "$as_me:$LINENO: result: yes" >&5
14806 echo "${ECHO_T}yes" >&6; }
14808 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14809 for f in $LIBFLAC_CFLAGS; do
14811 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14812 *) CFLAGS="$CFLAGS $f" ;;
14816 LIBS="$LIBS $LIBFLAC_LIBS"
14819 { echo "$as_me:$LINENO: result: no" >&5
14820 echo "${ECHO_T}no" >&6; }
14821 if test -f conf.libFLACtest ; then
14824 echo "*** Could not run libFLAC test program, checking why..."
14825 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14826 LIBS="$LIBS $LIBFLAC_LIBS"
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14835 #include <FLAC/format.h>
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
14861 } && test -s conftest$ac_exeext &&
14862 $as_test_x conftest$ac_exeext; then
14863 echo "*** The test program compiled, but did not run. This usually means"
14864 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14865 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14866 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14867 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14868 echo "*** is required on your system"
14870 echo "*** If you have an old version installed, it is best to remove it, although"
14871 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 echo "*** The test program failed to compile or link. See the file config.log for the"
14877 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14878 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14879 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14883 conftest$ac_exeext conftest.$ac_ext
14884 CFLAGS="$ac_save_CFLAGS"
14885 LIBS="$ac_save_LIBS"
14893 rm -f conf.libFLACtest
14896 # Check whether --with-libOggFLAC was given.
14897 if test "${with_libOggFLAC+set}" = set; then
14898 withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
14900 libOggFLAC_prefix=""
14904 # Check whether --with-libOggFLAC-libraries was given.
14905 if test "${with_libOggFLAC_libraries+set}" = set; then
14906 withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
14908 libOggFLAC_libraries=""
14912 # Check whether --with-libOggFLAC-includes was given.
14913 if test "${with_libOggFLAC_includes+set}" = set; then
14914 withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
14916 libOggFLAC_includes=""
14919 # Check whether --enable-libOggFLACtest was given.
14920 if test "${enable_libOggFLACtest+set}" = set; then
14921 enableval=$enable_libOggFLACtest;
14923 enable_libOggFLACtest=yes
14927 if test "x$libOggFLAC_libraries" != "x" ; then
14928 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14929 elif test "x$libOggFLAC_prefix" != "x" ; then
14930 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14931 elif test "x$prefix" != "xNONE" ; then
14932 LIBOGGFLAC_LIBS="-L$prefix/lib"
14935 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14937 if test "x$libOggFLAC_includes" != "x" ; then
14938 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14939 elif test "x$libOggFLAC_prefix" != "x" ; then
14940 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14941 elif test "$prefix" != "xNONE"; then
14942 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14945 { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14946 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
14950 if test "x$enable_libOggFLACtest" = "xyes" ; then
14951 ac_save_CFLAGS="$CFLAGS"
14952 ac_save_CXXFLAGS="$CXXFLAGS"
14953 ac_save_LIBS="$LIBS"
14954 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14955 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14956 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14957 rm -f conf.libOggFLACtest
14958 if test "$cross_compiling" = yes; then
14959 echo $ac_n "cross compiling; assumed OK... $ac_c"
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14969 #include <stdlib.h>
14970 #include <string.h>
14971 #include <OggFLAC/stream_decoder.h>
14975 system("touch conf.libOggFLACtest");
14981 rm -f conftest$ac_exeext
14982 if { (ac_try="$ac_link"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_link") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14992 { (case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_try") 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15003 echo "$as_me: program exited with status $ac_status" >&5
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ( exit $ac_status )
15010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15014 CFLAGS="$ac_save_CFLAGS"
15015 LIBS="$ac_save_LIBS"
15018 if test "x$no_libOggFLAC" = "x" ; then
15019 { echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6; }
15022 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15023 for f in $LIBOGGFLAC_CFLAGS; do
15025 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
15026 *) CFLAGS="$CFLAGS $f" ;;
15030 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15033 { echo "$as_me:$LINENO: result: no" >&5
15034 echo "${ECHO_T}no" >&6; }
15035 if test -f conf.libOggFLACtest ; then
15038 echo "*** Could not run libOggFLAC test program, checking why..."
15039 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15040 LIBS="$LIBS $LIBOGGFLAC_LIBS"
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15049 #include <OggFLAC/stream_decoder.h>
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest$ac_exeext &&
15076 $as_test_x conftest$ac_exeext; then
15077 echo "*** The test program compiled, but did not run. This usually means"
15078 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15079 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15080 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15081 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15082 echo "*** is required on your system"
15084 echo "*** If you have an old version installed, it is best to remove it, although"
15085 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 echo "*** The test program failed to compile or link. See the file config.log for the"
15091 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15092 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15093 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097 conftest$ac_exeext conftest.$ac_ext
15098 CFLAGS="$ac_save_CFLAGS"
15099 LIBS="$ac_save_LIBS"
15101 LIBOGGFLAC_CFLAGS=""
15107 rm -f conf.libOggFLACtest
15110 { echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6; }
15114 { echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15115 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6; }
15116 if test "x$au_enable_speex" = xyes; then
15117 if test "${have_speex+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15128 #include <ogg/ogg.h>
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_link") 2>conftest.er1
15149 grep -v '^ *+' conftest.er1 >conftest.err
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && {
15154 test -z "$ac_c_werror_flag" ||
15155 test ! -s conftest.err
15156 } && test -s conftest$ac_exeext &&
15157 $as_test_x conftest$ac_exeext; then
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15170 { echo "$as_me:$LINENO: result: $have_speex" >&5
15171 echo "${ECHO_T}$have_speex" >&6; }
15172 if test "x$have_speex" = xyes; then
15173 SYSEXTRAS="$SYSEXTRAS speex_a.c"
15174 EXTRALIBS="$EXTRALIBS -lspeex -logg"
15175 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15178 { echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6; }
15182 { echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15183 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6; }
15184 if test "x$au_enable_gogo" = xyes; then
15185 if test "x$MSYS" = "xyes"; then
15186 { echo "$as_me:$LINENO: result: yes" >&5
15187 echo "${ECHO_T}yes" >&6; }
15189 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
15190 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
15193 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15194 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15195 EXTRALIBS="$EXTRALIBS -lgogo"
15197 { echo "$as_me:$LINENO: result: no" >&5
15198 echo "${ECHO_T}no" >&6; }
15201 if test "x$au_enable_none" = xyes; then
15202 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15203 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15205 { echo "$as_me:$LINENO: checking default output mode" >&5
15206 echo $ECHO_N "checking default output mode... $ECHO_C" >&6; }
15207 if test "x$DEFAULT_PLAYMODE" = x; then
15208 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15210 case ".$DEFAULT_PLAYMODE" in
15211 .default) TIMIDITY_OUTPUT_ID=d ;;
15212 .oss) TIMIDITY_OUTPUT_ID=d ;;
15213 .alsa) TIMIDITY_OUTPUT_ID=s ;;
15214 .sun) TIMIDITY_OUTPUT_ID=d ;;
15215 .hpux) TIMIDITY_OUTPUT_ID=d ;;
15216 .irix) TIMIDITY_OUTPUT_ID=d ;;
15217 .mme) TIMIDITY_OUTPUT_ID=d ;;
15218 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
15219 .darwin) TIMIDITY_OUTPUT_ID=d ;;
15220 .w32) TIMIDITY_OUTPUT_ID=d ;;
15221 .alib) TIMIDITY_OUTPUT_ID=A ;;
15222 .nas) TIMIDITY_OUTPUT_ID=n ;;
15223 .arts) TIMIDITY_OUTPUT_ID=R ;;
15224 .esd) TIMIDITY_OUTPUT_ID=e ;;
15225 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
15226 .npipe) TIMIDITY_OUTPUT_ID=N ;;
15227 .wav) TIMIDITY_OUTPUT_ID=w ;;
15228 .au) TIMIDITY_OUTPUT_ID=u ;;
15229 .aiff) TIMIDITY_OUTPUT_ID=a ;;
15230 .list) TIMIDITY_OUTPUT_ID=l ;;
15231 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
15232 .flac) TIMIDITY_OUTPUT_ID=F ;;
15233 .speex) TIMIDITY_OUTPUT_ID=S ;;
15234 .gogo) TIMIDITY_OUTPUT_ID=g ;;
15235 .jack) TIMIDITY_OUTPUT_ID=j ;;
15236 .ao) TIMIDITY_OUTPUT_ID=O ;;
15237 *) TIMIDITY_OUTPUT_ID= ;;
15239 { echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15240 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6; }
15244 # Interface Section
15247 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng npsyn'
15249 # Check whether --enable-interface was given.
15250 if test "${enable_interface+set}" = set; then
15251 enableval=$enable_interface; for i in `echo $enableval | sed 's/,/ /g'`; do
15252 eval "enable_$i=yes"
15257 # Dynamic link configuration
15258 # Check whether --enable-dynamic was given.
15259 if test "${enable_dynamic+set}" = set; then
15260 enableval=$enable_dynamic; if test "x$enable_dynamic" = xyes; then
15261 enable_dynamic=dynamic
15262 elif test "x$enable_dynamic" != xno; then
15263 for i in `echo $enableval | sed 's/,/ /g'`; do
15264 eval "enable_$i=dynamic"
15271 for i in $interface_targets; do
15272 eval "join_targets=$join_targets\$enable_$i"
15275 case ".$join_targets" in
15276 .*dynamic*) NEEDDLOPEN=yes;;
15280 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15281 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15283 if test "$NEEDDLOPEN" = "yes"; then
15286 { echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15287 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6; }
15288 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <windows.h>
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest$ac_exeext &&
15325 $as_test_x conftest$ac_exeext; then
15326 wapi_cv_func_LoadLibrary=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 wapi_cv_func_LoadLibrary=no
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15338 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15339 { echo "$as_me:$LINENO: result: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15343 { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15347 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15349 if test "$have_dl" = "no"; then
15350 { echo "$as_me:$LINENO: checking for shl_load" >&5
15351 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15352 if test "${ac_cv_func_shl_load+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15363 #define shl_load innocuous_shl_load
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char shl_load (); below.
15367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368 <limits.h> exists even on freestanding compilers. */
15371 # include <limits.h>
15373 # include <assert.h>
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15385 /* The GNU C library defines this for functions which it implements
15386 to always fail with ENOSYS. Some functions are actually named
15387 something starting with __ and the normal name is an alias. */
15388 #if defined __stub_shl_load || defined __stub___shl_load
15395 return shl_load ();
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext &&
15417 $as_test_x conftest$ac_exeext; then
15418 ac_cv_func_shl_load=yes
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_cv_func_shl_load=no
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15430 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15431 if test $ac_cv_func_shl_load = yes; then
15436 if test "$have_dl" = "no"; then
15437 { echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15438 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6; }
15439 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15450 #define NSLinkModule innocuous_NSLinkModule
15452 /* System header to define __stub macros and hopefully few prototypes,
15453 which can conflict with char NSLinkModule (); below.
15454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455 <limits.h> exists even on freestanding compilers. */
15458 # include <limits.h>
15460 # include <assert.h>
15463 #undef NSLinkModule
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15471 char NSLinkModule ();
15472 /* The GNU C library defines this for functions which it implements
15473 to always fail with ENOSYS. Some functions are actually named
15474 something starting with __ and the normal name is an alias. */
15475 #if defined __stub_NSLinkModule || defined __stub___NSLinkModule
15482 return NSLinkModule ();
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest$ac_exeext &&
15504 $as_test_x conftest$ac_exeext; then
15505 ac_cv_func_NSLinkModule=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_cv_func_NSLinkModule=no
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514 conftest$ac_exeext conftest.$ac_ext
15516 { echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15517 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6; }
15518 if test $ac_cv_func_NSLinkModule = yes; then
15523 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15526 if test "$have_dl" = "no"; then
15527 { echo "$as_me:$LINENO: checking for dlopen" >&5
15528 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15529 if test "${ac_cv_func_dlopen+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 cat >conftest.$ac_ext <<_ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15540 #define dlopen innocuous_dlopen
15542 /* System header to define __stub macros and hopefully few prototypes,
15543 which can conflict with char dlopen (); below.
15544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15545 <limits.h> exists even on freestanding compilers. */
15548 # include <limits.h>
15550 # include <assert.h>
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15562 /* The GNU C library defines this for functions which it implements
15563 to always fail with ENOSYS. Some functions are actually named
15564 something starting with __ and the normal name is an alias. */
15565 #if defined __stub_dlopen || defined __stub___dlopen
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (ac_try="$ac_link"
15579 case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_link") 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } && {
15591 test -z "$ac_c_werror_flag" ||
15592 test ! -s conftest.err
15593 } && test -s conftest$ac_exeext &&
15594 $as_test_x conftest$ac_exeext; then
15595 ac_cv_func_dlopen=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_func_dlopen=no
15603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15604 conftest$ac_exeext conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15607 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15608 if test $ac_cv_func_dlopen = yes; then
15613 if test "$have_dl" = "no"; then
15614 { echo "$as_me:$LINENO: checking for dld_init" >&5
15615 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6; }
15616 if test "${ac_cv_func_dld_init+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15627 #define dld_init innocuous_dld_init
15629 /* System header to define __stub macros and hopefully few prototypes,
15630 which can conflict with char dld_init (); below.
15631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15632 <limits.h> exists even on freestanding compilers. */
15635 # include <limits.h>
15637 # include <assert.h>
15642 /* Override any GCC internal prototype to avoid an error.
15643 Use char because int might match the return type of a GCC
15644 builtin and then its argument prototype would still apply. */
15649 /* The GNU C library defines this for functions which it implements
15650 to always fail with ENOSYS. Some functions are actually named
15651 something starting with __ and the normal name is an alias. */
15652 #if defined __stub_dld_init || defined __stub___dld_init
15659 return dld_init ();
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_link") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } && {
15678 test -z "$ac_c_werror_flag" ||
15679 test ! -s conftest.err
15680 } && test -s conftest$ac_exeext &&
15681 $as_test_x conftest$ac_exeext; then
15682 ac_cv_func_dld_init=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_cv_func_dld_init=no
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691 conftest$ac_exeext conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15694 echo "${ECHO_T}$ac_cv_func_dld_init" >&6; }
15695 if test $ac_cv_func_dld_init = yes; then
15700 if test "$have_dl" = "no"; then
15701 { echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15702 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6; }
15703 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 ac_check_lib_save_LIBS=$LIBS
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 /* Override any GCC internal prototype to avoid an error.
15716 Use char because int might match the return type of a GCC
15717 builtin and then its argument prototype would still apply. */
15725 return dld_init ();
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 ac_cv_lib_dld_dld_init=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_dld_dld_init=no
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15761 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6; }
15762 if test $ac_cv_lib_dld_dld_init = yes; then
15763 have_dl=dld;lib_dl_opt=-ldld
15768 { echo "$as_me:$LINENO: checking dynamic link method" >&5
15769 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6; }
15772 { echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15773 echo "${ECHO_T}use dl_dlopen.c" >&6; }
15774 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15775 { echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15776 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6; }
15777 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 case "$ac_cv_header_dlfcn_h" in
15781 yes) i_dlfcn=define;;
15792 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15794 #include <sys/types.h>
15799 extern int fred() ;
15808 int mode = RTLD_LAZY ;
15810 handle = dlopen("./dyna.$so", mode) ;
15811 if (handle == NULL) {
15816 symbol = dlsym(handle, "fred") ;
15817 if (symbol == NULL) {
15818 /* try putting a leading underscore */
15819 symbol = dlsym(handle, "_fred") ;
15820 if (symbol == NULL) {
15833 : Call the object file tmp-dyna.o in case dlext=o.
15834 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15835 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15836 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15837 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15840 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15841 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15843 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15844 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15846 3) timidity_cv_func_dlsym_underscore=yes
15848 4) timidity_cv_func_dlsym_underscore=no
15852 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15853 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15855 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15859 case "x$timidity_cv_func_dlsym_underscore" in
15861 cat >>confdefs.h <<\_ACEOF
15862 #define DLSYM_NEEDS_UNDERSCORE 1
15865 { echo "$as_me:$LINENO: result: yes" >&5
15866 echo "${ECHO_T}yes" >&6; }
15869 { echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6; }
15876 { echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15877 echo "${ECHO_T}use dl_dld.c" >&6; }
15878 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15881 { echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15882 echo "${ECHO_T}use dl_hpux.c" >&6; }
15883 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15884 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15887 { echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15888 echo "${ECHO_T}use dl_w32.c" >&6; }
15889 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15892 { echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15893 echo "${ECHO_T}use dl_dyld.c" >&6; }
15894 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15898 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15899 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15904 if test "$NEEDDLOPEN" = "yes"; then
15905 cat >> confdefs.h <<EOF
15906 #define IA_DYNAMIC 1
15910 cat >>confdefs.h <<_ACEOF
15911 #define SHARED_LIB_EXT ".$so"
15914 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15919 if test "$NEEDDLOPEN" = "yes"; then
15921 NEEDDLOPEN_FALSE='#'
15923 NEEDDLOPEN_TRUE='#'
15932 ENABLE_NCURSES_TRUE=
15933 ENABLE_NCURSES_FALSE='#'
15935 ENABLE_NCURSES_TRUE='#'
15936 ENABLE_NCURSES_FALSE=
15939 # Check whether --enable-ncurses was given.
15940 if test "${enable_ncurses+set}" = set; then
15941 enableval=$enable_ncurses; case "x$enable_ncurses" in xyes|xdynamic)
15944 for ac_header in ncurses.h ncurses/curses.h curses.h
15946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 ac_res=`eval echo '${'$as_ac_Header'}'`
15954 { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15957 # Is the header compilable?
15958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 #include <$ac_header>
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_compile") 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest.$ac_objext; then
15986 ac_header_compiler=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_compiler=no
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996 echo "${ECHO_T}$ac_header_compiler" >&6; }
15998 # Is the header present?
15999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 #include <$ac_header>
16009 if { (ac_try="$ac_cpp conftest.$ac_ext"
16010 case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16017 grep -v '^ *+' conftest.er1 >conftest.err
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } >/dev/null && {
16022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16023 test ! -s conftest.err
16025 ac_header_preproc=yes
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ac_header_preproc=no
16033 rm -f conftest.err conftest.$ac_ext
16034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16035 echo "${ECHO_T}$ac_header_preproc" >&6; }
16037 # So? What about this header?
16038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16044 ac_header_preproc=yes
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16060 ## ------------------------------- ##
16061 ## Report this to root@mput.dip.jp ##
16062 ## ------------------------------- ##
16064 ) | sed "s/^/$as_me: WARNING: /" >&2
16067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 eval "$as_ac_Header=\$ac_header_preproc"
16074 ac_res=`eval echo '${'$as_ac_Header'}'`
16075 { echo "$as_me:$LINENO: result: $ac_res" >&5
16076 echo "${ECHO_T}$ac_res" >&6; }
16079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16080 cat >>confdefs.h <<_ACEOF
16081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16090 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16092 *) for i in /usr/include /usr/local/include; do
16093 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16094 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
16095 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
16096 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16103 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16104 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
16105 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 ac_check_lib_save_LIBS=$LIBS
16109 LIBS="-lncurses $LIBS"
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_link") 2>conftest.er1
16141 grep -v '^ *+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_c_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest$ac_exeext &&
16149 $as_test_x conftest$ac_exeext; then
16150 ac_cv_lib_ncurses_initscr=yes
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_cv_lib_ncurses_initscr=no
16158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16162 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16163 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
16164 if test $ac_cv_lib_ncurses_initscr = yes; then
16165 lib_curses_opt=-lncurses
16167 { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16168 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6; }
16169 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lcurses $lib_user32_test $LIBS"
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16181 /* Override any GCC internal prototype to avoid an error.
16182 Use char because int might match the return type of a GCC
16183 builtin and then its argument prototype would still apply. */
16187 char PDC_set_ctrl_break ();
16191 return PDC_set_ctrl_break ();
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (ac_try="$ac_link"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_link") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } && {
16210 test -z "$ac_c_werror_flag" ||
16211 test ! -s conftest.err
16212 } && test -s conftest$ac_exeext &&
16213 $as_test_x conftest$ac_exeext; then
16214 ac_cv_lib_curses_PDC_set_ctrl_break=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_lib_curses_PDC_set_ctrl_break=no
16222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16223 conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16226 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16227 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6; }
16228 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16229 lib_curses_opt=-lcurses
16231 cat >>confdefs.h <<\_ACEOF
16232 #define USE_PDCURSES 1
16235 lib_user32_opt="$lib_user32_test"
16238 { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16239 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6; }
16240 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 ac_check_lib_save_LIBS=$LIBS
16244 LIBS="-lpdcurses $LIBS"
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16252 /* Override any GCC internal prototype to avoid an error.
16253 Use char because int might match the return type of a GCC
16254 builtin and then its argument prototype would still apply. */
16258 char PDC_set_ctrl_break ();
16262 return PDC_set_ctrl_break ();
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (ac_try="$ac_link"
16269 case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_link") 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest$ac_exeext &&
16284 $as_test_x conftest$ac_exeext; then
16285 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16294 conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16298 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6; }
16299 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16300 lib_curses_opt=-lpdcurses
16302 cat >>confdefs.h <<\_ACEOF
16303 #define USE_PDCURSES 1
16306 lib_user32_opt="$lib_user32_test"
16311 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16312 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16313 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 ac_check_lib_save_LIBS=$LIBS
16317 LIBS="-lcurses $LIBS"
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16325 /* Override any GCC internal prototype to avoid an error.
16326 Use char because int might match the return type of a GCC
16327 builtin and then its argument prototype would still apply. */
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (ac_try="$ac_link"
16342 case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_link") 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } && {
16354 test -z "$ac_c_werror_flag" ||
16355 test ! -s conftest.err
16356 } && test -s conftest$ac_exeext &&
16357 $as_test_x conftest$ac_exeext; then
16358 ac_cv_lib_curses_initscr=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_lib_curses_initscr=no
16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367 conftest$ac_exeext conftest.$ac_ext
16368 LIBS=$ac_check_lib_save_LIBS
16370 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16371 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16372 if test $ac_cv_lib_curses_initscr = yes; then
16373 lib_curses_opt=-lcurses
16375 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16376 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16382 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
16383 lib_curses_opt=libpdcurses.lib
16385 cat >>confdefs.h <<\_ACEOF
16386 #define USE_PDCURSES 1
16390 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16391 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16408 case "x$enable_ncurses" in
16410 cat >> confdefs.h <<EOF
16411 #define IA_NCURSES 1
16417 ENABLE_NCURSES_TRUE=
16418 ENABLE_NCURSES_FALSE='#'
16420 ENABLE_NCURSES_TRUE='#'
16421 ENABLE_NCURSES_FALSE=
16424 LIBS="$LIBS $lib_curses_opt"
16427 EXTRALIBS="$EXTRALIBS -lmytinfo"
16430 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16434 dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16435 n_so_libs="$lib_curses_opt"
16438 EXTRALIBS="$EXTRALIBS -lmytinfo"
16453 ENABLE_SLANG_FALSE='#'
16455 ENABLE_SLANG_TRUE='#'
16456 ENABLE_SLANG_FALSE=
16459 # Check whether --enable-slang was given.
16460 if test "${enable_slang+set}" = set; then
16461 enableval=$enable_slang; case "x$enable_slang" in xyes|xdynamic) { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16462 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
16463 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 ac_check_lib_save_LIBS=$LIBS
16467 LIBS="-lslang $LIBS"
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16475 /* Override any GCC internal prototype to avoid an error.
16476 Use char because int might match the return type of a GCC
16477 builtin and then its argument prototype would still apply. */
16481 char SLang_init_tty ();
16485 return SLang_init_tty ();
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_link") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } && {
16504 test -z "$ac_c_werror_flag" ||
16505 test ! -s conftest.err
16506 } && test -s conftest$ac_exeext &&
16507 $as_test_x conftest$ac_exeext; then
16508 ac_cv_lib_slang_SLang_init_tty=yes
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_cv_lib_slang_SLang_init_tty=no
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517 conftest$ac_exeext conftest.$ac_ext
16518 LIBS=$ac_check_lib_save_LIBS
16520 { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16521 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
16522 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16526 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16527 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16533 for ac_header in slang/slang.h slang.h
16535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 ac_res=`eval echo '${'$as_ac_Header'}'`
16543 { echo "$as_me:$LINENO: result: $ac_res" >&5
16544 echo "${ECHO_T}$ac_res" >&6; }
16546 # Is the header compilable?
16547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16549 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 $ac_includes_default
16556 #include <$ac_header>
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest.$ac_objext; then
16575 ac_header_compiler=yes
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ac_header_compiler=no
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16585 echo "${ECHO_T}$ac_header_compiler" >&6; }
16587 # Is the header present?
16588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 #include <$ac_header>
16598 if { (ac_try="$ac_cpp conftest.$ac_ext"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } >/dev/null && {
16611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16614 ac_header_preproc=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_header_preproc=no
16622 rm -f conftest.err conftest.$ac_ext
16623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16624 echo "${ECHO_T}$ac_header_preproc" >&6; }
16626 # So? What about this header?
16627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16633 ac_header_preproc=yes
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16649 ## ------------------------------- ##
16650 ## Report this to root@mput.dip.jp ##
16651 ## ------------------------------- ##
16653 ) | sed "s/^/$as_me: WARNING: /" >&2
16656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 eval "$as_ac_Header=\$ac_header_preproc"
16663 ac_res=`eval echo '${'$as_ac_Header'}'`
16664 { echo "$as_me:$LINENO: result: $ac_res" >&5
16665 echo "${ECHO_T}$ac_res" >&6; }
16668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16669 cat >>confdefs.h <<_ACEOF
16670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16680 case "x$enable_slang" in
16682 cat >> confdefs.h <<EOF
16690 ENABLE_SLANG_FALSE='#'
16692 ENABLE_SLANG_TRUE='#'
16693 ENABLE_SLANG_FALSE=
16698 { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16699 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
16700 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-ltermcap $LIBS"
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 /* Override any GCC internal prototype to avoid an error.
16713 Use char because int might match the return type of a GCC
16714 builtin and then its argument prototype would still apply. */
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (ac_try="$ac_link"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_link") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest$ac_exeext &&
16744 $as_test_x conftest$ac_exeext; then
16745 ac_cv_lib_termcap_initscr=yes
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_cv_lib_termcap_initscr=no
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16758 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
16759 if test $ac_cv_lib_termcap_initscr = yes; then
16760 LIBS="$LIBS -lslang -ltermcap"
16761 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16763 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16764 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16771 LIBS="$LIBS -lslang"
16772 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16778 dynamic_targets="$dynamic_targets if_slang.\$(so)"
16779 s_so_libs="-lslang"
16780 { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16781 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-ltermcap $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && {
16823 test -z "$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 } && test -s conftest$ac_exeext &&
16826 $as_test_x conftest$ac_exeext; then
16827 ac_cv_lib_termcap_initscr=yes
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 ac_cv_lib_termcap_initscr=no
16835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16836 conftest$ac_exeext conftest.$ac_ext
16837 LIBS=$ac_check_lib_save_LIBS
16839 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16840 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
16841 if test $ac_cv_lib_termcap_initscr = yes; then
16842 s_so_libs="$s_so_libs -ltermcap"
16858 ENABLE_MOTIF_FALSE='#'
16860 ENABLE_MOTIF_TRUE='#'
16861 ENABLE_MOTIF_FALSE=
16864 # Check whether --enable-motif was given.
16865 if test "${enable_motif+set}" = set; then
16866 enableval=$enable_motif; case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16867 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16868 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16869 { (exit 1); exit 1; }; }
16871 if test "x$have_xm" != xyes; then
16872 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16873 echo "$as_me: WARNING: Motif library is not found." >&2;}
16879 case "x$enable_motif" in
16881 cat >> confdefs.h <<EOF
16889 ENABLE_MOTIF_FALSE='#'
16891 ENABLE_MOTIF_TRUE='#'
16892 ENABLE_MOTIF_FALSE=
16897 lib_xext_opt=-lXext
16898 if test "x$have_xprelibs" = xyes; then
16899 lib_xprelibs_opt='-lSM -lICE'
16901 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16905 dynamic_targets="$dynamic_targets if_motif.\$(so)"
16906 if test x$have_xprelibs = xyes; then
16907 m_so_libs="-lXext -lSM -lICE"
16909 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16923 ENABLE_TCLTK_FALSE='#'
16925 ENABLE_TCLTK_TRUE='#'
16926 ENABLE_TCLTK_FALSE=
16929 # Check whether --enable-tcltk was given.
16930 if test "${enable_tcltk+set}" = set; then
16931 enableval=$enable_tcltk; case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16932 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16933 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16934 { (exit 1); exit 1; }; }
16937 KEEPCPPFLAGS=$CPPFLAGS
16938 KEEPLDFLAGS=$LDFLAGS
16941 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16942 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16943 LIBS="$LIBS $lib_dl_opt"
16947 for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16948 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16949 { echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16950 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6; }
16951 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_check_lib_save_LIBS=$LIBS
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16963 /* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16973 return Tcl_Init ();
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (ac_try="$ac_link"
16980 case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_link") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest$ac_exeext &&
16995 $as_test_x conftest$ac_exeext; then
16996 eval "$as_ac_Lib=yes"
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 eval "$as_ac_Lib=no"
17004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17005 conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17008 ac_res=`eval echo '${'$as_ac_Lib'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17016 LIBS="$LIBS $tcl_lib"
17017 for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
17018 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
17019 { echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
17020 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 ac_check_lib_save_LIBS=$LIBS
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17033 /* Override any GCC internal prototype to avoid an error.
17034 Use char because int might match the return type of a GCC
17035 builtin and then its argument prototype would still apply. */
17048 rm -f conftest.$ac_objext conftest$ac_exeext
17049 if { (ac_try="$ac_link"
17050 case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_link") 2>conftest.er1
17057 grep -v '^ *+' conftest.er1 >conftest.err
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest$ac_exeext &&
17065 $as_test_x conftest$ac_exeext; then
17066 eval "$as_ac_Lib=yes"
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 eval "$as_ac_Lib=no"
17074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17075 conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17078 ac_res=`eval echo '${'$as_ac_Lib'}'`
17079 { echo "$as_me:$LINENO: result: $ac_res" >&5
17080 echo "${ECHO_T}$ac_res" >&6; }
17081 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17088 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17089 CPPFLAGS=$KEEPCPPFLAGS
17090 LDFLAGS=$KEEPLDFLAGS
17092 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17093 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17095 tcltk_dep='tclIndex'
17100 case "x$enable_tcltk" in
17102 cat >> confdefs.h <<EOF
17110 ENABLE_TCLTK_FALSE='#'
17112 ENABLE_TCLTK_TRUE='#'
17113 ENABLE_TCLTK_FALSE=
17116 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17119 EXTRALIBS="$EXTRALIBS -lipc"
17122 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17126 dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17127 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17130 k_so_libs="$k_so_libs -lipc"
17133 k_so_libs="$k_so_libs -lX11 -lm"
17144 if test "x$enable_tcltk" = "xdynamic"; then
17145 ENABLE_DYNAMIC_TCLTK_TRUE=
17146 ENABLE_DYNAMIC_TCLTK_FALSE='#'
17148 ENABLE_DYNAMIC_TCLTK_TRUE='#'
17149 ENABLE_DYNAMIC_TCLTK_FALSE=
17157 ENABLE_EMACS_FALSE='#'
17159 ENABLE_EMACS_TRUE='#'
17160 ENABLE_EMACS_FALSE=
17163 # Check whether --enable-emacs was given.
17164 if test "${enable_emacs+set}" = set; then
17165 enableval=$enable_emacs; case "x$enable_emacs" in xyes|xdynamic) ;; esac
17168 case "x$enable_emacs" in
17170 cat >> confdefs.h <<EOF
17178 ENABLE_EMACS_FALSE='#'
17180 ENABLE_EMACS_TRUE='#'
17181 ENABLE_EMACS_FALSE=
17184 ELFILES="$ELFILES timidity.el"
17185 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17189 dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17190 ELFILES="$ELFILES timidity.el"
17203 ENABLE_VT100_FALSE='#'
17205 ENABLE_VT100_TRUE='#'
17206 ENABLE_VT100_FALSE=
17209 # Check whether --enable-vt100 was given.
17210 if test "${enable_vt100+set}" = set; then
17211 enableval=$enable_vt100; case "x$enable_vt100" in xyes|xdynamic) ;; esac
17214 case "x$enable_vt100" in
17216 cat >> confdefs.h <<EOF
17224 ENABLE_VT100_FALSE='#'
17226 ENABLE_VT100_TRUE='#'
17227 ENABLE_VT100_FALSE=
17230 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17233 dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17247 ENABLE_XAW_FALSE='#'
17249 ENABLE_XAW_TRUE='#'
17253 # Check whether --enable-xaw was given.
17254 if test "${enable_xaw+set}" = set; then
17255 enableval=$enable_xaw; case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
17256 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17257 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17258 { (exit 1); exit 1; }; }
17260 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17261 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17262 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17267 case "x$enable_xaw" in
17269 cat >> confdefs.h <<EOF
17277 ENABLE_XAW_FALSE='#'
17279 ENABLE_XAW_TRUE='#'
17283 if test "x$have_xext" = xyes; then
17284 lib_xext_opt=-lXext
17286 if test "x$have_xprelibs" = xyes; then
17287 lib_xprelibs_opt='-lSM -lICE'
17291 if test "x$have_xaw" = x3d; then
17293 cat >>confdefs.h <<\_ACEOF
17297 lib_xaw_opt=-lXaw3d
17301 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17305 dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17306 if test "x$have_xext" = xyes; then
17307 a_so_libs="-lXext -lX11"
17313 a_so_libs="$a_so_libs -lcc_dynamic"
17316 if test "x$have_xprelibs" = xyes; then
17317 a_so_libs="-lSM -lICE $a_so_libs"
17319 if test "x$have_xaw" = xyes; then
17320 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17321 elif test "x$have_xaw" = x3d; then
17323 cat >>confdefs.h <<\_ACEOF
17327 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17329 a_so_libs="$ldflags_x_opt $a_so_libs"
17340 if test "x$enable_xaw" = "xdynamic"; then
17341 ENABLE_DYNAMIC_XAW_TRUE=
17342 ENABLE_DYNAMIC_XAW_FALSE='#'
17344 ENABLE_DYNAMIC_XAW_TRUE='#'
17345 ENABLE_DYNAMIC_XAW_FALSE=
17353 ENABLE_XSKIN_FALSE='#'
17355 ENABLE_XSKIN_TRUE='#'
17356 ENABLE_XSKIN_FALSE=
17359 # Check whether --enable-xskin was given.
17360 if test "${enable_xskin+set}" = set; then
17361 enableval=$enable_xskin; case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
17362 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17363 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17364 { (exit 1); exit 1; }; }
17369 case "x$enable_xskin" in
17371 cat >> confdefs.h <<EOF
17379 ENABLE_XSKIN_FALSE='#'
17381 ENABLE_XSKIN_TRUE='#'
17382 ENABLE_XSKIN_FALSE=
17385 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17388 dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17389 i_so_libs="$ldflags_x_opt -lX11"
17402 ENABLE_GTK_FALSE='#'
17404 ENABLE_GTK_TRUE='#'
17408 # Check whether --enable-gtk was given.
17409 if test "${enable_gtk+set}" = set; then
17410 enableval=$enable_gtk; case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest was given.
17411 if test "${enable_gtktest+set}" = set; then
17412 enableval=$enable_gtktest;
17418 pkg_config_args=gtk+-2.0
17423 pkg_config_args="$pkg_config_args gthread-2.0"
17430 # Extract the first word of "pkg-config", so it can be a program name with args.
17431 set dummy pkg-config; ac_word=$2
17432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 case $PKG_CONFIG in
17439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17446 test -z "$as_dir" && as_dir=.
17447 for ac_exec_ext in '' $ac_executable_extensions; do
17448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17462 if test -n "$PKG_CONFIG"; then
17463 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17464 echo "${ECHO_T}$PKG_CONFIG" >&6; }
17466 { echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6; }
17472 if test x$PKG_CONFIG != xno ; then
17473 if pkg-config --atleast-pkgconfig-version 0.7 ; then
17476 echo *** pkg-config too old; version 0.7 or better required.
17484 min_gtk_version=2.0.0
17485 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17486 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
17488 if test x$PKG_CONFIG != xno ; then
17489 ## don't try to run the test against uninstalled libtool libs
17490 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17491 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17495 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17502 if test x"$no_gtk" = x ; then
17503 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17504 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17505 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17507 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17509 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17510 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17511 if test "x$enable_gtktest" = "xyes" ; then
17512 ac_save_CFLAGS="$CFLAGS"
17513 ac_save_LIBS="$LIBS"
17514 CFLAGS="$CFLAGS $GTK_CFLAGS"
17515 LIBS="$GTK_LIBS $LIBS"
17517 if test "$cross_compiling" = yes; then
17518 echo $ac_n "cross compiling; assumed OK... $ac_c"
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17527 #include <gtk/gtk.h>
17529 #include <stdlib.h>
17534 int major, minor, micro;
17537 system ("touch conf.gtktest");
17539 /* HP/UX 9 (%@#!) writes to sscanf strings */
17540 tmp_version = g_strdup("$min_gtk_version");
17541 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17542 printf("%s, bad version string\n", "$min_gtk_version");
17546 if ((gtk_major_version != $gtk_config_major_version) ||
17547 (gtk_minor_version != $gtk_config_minor_version) ||
17548 (gtk_micro_version != $gtk_config_micro_version))
17550 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17551 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17552 gtk_major_version, gtk_minor_version, gtk_micro_version);
17553 printf ("*** was found! If pkg-config was correct, then it is best\n");
17554 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17555 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17556 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17557 printf("*** required on your system.\n");
17558 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17559 printf("*** to point to the correct configuration files\n");
17561 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17562 (gtk_minor_version != GTK_MINOR_VERSION) ||
17563 (gtk_micro_version != GTK_MICRO_VERSION))
17565 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17566 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17567 printf("*** library (version %d.%d.%d)\n",
17568 gtk_major_version, gtk_minor_version, gtk_micro_version);
17572 if ((gtk_major_version > major) ||
17573 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17574 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17580 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17581 gtk_major_version, gtk_minor_version, gtk_micro_version);
17582 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17583 major, minor, micro);
17584 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17586 printf("*** If you have already installed a sufficiently new version, this error\n");
17587 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17588 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17589 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17590 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17591 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17592 printf("*** so that the correct libraries are found at run-time))\n");
17599 rm -f conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17621 echo "$as_me: program exited with status $ac_status" >&5
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ( exit $ac_status )
17628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 CFLAGS="$ac_save_CFLAGS"
17633 LIBS="$ac_save_LIBS"
17636 if test "x$no_gtk" = x ; then
17637 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17638 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
17640 cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_GTK_2 1
17645 { echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6; }
17647 if test "$PKG_CONFIG" = "no" ; then
17648 echo "*** A new enough version of pkg-config was not found."
17649 echo "*** See http://pkgconfig.sourceforge.net"
17651 if test -f conf.gtktest ; then
17654 echo "*** Could not run GTK+ test program, checking why..."
17655 ac_save_CFLAGS="$CFLAGS"
17656 ac_save_LIBS="$LIBS"
17657 CFLAGS="$CFLAGS $GTK_CFLAGS"
17658 LIBS="$LIBS $GTK_LIBS"
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17666 #include <gtk/gtk.h>
17672 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (ac_try="$ac_link"
17679 case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_link") 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest$ac_exeext &&
17694 $as_test_x conftest$ac_exeext; then
17695 echo "*** The test program compiled, but did not run. This usually means"
17696 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17697 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17698 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17699 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17700 echo "*** is required on your system"
17702 echo "*** If you have an old version installed, it is best to remove it, although"
17703 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 echo "*** The test program failed to compile or link. See the file config.log for the"
17709 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17713 conftest$ac_exeext conftest.$ac_ext
17714 CFLAGS="$ac_save_CFLAGS"
17715 LIBS="$ac_save_LIBS"
17721 # Check whether --with-gtk-prefix was given.
17722 if test "${with_gtk_prefix+set}" = set; then
17723 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
17725 gtk_config_prefix=""
17729 # Check whether --with-gtk-exec-prefix was given.
17730 if test "${with_gtk_exec_prefix+set}" = set; then
17731 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
17733 gtk_config_exec_prefix=""
17736 # Check whether --enable-gtktest was given.
17737 if test "${enable_gtktest+set}" = set; then
17738 enableval=$enable_gtktest;
17748 gtk_config_args="$gtk_config_args gthread"
17753 if test x$gtk_config_exec_prefix != x ; then
17754 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17755 if test x${GTK_CONFIG+set} != xset ; then
17756 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17759 if test x$gtk_config_prefix != x ; then
17760 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17761 if test x${GTK_CONFIG+set} != xset ; then
17762 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17766 # Extract the first word of "gtk-config", so it can be a program name with args.
17767 set dummy gtk-config; ac_word=$2
17768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17770 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17771 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 case $GTK_CONFIG in
17775 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17779 for as_dir in $PATH
17782 test -z "$as_dir" && as_dir=.
17783 for ac_exec_ext in '' $ac_executable_extensions; do
17784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17785 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17793 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17797 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17798 if test -n "$GTK_CONFIG"; then
17799 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17800 echo "${ECHO_T}$GTK_CONFIG" >&6; }
17802 { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17807 min_gtk_version=1.1.3
17808 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17809 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
17811 if test "$GTK_CONFIG" = "no" ; then
17814 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17815 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17816 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17818 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17820 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17821 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17822 if test "x$enable_gtktest" = "xyes" ; then
17823 ac_save_CFLAGS="$CFLAGS"
17824 ac_save_LIBS="$LIBS"
17825 CFLAGS="$CFLAGS $GTK_CFLAGS"
17826 LIBS="$GTK_LIBS $LIBS"
17828 if test "$cross_compiling" = yes; then
17829 echo $ac_n "cross compiling; assumed OK... $ac_c"
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17838 #include <gtk/gtk.h>
17840 #include <stdlib.h>
17845 int major, minor, micro;
17848 system ("touch conf.gtktest");
17850 /* HP/UX 9 (%@#!) writes to sscanf strings */
17851 tmp_version = g_strdup("$min_gtk_version");
17852 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17853 printf("%s, bad version string\n", "$min_gtk_version");
17857 if ((gtk_major_version != $gtk_config_major_version) ||
17858 (gtk_minor_version != $gtk_config_minor_version) ||
17859 (gtk_micro_version != $gtk_config_micro_version))
17861 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17862 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17863 gtk_major_version, gtk_minor_version, gtk_micro_version);
17864 printf ("*** was found! If gtk-config was correct, then it is best\n");
17865 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17866 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17867 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17868 printf("*** required on your system.\n");
17869 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17870 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17871 printf("*** before re-running configure\n");
17873 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17874 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17875 (gtk_minor_version != GTK_MINOR_VERSION) ||
17876 (gtk_micro_version != GTK_MICRO_VERSION))
17878 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17879 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17880 printf("*** library (version %d.%d.%d)\n",
17881 gtk_major_version, gtk_minor_version, gtk_micro_version);
17883 #endif /* defined (GTK_MAJOR_VERSION) ... */
17886 if ((gtk_major_version > major) ||
17887 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17888 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17894 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17895 gtk_major_version, gtk_minor_version, gtk_micro_version);
17896 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17897 major, minor, micro);
17898 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17900 printf("*** If you have already installed a sufficiently new version, this error\n");
17901 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17902 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17903 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17904 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17905 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17906 printf("*** so that the correct libraries are found at run-time))\n");
17913 rm -f conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_link") 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17924 { (case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_try") 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17935 echo "$as_me: program exited with status $ac_status" >&5
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ( exit $ac_status )
17942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17946 CFLAGS="$ac_save_CFLAGS"
17947 LIBS="$ac_save_LIBS"
17950 if test "x$no_gtk" = x ; then
17951 { echo "$as_me:$LINENO: result: yes" >&5
17952 echo "${ECHO_T}yes" >&6; }
17955 { echo "$as_me:$LINENO: result: no" >&5
17956 echo "${ECHO_T}no" >&6; }
17957 if test "$GTK_CONFIG" = "no" ; then
17958 echo "*** The gtk-config script installed by GTK could not be found"
17959 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17960 echo "*** your path, or set the GTK_CONFIG environment variable to the"
17961 echo "*** full path to gtk-config."
17963 if test -f conf.gtktest ; then
17966 echo "*** Could not run GTK test program, checking why..."
17967 CFLAGS="$CFLAGS $GTK_CFLAGS"
17968 LIBS="$LIBS $GTK_LIBS"
17969 cat >conftest.$ac_ext <<_ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17976 #include <gtk/gtk.h>
17982 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest$ac_exeext &&
18004 $as_test_x conftest$ac_exeext; then
18005 echo "*** The test program compiled, but did not run. This usually means"
18006 echo "*** that the run-time linker is not finding GTK or finding the wrong"
18007 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
18008 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18009 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18010 echo "*** is required on your system"
18012 echo "*** If you have an old version installed, it is best to remove it, although"
18013 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18015 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
18016 echo "*** came with the system with the command"
18018 echo "*** rpm --erase --nodeps gtk gtk-devel"
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 echo "*** The test program failed to compile or link. See the file config.log for the"
18024 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
18025 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
18026 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
18029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030 conftest$ac_exeext conftest.$ac_ext
18031 CFLAGS="$ac_save_CFLAGS"
18032 LIBS="$ac_save_LIBS"
18050 case "x$enable_gtk" in
18052 cat >> confdefs.h <<EOF
18060 ENABLE_GTK_FALSE='#'
18062 ENABLE_GTK_TRUE='#'
18066 LIBS="$LIBS $GTK_LIBS"
18067 for f in $GTK_CFLAGS; do
18069 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18070 *) CFLAGS="$CFLAGS $f" ;;
18074 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18078 dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18079 if test "x$GCC" = xyes; then
18080 for i in $GTK_LIBS; do
18083 *) g_so_libs="$g_so_libs $i" ;;
18087 g_so_libs="$GTK_LIBS"
18089 for f in $GTK_CFLAGS; do
18091 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
18092 *) CFLAGS="$CFLAGS $f" ;;
18107 ENABLE_SERVER_TRUE=
18108 ENABLE_SERVER_FALSE='#'
18110 ENABLE_SERVER_TRUE='#'
18111 ENABLE_SERVER_FALSE=
18114 # Check whether --enable-server was given.
18115 if test "${enable_server+set}" = set; then
18116 enableval=$enable_server; case "x$enable_server" in xyes|xdynamic) ;; esac
18119 case "x$enable_server" in
18121 cat >> confdefs.h <<EOF
18122 #define IA_SERVER 1
18128 ENABLE_SERVER_TRUE=
18129 ENABLE_SERVER_FALSE='#'
18131 ENABLE_SERVER_TRUE='#'
18132 ENABLE_SERVER_FALSE=
18135 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18137 for ac_header in sys/soundcard.h
18139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 ac_res=`eval echo '${'$as_ac_Header'}'`
18147 { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18150 # Is the header compilable?
18151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 $ac_includes_default
18160 #include <$ac_header>
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_compile") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest.$ac_objext; then
18179 ac_header_compiler=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_header_compiler=no
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18189 echo "${ECHO_T}$ac_header_compiler" >&6; }
18191 # Is the header present?
18192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <$ac_header>
18202 if { (ac_try="$ac_cpp conftest.$ac_ext"
18203 case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18210 grep -v '^ *+' conftest.er1 >conftest.err
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } >/dev/null && {
18215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18216 test ! -s conftest.err
18218 ac_header_preproc=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_header_preproc=no
18226 rm -f conftest.err conftest.$ac_ext
18227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18228 echo "${ECHO_T}$ac_header_preproc" >&6; }
18230 # So? What about this header?
18231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18237 ac_header_preproc=yes
18240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18253 ## ------------------------------- ##
18254 ## Report this to root@mput.dip.jp ##
18255 ## ------------------------------- ##
18257 ) | sed "s/^/$as_me: WARNING: /" >&2
18260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 eval "$as_ac_Header=\$ac_header_preproc"
18267 ac_res=`eval echo '${'$as_ac_Header'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18273 cat >>confdefs.h <<_ACEOF
18274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18284 dynamic_targets="$dynamic_targets if_server.\$(so)"
18297 ENABLE_ALSASEQ_TRUE=
18298 ENABLE_ALSASEQ_FALSE='#'
18300 ENABLE_ALSASEQ_TRUE='#'
18301 ENABLE_ALSASEQ_FALSE=
18304 # Check whether --enable-alsaseq was given.
18305 if test "${enable_alsaseq+set}" = set; then
18306 enableval=$enable_alsaseq; case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
18309 case "x$enable_alsaseq" in
18311 cat >> confdefs.h <<EOF
18312 #define IA_ALSASEQ 1
18318 ENABLE_ALSASEQ_TRUE=
18319 ENABLE_ALSASEQ_FALSE='#'
18321 ENABLE_ALSASEQ_TRUE='#'
18322 ENABLE_ALSASEQ_FALSE=
18325 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18326 alsa_save_CFLAGS="$CFLAGS"
18327 alsa_save_LDFLAGS="$LDFLAGS"
18328 alsa_save_LIBS="$LIBS"
18332 # Check whether --with-alsa-prefix was given.
18333 if test "${with_alsa_prefix+set}" = set; then
18334 withval=$with_alsa_prefix; alsa_prefix="$withval"
18341 # Check whether --with-alsa-inc-prefix was given.
18342 if test "${with_alsa_inc_prefix+set}" = set; then
18343 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
18349 # Check whether --enable-alsatest was given.
18350 if test "${enable_alsatest+set}" = set; then
18351 enableval=$enable_alsatest; enable_alsatest=no
18353 enable_alsatest=yes
18357 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18358 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
18359 if test "$alsa_inc_prefix" != "" ; then
18360 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18361 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18363 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18364 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
18366 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18367 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
18368 if test "$alsa_prefix" != "" ; then
18369 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18370 LDFLAGS="$LDFLAGS $ALSA_LIBS"
18373 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18374 LIBS=`echo $LIBS | sed 's/-lm//'`
18375 LIBS=`echo $LIBS | sed 's/-ldl//'`
18376 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18377 LIBS=`echo $LIBS | sed 's/ //'`
18378 LIBS="$ALSA_LIBS $LIBS"
18379 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18380 echo "${ECHO_T}$ALSA_LIBS" >&6; }
18382 min_alsa_version=0.1.1
18383 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18384 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
18386 alsa_min_major_version=`echo $min_alsa_version | \
18387 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18388 alsa_min_minor_version=`echo $min_alsa_version | \
18389 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18390 alsa_min_micro_version=`echo $min_alsa_version | \
18391 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401 cat >conftest.$ac_ext <<_ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18408 #include <alsa/asoundlib.h>
18414 /* ensure backward compatibility */
18415 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18416 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18418 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18419 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18421 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18422 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18425 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18428 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18429 # error not present
18432 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18435 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18436 # error not present
18439 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18440 # error not present
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 { echo "$as_me:$LINENO: result: found." >&5
18468 echo "${ECHO_T}found." >&6; }
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 cat >conftest.$ac_ext <<_ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18480 #include <sys/asoundlib.h>
18486 /* ensure backward compatibility */
18487 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18488 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18490 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18491 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18493 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18494 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18497 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18500 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18501 # error not present
18504 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18507 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18508 # error not present
18511 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18512 # error not present
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } && {
18536 test -z "$ac_c_werror_flag" ||
18537 test ! -s conftest.err
18538 } && test -s conftest.$ac_objext; then
18539 { echo "$as_me:$LINENO: result: found." >&5
18540 echo "${ECHO_T}found." >&6; }
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 { echo "$as_me:$LINENO: result: not present." >&5
18546 echo "${ECHO_T}not present." >&6; }
18547 { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18548 echo "${ECHO_T}libasound was not found anywhere." >&6; }
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18554 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
18558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560 ac_cpp='$CPP $CPPFLAGS'
18561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18568 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lasound $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18587 char snd_ctl_open ();
18591 return snd_ctl_open ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext &&
18613 $as_test_x conftest$ac_exeext; then
18614 ac_cv_lib_asound_snd_ctl_open=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_lib_asound_snd_ctl_open=no
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623 conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_check_lib_save_LIBS
18626 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18627 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
18628 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_LIBASOUND 1
18633 LIBS="-lasound $LIBS"
18636 { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18637 echo "${ECHO_T}No linkable libasound was found." >&6; }
18643 if test "x$alsa_found" = "xyes" ; then
18645 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18646 LIBS=`echo $LIBS | sed 's/ //'`
18647 LIBS="-lasound $LIBS"
18650 CFLAGS="$alsa_save_CFLAGS"
18651 LDFLAGS="$alsa_save_LDFLAGS"
18652 LIBS="$alsa_save_LIBS"
18663 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18676 ENABLE_WINSYN_TRUE=
18677 ENABLE_WINSYN_FALSE='#'
18679 ENABLE_WINSYN_TRUE='#'
18680 ENABLE_WINSYN_FALSE=
18683 # Check whether --enable-winsyn was given.
18684 if test "${enable_winsyn+set}" = set; then
18685 enableval=$enable_winsyn; case "x$enable_winsyn" in xyes|xdynamic) ;; esac
18688 case "x$enable_winsyn" in
18690 cat >> confdefs.h <<EOF
18691 #define IA_WINSYN 1
18697 ENABLE_WINSYN_TRUE=
18698 ENABLE_WINSYN_FALSE='#'
18700 ENABLE_WINSYN_TRUE='#'
18701 ENABLE_WINSYN_FALSE=
18704 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18707 dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18720 ENABLE_PORTMIDISYN_TRUE=
18721 ENABLE_PORTMIDISYN_FALSE='#'
18723 ENABLE_PORTMIDISYN_TRUE='#'
18724 ENABLE_PORTMIDISYN_FALSE=
18727 # Check whether --enable-portmidisyn was given.
18728 if test "${enable_portmidisyn+set}" = set; then
18729 enableval=$enable_portmidisyn; case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
18732 case "x$enable_portmidisyn" in
18734 cat >> confdefs.h <<EOF
18735 #define IA_PORTMIDISYN 1
18741 ENABLE_PORTMIDISYN_TRUE=
18742 ENABLE_PORTMIDISYN_FALSE='#'
18744 ENABLE_PORTMIDISYN_TRUE='#'
18745 ENABLE_PORTMIDISYN_FALSE=
18748 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18751 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18765 ENABLE_NPSYN_FALSE='#'
18767 ENABLE_NPSYN_TRUE='#'
18768 ENABLE_NPSYN_FALSE=
18771 # Check whether --enable-npsyn was given.
18772 if test "${enable_npsyn+set}" = set; then
18773 enableval=$enable_npsyn; case "x$enable_npsyn" in xyes|xdynamic) ;; esac
18776 case "x$enable_npsyn" in
18778 cat >> confdefs.h <<EOF
18786 ENABLE_NPSYN_FALSE='#'
18788 ENABLE_NPSYN_TRUE='#'
18789 ENABLE_NPSYN_FALSE=
18792 NPSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS npsyn_c.c rtsyn_common.c rtsyn_npipe.c"
18795 dynamic_targets="$dynamic_targets if_npsyn.\$(so)"
18810 ENABLE_W32G_SYN_TRUE=
18811 ENABLE_W32G_SYN_FALSE='#'
18813 ENABLE_W32G_SYN_TRUE='#'
18814 ENABLE_W32G_SYN_FALSE=
18817 # Check whether --enable-winsyng was given.
18818 if test "${enable_winsyng+set}" = set; then
18819 enableval=$enable_winsyng; case "x$enable_winsyng" in xyes|xdynamic) ;; esac
18822 case "x$enable_winsyng" in
18824 cat >> confdefs.h <<EOF
18825 #define IA_W32G_SYN 1
18831 ENABLE_W32G_SYN_TRUE=
18832 ENABLE_W32G_SYN_FALSE='#'
18834 ENABLE_W32G_SYN_TRUE='#'
18835 ENABLE_W32G_SYN_FALSE=
18840 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
18841 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18842 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18843 lib_user32_opt='user32.lib'
18844 if test "x$VCPP" = xyes; then
18845 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18847 if test "x$BORLANDC" = xyes; then
18848 BORLANDC_START='C0W32.OBJ'
18849 CFLAGS="$CFLAGS -tW"
18850 lib_w32gui_opt="-aa $lib_w32gui_opt"
18852 if test "x$WATCOM_C" = xyes; then
18853 CFLAGS="$CFLAGS -bw"
18854 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18856 if test "x$DMC" = xyes; then
18858 lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18860 if test "x$POCC" = xyes; then
18861 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
18864 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18865 lib_user32_opt='-luser32'
18866 LDFLAGS="-mwindows $LDFLAGS"
18867 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18872 dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18886 ENABLE_W32GUI_TRUE=
18887 ENABLE_W32GUI_FALSE='#'
18889 ENABLE_W32GUI_TRUE='#'
18890 ENABLE_W32GUI_FALSE=
18893 # Check whether --enable-w32gui was given.
18894 if test "${enable_w32gui+set}" = set; then
18895 enableval=$enable_w32gui; case "x$enable_w32gui" in xyes|xdynamic) ;; esac
18898 case "x$enable_w32gui" in
18900 cat >> confdefs.h <<EOF
18901 #define IA_W32GUI 1
18907 ENABLE_W32GUI_TRUE=
18908 ENABLE_W32GUI_FALSE='#'
18910 ENABLE_W32GUI_TRUE='#'
18911 ENABLE_W32GUI_FALSE=
18916 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
18917 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18918 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18919 lib_user32_opt='user32.lib'
18920 if test "x$VCPP" = xyes; then
18921 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18923 if test "x$BORLANDC" = xyes; then
18924 BORLANDC_START='C0W32.OBJ'
18925 CFLAGS="$CFLAGS -tW"
18926 lib_w32gui_opt="-aa $lib_w32gui_opt"
18928 if test "x$WATCOM_C" = xyes; then
18929 CFLAGS="$CFLAGS -bw"
18930 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18932 if test "x$DMC" = xyes; then
18933 lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18936 if test "x$POCC" = xyes; then
18937 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
18940 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18941 lib_user32_opt='-luser32'
18942 LDFLAGS="-mwindows $LDFLAGS"
18943 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
18948 dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18961 ENABLE_PLUGIN_TRUE=
18962 ENABLE_PLUGIN_FALSE='#'
18964 ENABLE_PLUGIN_TRUE='#'
18965 ENABLE_PLUGIN_FALSE=
18968 # Check whether --enable-ump was given.
18969 if test "${enable_ump+set}" = set; then
18970 enableval=$enable_ump; case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
18971 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
18972 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
18973 { (exit 1); exit 1; }; }
18975 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18976 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18977 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
18978 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18982 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
18984 # Is the header compilable?
18985 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18986 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 $ac_includes_default
18994 #include <X11/xpm.h>
18996 rm -f conftest.$ac_objext
18997 if { (ac_try="$ac_compile"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_compile") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest.$ac_objext; then
19013 ac_header_compiler=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_compiler=no
19021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19023 echo "${ECHO_T}$ac_header_compiler" >&6; }
19025 # Is the header present?
19026 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
19027 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #include <X11/xpm.h>
19036 if { (ac_try="$ac_cpp conftest.$ac_ext"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } >/dev/null && {
19049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19052 ac_header_preproc=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_header_preproc=no
19060 rm -f conftest.err conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19062 echo "${ECHO_T}$ac_header_preproc" >&6; }
19064 # So? What about this header?
19065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19067 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19068 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
19070 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
19071 ac_header_preproc=yes
19074 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
19075 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
19077 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
19079 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
19081 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19083 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
19085 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19087 ## ------------------------------- ##
19088 ## Report this to root@mput.dip.jp ##
19089 ## ------------------------------- ##
19091 ) | sed "s/^/$as_me: WARNING: /" >&2
19094 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19095 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
19096 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 ac_cv_header_X11_xpm_h=$ac_header_preproc
19101 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19102 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
19105 if test $ac_cv_header_X11_xpm_h = yes; then
19108 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19109 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19110 { (exit 1); exit 1; }; }
19114 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19115 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
19116 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 ac_check_lib_save_LIBS=$LIBS
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19128 /* Override any GCC internal prototype to avoid an error.
19129 Use char because int might match the return type of a GCC
19130 builtin and then its argument prototype would still apply. */
19134 char XpmCreatePixmapFromData ();
19138 return XpmCreatePixmapFromData ();
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_link") 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } && {
19157 test -z "$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 } && test -s conftest$ac_exeext &&
19160 $as_test_x conftest$ac_exeext; then
19161 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19174 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
19175 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19178 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19179 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19180 { (exit 1); exit 1; }; }
19183 if test "x$have_xext" = xyes; then
19184 lib_xext_opt=-lXext
19186 if test "x$have_xprelibs" = xyes; then
19187 lib_xprelibs_opt='-lSM -lICE'
19194 case "x$enable_ump" in
19196 cat >> confdefs.h <<EOF
19197 #define IA_PLUGIN 1
19203 ENABLE_PLUGIN_TRUE=
19204 ENABLE_PLUGIN_FALSE='#'
19206 ENABLE_PLUGIN_TRUE='#'
19207 ENABLE_PLUGIN_FALSE=
19213 dynamic_targets="$dynamic_targets if_ump.\$(so)"
19223 # Check whether --enable-windrv was given.
19224 if test "${enable_windrv+set}" = set; then
19225 enableval=$enable_windrv; if test "$enableval" = "yes"; then
19226 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes" && test "x$POCC" != "xyes"; then
19227 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&5
19228 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&2;}
19229 { (exit 1); exit 1; }; }
19230 elif test "x$WINSYN" != "xyes"; then
19231 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19232 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19233 { (exit 1); exit 1; }; }
19236 cat >>confdefs.h <<\_ACEOF
19241 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19242 if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
19243 CFLAGS="$CFLAGS -DANOTHER_MAIN "
19248 CFLAGS="$CFLAGS $DLLFLAG "
19250 # Check whether --enable-offix was given.
19251 if test "${enable_offix+set}" = set; then
19252 enableval=$enable_offix; if test "$enableval" = "yes"; then
19253 KEEPCPPFLAGS=$CPPFLAGS
19255 KEEPLDFLAGS=$LDFLAGS
19256 CPPFLAGS="$CPPFLAGS $offix_include_dir"
19257 LDFLAGS="$LDFLAGS $offix_lib_dir"
19258 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19259 { echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19260 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6; }
19261 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 ac_check_lib_save_LIBS=$LIBS
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19273 /* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19279 char DndInitialize ();
19283 return DndInitialize ();
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (ac_try="$ac_link"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_link") 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest$ac_exeext &&
19305 $as_test_x conftest$ac_exeext; then
19306 ac_cv_lib_Dnd_DndInitialize=yes
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_cv_lib_Dnd_DndInitialize=no
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315 conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19318 { echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19319 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6; }
19320 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19323 lib_offix_opt="-lDnd"
19325 cat >>confdefs.h <<\_ACEOF
19331 LDFLAGS=$KEEPLDFLAGS
19332 CPPFLAGS=$KEEPCPPFLAGS
19342 # Check whether --enable-network was given.
19343 if test "${enable_network+set}" = set; then
19344 enableval=$enable_network; if test "$enableval" = "yes"; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define SUPPORT_SOCKET 1
19355 if test "x$enable_network" = "xyes"; then
19356 ENABLE_NETWORK_TRUE=
19357 ENABLE_NETWORK_FALSE='#'
19359 ENABLE_NETWORK_TRUE='#'
19360 ENABLE_NETWORK_FALSE=
19364 # Check whether --enable-spectrogram was given.
19365 if test "${enable_spectrogram+set}" = set; then
19366 enableval=$enable_spectrogram; if test "$enableval" = "yes"; then
19367 if test "x$with_x" != xyes; then
19368 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19369 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19370 { (exit 1); exit 1; }; }
19373 cat >>confdefs.h <<\_ACEOF
19374 #define SUPPORT_SOUNDSPEC 1
19382 if test "x$enable_spectrogram" = "xyes"; then
19383 ENABLE_SOUND_SPEC_TRUE=
19384 ENABLE_SOUND_SPEC_FALSE='#'
19386 ENABLE_SOUND_SPEC_TRUE='#'
19387 ENABLE_SOUND_SPEC_FALSE=
19391 # Check whether --enable-spline was given.
19392 if test "${enable_spline+set}" = set; then
19393 enableval=$enable_spline; case "x$enableval" in
19396 cat >>confdefs.h <<\_ACEOF
19397 #define DEFAULT_RESAMPLATION resample_linear
19403 cat >>confdefs.h <<\_ACEOF
19404 #define DEFAULT_RESAMPLATION resample_cspline
19410 cat >>confdefs.h <<\_ACEOF
19411 #define DEFAULT_RESAMPLATION resample_lagrange
19417 cat >>confdefs.h <<\_ACEOF
19418 #define DEFAULT_RESAMPLATION resample_newton
19424 cat >>confdefs.h <<\_ACEOF
19425 #define DEFAULT_RESAMPLATION resample_gauss
19431 cat >>confdefs.h <<\_ACEOF
19432 #define DEFAULT_RESAMPLATION resample_none
19437 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19438 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19439 { (exit 1); exit 1; }; }
19445 # Check whether --enable-wrd was given.
19446 if test "${enable_wrd+set}" = set; then
19447 enableval=$enable_wrd; if test "$enableval" = "yes"; then
19448 if test "x$with_x" != xyes; then
19449 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19450 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19451 { (exit 1); exit 1; }; }
19454 cat >>confdefs.h <<\_ACEOF
19458 enable_sherry_wrd=yes
19459 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19460 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
19461 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_check_lib_save_LIBS=$LIBS
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19479 char zlibVersion ();
19483 return zlibVersion ();
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19497 grep -v '^ *+' conftest.er1 >conftest.err
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest$ac_exeext &&
19505 $as_test_x conftest$ac_exeext; then
19506 ac_cv_lib_z_zlibVersion=yes
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19511 ac_cv_lib_z_zlibVersion=no
19514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19515 conftest$ac_exeext conftest.$ac_ext
19516 LIBS=$ac_check_lib_save_LIBS
19518 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19519 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
19520 if test $ac_cv_lib_z_zlibVersion = yes; then
19523 enable_sherry_wrd=no
19526 if test "${ac_cv_header_png_h+set}" = set; then
19527 { echo "$as_me:$LINENO: checking for png.h" >&5
19528 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_header_png_h+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19533 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
19535 # Is the header compilable?
19536 { echo "$as_me:$LINENO: checking png.h usability" >&5
19537 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 $ac_includes_default
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_header_compiler=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6; }
19576 # Is the header present?
19577 { echo "$as_me:$LINENO: checking png.h presence" >&5
19578 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null && {
19600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19603 ac_header_preproc=yes
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_header_preproc=no
19611 rm -f conftest.err conftest.$ac_ext
19612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19613 echo "${ECHO_T}$ac_header_preproc" >&6; }
19615 # So? What about this header?
19616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19619 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19620 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19621 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19622 ac_header_preproc=yes
19625 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19626 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19628 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19630 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19632 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19634 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19636 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19638 ## ------------------------------- ##
19639 ## Report this to root@mput.dip.jp ##
19640 ## ------------------------------- ##
19642 ) | sed "s/^/$as_me: WARNING: /" >&2
19645 { echo "$as_me:$LINENO: checking for png.h" >&5
19646 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
19647 if test "${ac_cv_header_png_h+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 ac_cv_header_png_h=$ac_header_preproc
19652 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19653 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
19656 if test $ac_cv_header_png_h = yes; then
19659 enable_sherry_wrd=no
19663 { echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19664 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6; }
19665 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-lpng -lz $LIBS"
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19683 char png_init_io ();
19687 return png_init_io ();
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest$ac_exeext &&
19709 $as_test_x conftest$ac_exeext; then
19710 ac_cv_lib_png_png_init_io=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_lib_png_png_init_io=no
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS
19722 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19723 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6; }
19724 if test $ac_cv_lib_png_png_init_io = yes; then
19727 enable_sherry_wrd=no
19730 if test "$enable_sherry_wrd" = yes; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define ENABLE_SHERRY 1
19739 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19740 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19742 if test "x$have_xext" = xyes; then
19743 lib_xext_opt=-lXext
19758 if test "x$enable_wrd" = "xyes"; then
19760 ENABLE_WRD_FALSE='#'
19762 ENABLE_WRD_TRUE='#'
19768 if test "x$W32G_GUI" = xyes; then
19778 if test "x$WINDRV" = xyes; then
19788 if test "x$MSYS" = xyes; then
19798 if test "x$VCPP" = xyes; then
19808 if test "x$POCC" = xyes; then
19818 if test "x$BORLANDC" = xyes; then
19828 if test "x$WATCOM_C" = xyes; then
19838 if test "x$DMC" = xyes; then
19848 if test "x$MINGWGCC" = xyes; then
19859 if test "x$W32READDIR" = "xyes"; then
19861 W32READDIR_FALSE='#'
19863 W32READDIR_TRUE='#'
19868 rm -f wordtmp >/dev/null 2>&1
19870 for f in $LDFLAGS; do
19871 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19874 echo $f >>wordtmp; val="$val $f"
19879 rm -f wordtmp >/dev/null 2>&1
19881 rm -f wordtmp >/dev/null 2>&1
19883 for f in $SHLDFLAGS; do
19884 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19887 echo $f >>wordtmp; val="$val $f"
19892 rm -f wordtmp >/dev/null 2>&1
19894 rm -f wordtmp >/dev/null 2>&1
19896 for f in $EXTRACFLAGS $CFLAGS; do
19897 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19900 echo $f >>wordtmp; val="$val $f"
19905 rm -f wordtmp >/dev/null 2>&1
19907 rm -f wordtmp >/dev/null 2>&1
19909 for f in $CPPFLAGS $EXTRADEFS; do
19910 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19913 echo $f >>wordtmp; val="$val $f"
19918 rm -f wordtmp >/dev/null 2>&1
19921 if test "x$oss_device" != x; then
19923 cat >>confdefs.h <<_ACEOF
19924 #define OSS_DEVICE "$oss_device"
19929 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19937 if test "x$with_x" = xyes; then
19938 LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
19940 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19941 SHLD="$SHLD $SHLDFLAGS"
19967 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19969 cat >confcache <<\_ACEOF
19970 # This file is a shell script that caches the results of configure
19971 # tests run on this system so they can be shared between configure
19972 # scripts and configure runs, see configure's option --config-cache.
19973 # It is not useful on other systems. If it contains results you don't
19974 # want to keep, you may remove or edit it.
19976 # config.status only pays attention to the cache file if you give it
19977 # the --recheck option to rerun configure.
19979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19981 # following values.
19985 # The following way of writing the cache mishandles newlines in values,
19986 # but we know of no workaround that is simple, portable, and efficient.
19987 # So, we kill variables containing newlines.
19988 # Ultrix sh set writes to stderr and can't be redirected directly,
19989 # and sets the high bit in the cache file unless we assign to the vars.
19991 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19992 eval ac_val=\$$ac_var
19996 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19997 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20000 _ | IFS | as_nl) ;; #(
20001 *) $as_unset $ac_var ;;
20007 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20008 *${as_nl}ac_space=\ *)
20009 # `set' does not quote correctly, so add quotes (double-quote
20010 # substitution turns \\\\ into \\, and sed turns \\ into \).
20013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20016 # `set' quotes correctly as required by POSIX, so do not add quotes.
20017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20031 if test -w "$cache_file"; then
20032 test "x$cache_file" != "x/dev/null" &&
20033 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20034 echo "$as_me: updating cache $cache_file" >&6;}
20035 cat confcache >$cache_file
20037 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20038 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20044 # Let make expand exec_prefix.
20045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20047 DEFS=-DHAVE_CONFIG_H
20051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20052 # 1. Remove the extension, and $U if already installed.
20053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20054 ac_i=`echo "$ac_i" | sed "$ac_script"`
20055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20056 # will be set to the directory where LIBOBJS objects are built.
20057 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20058 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20060 LIBOBJS=$ac_libobjs
20062 LTLIBOBJS=$ac_ltlibobjs
20065 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20066 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20067 Usually this means the macro was only invoked conditionally." >&5
20068 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20069 Usually this means the macro was only invoked conditionally." >&2;}
20070 { (exit 1); exit 1; }; }
20072 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20073 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20074 Usually this means the macro was only invoked conditionally." >&5
20075 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20076 Usually this means the macro was only invoked conditionally." >&2;}
20077 { (exit 1); exit 1; }; }
20079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20080 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20081 Usually this means the macro was only invoked conditionally." >&5
20082 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20083 Usually this means the macro was only invoked conditionally." >&2;}
20084 { (exit 1); exit 1; }; }
20086 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20087 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20088 Usually this means the macro was only invoked conditionally." >&5
20089 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20090 Usually this means the macro was only invoked conditionally." >&2;}
20091 { (exit 1); exit 1; }; }
20093 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20094 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20095 Usually this means the macro was only invoked conditionally." >&5
20096 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20097 Usually this means the macro was only invoked conditionally." >&2;}
20098 { (exit 1); exit 1; }; }
20100 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20101 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20102 Usually this means the macro was only invoked conditionally." >&5
20103 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20104 Usually this means the macro was only invoked conditionally." >&2;}
20105 { (exit 1); exit 1; }; }
20107 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20108 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20109 Usually this means the macro was only invoked conditionally." >&5
20110 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20111 Usually this means the macro was only invoked conditionally." >&2;}
20112 { (exit 1); exit 1; }; }
20114 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20115 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20116 Usually this means the macro was only invoked conditionally." >&5
20117 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20118 Usually this means the macro was only invoked conditionally." >&2;}
20119 { (exit 1); exit 1; }; }
20121 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20122 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20123 Usually this means the macro was only invoked conditionally." >&5
20124 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20125 Usually this means the macro was only invoked conditionally." >&2;}
20126 { (exit 1); exit 1; }; }
20128 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20129 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20130 Usually this means the macro was only invoked conditionally." >&5
20131 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&2;}
20133 { (exit 1); exit 1; }; }
20135 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20136 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&5
20138 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&2;}
20140 { (exit 1); exit 1; }; }
20142 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20143 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&5
20145 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&2;}
20147 { (exit 1); exit 1; }; }
20149 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20150 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20151 Usually this means the macro was only invoked conditionally." >&5
20152 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20153 Usually this means the macro was only invoked conditionally." >&2;}
20154 { (exit 1); exit 1; }; }
20156 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20157 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20158 Usually this means the macro was only invoked conditionally." >&5
20159 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20160 Usually this means the macro was only invoked conditionally." >&2;}
20161 { (exit 1); exit 1; }; }
20163 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20164 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20165 Usually this means the macro was only invoked conditionally." >&5
20166 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&2;}
20168 { (exit 1); exit 1; }; }
20170 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20171 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20172 Usually this means the macro was only invoked conditionally." >&5
20173 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&2;}
20175 { (exit 1); exit 1; }; }
20177 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20178 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20179 Usually this means the macro was only invoked conditionally." >&5
20180 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&2;}
20182 { (exit 1); exit 1; }; }
20184 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20185 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20186 Usually this means the macro was only invoked conditionally." >&5
20187 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&2;}
20189 { (exit 1); exit 1; }; }
20191 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20192 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196 { (exit 1); exit 1; }; }
20198 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20199 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20200 Usually this means the macro was only invoked conditionally." >&5
20201 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&2;}
20203 { (exit 1); exit 1; }; }
20205 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20206 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20207 Usually this means the macro was only invoked conditionally." >&5
20208 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&2;}
20210 { (exit 1); exit 1; }; }
20212 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20213 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20214 Usually this means the macro was only invoked conditionally." >&5
20215 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&2;}
20217 { (exit 1); exit 1; }; }
20219 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20220 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20221 Usually this means the macro was only invoked conditionally." >&5
20222 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20223 Usually this means the macro was only invoked conditionally." >&2;}
20224 { (exit 1); exit 1; }; }
20226 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20227 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20228 Usually this means the macro was only invoked conditionally." >&5
20229 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20230 Usually this means the macro was only invoked conditionally." >&2;}
20231 { (exit 1); exit 1; }; }
20233 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20234 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20235 Usually this means the macro was only invoked conditionally." >&5
20236 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20237 Usually this means the macro was only invoked conditionally." >&2;}
20238 { (exit 1); exit 1; }; }
20240 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20241 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20242 Usually this means the macro was only invoked conditionally." >&5
20243 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20244 Usually this means the macro was only invoked conditionally." >&2;}
20245 { (exit 1); exit 1; }; }
20247 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20248 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20249 Usually this means the macro was only invoked conditionally." >&5
20250 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20251 Usually this means the macro was only invoked conditionally." >&2;}
20252 { (exit 1); exit 1; }; }
20254 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20255 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20256 Usually this means the macro was only invoked conditionally." >&5
20257 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20258 Usually this means the macro was only invoked conditionally." >&2;}
20259 { (exit 1); exit 1; }; }
20261 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20262 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20263 Usually this means the macro was only invoked conditionally." >&5
20264 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20265 Usually this means the macro was only invoked conditionally." >&2;}
20266 { (exit 1); exit 1; }; }
20268 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20269 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20270 Usually this means the macro was only invoked conditionally." >&5
20271 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20272 Usually this means the macro was only invoked conditionally." >&2;}
20273 { (exit 1); exit 1; }; }
20275 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20276 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20277 Usually this means the macro was only invoked conditionally." >&5
20278 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20279 Usually this means the macro was only invoked conditionally." >&2;}
20280 { (exit 1); exit 1; }; }
20282 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20283 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20284 Usually this means the macro was only invoked conditionally." >&5
20285 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20286 Usually this means the macro was only invoked conditionally." >&2;}
20287 { (exit 1); exit 1; }; }
20289 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20290 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20291 Usually this means the macro was only invoked conditionally." >&5
20292 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20293 Usually this means the macro was only invoked conditionally." >&2;}
20294 { (exit 1); exit 1; }; }
20296 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
20297 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
20298 Usually this means the macro was only invoked conditionally." >&5
20299 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
20300 Usually this means the macro was only invoked conditionally." >&2;}
20301 { (exit 1); exit 1; }; }
20303 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
20304 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
20305 Usually this means the macro was only invoked conditionally." >&5
20306 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
20307 Usually this means the macro was only invoked conditionally." >&2;}
20308 { (exit 1); exit 1; }; }
20310 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20311 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20312 Usually this means the macro was only invoked conditionally." >&5
20313 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20314 Usually this means the macro was only invoked conditionally." >&2;}
20315 { (exit 1); exit 1; }; }
20317 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20318 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20319 Usually this means the macro was only invoked conditionally." >&5
20320 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20321 Usually this means the macro was only invoked conditionally." >&2;}
20322 { (exit 1); exit 1; }; }
20324 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20325 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20326 Usually this means the macro was only invoked conditionally." >&5
20327 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20328 Usually this means the macro was only invoked conditionally." >&2;}
20329 { (exit 1); exit 1; }; }
20331 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20332 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20333 Usually this means the macro was only invoked conditionally." >&5
20334 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20335 Usually this means the macro was only invoked conditionally." >&2;}
20336 { (exit 1); exit 1; }; }
20338 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20339 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20340 Usually this means the macro was only invoked conditionally." >&5
20341 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20342 Usually this means the macro was only invoked conditionally." >&2;}
20343 { (exit 1); exit 1; }; }
20345 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20346 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20347 Usually this means the macro was only invoked conditionally." >&5
20348 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20349 Usually this means the macro was only invoked conditionally." >&2;}
20350 { (exit 1); exit 1; }; }
20352 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20353 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20354 Usually this means the macro was only invoked conditionally." >&5
20355 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20356 Usually this means the macro was only invoked conditionally." >&2;}
20357 { (exit 1); exit 1; }; }
20359 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20360 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&5
20362 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20363 Usually this means the macro was only invoked conditionally." >&2;}
20364 { (exit 1); exit 1; }; }
20366 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20367 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&5
20369 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20370 Usually this means the macro was only invoked conditionally." >&2;}
20371 { (exit 1); exit 1; }; }
20373 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20374 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&5
20376 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20377 Usually this means the macro was only invoked conditionally." >&2;}
20378 { (exit 1); exit 1; }; }
20380 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20381 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&5
20383 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20384 Usually this means the macro was only invoked conditionally." >&2;}
20385 { (exit 1); exit 1; }; }
20387 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20388 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20389 Usually this means the macro was only invoked conditionally." >&5
20390 echo "$as_me: error: conditional \"MSYS\" was never defined.
20391 Usually this means the macro was only invoked conditionally." >&2;}
20392 { (exit 1); exit 1; }; }
20394 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20395 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20396 Usually this means the macro was only invoked conditionally." >&5
20397 echo "$as_me: error: conditional \"VCPP\" was never defined.
20398 Usually this means the macro was only invoked conditionally." >&2;}
20399 { (exit 1); exit 1; }; }
20401 if test -z "${POCC_TRUE}" && test -z "${POCC_FALSE}"; then
20402 { { echo "$as_me:$LINENO: error: conditional \"POCC\" was never defined.
20403 Usually this means the macro was only invoked conditionally." >&5
20404 echo "$as_me: error: conditional \"POCC\" was never defined.
20405 Usually this means the macro was only invoked conditionally." >&2;}
20406 { (exit 1); exit 1; }; }
20408 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20409 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20410 Usually this means the macro was only invoked conditionally." >&5
20411 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20412 Usually this means the macro was only invoked conditionally." >&2;}
20413 { (exit 1); exit 1; }; }
20415 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20416 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20417 Usually this means the macro was only invoked conditionally." >&5
20418 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20419 Usually this means the macro was only invoked conditionally." >&2;}
20420 { (exit 1); exit 1; }; }
20422 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
20423 { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
20424 Usually this means the macro was only invoked conditionally." >&5
20425 echo "$as_me: error: conditional \"DMC\" was never defined.
20426 Usually this means the macro was only invoked conditionally." >&2;}
20427 { (exit 1); exit 1; }; }
20429 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20430 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20431 Usually this means the macro was only invoked conditionally." >&5
20432 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20433 Usually this means the macro was only invoked conditionally." >&2;}
20434 { (exit 1); exit 1; }; }
20436 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20437 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20438 Usually this means the macro was only invoked conditionally." >&5
20439 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20440 Usually this means the macro was only invoked conditionally." >&2;}
20441 { (exit 1); exit 1; }; }
20444 : ${CONFIG_STATUS=./config.status}
20445 ac_clean_files_save=$ac_clean_files
20446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20447 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20448 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20449 cat >$CONFIG_STATUS <<_ACEOF
20451 # Generated by $as_me.
20452 # Run this file to recreate the current configuration.
20453 # Compiler output produced by configure, useful for debugging
20454 # configure, is in config.log if it exists.
20457 ac_cs_recheck=false
20459 SHELL=\${CONFIG_SHELL-$SHELL}
20462 cat >>$CONFIG_STATUS <<\_ACEOF
20463 ## --------------------- ##
20464 ## M4sh Initialization. ##
20465 ## --------------------- ##
20467 # Be more Bourne compatible
20468 DUALCASE=1; export DUALCASE # for MKS sh
20469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20473 # is contrary to our usage. Disable this feature.
20474 alias -g '${1+"$@"}'='"$@"'
20475 setopt NO_GLOB_SUBST
20477 case `(set -o) 2>/dev/null` in
20478 *posix*) set -o posix ;;
20487 # Avoid depending upon Character Ranges.
20488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20491 as_cr_digits='0123456789'
20492 as_cr_alnum=$as_cr_Letters$as_cr_digits
20494 # The user is always right.
20495 if test "${PATH_SEPARATOR+set}" != set; then
20496 echo "#! /bin/sh" >conf$$.sh
20497 echo "exit 0" >>conf$$.sh
20499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20507 # Support unset when possible.
20508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20516 # We need space, tab and new line, in precisely that order. Quoting is
20517 # there to prevent editors from complaining about space-tab.
20518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20519 # splitting by setting IFS to empty value.)
20524 # Find who we are. Look in the path if we contain no directory separator.
20526 *[\\/]* ) as_myself=$0 ;;
20527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20528 for as_dir in $PATH
20531 test -z "$as_dir" && as_dir=.
20532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20538 # We did not find ourselves, most probably we were run as `sh COMMAND'
20539 # in which case we are not to be found in the path.
20540 if test "x$as_myself" = x; then
20543 if test ! -f "$as_myself"; then
20544 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20545 { (exit 1); exit 1; }
20548 # Work around bugs in pre-3.0 UWIN ksh.
20549 for as_var in ENV MAIL MAILPATH
20550 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20558 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20559 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20560 LC_TELEPHONE LC_TIME
20562 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20563 eval $as_var=C; export $as_var
20565 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20569 # Required to use basename.
20570 if expr a : '\(a\)' >/dev/null 2>&1 &&
20571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20578 as_basename=basename
20584 # Name of the executable.
20585 as_me=`$as_basename -- "$0" ||
20586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20587 X"$0" : 'X\(//\)$' \| \
20588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20590 sed '/^.*\/\([^/][^/]*\)\/*$/{
20609 as_lineno_1=$LINENO
20610 as_lineno_2=$LINENO
20611 test "x$as_lineno_1" != "x$as_lineno_2" &&
20612 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20615 # uniformly replaced by the line number. The first 'sed' inserts a
20616 # line-number line after each line using $LINENO; the second 'sed'
20617 # does the real work. The second script uses 'N' to pair each
20618 # line-number line with the line containing $LINENO, and appends
20619 # trailing '-' during substitution so that $LINENO is not a special
20620 # case at line end.
20621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20622 # scripts with optimization help from Paolo Bonzini. Blame Lee
20623 # E. McMahon (1931-1989) for sed's syntax. :-)
20635 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20638 ' >$as_me.lineno &&
20639 chmod +x "$as_me.lineno" ||
20640 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20641 { (exit 1); exit 1; }; }
20643 # Don't try to exec as it changes $[0], causing all sort of problems
20644 # (the dirname of $[0] is not the place where we might find the
20645 # original and so on. Autoconf is especially sensitive to this).
20646 . "./$as_me.lineno"
20647 # Exit status is that of the last command.
20652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20658 ECHO_C= ECHO_N= ECHO_T=
20659 case `echo -n x` in
20661 case `echo 'x\c'` in
20662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20669 if expr a : '\(a\)' >/dev/null 2>&1 &&
20670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20676 rm -f conf$$ conf$$.exe conf$$.file
20677 if test -d conf$$.dir; then
20678 rm -f conf$$.dir/conf$$.file
20684 if ln -s conf$$.file conf$$ 2>/dev/null; then
20686 # ... but there are two gotchas:
20687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20689 # In both cases, we have to default to `cp -p'.
20690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20692 elif ln conf$$.file conf$$ 2>/dev/null; then
20697 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20698 rmdir conf$$.dir 2>/dev/null
20700 if mkdir -p . 2>/dev/null; then
20703 test -d ./-p && rmdir ./-p
20707 if test -x / >/dev/null 2>&1; then
20708 as_test_x='test -x'
20710 if ls -dL / >/dev/null 2>&1; then
20717 if test -d "$1"; then
20723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20724 ???[sx]*):;;*)false;;esac;fi
20728 as_executable_p=$as_test_x
20730 # Sed expression to map a string onto a valid CPP name.
20731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20733 # Sed expression to map a string onto a valid variable name.
20734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20739 # Save the log message, to keep $[0] and so on meaningful, and to
20740 # report actual input values of CONFIG_FILES etc. instead of their
20741 # values after options handling.
20743 This file was extended by TiMidity++ $as_me 2.13.2, which was
20744 generated by GNU Autoconf 2.61. Invocation command line was
20746 CONFIG_FILES = $CONFIG_FILES
20747 CONFIG_HEADERS = $CONFIG_HEADERS
20748 CONFIG_LINKS = $CONFIG_LINKS
20749 CONFIG_COMMANDS = $CONFIG_COMMANDS
20752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758 # Files that config.status was made for.
20759 config_files="$ac_config_files"
20760 config_headers="$ac_config_headers"
20761 config_commands="$ac_config_commands"
20765 cat >>$CONFIG_STATUS <<\_ACEOF
20767 \`$as_me' instantiates files from templates according to the
20768 current configuration.
20770 Usage: $0 [OPTIONS] [FILE]...
20772 -h, --help print this help, then exit
20773 -V, --version print version number and configuration settings, then exit
20774 -q, --quiet do not print progress messages
20775 -d, --debug don't remove temporary files
20776 --recheck update $as_me by reconfiguring in the same conditions
20777 --file=FILE[:TEMPLATE]
20778 instantiate the configuration file FILE
20779 --header=FILE[:TEMPLATE]
20780 instantiate the configuration header FILE
20782 Configuration files:
20785 Configuration headers:
20788 Configuration commands:
20791 Report bugs to <bug-autoconf@gnu.org>."
20794 cat >>$CONFIG_STATUS <<_ACEOF
20796 TiMidity++ config.status 2.13.2
20797 configured by $0, generated by GNU Autoconf 2.61,
20798 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20800 Copyright (C) 2006 Free Software Foundation, Inc.
20801 This config.status script is free software; the Free Software Foundation
20802 gives unlimited permission to copy, distribute and modify it."
20809 cat >>$CONFIG_STATUS <<\_ACEOF
20810 # If no file are specified by the user, then we need to provide default
20811 # value. By we need to know if files were specified by the user.
20817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20829 # Handling of the options.
20830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20833 echo "$ac_cs_version"; exit ;;
20834 --debug | --debu | --deb | --de | --d | -d )
20836 --file | --fil | --fi | --f )
20838 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20839 ac_need_defaults=false;;
20840 --header | --heade | --head | --hea )
20842 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20843 ac_need_defaults=false;;
20845 # Conflict between --help and --header
20846 { echo "$as_me: error: ambiguous option: $1
20847 Try \`$0 --help' for more information." >&2
20848 { (exit 1); exit 1; }; };;
20849 --help | --hel | -h )
20850 echo "$ac_cs_usage"; exit ;;
20851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20855 # This is an error.
20856 -*) { echo "$as_me: error: unrecognized option: $1
20857 Try \`$0 --help' for more information." >&2
20858 { (exit 1); exit 1; }; } ;;
20860 *) ac_config_targets="$ac_config_targets $1"
20861 ac_need_defaults=false ;;
20867 ac_configure_extra_args=
20869 if $ac_cs_silent; then
20871 ac_configure_extra_args="$ac_configure_extra_args --silent"
20875 cat >>$CONFIG_STATUS <<_ACEOF
20876 if \$ac_cs_recheck; then
20877 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20878 CONFIG_SHELL=$SHELL
20879 export CONFIG_SHELL
20880 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20884 cat >>$CONFIG_STATUS <<\_ACEOF
20888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20889 ## Running $as_me. ##
20895 cat >>$CONFIG_STATUS <<_ACEOF
20899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20903 cat >>$CONFIG_STATUS <<\_ACEOF
20905 # Handling of arguments.
20906 for ac_config_target in $ac_config_targets
20908 case $ac_config_target in
20909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20910 "interface.h") CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20913 "autoconf/Makefile") CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20914 "common.makefile") CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20915 "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20916 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20917 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20918 "doc/ja_JP.eucJP/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20919 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20920 "interface/motif_bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20921 "interface/bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20922 "interface/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20923 "libarc/Makefile") CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20924 "libunimod/Makefile") CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20925 "timidity/Makefile") CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20926 "windrv/Makefile") CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20927 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20928 "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20929 "TiMidity.ad") CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20930 "TiMidity-uj.ad") CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20934 { (exit 1); exit 1; }; };;
20939 # If the user did not use the arguments to specify the items to instantiate,
20940 # then the envvar interface is used. Set only those that are not.
20941 # We use the long form for the default assignment because of an extremely
20942 # bizarre bug on SunOS 4.1.3.
20943 if $ac_need_defaults; then
20944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20949 # Have a temporary directory for convenience. Make it in the build tree
20950 # simply because there is no reason against having it here, and in addition,
20951 # creating and moving files from /tmp can sometimes cause problems.
20952 # Hook for its removal unless debugging.
20953 # Note that there is a small window in which the directory will not be cleaned:
20954 # after its creation but before its name has been assigned to `$tmp'.
20958 trap 'exit_status=$?
20959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20961 trap '{ (exit 1); exit 1; }' 1 2 13 15
20963 # Create a (secure) tmp directory for tmp files.
20966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20967 test -n "$tmp" && test -d "$tmp"
20970 tmp=./conf$$-$RANDOM
20971 (umask 077 && mkdir "$tmp")
20974 echo "$me: cannot create a temporary directory in ." >&2
20975 { (exit 1); exit 1; }
20979 # Set up the sed scripts for CONFIG_FILES section.
20982 # No need to generate the scripts if there are no CONFIG_FILES.
20983 # This happens for instance when ./config.status config.h
20984 if test -n "$CONFIG_FILES"; then
20991 for ac_last_try in false false false false false :; do
20992 cat >conf$$subs.sed <<_ACEOF
20993 SHELL!$SHELL$ac_delim
20994 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20995 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20996 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20997 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20998 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20999 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21000 exec_prefix!$exec_prefix$ac_delim
21001 prefix!$prefix$ac_delim
21002 program_transform_name!$program_transform_name$ac_delim
21003 bindir!$bindir$ac_delim
21004 sbindir!$sbindir$ac_delim
21005 libexecdir!$libexecdir$ac_delim
21006 datarootdir!$datarootdir$ac_delim
21007 datadir!$datadir$ac_delim
21008 sysconfdir!$sysconfdir$ac_delim
21009 sharedstatedir!$sharedstatedir$ac_delim
21010 localstatedir!$localstatedir$ac_delim
21011 includedir!$includedir$ac_delim
21012 oldincludedir!$oldincludedir$ac_delim
21013 docdir!$docdir$ac_delim
21014 infodir!$infodir$ac_delim
21015 htmldir!$htmldir$ac_delim
21016 dvidir!$dvidir$ac_delim
21017 pdfdir!$pdfdir$ac_delim
21018 psdir!$psdir$ac_delim
21019 libdir!$libdir$ac_delim
21020 localedir!$localedir$ac_delim
21021 mandir!$mandir$ac_delim
21022 DEFS!$DEFS$ac_delim
21023 ECHO_C!$ECHO_C$ac_delim
21024 ECHO_N!$ECHO_N$ac_delim
21025 ECHO_T!$ECHO_T$ac_delim
21026 LIBS!$LIBS$ac_delim
21027 build_alias!$build_alias$ac_delim
21028 host_alias!$host_alias$ac_delim
21029 target_alias!$target_alias$ac_delim
21030 build!$build$ac_delim
21031 build_cpu!$build_cpu$ac_delim
21032 build_vendor!$build_vendor$ac_delim
21033 build_os!$build_os$ac_delim
21034 host!$host$ac_delim
21035 host_cpu!$host_cpu$ac_delim
21036 host_vendor!$host_vendor$ac_delim
21037 host_os!$host_os$ac_delim
21038 target!$target$ac_delim
21039 target_cpu!$target_cpu$ac_delim
21040 target_vendor!$target_vendor$ac_delim
21041 target_os!$target_os$ac_delim
21042 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21043 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21044 INSTALL_DATA!$INSTALL_DATA$ac_delim
21045 CYGPATH_W!$CYGPATH_W$ac_delim
21046 PACKAGE!$PACKAGE$ac_delim
21047 VERSION!$VERSION$ac_delim
21048 ACLOCAL!$ACLOCAL$ac_delim
21049 AUTOCONF!$AUTOCONF$ac_delim
21050 AUTOMAKE!$AUTOMAKE$ac_delim
21051 AUTOHEADER!$AUTOHEADER$ac_delim
21052 MAKEINFO!$MAKEINFO$ac_delim
21053 AMTAR!$AMTAR$ac_delim
21054 install_sh!$install_sh$ac_delim
21055 STRIP!$STRIP$ac_delim
21056 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21058 SET_MAKE!$SET_MAKE$ac_delim
21059 am__leading_dot!$am__leading_dot$ac_delim
21060 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21061 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21062 MAINT!$MAINT$ac_delim
21063 EMACS!$EMACS$ac_delim
21064 lispdir!$lispdir$ac_delim
21066 CFLAGS!$CFLAGS$ac_delim
21067 LDFLAGS!$LDFLAGS$ac_delim
21068 CPPFLAGS!$CPPFLAGS$ac_delim
21069 ac_ct_CC!$ac_ct_CC$ac_delim
21070 EXEEXT!$EXEEXT$ac_delim
21071 OBJEXT!$OBJEXT$ac_delim
21072 DEPDIR!$DEPDIR$ac_delim
21073 am__include!$am__include$ac_delim
21074 am__quote!$am__quote$ac_delim
21075 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21076 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21077 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21078 CCDEPMODE!$CCDEPMODE$ac_delim
21079 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21080 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21082 GREP!$GREP$ac_delim
21083 EGREP!$EGREP$ac_delim
21084 RANLIB!$RANLIB$ac_delim
21085 LN_S!$LN_S$ac_delim
21086 XMKMF!$XMKMF$ac_delim
21087 X_CFLAGS!$X_CFLAGS$ac_delim
21088 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21089 X_LIBS!$X_LIBS$ac_delim
21092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21094 elif $ac_last_try; then
21095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21097 { (exit 1); exit 1; }; }
21099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21104 if test -n "$ac_eof"; then
21105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21106 ac_eof=`expr $ac_eof + 1`
21109 cat >>$CONFIG_STATUS <<_ACEOF
21110 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21115 s/^/s,@/; s/!/@,|#_!!_#|/
21118 s/'"$ac_delim"'$/,g/; t
21120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21121 ' >>$CONFIG_STATUS <conf$$subs.sed
21122 rm -f conf$$subs.sed
21123 cat >>$CONFIG_STATUS <<_ACEOF
21129 for ac_last_try in false false false false false :; do
21130 cat >conf$$subs.sed <<_ACEOF
21131 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21132 LIBOBJS!$LIBOBJS$ac_delim
21133 NEEDGETOPT_TRUE!$NEEDGETOPT_TRUE$ac_delim
21134 NEEDGETOPT_FALSE!$NEEDGETOPT_FALSE$ac_delim
21135 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
21136 ALSA_LIBS!$ALSA_LIBS$ac_delim
21137 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21138 ARTSLIBS!$ARTSLIBS$ac_delim
21139 ARTSINCL!$ARTSINCL$ac_delim
21140 ESD_CONFIG!$ESD_CONFIG$ac_delim
21141 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
21142 ESD_LIBS!$ESD_LIBS$ac_delim
21143 AO_CFLAGS!$AO_CFLAGS$ac_delim
21144 AO_LIBS!$AO_LIBS$ac_delim
21145 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
21146 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
21147 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
21148 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
21149 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
21150 OGG_LIBS!$OGG_LIBS$ac_delim
21151 LIBFLAC_CFLAGS!$LIBFLAC_CFLAGS$ac_delim
21152 LIBFLAC_LIBS!$LIBFLAC_LIBS$ac_delim
21153 LIBOGGFLAC_CFLAGS!$LIBOGGFLAC_CFLAGS$ac_delim
21154 LIBOGGFLAC_LIBS!$LIBOGGFLAC_LIBS$ac_delim
21155 NEEDDLOPEN_TRUE!$NEEDDLOPEN_TRUE$ac_delim
21156 NEEDDLOPEN_FALSE!$NEEDDLOPEN_FALSE$ac_delim
21157 ENABLE_NCURSES_TRUE!$ENABLE_NCURSES_TRUE$ac_delim
21158 ENABLE_NCURSES_FALSE!$ENABLE_NCURSES_FALSE$ac_delim
21159 n_so_libs!$n_so_libs$ac_delim
21160 ENABLE_SLANG_TRUE!$ENABLE_SLANG_TRUE$ac_delim
21161 ENABLE_SLANG_FALSE!$ENABLE_SLANG_FALSE$ac_delim
21162 s_so_libs!$s_so_libs$ac_delim
21163 ENABLE_MOTIF_TRUE!$ENABLE_MOTIF_TRUE$ac_delim
21164 ENABLE_MOTIF_FALSE!$ENABLE_MOTIF_FALSE$ac_delim
21165 m_so_libs!$m_so_libs$ac_delim
21166 ENABLE_TCLTK_TRUE!$ENABLE_TCLTK_TRUE$ac_delim
21167 ENABLE_TCLTK_FALSE!$ENABLE_TCLTK_FALSE$ac_delim
21168 k_so_libs!$k_so_libs$ac_delim
21169 ENABLE_DYNAMIC_TCLTK_TRUE!$ENABLE_DYNAMIC_TCLTK_TRUE$ac_delim
21170 ENABLE_DYNAMIC_TCLTK_FALSE!$ENABLE_DYNAMIC_TCLTK_FALSE$ac_delim
21171 ENABLE_EMACS_TRUE!$ENABLE_EMACS_TRUE$ac_delim
21172 ENABLE_EMACS_FALSE!$ENABLE_EMACS_FALSE$ac_delim
21173 e_so_libs!$e_so_libs$ac_delim
21174 ENABLE_VT100_TRUE!$ENABLE_VT100_TRUE$ac_delim
21175 ENABLE_VT100_FALSE!$ENABLE_VT100_FALSE$ac_delim
21176 T_so_libs!$T_so_libs$ac_delim
21177 ENABLE_XAW_TRUE!$ENABLE_XAW_TRUE$ac_delim
21178 ENABLE_XAW_FALSE!$ENABLE_XAW_FALSE$ac_delim
21179 a_so_libs!$a_so_libs$ac_delim
21180 ENABLE_DYNAMIC_XAW_TRUE!$ENABLE_DYNAMIC_XAW_TRUE$ac_delim
21181 ENABLE_DYNAMIC_XAW_FALSE!$ENABLE_DYNAMIC_XAW_FALSE$ac_delim
21182 ENABLE_XSKIN_TRUE!$ENABLE_XSKIN_TRUE$ac_delim
21183 ENABLE_XSKIN_FALSE!$ENABLE_XSKIN_FALSE$ac_delim
21184 i_so_libs!$i_so_libs$ac_delim
21185 ENABLE_GTK_TRUE!$ENABLE_GTK_TRUE$ac_delim
21186 ENABLE_GTK_FALSE!$ENABLE_GTK_FALSE$ac_delim
21187 PKG_CONFIG!$PKG_CONFIG$ac_delim
21188 GTK_CONFIG!$GTK_CONFIG$ac_delim
21189 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
21190 GTK_LIBS!$GTK_LIBS$ac_delim
21191 g_so_libs!$g_so_libs$ac_delim
21192 ENABLE_SERVER_TRUE!$ENABLE_SERVER_TRUE$ac_delim
21193 ENABLE_SERVER_FALSE!$ENABLE_SERVER_FALSE$ac_delim
21194 r_so_libs!$r_so_libs$ac_delim
21195 ENABLE_ALSASEQ_TRUE!$ENABLE_ALSASEQ_TRUE$ac_delim
21196 ENABLE_ALSASEQ_FALSE!$ENABLE_ALSASEQ_FALSE$ac_delim
21197 A_so_libs!$A_so_libs$ac_delim
21198 ENABLE_WINSYN_TRUE!$ENABLE_WINSYN_TRUE$ac_delim
21199 ENABLE_WINSYN_FALSE!$ENABLE_WINSYN_FALSE$ac_delim
21200 W_so_libs!$W_so_libs$ac_delim
21201 ENABLE_PORTMIDISYN_TRUE!$ENABLE_PORTMIDISYN_TRUE$ac_delim
21202 ENABLE_PORTMIDISYN_FALSE!$ENABLE_PORTMIDISYN_FALSE$ac_delim
21203 P_so_libs!$P_so_libs$ac_delim
21204 ENABLE_NPSYN_TRUE!$ENABLE_NPSYN_TRUE$ac_delim
21205 ENABLE_NPSYN_FALSE!$ENABLE_NPSYN_FALSE$ac_delim
21206 ENABLE_W32G_SYN_TRUE!$ENABLE_W32G_SYN_TRUE$ac_delim
21207 ENABLE_W32G_SYN_FALSE!$ENABLE_W32G_SYN_FALSE$ac_delim
21208 ENABLE_W32GUI_TRUE!$ENABLE_W32GUI_TRUE$ac_delim
21209 ENABLE_W32GUI_FALSE!$ENABLE_W32GUI_FALSE$ac_delim
21210 w_so_libs!$w_so_libs$ac_delim
21211 ENABLE_PLUGIN_TRUE!$ENABLE_PLUGIN_TRUE$ac_delim
21212 ENABLE_PLUGIN_FALSE!$ENABLE_PLUGIN_FALSE$ac_delim
21213 p_so_libs!$p_so_libs$ac_delim
21214 ENABLE_NETWORK_TRUE!$ENABLE_NETWORK_TRUE$ac_delim
21215 ENABLE_NETWORK_FALSE!$ENABLE_NETWORK_FALSE$ac_delim
21216 ENABLE_SOUND_SPEC_TRUE!$ENABLE_SOUND_SPEC_TRUE$ac_delim
21217 ENABLE_SOUND_SPEC_FALSE!$ENABLE_SOUND_SPEC_FALSE$ac_delim
21218 ENABLE_WRD_TRUE!$ENABLE_WRD_TRUE$ac_delim
21219 ENABLE_WRD_FALSE!$ENABLE_WRD_FALSE$ac_delim
21220 W32G_GUI_TRUE!$W32G_GUI_TRUE$ac_delim
21221 W32G_GUI_FALSE!$W32G_GUI_FALSE$ac_delim
21222 WINDRV_TRUE!$WINDRV_TRUE$ac_delim
21223 WINDRV_FALSE!$WINDRV_FALSE$ac_delim
21224 MSYS_TRUE!$MSYS_TRUE$ac_delim
21225 MSYS_FALSE!$MSYS_FALSE$ac_delim
21226 VCPP_TRUE!$VCPP_TRUE$ac_delim
21227 VCPP_FALSE!$VCPP_FALSE$ac_delim
21230 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21232 elif $ac_last_try; then
21233 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21235 { (exit 1); exit 1; }; }
21237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21241 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21242 if test -n "$ac_eof"; then
21243 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21244 ac_eof=`expr $ac_eof + 1`
21247 cat >>$CONFIG_STATUS <<_ACEOF
21248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21253 s/^/s,@/; s/!/@,|#_!!_#|/
21256 s/'"$ac_delim"'$/,g/; t
21258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21259 ' >>$CONFIG_STATUS <conf$$subs.sed
21260 rm -f conf$$subs.sed
21261 cat >>$CONFIG_STATUS <<_ACEOF
21267 for ac_last_try in false false false false false :; do
21268 cat >conf$$subs.sed <<_ACEOF
21269 POCC_TRUE!$POCC_TRUE$ac_delim
21270 POCC_FALSE!$POCC_FALSE$ac_delim
21271 BORLANDC_TRUE!$BORLANDC_TRUE$ac_delim
21272 BORLANDC_FALSE!$BORLANDC_FALSE$ac_delim
21273 WATCOM_C_TRUE!$WATCOM_C_TRUE$ac_delim
21274 WATCOM_C_FALSE!$WATCOM_C_FALSE$ac_delim
21275 DMC_TRUE!$DMC_TRUE$ac_delim
21276 DMC_FALSE!$DMC_FALSE$ac_delim
21277 MINGWGCC_TRUE!$MINGWGCC_TRUE$ac_delim
21278 MINGWGCC_FALSE!$MINGWGCC_FALSE$ac_delim
21279 W32READDIR_TRUE!$W32READDIR_TRUE$ac_delim
21280 W32READDIR_FALSE!$W32READDIR_FALSE$ac_delim
21281 BORLANDC_START!$BORLANDC_START$ac_delim
21282 BORLANDC_LDFLAGS!$BORLANDC_LDFLAGS$ac_delim
21283 timidity_LDFLAGS!$timidity_LDFLAGS$ac_delim
21284 WATCOM_LDFLAGS!$WATCOM_LDFLAGS$ac_delim
21285 DMC_LDFLAGS!$DMC_LDFLAGS$ac_delim
21286 VCPP_LDFLAGS!$VCPP_LDFLAGS$ac_delim
21287 POCC_LDFLAGS!$POCC_LDFLAGS$ac_delim
21288 SYSEXTRAS!$SYSEXTRAS$ac_delim
21289 EXTRALIBS!$EXTRALIBS$ac_delim
21290 NETSRCS!$NETSRCS$ac_delim
21291 ELFILES!$ELFILES$ac_delim
21292 SHLD!$SHLD$ac_delim
21293 SHCFLAGS!$SHCFLAGS$ac_delim
21294 dynamic_targets!$dynamic_targets$ac_delim
21296 WISH!$WISH$ac_delim
21297 tcltk_dep!$tcltk_dep$ac_delim
21298 INTERFACE_SRCS!$INTERFACE_SRCS$ac_delim
21299 pkgdatadir!$pkgdatadir$ac_delim
21300 pkglibdir!$pkglibdir$ac_delim
21301 LTLIBOBJS!$LTLIBOBJS$ac_delim
21304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
21306 elif $ac_last_try; then
21307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21309 { (exit 1); exit 1; }; }
21311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21316 if test -n "$ac_eof"; then
21317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21318 ac_eof=`expr $ac_eof + 1`
21321 cat >>$CONFIG_STATUS <<_ACEOF
21322 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21327 s/^/s,@/; s/!/@,|#_!!_#|/
21330 s/'"$ac_delim"'$/,g/; t
21332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21333 ' >>$CONFIG_STATUS <conf$$subs.sed
21334 rm -f conf$$subs.sed
21335 cat >>$CONFIG_STATUS <<_ACEOF
21342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21344 # trailing colons and then remove the whole line if VPATH becomes empty
21345 # (actually we leave an empty line to preserve line numbers).
21346 if test "x$srcdir" = x.; then
21347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21348 s/:*\$(srcdir):*/:/
21349 s/:*\${srcdir}:*/:/
21351 s/^\([^=]*=[ ]*\):*/\1/
21357 cat >>$CONFIG_STATUS <<\_ACEOF
21358 fi # test -n "$CONFIG_FILES"
21361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21364 :[FHLC]) ac_mode=$ac_tag; continue;;
21366 case $ac_mode$ac_tag in
21368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21370 { (exit 1); exit 1; }; };;
21371 :[FH]-) ac_tag=-:-;;
21372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21389 -) ac_f="$tmp/stdin";;
21390 *) # Look for the file first in the build tree, then in the source tree
21391 # (if the path is not absolute). The absolute path cannot be DOS-style,
21392 # because $ac_f cannot contain `:'.
21396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21400 { (exit 1); exit 1; }; };;
21402 ac_file_inputs="$ac_file_inputs $ac_f"
21405 # Let's still pretend it is `configure' which instantiates (i.e., don't
21406 # use $as_me), people would be surprised to read:
21407 # /* config.h. Generated by config.status. */
21408 configure_input="Generated from "`IFS=:
21409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21410 if test x"$ac_file" != x-; then
21411 configure_input="$ac_file. $configure_input"
21412 { echo "$as_me:$LINENO: creating $ac_file" >&5
21413 echo "$as_me: creating $ac_file" >&6;}
21417 *:-:* | *:-) cat >"$tmp/stdin";;
21422 ac_dir=`$as_dirname -- "$ac_file" ||
21423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21424 X"$ac_file" : 'X\(//\)[^/]' \| \
21425 X"$ac_file" : 'X\(//\)$' \| \
21426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21432 /^X\(\/\/\)[^/].*/{
21447 -*) as_dir=./$as_dir;;
21449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21454 *) as_qdir=$as_dir;;
21456 as_dirs="'$as_qdir' $as_dirs"
21457 as_dir=`$as_dirname -- "$as_dir" ||
21458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21459 X"$as_dir" : 'X\(//\)[^/]' \| \
21460 X"$as_dir" : 'X\(//\)$' \| \
21461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21467 /^X\(\/\/\)[^/].*/{
21480 test -d "$as_dir" && break
21482 test -z "$as_dirs" || eval "mkdir $as_dirs"
21483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21485 { (exit 1); exit 1; }; }; }
21489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21492 # A ".." for each directory in $ac_dir_suffix.
21493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21494 case $ac_top_builddir_sub in
21495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21499 ac_abs_top_builddir=$ac_pwd
21500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21501 # for backward compatibility:
21502 ac_top_builddir=$ac_top_build_prefix
21505 .) # We are building in place.
21507 ac_top_srcdir=$ac_top_builddir_sub
21508 ac_abs_top_srcdir=$ac_pwd ;;
21509 [\\/]* | ?:[\\/]* ) # Absolute name.
21510 ac_srcdir=$srcdir$ac_dir_suffix;
21511 ac_top_srcdir=$srcdir
21512 ac_abs_top_srcdir=$srcdir ;;
21513 *) # Relative name.
21514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21515 ac_top_srcdir=$ac_top_build_prefix$srcdir
21516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534 # If the template does not know about datarootdir, expand it.
21535 # FIXME: This hack should be removed a few years after 2.60.
21536 ac_datarootdir_hack=; ac_datarootdir_seen=
21538 case `sed -n '/datarootdir/ {
21547 ' $ac_file_inputs` in
21548 *datarootdir*) ac_datarootdir_seen=yes;;
21549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21550 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21551 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21553 cat >>$CONFIG_STATUS <<_ACEOF
21554 ac_datarootdir_hack='
21555 s&@datadir@&$datadir&g
21556 s&@docdir@&$docdir&g
21557 s&@infodir@&$infodir&g
21558 s&@localedir@&$localedir&g
21559 s&@mandir@&$mandir&g
21560 s&\\\${datarootdir}&$datarootdir&g' ;;
21564 # Neutralize VPATH when `$srcdir' = `.'.
21565 # Shell code in configure.ac might set extrasub.
21566 # FIXME: do we really want to maintain this feature?
21567 cat >>$CONFIG_STATUS <<_ACEOF
21571 cat >>$CONFIG_STATUS <<\_ACEOF
21573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21574 s&@configure_input@&$configure_input&;t t
21575 s&@top_builddir@&$ac_top_builddir_sub&;t t
21576 s&@srcdir@&$ac_srcdir&;t t
21577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21578 s&@top_srcdir@&$ac_top_srcdir&;t t
21579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21580 s&@builddir@&$ac_builddir&;t t
21581 s&@abs_builddir@&$ac_abs_builddir&;t t
21582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21583 s&@INSTALL@&$ac_INSTALL&;t t
21584 $ac_datarootdir_hack
21585 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
21587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21590 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21591 which seems to be undefined. Please make sure it is defined." >&5
21592 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21593 which seems to be undefined. Please make sure it is defined." >&2;}
21597 -) cat "$tmp/out"; rm -f "$tmp/out";;
21598 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21607 # Transform confdefs.h into a sed script `conftest.defines', that
21608 # substitutes the proper values into config.h.in to produce config.h.
21609 rm -f conftest.defines conftest.tail
21610 # First, append a space to every undef/define line, to ease matching.
21611 echo 's/$/ /' >conftest.defines
21612 # Then, protect against being on the right side of a sed subst, or in
21613 # an unquoted here document, in config.status. If some macros were
21614 # called several times there might be several #defines for the same
21615 # symbol, which is useless. But do not sort them, since the last
21616 # AC_DEFINE must be honored.
21617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21618 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21619 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21620 # PARAMS is the parameter list in the macro definition--in most cases, it's
21621 # just an empty string.
21622 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21623 ac_dB='\\)[ (].*,\\1define\\2'
21631 s/^[ ]*#[ ]*define[ ][ ]*//
21636 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21637 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21638 ' >>conftest.defines
21640 # Remove the space that was appended to ease matching.
21641 # Then replace #undef with comments. This is necessary, for
21642 # example, in the case of _POSIX_SOURCE, which is predefined and required
21643 # on some systems where configure will not decide to define it.
21644 # (The regexp can be short, since the line contains either #define or #undef.)
21646 s,^[ #]*u.*,/* & */,' >>conftest.defines
21648 # Break up conftest.defines:
21649 ac_max_sed_lines=50
21651 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21652 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21653 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21655 ac_in='$ac_file_inputs'
21656 ac_out='"$tmp/out1"'
21657 ac_nxt='"$tmp/out2"'
21661 # Write a here document:
21662 cat >>$CONFIG_STATUS <<_ACEOF
21663 # First, check the format of the line:
21664 cat >"\$tmp/defines.sed" <<\\CEOF
21665 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21666 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21670 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21672 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21673 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21674 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21675 grep . conftest.tail >/dev/null || break
21676 rm -f conftest.defines
21677 mv conftest.tail conftest.defines
21679 rm -f conftest.defines conftest.tail
21681 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21682 cat >>$CONFIG_STATUS <<\_ACEOF
21683 if test x"$ac_file" != x-; then
21684 echo "/* $configure_input */" >"$tmp/config.h"
21685 cat "$ac_result" >>"$tmp/config.h"
21686 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21687 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21688 echo "$as_me: $ac_file is unchanged" >&6;}
21691 mv "$tmp/config.h" $ac_file
21694 echo "/* $configure_input */"
21698 # Compute $ac_file's index in $config_headers.
21700 for _am_header in $config_headers :; do
21701 case $_am_header in
21702 $ac_file | $ac_file:* )
21705 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21708 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21709 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21710 X$ac_file : 'X\(//\)[^/]' \| \
21711 X$ac_file : 'X\(//\)$' \| \
21712 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21718 /^X\(\/\/\)[^/].*/{
21730 s/.*/./; q'`/stamp-h$_am_stamp_count
21733 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21734 echo "$as_me: executing $ac_file commands" >&6;}
21739 case $ac_file$ac_mode in
21740 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21741 # Strip MF so we end up with the name of the file.
21742 mf=`echo "$mf" | sed -e 's/:.*$//'`
21743 # Check whether this is an Automake generated Makefile or not.
21744 # We used to match only the files named `Makefile.in', but
21745 # some people rename them; so instead we look at the file content.
21746 # Grep'ing the first line is not enough: some people post-process
21747 # each Makefile.in and add a new line on top of each file to say so.
21748 # So let's grep whole file.
21749 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21750 dirpart=`$as_dirname -- "$mf" ||
21751 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21752 X"$mf" : 'X\(//\)[^/]' \| \
21753 X"$mf" : 'X\(//\)$' \| \
21754 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21760 /^X\(\/\/\)[^/].*/{
21776 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21777 # Extract the definition of DEP_FILES from the Makefile without
21779 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21780 test -z "$DEPDIR" && continue
21781 # When using ansi2knr, U may be empty or an underscore; expand it
21782 U=`sed -n -e '/^U = / s///p' < "$mf"`
21783 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21784 # We invoke sed twice because it is the simplest approach to
21785 # changing $(DEPDIR) to its actual value in the expansion.
21786 for file in `sed -n -e '
21787 /^DEP_FILES = .*\\\\$/ {
21796 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21798 # Make sure the directory exists.
21799 test -f "$dirpart/$file" && continue
21800 fdir=`$as_dirname -- "$file" ||
21801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21802 X"$file" : 'X\(//\)[^/]' \| \
21803 X"$file" : 'X\(//\)$' \| \
21804 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21810 /^X\(\/\/\)[^/].*/{
21823 { as_dir=$dirpart/$fdir
21825 -*) as_dir=./$as_dir;;
21827 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21831 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21832 *) as_qdir=$as_dir;;
21834 as_dirs="'$as_qdir' $as_dirs"
21835 as_dir=`$as_dirname -- "$as_dir" ||
21836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837 X"$as_dir" : 'X\(//\)[^/]' \| \
21838 X"$as_dir" : 'X\(//\)$' \| \
21839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21845 /^X\(\/\/\)[^/].*/{
21858 test -d "$as_dir" && break
21860 test -z "$as_dirs" || eval "mkdir $as_dirs"
21861 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21862 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21863 { (exit 1); exit 1; }; }; }
21864 # echo "creating $dirpart/$file"
21865 echo '# dummy' > "$dirpart/$file"
21874 { (exit 0); exit 0; }
21876 chmod +x $CONFIG_STATUS
21877 ac_clean_files=$ac_clean_files_save
21880 # configure is writing to config.log, and then calls config.status.
21881 # config.status does its own redirection, appending to config.log.
21882 # Unfortunately, on DOS this fails, as config.log is still kept open
21883 # by configure, so config.status won't be able to write to it; its
21884 # output is simply discarded. So we exec the FD to /dev/null,
21885 # effectively closing config.log, so it can be properly (re)opened and
21886 # appended to by config.status. When coming back to configure, we
21887 # need to make the FD available again.
21888 if test "$no_create" != yes; then
21890 ac_config_status_args=
21891 test "$silent" = yes &&
21892 ac_config_status_args="$ac_config_status_args --quiet"
21894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21897 # would make configure fail if this is the last instruction.
21898 $ac_cs_success || { (exit 1); exit 1; }