2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 --target=TARGET configure for building compilers for TARGET [HOST]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of TiMidity++ current:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-debug Build a debugging version.
864 --disable-dependency-tracking Speeds up one-time builds
865 --enable-dependency-tracking Do not reject slow dependency extractors
866 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867 default: Automatically select audio device.
869 sun: SunOS /dev/audio
870 hpux: HPUX /dev/audio
871 irix: IRIX audio library
873 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
875 darwin: Darwin CoreAudio
876 alsa: ALSA pcm device
877 alib: HPUX network audio (Alib)
878 nas: NAS - Network Audio System
880 esd: EsounD - Enlightened Sound Daemon
887 gogo: MP3 GOGO (Only Windows is supported)
888 --disable-alsatest Do not try to compile and run a test Alsa program
889 --disable-artstest Do not try to compile and run a test ARTS program
890 --disable-esdtest Do not try to compile and run a test ESD program
891 --disable-aotest Do not try to compile and run a test ao program
892 --disable-oggtest Do not try to compile and run a test Ogg program
893 --disable-vorbistest Do not try to compile and run a test Vorbis program
894 --disable-libFLACtest Do not try to compile and run a test libFLAC program
895 --disable-libOggFLACtest Do not try to compile and run a test libOggFLAC program
896 --enable-interface=interface_list
897 Comma separated interface list
898 --enable-dynamic Enable dynamic link interface (default is no)
899 --enable-dynamic=dynamic_list
900 Comma separated dynamic interface list
901 --enable-ncurses Enable ncurses interface (default is no)
902 --enable-slang Enable slang interface (default is no)
903 --enable-motif Enable motif interface (default is no)
904 --enable-tcltk Enable tcltk interface (default is no)
905 --enable-emacs Enable emacs interface (default is no)
906 --enable-vt100 Enable VT100 interface (default is no)
907 --enable-xaw Enable athena interface (default is no)
908 --enable-xskin Enable X skin interface (default is no)
909 --enable-gtk Enable GTK+ interface (default is no)
910 --disable-gtktest Do not try to compile and run a test GTK program
911 --enable-server Enable server interface (default is no)
912 --enable-alsaseq Enable ALSA sequencer server interface
914 --enable-winsyn Enable Windows Synthesizer interface
916 --enable-portmidisyn Enable PortMIDI Synthesizer interface
918 --enable-winsyng Enable Windows GUI Synthesizer interface
920 --enable-w32gui Enable Windows GUI interface (default is no)
921 --enable-ump UMP configuration (default is no)
922 --enable-offix Enable offix support (default is no)
923 --enable-network Enable network support (default is no)
924 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
925 --enable-spline=method Specify spline method.
926 one of no,linear,cubic,lagrange,newton,gauss
928 --enable-wrd Enable WRD interface for X (default is no)
931 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
932 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
933 --with-includes=DIR Specify include directories (colon separated)
934 --with-libraries=DIR Specify library directories (colon separated)
935 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
936 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
937 --with-lispdir Override the default lisp directory
938 --with-elf create ELF shared object instead of AOUT
939 --with-x use the X Window System
940 --with-tcl-includes=DIR Tcl include file path
941 --with-tcl-libs=DIR Tcl library file path
942 --with-tk-includes=DIR Tk include file path
943 --with-tk-libs=DIR Tk library file path
944 --with-offix-includes=DIR Offix include file path
945 --with-offix-libs=DIR Offix include file path
946 --with-nas-library=library NAS absolute library path(Don't use -laudio)
947 --with-nas-includes=DIR NAS include files are in dir
948 --with-default-output=<mode> Specify default output mode (optional):
949 (default|alsa|alib|arts|nas|
950 esd|wav|au|aiff|list|vorbis|flac|speex|
951 gogo|portaudio|jack|ao)
952 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
953 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
954 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
955 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
956 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
957 --with-ao=PFX Prefix where libao is installed (optional)
958 --with-ao-libraries=DIR Directory where libao library is installed (optional)
959 --with-ao-includes=DIR Directory where libao header files are installed (optional)
960 --with-ogg=PFX Prefix where libogg is installed (optional)
961 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
962 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
963 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
964 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
965 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
966 --with-libFLAC=PFX Prefix where libFLAC is installed (optional)
967 --with-libFLAC-libraries=DIR Directory where libFLAC library is installed (optional)
968 --with-libFLAC-includes=DIR Directory where libFLAC header files are installed (optional)
969 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional)
970 --with-libOggFLAC-libraries=DIR Directory where libOggFLAC library is installed (optional)
971 --with-libOggFLAC-includes=DIR Directory where libOggFLAC header files are installed (optional)
972 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
973 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
975 Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
984 Use these variables to override the choices made by `configure' or to help
985 it to find libraries and programs with nonstandard names/locations.
987 Report bugs to <root@mput.dip.jp>.
991 if test "$ac_init_help" = "recursive"; then
992 # If there are subdirs, report their specific --help.
994 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
995 test -d $ac_dir || continue
998 if test "$ac_dir" != .; then
999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1000 # A "../" for each directory in $ac_dir_suffix.
1001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1003 ac_dir_suffix= ac_top_builddir=
1007 .) # No --srcdir option. We are building in place.
1009 if test -z "$ac_top_builddir"; then
1012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1014 [\\/]* | ?:[\\/]* ) # Absolute path.
1015 ac_srcdir=$srcdir$ac_dir_suffix;
1016 ac_top_srcdir=$srcdir ;;
1018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1022 # Do not use `cd foo && pwd` to compute absolute paths, because
1023 # the directories may not exist.
1025 .) ac_abs_builddir="$ac_dir";;
1028 .) ac_abs_builddir=`pwd`;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1036 case ${ac_top_builddir}. in
1037 .) ac_abs_top_builddir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1042 case $ac_abs_builddir in
1043 .) ac_abs_srcdir=$ac_srcdir;;
1046 .) ac_abs_srcdir=$ac_abs_builddir;;
1047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1051 case $ac_abs_builddir in
1052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1054 case $ac_top_srcdir in
1055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1062 # Check for guested configure; otherwise get Cygnus style configure.
1063 if test -f $ac_srcdir/configure.gnu; then
1065 $SHELL $ac_srcdir/configure.gnu --help=recursive
1066 elif test -f $ac_srcdir/configure; then
1068 $SHELL $ac_srcdir/configure --help=recursive
1069 elif test -f $ac_srcdir/configure.ac ||
1070 test -f $ac_srcdir/configure.in; then
1072 $ac_configure --help
1074 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080 test -n "$ac_init_help" && exit 0
1081 if $ac_init_version; then
1083 TiMidity++ configure current
1084 generated by GNU Autoconf 2.59
1086 Copyright (C) 2003 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1097 It was created by TiMidity++ $as_me current, which was
1098 generated by GNU Autoconf 2.59. Invocation command line was
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1132 test -z "$as_dir" && as_dir=.
1133 echo "PATH: $as_dir"
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Strip out --silent because we don't want to record it for future runs.
1151 # Also quote any args containing shell meta-characters.
1152 # Make two passes to allow for proper duplicate-argument suppression.
1157 ac_must_keep_next=false
1163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1167 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1171 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1173 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1174 if test $ac_must_keep_next = true; then
1175 ac_must_keep_next=false # Got value, back to normal.
1178 *=* | --config-cache | -C | -disable-* | --disable-* \
1179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1181 | -with-* | --with-* | -without-* | --without-* | --x)
1182 case "$ac_configure_args0 " in
1183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1186 -* ) ac_must_keep_next=true ;;
1189 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1190 # Get rid of the leading space.
1196 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1197 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1199 # When interrupted or exit'd, cleanup temporary files, and complete
1200 # config.log. We remove comments because anyway the quotes in there
1201 # would cause problems or look ugly.
1202 # WARNING: Be sure not to use single quotes in there, as some shells,
1203 # such as our DU 5.0 friend, will then `close' the trap.
1204 trap 'exit_status=$?
1205 # Save into config.log some information that might help in debugging.
1210 ## ---------------- ##
1211 ## Cache variables. ##
1212 ## ---------------- ##
1215 # The following way of writing the cache mishandles newlines in values,
1218 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1221 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1233 ## ----------------- ##
1234 ## Output variables. ##
1235 ## ----------------- ##
1238 for ac_var in $ac_subst_vars
1240 eval ac_val=$`echo $ac_var`
1241 echo "$ac_var='"'"'$ac_val'"'"'"
1245 if test -n "$ac_subst_files"; then
1252 for ac_var in $ac_subst_files
1254 eval ac_val=$`echo $ac_var`
1255 echo "$ac_var='"'"'$ac_val'"'"'"
1260 if test -s confdefs.h; then
1267 sed "/^$/d" confdefs.h | sort
1270 test "$ac_signal" != 0 &&
1271 echo "$as_me: caught signal $ac_signal"
1272 echo "$as_me: exit $exit_status"
1274 rm -f core *.core &&
1275 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1278 for ac_signal in 1 2 13 15; do
1279 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1284 rm -rf conftest* confdefs.h
1285 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1288 # Predefined preprocessor variables.
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_NAME "$PACKAGE_NAME"
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_STRING "$PACKAGE_STRING"
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1315 # Let the site file select an alternate cache file if it wants to.
1316 # Prefer explicitly selected file to automatically selected ones.
1317 if test -z "$CONFIG_SITE"; then
1318 if test "x$prefix" != xNONE; then
1319 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1321 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1324 for ac_site_file in $CONFIG_SITE; do
1325 if test -r "$ac_site_file"; then
1326 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1327 echo "$as_me: loading site script $ac_site_file" >&6;}
1328 sed 's/^/| /' "$ac_site_file" >&5
1333 if test -r "$cache_file"; then
1334 # Some versions of bash will fail to source /dev/null (special
1335 # files actually), so we avoid doing that.
1336 if test -f "$cache_file"; then
1337 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1338 echo "$as_me: loading cache $cache_file" >&6;}
1340 [\\/]* | ?:[\\/]* ) . $cache_file;;
1341 *) . ./$cache_file;;
1345 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1346 echo "$as_me: creating cache $cache_file" >&6;}
1350 # Check that the precious variables saved in the cache have kept the same
1352 ac_cache_corrupted=false
1353 for ac_var in `(set) 2>&1 |
1354 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1356 eval ac_new_set=\$ac_env_${ac_var}_set
1357 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1358 eval ac_new_val="\$ac_env_${ac_var}_value"
1359 case $ac_old_set,$ac_new_set in
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1365 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1367 ac_cache_corrupted=: ;;
1370 if test "x$ac_old_val" != "x$ac_new_val"; then
1371 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1372 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1373 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1374 echo "$as_me: former value: $ac_old_val" >&2;}
1375 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1376 echo "$as_me: current value: $ac_new_val" >&2;}
1377 ac_cache_corrupted=:
1380 # Pass precious variables to config.status.
1381 if test "$ac_new_set" = set; then
1383 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1385 *) ac_arg=$ac_var=$ac_new_val ;;
1387 case " $ac_configure_args " in
1388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1389 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1393 if $ac_cache_corrupted; then
1394 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1395 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1396 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1397 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1398 { (exit 1); exit 1; }; }
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 for ac_dir in autoconf $srcdir/autoconf; do
1435 if test -f $ac_dir/install-sh; then
1437 ac_install_sh="$ac_aux_dir/install-sh -c"
1439 elif test -f $ac_dir/install.sh; then
1441 ac_install_sh="$ac_aux_dir/install.sh -c"
1443 elif test -f $ac_dir/shtool; then
1445 ac_install_sh="$ac_aux_dir/shtool install -c"
1449 if test -z "$ac_aux_dir"; then
1450 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1451 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1452 { (exit 1); exit 1; }; }
1454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1456 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471 ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475 { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497 ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 echo "$as_me:$LINENO: checking target system type" >&5
1513 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1514 if test "${ac_cv_target+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 ac_cv_target_alias=$target_alias
1518 test "x$ac_cv_target_alias" = "x" &&
1519 ac_cv_target_alias=$ac_cv_host_alias
1520 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1527 echo "${ECHO_T}$ac_cv_target" >&6
1528 target=$ac_cv_target
1529 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 # The aliases save the names the user supplied, while $host etc.
1535 # will get canonicalized.
1536 test -n "$target_alias" &&
1537 test "$program_prefix$program_suffix$program_transform_name" = \
1539 program_prefix=${target_alias}-
1540 am__api_version="1.7"
1541 # Find a good install program. We prefer a C program (faster),
1542 # so one script is as good as another. But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # OS/2's system install, which has a completely different semantic
1553 # ./install, which can be erroneously created by make from ./install.sh.
1554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556 if test -z "$INSTALL"; then
1557 if test "${ac_cv_path_install+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 # Account for people who put trailing slashes in PATH elements.
1567 ./ | .// | /cC/* | \
1568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572 # OSF1 and SCO ODT 3.0 have their own names for install.
1573 # Don't use installbsd from OSF since it installs stuff as root
1575 for ac_prog in ginstall scoinst install; do
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578 if test $ac_prog = install &&
1579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580 # AIX install. It has an incompatible calling convention.
1582 elif test $ac_prog = install &&
1583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # program-specific install script used by HP pwplus--don't use.
1587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1599 if test "${ac_cv_path_install+set}" = set; then
1600 INSTALL=$ac_cv_path_install
1602 # As a last resort, use the slow shell script. We don't cache a
1603 # path for INSTALL within a source directory, because that will
1604 # break other packages using the cache if that directory is
1605 # removed, or if the path is relative.
1606 INSTALL=$ac_install_sh
1609 echo "$as_me:$LINENO: result: $INSTALL" >&5
1610 echo "${ECHO_T}$INSTALL" >&6
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624 echo timestamp > conftest.file
1625 # Do `set' in a subshell so we don't clobber the current shell's
1626 # arguments. Must try -L first in case configure is actually a
1627 # symlink; some systems play weird games with the mod time of symlinks
1628 # (eg FreeBSD returns the mod time of the symlink's containing
1631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632 if test "$*" = "X"; then
1634 set X `ls -t $srcdir/configure conftest.file`
1637 if test "$*" != "X $srcdir/configure conftest.file" \
1638 && test "$*" != "X conftest.file $srcdir/configure"; then
1640 # If neither matched, then we have a broken ls. This can happen
1641 # if, for instance, CONFIG_SHELL is bash and it inherits a
1642 # broken ls alias from the environment. This has actually
1643 # happened. Such a system could not be considered "sane".
1644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1645 alias in your environment" >&5
1646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&2;}
1648 { (exit 1); exit 1; }; }
1651 test "$2" = conftest.file
1657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658 Check your system clock" >&5
1659 echo "$as_me: error: newly created file is older than distributed files!
1660 Check your system clock" >&2;}
1661 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: yes" >&5
1664 echo "${ECHO_T}yes" >&6
1665 test "$program_prefix" != NONE &&
1666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667 # Use a double $ so make ignores it.
1668 test "$program_suffix" != NONE &&
1669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670 # Double any \ or $. echo might interpret backslashes.
1671 # By default was `s,x,x', remove it if useless.
1672 cat <<\_ACEOF >conftest.sed
1673 s/[\\$]/&&/g;s/;s,x,x,$//
1675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run="$MISSING --run "
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 for ac_prog in gawk mawk nawk awk
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$AWK"; then
1702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_AWK="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$AWK"; then
1722 echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$AWK" && break
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 cat >conftest.make <<\_ACEOF
1740 @echo 'ac_maketemp="$(MAKE)"'
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745 eval ac_cv_prog_make_${ac_make}_set=yes
1747 eval ac_cv_prog_make_${ac_make}_set=no
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 SET_MAKE="MAKE=${MAKE-make}"
1761 rm -rf .tst 2>/dev/null
1762 mkdir .tst 2>/dev/null
1763 if test -d .tst; then
1768 rmdir .tst 2>/dev/null
1770 # test to see if srcdir already configured
1771 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772 test -f $srcdir/config.status; then
1773 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775 { (exit 1); exit 1; }; }
1778 # test whether we have cygpath
1779 if test -z "$CYGPATH_W"; then
1780 if (cygpath --version) >/dev/null 2>/dev/null; then
1781 CYGPATH_W='cygpath -w'
1788 # Define the identity of the package.
1789 PACKAGE='TiMidity++'
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE "$PACKAGE"
1798 cat >>confdefs.h <<_ACEOF
1799 #define VERSION "$VERSION"
1802 # Some tools Automake needs.
1804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1819 AMTAR=${AMTAR-"${am_missing_run}tar"}
1821 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1823 # Installed binaries are usually stripped using `strip' when the user
1824 # run `make install-strip'. However `strip' might not be the right
1825 # tool to use in cross-compilation environments, therefore Automake
1826 # will honor the `STRIP' environment variable to overrule this program.
1827 if test "$cross_compiling" != no; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}strip; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_STRIP+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$STRIP"; then
1837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 STRIP=$ac_cv_prog_STRIP
1856 if test -n "$STRIP"; then
1857 echo "$as_me:$LINENO: result: $STRIP" >&5
1858 echo "${ECHO_T}$STRIP" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_STRIP"; then
1867 # Extract the first word of "strip", so it can be a program name with args.
1868 set dummy strip; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_STRIP"; then
1875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_STRIP="strip"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895 if test -n "$ac_ct_STRIP"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897 echo "${ECHO_T}$ac_ct_STRIP" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1905 STRIP="$ac_cv_prog_STRIP"
1909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1911 # We need awk for the "check" target. The system "awk" is bad on
1917 ac_config_headers="$ac_config_headers config.h interface.h"
1919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1921 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1922 if test "${enable_maintainer_mode+set}" = set; then
1923 enableval="$enable_maintainer_mode"
1924 USE_MAINTAINER_MODE=$enableval
1926 USE_MAINTAINER_MODE=no
1928 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1932 if test $USE_MAINTAINER_MODE = yes; then
1933 MAINTAINER_MODE_TRUE=
1934 MAINTAINER_MODE_FALSE='#'
1936 MAINTAINER_MODE_TRUE='#'
1937 MAINTAINER_MODE_FALSE=
1940 MAINT=$MAINTAINER_MODE_TRUE
1944 SHELL=${CONFIG_SHELL-"/bin/sh"}
1947 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1948 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1949 echo "grimblepritz" >grimble
1950 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1951 contains="./contains"
1952 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1955 contains="./contains"
1959 grep) echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1963 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1964 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1965 cat >./contains <<'EOSS'
1966 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1968 chmod +x "./contains"
1973 # Check for compiler options -- such as debug flags.
1975 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1976 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1977 # Check whether --enable-debug or --disable-debug was given.
1978 if test "${enable_debug+set}" = set; then
1979 enableval="$enable_debug"
1980 timidity_cv_debug="yes"
1982 timidity_cv_debug="no"
1984 if test "x$timidity_cv_debug" = "xyes"; then
1986 cat >>confdefs.h <<\_ACEOF
1990 CFLAGS=${CFLAGS-"-g"}
1992 if test "x$timidity_cv_debug" = "xno"; then
1994 cat >>confdefs.h <<\_ACEOF
1999 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2000 echo "${ECHO_T}$timidity_cv_debug" >&6
2002 CFLAGS=${CFLAGS-"-O2"}
2004 if test "x$with_x" = x; then
2010 # Checking gcc environment
2011 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2012 LDFLAGS="$LDFLAGS -L${i}"
2014 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2015 CPPFLAGS="$CPPFLAGS -I${i}"
2018 # add $prefix if specified.
2019 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2020 LDFLAGS="-L$prefix/lib $LDFLAGS"
2021 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2022 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2026 # Check whether --with-includes or --without-includes was given.
2027 if test "${with_includes+set}" = set; then
2028 withval="$with_includes"
2030 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2033 CPPFLAGS="$j$CPPFLAGS"
2038 # Check whether --with-libraries or --without-libraries was given.
2039 if test "${with_libraries+set}" = set; then
2040 withval="$with_libraries"
2042 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2045 LDFLAGS="$j$LDFLAGS"
2051 # Check whether --with-default-path or --without-default-path was given.
2052 if test "${with_default_path+set}" = set; then
2053 withval="$with_default_path"
2057 if test "x$prefix" != "xNONE"; then
2058 pkgdatadir='${prefix}/share/timidity'
2060 pkgdatadir='/usr/local/share/timidity'
2064 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2066 cat >>confdefs.h <<_ACEOF
2067 #define DEFAULT_PATH "$tmpdefpath"
2071 cat >>confdefs.h <<\_ACEOF
2072 #define PKGDATADIR DEFAULT_PATH
2077 # Check whether --with-module-dir or --without-module-dir was given.
2078 if test "${with_module_dir+set}" = set; then
2079 withval="$with_module_dir"
2083 if test "x$prefix" != "xNONE"; then
2084 pkglibdir='${prefix}/lib/timidity'
2086 pkglibdir='/usr/local/lib/timidity'
2090 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PKGLIBDIR "$tmplibdir"
2098 # Checks for programs.
2100 # Check whether --with-lispdir or --without-lispdir was given.
2101 if test "${with_lispdir+set}" = set; then
2102 withval="$with_lispdir"
2104 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2105 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2106 echo "$as_me:$LINENO: result: $lispdir" >&5
2107 echo "${ECHO_T}$lispdir" >&6
2110 # If set to t, that means we are running in a shell under Emacs.
2111 # If you have an Emacs named "t", then use the full path.
2112 test x"$EMACS" = xt && EMACS=
2113 for ac_prog in emacs xemacs
2115 # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_EMACS+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$EMACS"; then
2123 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_EMACS="$ac_prog"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 EMACS=$ac_cv_prog_EMACS
2142 if test -n "$EMACS"; then
2143 echo "$as_me:$LINENO: result: $EMACS" >&5
2144 echo "${ECHO_T}$EMACS" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 test -n "$EMACS" && break
2152 test -n "$EMACS" || EMACS="no"
2154 if test $EMACS != "no"; then
2155 if test x${lispdir+set} != xset; then
2156 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2157 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2158 if test "${am_cv_lispdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2162 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2163 # which is non-obvious for non-emacs users.
2164 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2165 # emacsen earlier and avoid running this altogether.
2166 { (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
2167 ($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
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 am_cv_lispdir=`sed -n \
2173 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2174 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2177 if test -z "$am_cv_lispdir"; then
2178 am_cv_lispdir='${datadir}/emacs/site-lisp'
2182 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2183 echo "${ECHO_T}$am_cv_lispdir" >&6
2184 lispdir="$am_cv_lispdir"
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$CC"; then
2225 echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2233 if test -z "$ac_cv_prog_CC"; then
2235 # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_ac_ct_CC="gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2275 if test -z "$CC"; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CC="${ac_tool_prefix}cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2313 if test -z "$ac_cv_prog_CC"; then
2315 # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2356 if test -z "$CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376 ac_prog_rejected=yes
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2445 echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2449 test -n "$CC" && break
2452 if test -z "$CC"; then
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$ac_ct_CC" && break
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508 "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511 (eval $ac_compiler --version </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516 (eval $ac_compiler -v </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521 (eval $ac_compiler -V </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550 (eval $ac_link_default) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 # Find the output, starting from the most likely. This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 test -f "$ac_file" || continue
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2569 # This is the source file.
2572 # We found the default executable, but exeext='' is most
2576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577 # FIXME: I believe we export ac_cv_exeext for Libtool,
2578 # but it would be cool to find out if it's true. Does anybody
2579 # maintain Libtool? --akim.
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594 { (exit 77); exit 77; }; }
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2601 # Check the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608 if { ac_try='./$ac_file'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2616 if test "$cross_compiling" = maybe; then
2619 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644 (eval $ac_link) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 for ac_file in conftest.exe conftest conftest.*; do
2653 test -f "$ac_file" || continue
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2851 if test "$GCC" = yes; then
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 ac_cv_prog_cc_stdc=no
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2888 s = g (p, va_arg (v,int));
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std1 is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std1. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX -qlanglvl=ansi
2919 # Ultrix and OSF/1 -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions -Aa -D_HPUX_SOURCE
2922 # SVR4 -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_prog_cc_stdc=$ac_arg
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f conftest.err conftest.$ac_objext
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2962 case "x$ac_cv_prog_cc_stdc" in
2964 echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969 CC="$CC $ac_cv_prog_cc_stdc" ;;
2972 # Some people use a C++ compiler to compile C. Since we use `exit',
2973 # in C++ we need to declare it. In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 for ac_declaration in \
3005 'extern "C" void std::exit (int) throw (); using std::exit;' \
3006 'extern "C" void std::exit (int); using std::exit;' \
3007 'extern "C" void exit (int) throw ();' \
3008 'extern "C" void exit (int);' \
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag"
3037 || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 if test -n "$ac_declaration"; then
3104 echo '#ifdef __cplusplus' >>confdefs.h
3105 echo $ac_declaration >>confdefs.h
3106 echo '#endif' >>confdefs.h
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 DEPDIR="${am__leading_dot}deps"
3122 ac_config_commands="$ac_config_commands depfiles"
3125 am_make=${MAKE-make}
3126 cat > confinc << 'END'
3131 # If we don't find an include directive, just comment out the code.
3132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3137 # First try GNU make style include.
3138 echo "include confinc" > confmf
3139 # We grep out `Entering directory' and `Leaving directory'
3140 # messages which can occur if `w' ends up in MAKEFLAGS.
3141 # In particular we don't look at `^make:' because GNU make might
3142 # be invoked under some other name (usually "gmake"), in which
3143 # case it prints its new name instead of `make'.
3144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3149 # Now try BSD make style include.
3150 if test "$am__include" = "#"; then
3151 echo '.include "confinc"' > confmf
3152 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3153 am__include=.include
3160 echo "$as_me:$LINENO: result: $_am_result" >&5
3161 echo "${ECHO_T}$_am_result" >&6
3162 rm -f confinc confmf
3164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3165 if test "${enable_dependency_tracking+set}" = set; then
3166 enableval="$enable_dependency_tracking"
3169 if test "x$enable_dependency_tracking" != xno; then
3170 am_depcomp="$ac_aux_dir/depcomp"
3175 if test "x$enable_dependency_tracking" != xno; then
3186 depcc="$CC" am_compiler_list=
3188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3194 # We make a subdir and do the tests there. Otherwise we can end up
3195 # making bogus files that we don't know about and never remove. For
3196 # instance it was reported that on HP-UX the gcc test will end up
3197 # making a dummy file named `D' -- because `-MD' means `put the output
3200 # Copy depcomp to subdir because otherwise we won't find it if we're
3201 # using a relative directory.
3202 cp "$am_depcomp" conftest.dir
3204 # We will build objects and dependencies in a subdirectory because
3205 # it helps to detect inapplicable dependency modes. For instance
3206 # both Tru64's cc and ICC support -MD to output dependencies as a
3207 # side effect of compilation, but ICC will put the dependencies in
3208 # the current directory while Tru64 will put them in the object
3212 am_cv_CC_dependencies_compiler_type=none
3213 if test "$am_compiler_list" = ""; then
3214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3216 for depmode in $am_compiler_list; do
3217 # Setup a source with many dependencies, because some compilers
3218 # like to wrap large dependency lists on column 80 (with \), and
3219 # we should not choose a depcomp mode which is confused by this.
3221 # We need to recreate these files for each test, as the compiler may
3222 # overwrite some of them when testing with obscure command lines.
3223 # This happens at least with the AIX C compiler.
3225 for i in 1 2 3 4 5 6; do
3226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3233 # after this tag, mechanisms are not by side-effect, so they'll
3234 # only be used when explicitly requested
3235 if test "x$enable_dependency_tracking" = xyes; then
3243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244 # mode. It turns out that the SunPro C++ compiler does not properly
3245 # handle `-M -o', and we need to detect this.
3246 if depmode=$depmode \
3247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250 >/dev/null 2>conftest.err &&
3251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254 # icc doesn't choke on unknown options, it will just issue warnings
3255 # (even with -Werror). So we grep stderr for any message
3256 # that says an option was ignored.
3257 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3258 am_cv_CC_dependencies_compiler_type=$depmode
3267 am_cv_CC_dependencies_compiler_type=none
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3278 test "x$enable_dependency_tracking" != xno \
3279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281 am__fastdepCC_FALSE='#'
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3300 if test -z "$CPP"; then
3301 if test "${ac_cv_prog_CPP+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 # Double quotes because CPP needs to be expanded
3305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3308 for ac_c_preproc_warn_flag in '' yes
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3323 # include <limits.h>
3325 # include <assert.h>
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3346 if test -z "$ac_cpp_err"; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Broken: fails on valid input.
3355 rm -f conftest.err conftest.$ac_ext
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ac_nonexistent.h>
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Passes both tests.
3395 rm -f conftest.err conftest.$ac_ext
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3415 for ac_c_preproc_warn_flag in '' yes
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 # include <limits.h>
3432 # include <assert.h>
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 if test -z "$ac_cpp_err"; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether non-existent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Passes both tests.
3502 rm -f conftest.err conftest.$ac_ext
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3510 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530 then ac_cv_prog_egrep='grep -E'
3531 else ac_cv_prog_egrep='egrep'
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536 EGREP=$ac_cv_prog_egrep
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_pattern="Autoconf.*'x'"
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557 ac_cv_prog_gcc_traditional=yes
3559 ac_cv_prog_gcc_traditional=no
3564 if test $ac_cv_prog_gcc_traditional = no; then
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3576 ac_cv_prog_gcc_traditional=yes
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3584 if test $ac_cv_prog_gcc_traditional = yes; then
3585 CC="$CC -traditional"
3589 # Find a good install program. We prefer a C program (faster),
3590 # so one script is as good as another. But avoid the broken or
3591 # incompatible versions:
3592 # SysV /etc/install, /usr/sbin/install
3593 # SunOS /usr/etc/install
3594 # IRIX /sbin/install
3596 # AmigaOS /C/install, which installs bootblocks on floppy discs
3597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600 # OS/2's system install, which has a completely different semantic
3601 # ./install, which can be erroneously created by make from ./install.sh.
3602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3604 if test -z "$INSTALL"; then
3605 if test "${ac_cv_path_install+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir=.
3613 # Account for people who put trailing slashes in PATH elements.
3615 ./ | .// | /cC/* | \
3616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3620 # OSF1 and SCO ODT 3.0 have their own names for install.
3621 # Don't use installbsd from OSF since it installs stuff as root
3623 for ac_prog in ginstall scoinst install; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626 if test $ac_prog = install &&
3627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628 # AIX install. It has an incompatible calling convention.
3630 elif test $ac_prog = install &&
3631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632 # program-specific install script used by HP pwplus--don't use.
3635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3647 if test "${ac_cv_path_install+set}" = set; then
3648 INSTALL=$ac_cv_path_install
3650 # As a last resort, use the slow shell script. We don't cache a
3651 # path for INSTALL within a source directory, because that will
3652 # break other packages using the cache if that directory is
3653 # removed, or if the path is relative.
3654 INSTALL=$ac_install_sh
3657 echo "$as_me:$LINENO: result: $INSTALL" >&5
3658 echo "${ECHO_T}$INSTALL" >&6
3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3661 # It thinks the first close brace ends the variable substitution.
3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668 for ac_prog in gawk mawk nawk awk
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_AWK+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 if test -n "$AWK"; then
3678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_AWK="$ac_prog"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test -n "$AWK"; then
3698 echo "$as_me:$LINENO: result: $AWK" >&5
3699 echo "${ECHO_T}$AWK" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 test -n "$AWK" && break
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_RANLIB+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$RANLIB"; then
3717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 RANLIB=$ac_cv_prog_RANLIB
3736 if test -n "$RANLIB"; then
3737 echo "$as_me:$LINENO: result: $RANLIB" >&5
3738 echo "${ECHO_T}$RANLIB" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746 ac_ct_RANLIB=$RANLIB
3747 # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$ac_ct_RANLIB"; then
3755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_RANLIB="ranlib"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 RANLIB=$ac_ct_RANLIB
3785 RANLIB="$ac_cv_prog_RANLIB"
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3800 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3801 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3802 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat > conftest.$ac_ext <<EOF
3806 int main() {return 0;}
3808 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3809 if test -s conftest.out; then
3810 eval "timidity_cv_ccoption_$ac_ccoption=no"
3812 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3815 eval "timidity_cv_ccoption_$ac_ccoption=no"
3820 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3831 # Checks for target dependencies
3834 # Check whether --with-elf or --without-elf was given.
3835 if test "${with_elf+set}" = set; then
3843 # [ --with-simd create SIMD friendly binary (default is no) ],
3844 # [ SIMD=$withval ], [ SIMD="no" ])
3849 test -n "$SHLD" || SHLD="ld -b"
3853 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3854 test -n "$SHLD" || SHLD="cc -shared -all"
3858 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3863 test -n "$SHLD" || SHLD="ld -Bshareable"
3867 if test "$ELFFORMAT" = yes; then
3868 test -n "$SHLD" || SHLD="ld -Bshareable"
3871 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3872 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3878 # EXTRALIBS="$EXTRALIBS -lxpg4"
3879 # test -n "$SHLD" || SHLD="ld -Bshareable"
3884 EXTRADEFS="-D__W32__"
3887 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3888 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3889 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3890 *) test -n "$SHLD" || SHLD="unknown" ;;
3894 lib_user32_test=-luser32
3897 EXTRADEFS="-D__W32__"
3900 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3901 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3902 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3903 *) test -n "$SHLD" || SHLD="unknown" ;;
3907 lib_user32_test=-luser32
3911 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3915 EXTRADEFS="-DSOLARIS"
3916 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3920 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3924 if test "x$SIMD" = "xyes"; then
3926 cat >>confdefs.h <<\_ACEOF
3927 #define USE_ALTIVEC 1
3930 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3931 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3934 cat >>confdefs.h <<\_ACEOF
3935 #define USE_ALTIVEC 0
3939 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3940 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3941 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3945 test -n "$SHLD" || \
3946 if test "x$GCC" = xyes; then
3949 SHLD="ld -Bdynamic -G"
3956 # Checks for libraries.
3958 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3959 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3960 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 ac_check_lib_save_LIBS=$LIBS
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_lib_m_sqrt=yes
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f conftest.err conftest.$ac_objext \
4017 conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4021 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4022 if test $ac_cv_lib_m_sqrt = yes; then
4023 cat >>confdefs.h <<_ACEOF
4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034 if test "${ac_cv_lib_socket_socket+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_socket_socket=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_lib_socket_socket=no
4090 rm -f conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096 if test $ac_cv_lib_socket_socket = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098 #define HAVE_LIBSOCKET 1
4101 LIBS="-lsocket $LIBS"
4105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_check_lib_save_LIBS=$LIBS
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_lib_dl_dlopen=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_lib_dl_dlopen=no
4163 rm -f conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4165 LIBS=$ac_check_lib_save_LIBS
4167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4169 if test $ac_cv_lib_dl_dlopen = yes; then
4173 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4174 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4175 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 ac_check_lib_save_LIBS=$LIBS
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char NSLinkModule ();
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_lib_objc_NSLinkModule=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_lib_objc_NSLinkModule=no
4231 rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233 LIBS=$ac_check_lib_save_LIBS
4235 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4236 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4237 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4240 # Mac OS X need this.
4242 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4243 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4244 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_check_lib_save_LIBS=$LIBS
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_lib_xpg4_setlocale=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_lib_xpg4_setlocale=no
4300 rm -f conftest.err conftest.$ac_objext \
4301 conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4304 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4305 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4306 if test $ac_cv_lib_xpg4_setlocale = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define HAVE_LIBXPG4 1
4314 # Mac OS X (and maybe NetBSD) need this.
4316 for ac_func in gethostbyname
4318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4319 echo "$as_me:$LINENO: checking for $ac_func" >&5
4320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_var+set}\" = set"; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4332 #define $ac_func innocuous_$ac_func
4334 /* System header to define __stub macros and hopefully few prototypes,
4335 which can conflict with char $ac_func (); below.
4336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 <limits.h> exists even on freestanding compilers. */
4340 # include <limits.h>
4342 # include <assert.h>
4347 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4355 /* The GNU C library defines this for functions which it implements
4356 to always fail with ENOSYS. Some functions are actually named
4357 something starting with __ and the normal name is an alias. */
4358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 char (*f) () = $ac_func;
4370 return f != $ac_func;
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 eval "$as_ac_var=yes"
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 eval "$as_ac_var=no"
4404 rm -f conftest.err conftest.$ac_objext \
4405 conftest$ac_exeext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4409 if test `eval echo '${'$as_ac_var'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_check_lib_save_LIBS=$LIBS
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4436 char gethostbyname ();
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_lib_nsl_gethostbyname=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_cv_lib_nsl_gethostbyname=no
4474 rm -f conftest.err conftest.$ac_objext \
4475 conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4480 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4481 cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBNSL 1
4492 echo "$as_me:$LINENO: checking for X" >&5
4493 echo $ECHO_N "checking for X... $ECHO_C" >&6
4496 # Check whether --with-x or --without-x was given.
4497 if test "${with_x+set}" = set; then
4501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4502 if test "x$with_x" = xno; then
4503 # The user explicitly disabled X.
4506 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4507 # Both variables are already set.
4510 if test "${ac_cv_have_x+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 # One or both of the vars are not set, and there is no cached value.
4514 ac_x_includes=no ac_x_libraries=no
4516 if mkdir conftest.dir; then
4518 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4519 cat >Imakefile <<'_ACEOF'
4521 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4523 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4525 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4526 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4527 for ac_extension in a so sl; do
4528 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4529 test -f $ac_im_libdir/libX11.$ac_extension; then
4530 ac_im_usrlibdir=$ac_im_libdir; break
4533 # Screen out bogus values from the imake configuration. They are
4534 # bogus both because they are the default anyway, and because
4535 # using them would break gcc on systems where it needs fixed includes.
4536 case $ac_im_incroot in
4538 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4540 case $ac_im_usrlibdir in
4542 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4549 # Standard set of common directories for X headers.
4550 # Check X11 before X11Rn because it is often a symlink to the current release.
4562 /usr/local/X11/include
4563 /usr/local/X11R6/include
4564 /usr/local/X11R5/include
4565 /usr/local/X11R4/include
4567 /usr/local/include/X11
4568 /usr/local/include/X11R6
4569 /usr/local/include/X11R5
4570 /usr/local/include/X11R4
4574 /usr/XFree86/include/X11
4578 /usr/unsupported/include
4580 /usr/local/x11r5/include
4581 /usr/lpp/Xamples/include
4583 /usr/openwin/include
4584 /usr/openwin/share/include'
4586 if test "$ac_x_includes" = no; then
4587 # Guess where to find include files, by looking for Intrinsic.h.
4588 # First, try using that file with no special directory specified.
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 #include <X11/Intrinsic.h>
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_c_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4614 if test -z "$ac_cpp_err"; then
4615 # We can compile using X headers with no special include directory.
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 for ac_dir in $ac_x_header_dirs; do
4622 if test -r "$ac_dir/X11/Intrinsic.h"; then
4623 ac_x_includes=$ac_dir
4628 rm -f conftest.err conftest.$ac_ext
4629 fi # $ac_x_includes = no
4631 if test "$ac_x_libraries" = no; then
4632 # Check for the libraries.
4633 # See if we find them without any special options.
4634 # Don't add to $LIBS permanently.
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <X11/Intrinsic.h>
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest$ac_exeext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4675 # We can link X programs with no special library path.
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4684 # Don't even attempt the hair of trying to link an X program!
4685 for ac_extension in a so sl; do
4686 if test -r $ac_dir/libXt.$ac_extension; then
4687 ac_x_libraries=$ac_dir
4693 rm -f conftest.err conftest.$ac_objext \
4694 conftest$ac_exeext conftest.$ac_ext
4695 fi # $ac_x_libraries = no
4697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4698 # Didn't find X anywhere. Cache the known absence of X.
4699 ac_cv_have_x="have_x=no"
4701 # Record where we found X for the cache.
4702 ac_cv_have_x="have_x=yes \
4703 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4708 eval "$ac_cv_have_x"
4711 if test "$have_x" != yes; then
4712 echo "$as_me:$LINENO: result: $have_x" >&5
4713 echo "${ECHO_T}$have_x" >&6
4716 # If each of the values was on the command line, it overrides each guess.
4717 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4718 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4719 # Update the cache value to reflect the command line values.
4720 ac_cv_have_x="have_x=yes \
4721 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4722 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4726 if test "$no_x" = yes; then
4727 # Not all programs may use this symbol, but it does not hurt to define it.
4729 cat >>confdefs.h <<\_ACEOF
4730 #define X_DISPLAY_MISSING 1
4733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4735 if test -n "$x_includes"; then
4736 X_CFLAGS="$X_CFLAGS -I$x_includes"
4739 # It would also be nice to do this for all -L options, not just this one.
4740 if test -n "$x_libraries"; then
4741 X_LIBS="$X_LIBS -L$x_libraries"
4742 # For Solaris; some versions of Sun CC require a space after -R and
4743 # others require no space. Words are not sufficient . . . .
4744 case `(uname -sr) 2>/dev/null` in
4746 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4748 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4793 rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795 if test $ac_R_nospace = yes; then
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798 X_LIBS="$X_LIBS -R$x_libraries"
4800 LIBS="$ac_xsave_LIBS -R $x_libraries"
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4845 rm -f conftest.err conftest.$ac_objext \
4846 conftest$ac_exeext conftest.$ac_ext
4847 if test $ac_R_space = yes; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850 X_LIBS="$X_LIBS -R $x_libraries"
4852 echo "$as_me:$LINENO: result: neither works" >&5
4853 echo "${ECHO_T}neither works" >&6
4860 # Check for system-dependent libraries X programs must link with.
4861 # Do this before checking for the system-independent R6 libraries
4862 # (-lICE), since we may need -lsocket or whatever for X linking.
4864 if test "$ISC" = yes; then
4865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4867 # Martyn Johnson says this is needed for Ultrix, if the X
4868 # libraries were built with DECnet support. And Karl Berry says
4869 # the Alpha needs dnet_stub (dnet does not exist).
4870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4884 char XOpenDisplay ();
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4921 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_check_lib_save_LIBS=$LIBS
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_dnet_dnet_ntoa=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_dnet_dnet_ntoa=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4983 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4984 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4985 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4988 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4990 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4991 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-ldnet_stub $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>conftest.er1
5022 grep -v '^ *+' conftest.er1 >conftest.err
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_lib_dnet_stub_dnet_ntoa=no
5047 rm -f conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5052 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5053 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5054 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS="$ac_xsave_LIBS"
5063 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5064 # to get the SysV transport functions.
5065 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5067 # The nsl library prevents programs from opening the X display
5068 # on Irix 5.2, according to T.E. Dickey.
5069 # The functions gethostbyname, getservbyname, and inet_addr are
5070 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5071 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5072 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5073 if test "${ac_cv_func_gethostbyname+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5084 #define gethostbyname innocuous_gethostbyname
5086 /* System header to define __stub macros and hopefully few prototypes,
5087 which can conflict with char gethostbyname (); below.
5088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 <limits.h> exists even on freestanding compilers. */
5092 # include <limits.h>
5094 # include <assert.h>
5097 #undef gethostbyname
5099 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106 char gethostbyname ();
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5113 char (*f) () = gethostbyname;
5122 return f != gethostbyname;
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_func_gethostbyname=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_func_gethostbyname=no
5156 rm -f conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5160 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5162 if test $ac_cv_func_gethostbyname = no; then
5163 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5164 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_check_lib_save_LIBS=$LIBS
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5183 char gethostbyname ();
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_c_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest$ac_exeext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_cv_lib_nsl_gethostbyname=yes
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_cv_lib_nsl_gethostbyname=no
5221 rm -f conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5226 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5227 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5231 if test $ac_cv_lib_nsl_gethostbyname = no; then
5232 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5233 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_check_lib_save_LIBS=$LIBS
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5246 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252 char gethostbyname ();
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_bsd_gethostbyname=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_lib_bsd_gethostbyname=no
5290 rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5296 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5303 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5304 # socket/setsockopt and other routines are undefined under SCO ODT
5305 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5306 # on later versions), says Simon Leinen: it contains gethostby*
5307 # variants that don't use the name server (or something). -lsocket
5308 # must be given before -lnsl if both are needed. We assume that
5309 # if connect needs -lnsl, so does gethostbyname.
5310 echo "$as_me:$LINENO: checking for connect" >&5
5311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5312 if test "${ac_cv_func_connect+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5323 #define connect innocuous_connect
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char connect (); below.
5327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 <limits.h> exists even on freestanding compilers. */
5331 # include <limits.h>
5333 # include <assert.h>
5338 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_connect) || defined (__stub___connect)
5352 char (*f) () = connect;
5361 return f != connect;
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368 (eval $ac_link) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -z "$ac_c_werror_flag"
5376 || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_func_connect=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_cv_func_connect=no
5395 rm -f conftest.err conftest.$ac_objext \
5396 conftest$ac_exeext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5399 echo "${ECHO_T}$ac_cv_func_connect" >&6
5401 if test $ac_cv_func_connect = no; then
5402 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5403 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5404 if test "${ac_cv_lib_socket_connect+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_lib_socket_connect=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_lib_socket_connect=no
5460 rm -f conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5466 if test $ac_cv_lib_socket_connect = yes; then
5467 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5472 # Guillermo Gomez says -lposix is necessary on A/UX.
5473 echo "$as_me:$LINENO: checking for remove" >&5
5474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5475 if test "${ac_cv_func_remove+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5486 #define remove innocuous_remove
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char remove (); below.
5490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491 <limits.h> exists even on freestanding compilers. */
5494 # include <limits.h>
5496 # include <assert.h>
5501 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5509 /* The GNU C library defines this for functions which it implements
5510 to always fail with ENOSYS. Some functions are actually named
5511 something starting with __ and the normal name is an alias. */
5512 #if defined (__stub_remove) || defined (__stub___remove)
5515 char (*f) () = remove;
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_func_remove=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_cv_func_remove=no
5558 rm -f conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5562 echo "${ECHO_T}$ac_cv_func_remove" >&6
5564 if test $ac_cv_func_remove = no; then
5565 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5566 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5567 if test "${ac_cv_lib_posix_remove+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lposix $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_posix_remove=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_lib_posix_remove=no
5623 rm -f conftest.err conftest.$ac_objext \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5628 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5629 if test $ac_cv_lib_posix_remove = yes; then
5630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5635 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5636 echo "$as_me:$LINENO: checking for shmat" >&5
5637 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5638 if test "${ac_cv_func_shmat+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5649 #define shmat innocuous_shmat
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char shmat (); below.
5653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 <limits.h> exists even on freestanding compilers. */
5657 # include <limits.h>
5659 # include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined (__stub_shmat) || defined (__stub___shmat)
5678 char (*f) () = shmat;
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_func_shmat=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5727 if test $ac_cv_func_shmat = no; then
5728 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_check_lib_save_LIBS=$LIBS
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_lib_ipc_shmat=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_lib_ipc_shmat=no
5786 rm -f conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5790 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5791 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5792 if test $ac_cv_lib_ipc_shmat = yes; then
5793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5799 # Check for libraries that X11R6 Xt/Xaw programs need.
5800 ac_save_LDFLAGS=$LDFLAGS
5801 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5802 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5803 # check for ICE first), but we must link in the order -lSM -lICE or
5804 # we get undefined symbols. So assume we have SM if we have ICE.
5805 # These have to be linked with before -lX11, unlike the other
5806 # libraries we check for below, so use a different variable.
5807 # John Interrante, Karl Berry
5808 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5809 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5810 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5828 char IceConnectionNumber ();
5832 IceConnectionNumber ();
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest$ac_exeext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_lib_ICE_IceConnectionNumber=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_lib_ICE_IceConnectionNumber=no
5866 rm -f conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5871 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5872 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5873 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5876 LDFLAGS=$ac_save_LDFLAGS
5882 if test "x$with_x" = xyes; then
5883 if test "x$have_x" = xno; then
5884 if test "x$x_config_flag" = xyes; then
5885 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5886 echo "$as_me: error: Could not configure X" >&2;}
5887 { (exit 1); exit 1; }; }
5889 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5890 echo "$as_me: WARNING: Could not configure X" >&2;}
5894 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5895 if test "x$x_libraries" != x; then
5896 ldflags_x_opt="-L$x_libraries"
5897 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5898 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5902 if test "x$x_includes" != x; then
5903 CPPFLAGS="$CPPFLAGS -I$x_includes"
5907 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5908 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5909 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_check_lib_save_LIBS=$LIBS
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5927 char XOpenDisplay ();
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_lib_X11_XOpenDisplay=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_cv_lib_X11_XOpenDisplay=no
5965 rm -f conftest.err conftest.$ac_objext \
5966 conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5970 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5971 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBX11 1
5980 echo "$as_me:$LINENO: checking X11 version 6" >&5
5981 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5982 if test "${timidity_cv_x11_version_6+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <X11/Xlib.h>
5996 #if XlibSpecificationRelease < 6
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 timidity_cv_x11_version_6=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 timidity_cv_x11_version_6=no
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6037 if test "$timidity_cv_x11_version_6" = "yes"; then
6038 echo "$as_me:$LINENO: result: 6 or newer" >&5
6039 echo "${ECHO_T}6 or newer" >&6
6041 echo "$as_me:$LINENO: result: before 6" >&5
6042 echo "${ECHO_T}before 6" >&6
6046 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6047 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6048 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_check_lib_save_LIBS=$LIBS
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char XShapeCombineMask ();
6070 XShapeCombineMask ();
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_Xext_XShapeCombineMask=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_lib_Xext_XShapeCombineMask=no
6104 rm -f conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6109 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6110 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6111 have_xext=yes; LIBS="-lXext $LIBS"
6117 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6118 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6119 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 ac_check_lib_save_LIBS=$LIBS
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6137 char IceConnectionNumber ();
6141 IceConnectionNumber ();
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_lib_ICE_IceConnectionNumber=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_lib_ICE_IceConnectionNumber=no
6175 rm -f conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6180 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6181 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6182 cat >>confdefs.h <<_ACEOF
6183 #define HAVE_LIBICE 1
6190 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6191 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6192 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_check_lib_save_LIBS=$LIBS
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char SmcOpenConnection ();
6214 SmcOpenConnection ();
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221 (eval $ac_link) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_SM_SmcOpenConnection=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_lib_SM_SmcOpenConnection=no
6248 rm -f conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6252 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6253 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6254 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6255 have_xprelibs=yes; LIBS="-lSM $LIBS"
6260 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6261 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6262 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_check_lib_save_LIBS=$LIBS
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6274 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char XtVaAppInitialize ();
6284 XtVaAppInitialize ();
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291 (eval $ac_link) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1 >conftest.err
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_lib_Xt_XtVaAppInitialize=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 ac_cv_lib_Xt_XtVaAppInitialize=no
6318 rm -f conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_check_lib_save_LIBS
6322 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6323 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6324 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6325 have_xt=yes; LIBS="-lXt $LIBS"
6330 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6331 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6332 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_check_lib_save_LIBS=$LIBS
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6344 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6350 char XmuInternAtom ();
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_c_werror_flag"
6369 || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_lib_Xmu_XmuInternAtom=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_lib_Xmu_XmuInternAtom=no
6388 rm -f conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6393 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6394 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6399 for ac_func in XmuRegisterExternalAgent
6401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402 echo "$as_me:$LINENO: checking for $ac_func" >&5
6403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_var+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6415 #define $ac_func innocuous_$ac_func
6417 /* System header to define __stub macros and hopefully few prototypes,
6418 which can conflict with char $ac_func (); below.
6419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6420 <limits.h> exists even on freestanding compilers. */
6423 # include <limits.h>
6425 # include <assert.h>
6430 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 char (*f) () = $ac_func;
6453 return f != $ac_func;
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest$ac_exeext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 eval "$as_ac_var=yes"
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 eval "$as_ac_var=no"
6487 rm -f conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6492 if test `eval echo '${'$as_ac_var'}'` = yes; then
6493 cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6500 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6501 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6502 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lXaw3d $LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char XawInitializeWidgetSet ();
6524 XawInitializeWidgetSet ();
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6562 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6563 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6564 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6567 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6568 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6569 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_check_lib_save_LIBS=$LIBS
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6587 char XawInitializeWidgetSet ();
6591 XawInitializeWidgetSet ();
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6630 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6631 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6639 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6640 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6641 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_check_lib_save_LIBS=$LIBS
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 /* Override any gcc2 internal prototype to avoid an error. */
6657 /* We use char because int might match the return type of a gcc2
6658 builtin and then its argument prototype would still apply. */
6659 char XmCreateForm ();
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 (eval $ac_link) 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_lib_Xm_XmCreateForm=yes
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_cv_lib_Xm_XmCreateForm=no
6697 rm -f conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6701 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6702 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6703 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6710 for ac_func in XShmCreatePixmap
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6726 #define $ac_func innocuous_$ac_func
6728 /* System header to define __stub macros and hopefully few prototypes,
6729 which can conflict with char $ac_func (); below.
6730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731 <limits.h> exists even on freestanding compilers. */
6734 # include <limits.h>
6736 # include <assert.h>
6741 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 char (*f) () = $ac_func;
6764 return f != $ac_func;
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 eval "$as_ac_var=yes"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 eval "$as_ac_var=no"
6798 rm -f conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6803 if test `eval echo '${'$as_ac_var'}'` = yes; then
6804 cat >>confdefs.h <<_ACEOF
6805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6814 # Checks for header files.
6815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6817 if test "${ac_cv_header_stdc+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841 (eval $ac_compile) 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -z "$ac_c_werror_flag"
6849 || test ! -s conftest.err'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; } &&
6855 { ac_try='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_header_stdc=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_header_stdc=no
6868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870 if test $ac_cv_header_stdc = yes; then
6871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "memchr" >/dev/null 2>&1; then
6885 ac_cv_header_stdc=no
6891 if test $ac_cv_header_stdc = yes; then
6892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903 $EGREP "free" >/dev/null 2>&1; then
6906 ac_cv_header_stdc=no
6912 if test $ac_cv_header_stdc = yes; then
6913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6914 if test "$cross_compiling" = yes; then
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 #if ((' ' & 0x0FF) == 0x020)
6925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6928 # define ISLOWER(c) \
6929 (('a' <= (c) && (c) <= 'i') \
6930 || ('j' <= (c) && (c) <= 'r') \
6931 || ('s' <= (c) && (c) <= 'z'))
6932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6940 for (i = 0; i < 256; i++)
6941 if (XOR (islower (i), ISLOWER (i))
6942 || toupper (i) != TOUPPER (i))
6947 rm -f conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6960 echo "$as_me: program exited with status $ac_status" >&5
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_header_stdc=no
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992 inttypes.h stdint.h unistd.h
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 $ac_includes_default
7008 #include <$ac_header>
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 eval "$as_ac_Header=yes"
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 eval "$as_ac_Header=no"
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7054 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7055 if test "${ac_cv_header_stdbool_h+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 #include <stdbool.h>
7067 # error bool is not defined
7070 # error false is not defined
7073 # error false is not 0
7076 # error true is not defined
7079 # error true is not 1
7081 #ifndef __bool_true_false_are_defined
7082 # error __bool_true_false_are_defined is not defined
7085 struct s { _Bool s: 1; _Bool t; } s;
7087 char a[true == 1 ? 1 : -1];
7088 char b[false == 0 ? 1 : -1];
7089 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7090 char d[(bool) -0.5 == true ? 1 : -1];
7092 char f[(_Bool) -0.0 == false ? 1 : -1];
7094 char h[sizeof (_Bool)];
7100 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_header_stdbool_h=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_cv_header_stdbool_h=no
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7138 echo "$as_me:$LINENO: checking for _Bool" >&5
7139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7140 if test "${ac_cv_type__Bool+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>conftest.er1
7165 grep -v '^ *+' conftest.er1 >conftest.err
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_type__Bool=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7193 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7194 if test $ac_cv_type__Bool = yes; then
7196 cat >>confdefs.h <<_ACEOF
7197 #define HAVE__BOOL 1
7203 if test $ac_cv_header_stdbool_h = yes; then
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_STDBOOL_H 1
7211 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7212 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7213 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <sys/types.h>
7223 #include <sys/wait.h>
7225 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7228 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7236 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 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 { ac_try='test -z "$ac_c_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_cv_header_sys_wait_h=yes
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_cv_header_sys_wait_h=no
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7274 if test $ac_cv_header_sys_wait_h = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_SYS_WAIT_H 1
7282 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7284 if test "${ac_cv_header_time+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <sys/types.h>
7294 #include <sys/time.h>
7300 if ((struct tm *) 0)
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_header_time=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_header_time=no
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7338 echo "${ECHO_T}$ac_cv_header_time" >&6
7339 if test $ac_cv_header_time = yes; then
7341 cat >>confdefs.h <<\_ACEOF
7342 #define TIME_WITH_SYS_TIME 1
7353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7354 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7355 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <sys/types.h>
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 eval "$as_ac_Header=yes"
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 eval "$as_ac_Header=no"
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7416 ac_header_dirent=$ac_hdr; break
7420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7421 if test $ac_header_dirent = dirent.h; then
7422 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7423 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7424 if test "${ac_cv_search_opendir+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_func_search_save_LIBS=$LIBS
7428 ac_cv_search_opendir=no
7429 cat >conftest.$ac_ext <<_ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7436 /* Override any gcc2 internal prototype to avoid an error. */
7440 /* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7451 rm -f conftest.$ac_objext conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest$ac_exeext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_search_opendir="none required"
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7479 rm -f conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 if test "$ac_cv_search_opendir" = no; then
7482 for ac_lib in dir; do
7483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag"
7516 || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_search_opendir="-l$ac_lib"
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7535 rm -f conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_func_search_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7542 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7543 if test "$ac_cv_search_opendir" != no; then
7544 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7549 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7551 if test "${ac_cv_search_opendir+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_func_search_save_LIBS=$LIBS
7555 ac_cv_search_opendir=no
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7563 /* Override any gcc2 internal prototype to avoid an error. */
7567 /* We use char because int might match the return type of a gcc2
7568 builtin and then its argument prototype would still apply. */
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580 (eval $ac_link) 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest$ac_exeext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_search_opendir="none required"
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7606 rm -f conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 if test "$ac_cv_search_opendir" = no; then
7610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_search_opendir="-l$ac_lib"
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_func_search_save_LIBS
7668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7670 if test "$ac_cv_search_opendir" != no; then
7671 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 #include <$ac_header>
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_header_compiler=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_header_compiler=no
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6
7810 # Is the header present?
7811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <$ac_header>
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } >/dev/null; then
7829 if test -s conftest.err; then
7830 ac_cpp_err=$ac_c_preproc_warn_flag
7831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838 if test -z "$ac_cpp_err"; then
7839 ac_header_preproc=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_header_preproc=no
7846 rm -f conftest.err conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7848 echo "${ECHO_T}$ac_header_preproc" >&6
7850 # So? What about this header?
7851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7857 ac_header_preproc=yes
7860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7874 ## ------------------------------- ##
7875 ## Report this to root@mput.dip.jp ##
7876 ## ------------------------------- ##
7879 sed "s/^/$as_me: WARNING: /" >&2
7882 echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 eval "$as_ac_Header=\$ac_header_preproc"
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 #ifdef HAVE_X11_XLIB_H
7921 #include <X11/Xlib.h>
7925 #include <$ac_header>
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_Header=yes"
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 eval "$as_ac_Header=no"
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7969 if test "${ac_cv_header_string_h+set}" = set; then
7970 echo "$as_me:$LINENO: checking for string.h" >&5
7971 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_string_h+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7978 # Is the header compilable?
7979 echo "$as_me:$LINENO: checking string.h usability" >&5
7980 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_header_compiler=yes
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 ac_header_compiler=no
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking string.h presence" >&5
8025 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } >/dev/null; then
8042 if test -s conftest.err; then
8043 ac_cpp_err=$ac_c_preproc_warn_flag
8044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051 if test -z "$ac_cpp_err"; then
8052 ac_header_preproc=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_header_preproc=no
8059 rm -f conftest.err conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6
8063 # So? What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8066 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8070 ac_header_preproc=yes
8073 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8087 ## ------------------------------- ##
8088 ## Report this to root@mput.dip.jp ##
8089 ## ------------------------------- ##
8092 sed "s/^/$as_me: WARNING: /" >&2
8095 echo "$as_me:$LINENO: checking for string.h" >&5
8096 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8097 if test "${ac_cv_header_string_h+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 ac_cv_header_string_h=$ac_header_preproc
8102 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8103 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8106 if test $ac_cv_header_string_h = yes; then
8110 cat >>confdefs.h <<\_ACEOF
8111 #define NO_STRING_H 1
8118 # Checks for typedefs, structures, and compiler characteristics.
8119 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8121 if test "${ac_cv_c_bigendian+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 # See if sys/param.h defines the BYTE_ORDER macro.
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <sys/types.h>
8132 #include <sys/param.h>
8137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest.$ac_objext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 # It does; now see whether it defined to BIG_ENDIAN or not.
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 #include <sys/types.h>
8175 #include <sys/param.h>
8180 #if BYTE_ORDER != BIG_ENDIAN
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_c_bigendian=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_c_bigendian=no
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 # It does not; compile a test program.
8223 if test "$cross_compiling" = yes; then
8224 # try to guess the endianness by grepping values into an object file
8225 ac_cv_c_bigendian=unknown
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8233 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8234 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8235 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8236 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8241 _ascii (); _ebcdic ();
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8269 ac_cv_c_bigendian=yes
8271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8272 if test "$ac_cv_c_bigendian" = unknown; then
8273 ac_cv_c_bigendian=no
8275 # finding both strings is unlikely to happen, but who knows?
8276 ac_cv_c_bigendian=unknown
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8295 /* Are we little or big endian? From Harbison&Steele. */
8299 char c[sizeof (long)];
8302 exit (u.c[sizeof (long) - 1] == 1);
8305 rm -f conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_c_bigendian=no
8318 echo "$as_me: program exited with status $ac_status" >&5
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_c_bigendian=yes
8325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8332 case $ac_cv_c_bigendian in
8335 cat >>confdefs.h <<\_ACEOF
8336 #define WORDS_BIGENDIAN 1
8342 { { echo "$as_me:$LINENO: error: unknown endianness
8343 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8344 echo "$as_me: error: unknown endianness
8345 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8346 { (exit 1); exit 1; }; } ;;
8350 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8351 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8352 if test "${ac_cv_c_char_unsigned+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8365 static int test_array [1 - 2 * !(((char) -1) < 0)];
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_c_char_unsigned=no
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_c_char_unsigned=yes
8401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8404 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8405 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8406 cat >>confdefs.h <<\_ACEOF
8407 #define __CHAR_UNSIGNED__ 1
8412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8414 if test "${ac_cv_c_const+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8427 /* FIXME: Include the comments suggested by Paul. */
8429 /* Ultrix mips cc rejects this. */
8430 typedef int charset[2];
8432 /* SunOS 4.1.1 cc rejects this. */
8433 char const *const *ccp;
8435 /* NEC SVR4.0.2 mips cc rejects this. */
8436 struct point {int x, y;};
8437 static struct point const zero = {0,0};
8438 /* AIX XL C 1.02.0.0 rejects this.
8439 It does not let you subtract one const X* pointer from another in
8440 an arm of an if-expression whose if-part is not a constant
8442 const char *g = "string";
8443 ccp = &g + (g ? g-g : 0);
8444 /* HPUX 7.0 cc rejects these. */
8447 ccp = (char const *const *) p;
8448 { /* SCO 3.2v4 cc rejects this. */
8450 char const *s = 0 ? (char *) 0 : (char const *) 0;
8454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8456 const int *foo = &x[0];
8459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8460 typedef const int *iptr;
8464 { /* AIX XL C 1.02.0.0 rejects this saying
8465 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8466 struct s { int j; const int *ap[3]; };
8467 struct s *b; b->j = 5;
8469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8510 echo "${ECHO_T}$ac_cv_c_const" >&6
8511 if test $ac_cv_c_const = no; then
8513 cat >>confdefs.h <<\_ACEOF
8519 echo "$as_me:$LINENO: checking for inline" >&5
8520 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8521 if test "${ac_cv_c_inline+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 for ac_kw in inline __inline__ __inline; do
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8534 static $ac_kw foo_t static_foo () {return 0; }
8535 $ac_kw foo_t foo () {return 0; }
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest.$ac_objext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_c_inline=$ac_kw; break
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8575 case $ac_cv_c_inline in
8578 case $ac_cv_c_inline in
8580 *) ac_val=$ac_cv_c_inline;;
8582 cat >>confdefs.h <<_ACEOF
8584 #define inline $ac_val
8590 echo "$as_me:$LINENO: checking for working volatile" >&5
8591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8592 if test "${ac_cv_c_volatile+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_c_volatile=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8645 if test $ac_cv_c_volatile = no; then
8647 cat >>confdefs.h <<\_ACEOF
8653 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8654 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8655 if test "${ac_cv_c_stringize+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8666 char *s = x(teststring);
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669 $EGREP "#teststring" >/dev/null 2>&1; then
8670 ac_cv_c_stringize=no
8672 ac_cv_c_stringize=yes
8677 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8678 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8679 if test $ac_cv_c_stringize = yes; then
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_STRINGIZE 1
8687 echo "$as_me:$LINENO: checking for function prototypes" >&5
8688 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8689 if test "$ac_cv_prog_cc_stdc" != no; then
8690 echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8693 cat >>confdefs.h <<\_ACEOF
8694 #define PROTOTYPES 1
8698 cat >>confdefs.h <<\_ACEOF
8699 #define __PROTOTYPES 1
8703 echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8707 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8709 if test "${ac_cv_struct_tm+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 #include <sys/types.h>
8724 struct tm *tp; tp->tm_sec;
8729 rm -f conftest.$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_struct_tm=time.h
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_struct_tm=sys/time.h
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8761 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8762 if test $ac_cv_struct_tm = sys/time.h; then
8764 cat >>confdefs.h <<\_ACEOF
8765 #define TM_IN_SYS_TIME 1
8770 echo "$as_me:$LINENO: checking for size_t" >&5
8771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8772 if test "${ac_cv_type_size_t+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 $ac_includes_default
8787 if (sizeof (size_t))
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_type_size_t=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_type_size_t=no
8822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8826 if test $ac_cv_type_size_t = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define size_t unsigned
8836 echo "$as_me:$LINENO: checking for off_t" >&5
8837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8838 if test "${ac_cv_type_off_t+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>conftest.er1
8863 grep -v '^ *+' conftest.er1 >conftest.err
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_type_off_t=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8892 if test $ac_cv_type_off_t = yes; then
8896 cat >>confdefs.h <<_ACEOF
8902 echo "$as_me:$LINENO: checking for pid_t" >&5
8903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8904 if test "${ac_cv_type_pid_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_type_pid_t=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8958 if test $ac_cv_type_pid_t = yes; then
8962 cat >>confdefs.h <<_ACEOF
8969 echo "$as_me:$LINENO: checking volatile declaration" >&5
8970 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8971 if test "${timidity_cv_type_volatile+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 timidity_cv_type_volatile=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 timidity_cv_type_volatile=no
9018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9021 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9022 if test $timidity_cv_type_volatile = no; then
9024 cat >>confdefs.h <<\_ACEOF
9025 #define NO_VOLATILE 1
9030 echo "$as_me:$LINENO: checking union semun declaration" >&5
9031 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9032 if test "${timidity_cv_type_union_semun+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/ipc.h>
9044 #include <sys/sem.h>
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9058 grep -v '^ *+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 timidity_cv_type_union_semun=yes
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 timidity_cv_type_union_semun=no
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9086 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9087 if test $timidity_cv_type_union_semun = yes; then
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_UNION_SEMUN 1
9095 if test "x$CYGNUS" = xyes ||test "x$MINGW" = xyes; then
9097 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9098 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9099 if test -z "$ac_cv_prog_CC"; then
9102 our_gcc="$ac_cv_prog_CC"
9104 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9106 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9107 msnative_struct='-fnative-struct'
9111 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9112 msnative_struct='-mms-bitfields'
9116 if test x"$msnative_struct" = x ; then
9117 echo "$as_me:$LINENO: result: no way" >&5
9118 echo "${ECHO_T}no way" >&6
9119 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9120 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9122 CFLAGS="$CFLAGS $msnative_struct"
9123 CPPFLAGS="$CPPFLAGS $msnative_struct"
9124 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9125 echo "${ECHO_T}${msnative_struct}" >&6
9130 if test "x$CYGNUS" = xyes || test "x$MINGW" = xyes; then
9131 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9132 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9133 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9143 #include <windows.h>
9144 #include <mmsystem.h>
9149 return WOM_OPEN != 0x3BB
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 timidity_cv_header_new_mmsystem=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 timidity_cv_header_new_mmsystem=no
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9186 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9187 if test $timidity_cv_header_new_mmsystem = yes; then
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_NEW_MMSYSTEM 1
9196 # Checks for library functions.
9197 echo "$as_me:$LINENO: checking for error_at_line" >&5
9198 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9199 if test "${ac_cv_lib_error_at_line+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 $ac_includes_default
9212 error_at_line (0, 0, "", 0, "");
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_lib_error_at_line=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_lib_error_at_line=no
9246 rm -f conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9250 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9251 if test $ac_cv_lib_error_at_line = no; then
9253 "error.$ac_objext" | \
9254 *" error.$ac_objext" | \
9255 "error.$ac_objext "* | \
9256 *" error.$ac_objext "* ) ;;
9257 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9264 for ac_header in unistd.h vfork.h
9266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268 echo "$as_me:$LINENO: checking for $ac_header" >&5
9269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9276 # Is the header compilable?
9277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 $ac_includes_default
9286 #include <$ac_header>
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>conftest.er1
9292 grep -v '^ *+' conftest.er1 >conftest.err
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest.$ac_objext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_header_compiler=yes
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_header_compiler=no
9317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9319 echo "${ECHO_T}$ac_header_compiler" >&6
9321 # Is the header present?
9322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 #include <$ac_header>
9332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9335 grep -v '^ *+' conftest.er1 >conftest.err
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } >/dev/null; then
9340 if test -s conftest.err; then
9341 ac_cpp_err=$ac_c_preproc_warn_flag
9342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9349 if test -z "$ac_cpp_err"; then
9350 ac_header_preproc=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_header_preproc=no
9357 rm -f conftest.err conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9359 echo "${ECHO_T}$ac_header_preproc" >&6
9361 # So? What about this header?
9362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9368 ac_header_preproc=yes
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9385 ## ------------------------------- ##
9386 ## Report this to root@mput.dip.jp ##
9387 ## ------------------------------- ##
9390 sed "s/^/$as_me: WARNING: /" >&2
9393 echo "$as_me:$LINENO: checking for $ac_header" >&5
9394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 eval "$as_ac_Header=\$ac_header_preproc"
9400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9415 for ac_func in fork vfork
9417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9418 echo "$as_me:$LINENO: checking for $ac_func" >&5
9419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9420 if eval "test \"\${$as_ac_var+set}\" = set"; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9431 #define $ac_func innocuous_$ac_func
9433 /* System header to define __stub macros and hopefully few prototypes,
9434 which can conflict with char $ac_func (); below.
9435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9436 <limits.h> exists even on freestanding compilers. */
9439 # include <limits.h>
9441 # include <assert.h>
9446 /* Override any gcc2 internal prototype to avoid an error. */
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9454 /* The GNU C library defines this for functions which it implements
9455 to always fail with ENOSYS. Some functions are actually named
9456 something starting with __ and the normal name is an alias. */
9457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9460 char (*f) () = $ac_func;
9469 return f != $ac_func;
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476 (eval $ac_link) 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag"
9484 || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest$ac_exeext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 eval "$as_ac_var=yes"
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 eval "$as_ac_var=no"
9503 rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9508 if test `eval echo '${'$as_ac_var'}'` = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9516 if test "x$ac_cv_func_fork" = xyes; then
9517 echo "$as_me:$LINENO: checking for working fork" >&5
9518 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9519 if test "${ac_cv_func_fork_works+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 if test "$cross_compiling" = yes; then
9523 ac_cv_func_fork_works=cross
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* By Ruediger Kuhlmann. */
9527 #include <sys/types.h>
9529 # include <unistd.h>
9531 /* Some systems only have a dummy stub for fork() */
9539 rm -f conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541 (eval $ac_link) 2>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_func_fork_works=yes
9552 echo "$as_me: program exited with status $ac_status" >&5
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9557 ac_cv_func_fork_works=no
9559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9563 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9566 ac_cv_func_fork_works=$ac_cv_func_fork
9568 if test "x$ac_cv_func_fork_works" = xcross; then
9570 *-*-amigaos* | *-*-msdosdjgpp*)
9571 # Override, as these systems have only a dummy fork() stub
9572 ac_cv_func_fork_works=no
9575 ac_cv_func_fork_works=yes
9578 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9579 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9581 ac_cv_func_vfork_works=$ac_cv_func_vfork
9582 if test "x$ac_cv_func_vfork" = xyes; then
9583 echo "$as_me:$LINENO: checking for working vfork" >&5
9584 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9585 if test "${ac_cv_func_vfork_works+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 if test "$cross_compiling" = yes; then
9589 ac_cv_func_vfork_works=cross
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 /* Thanks to Paul Eggert for this test. */
9600 #include <sys/types.h>
9601 #include <sys/stat.h>
9602 #include <sys/wait.h>
9604 # include <unistd.h>
9609 /* On some sparc systems, changes by the child to local and incoming
9610 argument registers are propagated back to the parent. The compiler
9611 is told about this with #include <vfork.h>, but some compilers
9612 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9613 static variable whose address is put into a register that is
9614 clobbered by the vfork. */
9617 sparc_address_test (int arg)
9619 sparc_address_test (arg) int arg;
9640 pid_t parent = getpid ();
9643 sparc_address_test (0);
9648 /* Here is another test for sparc vfork register problems. This
9649 test uses lots of local variables, at least as many local
9650 variables as main has allocated so far including compiler
9651 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9652 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9653 reuse the register of parent for one of the local variables,
9654 since it will think that parent can't possibly be used any more
9655 in this routine. Assigning to the local variable will thus
9656 munge parent in the parent process. */
9658 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9659 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9660 /* Convince the compiler that p..p7 are live; otherwise, it might
9661 use the same hardware register for all 8 local variables. */
9662 if (p != p1 || p != p2 || p != p3 || p != p4
9663 || p != p5 || p != p6 || p != p7)
9666 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9667 from child file descriptors. If the child closes a descriptor
9668 before it execs or exits, this munges the parent's descriptor
9669 as well. Test for this by closing stdout in the child. */
9670 _exit(close(fileno(stdout)) != 0);
9675 while (wait(&status) != child)
9678 /* Was there some problem with vforking? */
9681 /* Did the child fail? (This shouldn't happen.) */
9684 /* Did the vfork/compiler bug occur? */
9685 || parent != getpid()
9687 /* Did the file descriptor bug occur? */
9688 || fstat(fileno(stdout), &st) != 0
9693 rm -f conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_func_vfork_works=yes
9706 echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_func_vfork_works=no
9713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9716 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9717 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9720 if test "x$ac_cv_func_fork_works" = xcross; then
9721 ac_cv_func_vfork_works=$ac_cv_func_vfork
9722 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9723 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9726 if test "x$ac_cv_func_vfork_works" = xyes; then
9728 cat >>confdefs.h <<\_ACEOF
9729 #define HAVE_WORKING_VFORK 1
9734 cat >>confdefs.h <<\_ACEOF
9739 if test "x$ac_cv_func_fork_works" = xyes; then
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_WORKING_FORK 1
9747 echo "$as_me:$LINENO: checking for working memcmp" >&5
9748 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9749 if test "${ac_cv_func_memcmp_working+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 if test "$cross_compiling" = yes; then
9753 ac_cv_func_memcmp_working=no
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9766 /* Some versions of memcmp are not 8-bit clean. */
9767 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9768 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9771 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9772 or more and with at least one buffer not starting on a 4-byte boundary.
9773 William Lewis provided this test program. */
9778 for (i = 0; i < 4; i++)
9782 strcpy (a, "--------01111111");
9783 strcpy (b, "--------10000000");
9784 if (memcmp (a, b, 16) >= 0)
9794 rm -f conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_func_memcmp_working=yes
9807 echo "$as_me: program exited with status $ac_status" >&5
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_func_memcmp_working=no
9814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9818 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9819 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9820 "memcmp.$ac_objext" | \
9821 *" memcmp.$ac_objext" | \
9822 "memcmp.$ac_objext "* | \
9823 *" memcmp.$ac_objext "* ) ;;
9824 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9830 for ac_header in stdlib.h unistd.h
9832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9842 # Is the header compilable?
9843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9852 #include <$ac_header>
9854 rm -f conftest.$ac_objext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_compiler=no
9883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <$ac_header>
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null; then
9906 if test -s conftest.err; then
9907 ac_cpp_err=$ac_c_preproc_warn_flag
9908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_header_preproc=no
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9934 ac_header_preproc=yes
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9951 ## ------------------------------- ##
9952 ## Report this to root@mput.dip.jp ##
9953 ## ------------------------------- ##
9956 sed "s/^/$as_me: WARNING: /" >&2
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 eval "$as_ac_Header=\$ac_header_preproc"
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9980 for ac_func in getpagesize
9982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9983 echo "$as_me:$LINENO: checking for $ac_func" >&5
9984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9985 if eval "test \"\${$as_ac_var+set}\" = set"; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9996 #define $ac_func innocuous_$ac_func
9998 /* System header to define __stub macros and hopefully few prototypes,
9999 which can conflict with char $ac_func (); below.
10000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001 <limits.h> exists even on freestanding compilers. */
10004 # include <limits.h>
10006 # include <assert.h>
10011 /* Override any gcc2 internal prototype to avoid an error. */
10016 /* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
10019 /* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10025 char (*f) () = $ac_func;
10034 return f != $ac_func;
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 eval "$as_ac_var=yes"
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 eval "$as_ac_var=no"
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10073 if test `eval echo '${'$as_ac_var'}'` = yes; then
10074 cat >>confdefs.h <<_ACEOF
10075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10081 echo "$as_me:$LINENO: checking for working mmap" >&5
10082 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10083 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 if test "$cross_compiling" = yes; then
10087 ac_cv_func_mmap_fixed_mapped=no
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 $ac_includes_default
10096 /* malloc might have been renamed as rpl_malloc. */
10099 /* Thanks to Mike Haertel and Jim Avera for this test.
10100 Here is a matrix of mmap possibilities:
10101 mmap private not fixed
10102 mmap private fixed at somewhere currently unmapped
10103 mmap private fixed at somewhere already mapped
10104 mmap shared not fixed
10105 mmap shared fixed at somewhere currently unmapped
10106 mmap shared fixed at somewhere already mapped
10107 For private mappings, we should verify that changes cannot be read()
10108 back from the file, nor mmap's back from the file at a different
10109 address. (There have been systems where private was not correctly
10110 implemented like the infamous i386 svr4.0, and systems where the
10111 VM page cache was not coherent with the file system buffer cache
10112 like early versions of FreeBSD and possibly contemporary NetBSD.)
10113 For shared mappings, we should conversely verify that changes get
10114 propagated back to all the places they're supposed to be.
10116 Grep wants private fixed already mapped.
10117 The main things grep needs to know about mmap are:
10118 * does it exist and is it safe to write into the mmap'd area
10119 * how to use it (BSD variants) */
10122 #include <sys/mman.h>
10124 #if !STDC_HEADERS && !HAVE_STDLIB_H
10128 /* This mess was copied from the GNU getpagesize.h. */
10129 #if !HAVE_GETPAGESIZE
10130 /* Assume that all systems that can run configure have sys/param.h. */
10131 # if !HAVE_SYS_PARAM_H
10132 # define HAVE_SYS_PARAM_H 1
10135 # ifdef _SC_PAGESIZE
10136 # define getpagesize() sysconf(_SC_PAGESIZE)
10137 # else /* no _SC_PAGESIZE */
10138 # if HAVE_SYS_PARAM_H
10139 # include <sys/param.h>
10140 # ifdef EXEC_PAGESIZE
10141 # define getpagesize() EXEC_PAGESIZE
10142 # else /* no EXEC_PAGESIZE */
10144 # define getpagesize() NBPG * CLSIZE
10147 # endif /* no CLSIZE */
10148 # else /* no NBPG */
10150 # define getpagesize() NBPC
10151 # else /* no NBPC */
10153 # define getpagesize() PAGESIZE
10154 # endif /* PAGESIZE */
10155 # endif /* no NBPC */
10156 # endif /* no NBPG */
10157 # endif /* no EXEC_PAGESIZE */
10158 # else /* no HAVE_SYS_PARAM_H */
10159 # define getpagesize() 8192 /* punt totally */
10160 # endif /* no HAVE_SYS_PARAM_H */
10161 # endif /* no _SC_PAGESIZE */
10163 #endif /* no HAVE_GETPAGESIZE */
10168 char *data, *data2, *data3;
10172 pagesize = getpagesize ();
10174 /* First, make a file with some known garbage in it. */
10175 data = (char *) malloc (pagesize);
10178 for (i = 0; i < pagesize; ++i)
10179 *(data + i) = rand ();
10181 fd = creat ("conftest.mmap", 0600);
10184 if (write (fd, data, pagesize) != pagesize)
10188 /* Next, try to mmap the file at a fixed address which already has
10189 something else allocated at it. If we can, also make sure that
10190 we see the same garbage. */
10191 fd = open ("conftest.mmap", O_RDWR);
10194 data2 = (char *) malloc (2 * pagesize);
10197 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10201 for (i = 0; i < pagesize; ++i)
10202 if (*(data + i) != *(data2 + i))
10205 /* Finally, make sure that changes to the mapped area do not
10206 percolate back to the file as seen by read(). (This is a bug on
10207 some variants of i386 svr4.0.) */
10208 for (i = 0; i < pagesize; ++i)
10209 *(data2 + i) = *(data2 + i) + 1;
10210 data3 = (char *) malloc (pagesize);
10213 if (read (fd, data3, pagesize) != pagesize)
10215 for (i = 0; i < pagesize; ++i)
10216 if (*(data + i) != *(data3 + i))
10222 rm -f conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_func_mmap_fixed_mapped=yes
10235 echo "$as_me: program exited with status $ac_status" >&5
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ( exit $ac_status )
10240 ac_cv_func_mmap_fixed_mapped=no
10242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10254 rm -f conftest.mmap
10256 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10257 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10258 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 ac_cv_func_setvbuf_reversed=no
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10270 int (setvbuf) (FILE *, int, char *, size_t);
10275 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282 (eval $ac_link) 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag"
10290 || test ! -s conftest.err'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest$ac_exeext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10310 int (setvbuf) (FILE *, int, char *, size_t);
10315 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 # It compiles and links either way, so it must not be declared
10343 # with a prototype and most likely this is a K&R C compiler.
10345 if test "$cross_compiling" = yes; then
10346 : # Assume setvbuf is not reversed when cross-compiling.
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10358 /* This call has the arguments reversed.
10359 A reversed system may check and see that the address of buf
10360 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10362 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10365 exit (0); /* Non-reversed systems SEGV here. */
10370 rm -f conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_func_setvbuf_reversed=yes
10383 echo "$as_me: program exited with status $ac_status" >&5
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ( exit $ac_status )
10390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10392 ac_cv_func_setvbuf_reversed=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10398 rm -f conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10405 rm -f conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10409 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10410 if test $ac_cv_func_setvbuf_reversed = yes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define SETVBUF_REVERSED 1
10418 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10419 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10420 if test "${ac_cv_type_signal+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <sys/types.h>
10430 #include <signal.h>
10435 extern "C" void (*signal (int, void (*)(int)))(int);
10437 void (*signal ()) ();
10448 rm -f conftest.$ac_objext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -z "$ac_c_werror_flag"
10458 || test ! -s conftest.err'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; } &&
10464 { ac_try='test -s conftest.$ac_objext'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 ac_cv_type_signal=void
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_cv_type_signal=int
10477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10480 echo "${ECHO_T}$ac_cv_type_signal" >&6
10482 cat >>confdefs.h <<_ACEOF
10483 #define RETSIGTYPE $ac_cv_type_signal
10488 for ac_func in vprintf
10490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10491 echo "$as_me:$LINENO: checking for $ac_func" >&5
10492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10493 if eval "test \"\${$as_ac_var+set}\" = set"; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10504 #define $ac_func innocuous_$ac_func
10506 /* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char $ac_func (); below.
10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10509 <limits.h> exists even on freestanding compilers. */
10512 # include <limits.h>
10514 # include <assert.h>
10519 /* Override any gcc2 internal prototype to avoid an error. */
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10527 /* The GNU C library defines this for functions which it implements
10528 to always fail with ENOSYS. Some functions are actually named
10529 something starting with __ and the normal name is an alias. */
10530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10533 char (*f) () = $ac_func;
10542 return f != $ac_func;
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 eval "$as_ac_var=yes"
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 eval "$as_ac_var=no"
10576 rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10586 echo "$as_me:$LINENO: checking for _doprnt" >&5
10587 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10588 if test "${ac_cv_func__doprnt+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10599 #define _doprnt innocuous__doprnt
10601 /* System header to define __stub macros and hopefully few prototypes,
10602 which can conflict with char _doprnt (); below.
10603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10604 <limits.h> exists even on freestanding compilers. */
10607 # include <limits.h>
10609 # include <assert.h>
10614 /* Override any gcc2 internal prototype to avoid an error. */
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10622 /* The GNU C library defines this for functions which it implements
10623 to always fail with ENOSYS. Some functions are actually named
10624 something starting with __ and the normal name is an alias. */
10625 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10628 char (*f) () = _doprnt;
10637 return f != _doprnt;
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_func__doprnt=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_func__doprnt=no
10671 rm -f conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10675 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10676 if test $ac_cv_func__doprnt = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_DOPRNT 1
10756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757 echo "$as_me:$LINENO: checking for $ac_func" >&5
10758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10759 if eval "test \"\${$as_ac_var+set}\" = set"; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10770 #define $ac_func innocuous_$ac_func
10772 /* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char $ac_func (); below.
10774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10775 <limits.h> exists even on freestanding compilers. */
10778 # include <limits.h>
10780 # include <assert.h>
10785 /* Override any gcc2 internal prototype to avoid an error. */
10790 /* We use char because int might match the return type of a gcc2
10791 builtin and then its argument prototype would still apply. */
10793 /* The GNU C library defines this for functions which it implements
10794 to always fail with ENOSYS. Some functions are actually named
10795 something starting with __ and the normal name is an alias. */
10796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10799 char (*f) () = $ac_func;
10808 return f != $ac_func;
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10815 (eval $ac_link) 2>conftest.er1
10817 grep -v '^ *+' conftest.er1 >conftest.err
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -z "$ac_c_werror_flag"
10823 || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 eval "$as_ac_var=yes"
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 eval "$as_ac_var=no"
10842 rm -f conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10855 echo "$as_me:$LINENO: checking for getopt_long" >&5
10856 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10857 if test "${ac_cv_func_getopt_long+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10868 #define getopt_long innocuous_getopt_long
10870 /* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char getopt_long (); below.
10872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873 <limits.h> exists even on freestanding compilers. */
10876 # include <limits.h>
10878 # include <assert.h>
10883 /* Override any gcc2 internal prototype to avoid an error. */
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char getopt_long ();
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10897 char (*f) () = getopt_long;
10906 return f != getopt_long;
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_func_getopt_long=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_func_getopt_long=no
10940 rm -f conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10944 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10945 if test $ac_cv_func_getopt_long = yes; then
10947 cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_GETOPT_LONG 1
10951 tm_cv_needgetopt="no"
10953 tm_cv_needgetopt="yes"
10958 if test "x$tm_cv_needgetopt" = "xyes"; then
10960 NEEDGETOPT_FALSE='#'
10962 NEEDGETOPT_TRUE='#'
10968 if test "x$CYGNUS" = xyes; then
10969 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
10971 echo "$as_me:$LINENO: checking for opendir" >&5
10972 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10973 if test "${ac_cv_func_opendir+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
10983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10984 #define opendir innocuous_opendir
10986 /* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char opendir (); below.
10988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10989 <limits.h> exists even on freestanding compilers. */
10992 # include <limits.h>
10994 # include <assert.h>
10999 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined (__stub_opendir) || defined (__stub___opendir)
11013 char (*f) () = opendir;
11022 return f != opendir;
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_func_opendir=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_func_opendir=no
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11060 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11061 if test $ac_cv_func_opendir = yes; then
11064 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11069 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11073 if test "x$enable_network" = "xyes"; then
11074 echo "$as_me:$LINENO: checking for socket" >&5
11075 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11076 if test "${ac_cv_func_socket+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define socket innocuous_socket
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char socket (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11095 # include <limits.h>
11097 # include <assert.h>
11102 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_socket) || defined (__stub___socket)
11116 char (*f) () = socket;
11125 return f != socket;
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func_socket=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_func_socket=no
11159 rm -f conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11163 echo "${ECHO_T}$ac_cv_func_socket" >&6
11164 if test $ac_cv_func_socket = yes; then
11167 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11168 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11169 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11170 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 ac_save_LIBS="$LIBS"
11174 LIBS="-lwsock32 $LIBS"
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 #include <windows.h>
11182 #include <winsock.h>
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 eval "wapi_cv_lib_$ac_lib_var=yes"
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 eval "wapi_cv_lib_$ac_lib_var=no"
11221 rm -f conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS="$ac_save_LIBS"
11226 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11227 echo "$as_me:$LINENO: result: yes" >&5
11228 echo "${ECHO_T}yes" >&6
11229 EXTRALIBS="$EXTRALIBS -lwsock32"
11230 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11232 echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6
11242 if test "x$MINGW" = xyes; then
11243 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
11245 echo "$as_me:$LINENO: checking for opendir" >&5
11246 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11247 if test "${ac_cv_func_opendir+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11258 #define opendir innocuous_opendir
11260 /* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char opendir (); below.
11262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263 <limits.h> exists even on freestanding compilers. */
11266 # include <limits.h>
11268 # include <assert.h>
11273 /* Override any gcc2 internal prototype to avoid an error. */
11278 /* We use char because int might match the return type of a gcc2
11279 builtin and then its argument prototype would still apply. */
11281 /* The GNU C library defines this for functions which it implements
11282 to always fail with ENOSYS. Some functions are actually named
11283 something starting with __ and the normal name is an alias. */
11284 #if defined (__stub_opendir) || defined (__stub___opendir)
11287 char (*f) () = opendir;
11296 return f != opendir;
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -z "$ac_c_werror_flag"
11311 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_func_opendir=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_cv_func_opendir=no
11330 rm -f conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11333 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11334 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11335 if test $ac_cv_func_opendir = yes; then
11338 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11343 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11347 if test "x$enable_network" = "xyes"; then
11348 echo "$as_me:$LINENO: checking for socket" >&5
11349 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11350 if test "${ac_cv_func_socket+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11361 #define socket innocuous_socket
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char socket (); below.
11365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11366 <limits.h> exists even on freestanding compilers. */
11369 # include <limits.h>
11371 # include <assert.h>
11376 /* Override any gcc2 internal prototype to avoid an error. */
11381 /* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11384 /* The GNU C library defines this for functions which it implements
11385 to always fail with ENOSYS. Some functions are actually named
11386 something starting with __ and the normal name is an alias. */
11387 #if defined (__stub_socket) || defined (__stub___socket)
11390 char (*f) () = socket;
11399 return f != socket;
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_cv_func_socket=yes
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 ac_cv_func_socket=no
11433 rm -f conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11437 echo "${ECHO_T}$ac_cv_func_socket" >&6
11438 if test $ac_cv_func_socket = yes; then
11441 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11442 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11443 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11444 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 ac_save_LIBS="$LIBS"
11448 LIBS="-lwsock32 $LIBS"
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 #include <windows.h>
11456 #include <winsock.h>
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag"
11476 || test ! -s conftest.err'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest$ac_exeext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 eval "wapi_cv_lib_$ac_lib_var=yes"
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 eval "wapi_cv_lib_$ac_lib_var=no"
11495 rm -f conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS="$ac_save_LIBS"
11500 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11501 echo "$as_me:$LINENO: result: yes" >&5
11502 echo "${ECHO_T}yes" >&6
11503 EXTRALIBS="$EXTRALIBS -lwsock32"
11504 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11506 echo "$as_me:$LINENO: result: no" >&5
11507 echo "${ECHO_T}no" >&6
11515 # Checks on extra paths
11518 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11519 if test "${with_tcl_includes+set}" = set; then
11520 withval="$with_tcl_includes"
11521 if test ! -d $withval; then
11522 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11523 echo "$as_me: WARNING: $withval is not found." >&2;}
11525 tcl_include_dir="-I$withval"
11529 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11530 if test "${with_tcl_libs+set}" = set; then
11531 withval="$with_tcl_libs"
11532 if test ! -d $withval; then
11533 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11534 echo "$as_me: WARNING: $withval is not found." >&2;}
11536 tcl_libdir="-L$withval"
11539 # Check whether --with-tk-includes or --without-tk-includes was given.
11540 if test "${with_tk_includes+set}" = set; then
11541 withval="$with_tk_includes"
11542 if test ! -d $withval; then
11543 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11544 echo "$as_me: WARNING: $withval is not found." >&2;}
11546 tk_includes="-I$withval"
11549 # Check whether --with-tk-libs or --without-tk-libs was given.
11550 if test "${with_tk_libs+set}" = set; then
11551 withval="$with_tk_libs"
11552 if test ! -d $withval; then
11553 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11554 echo "$as_me: WARNING: $withval is not found." >&2;}
11556 tk_libdir="-L$withval"
11560 # Check whether --with-offix-includes or --without-offix-includes was given.
11561 if test "${with_offix_includes+set}" = set; then
11562 withval="$with_offix_includes"
11563 if test ! -d $withval; then
11564 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11565 echo "$as_me: WARNING: $withval is not found." >&2;}
11567 offix_include_dir="-I$withval"
11570 # Check whether --with-offix-libs or --without-offix-libs was given.
11571 if test "${with_offix_libs+set}" = set; then
11572 withval="$with_offix_libs"
11573 if test ! -d $withval; then
11574 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11575 echo "$as_me: WARNING: $withval is not found." >&2;}
11577 offix_lib_dir="-L$withval"
11585 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11588 # Check whether --with-nas-library or --without-nas-library was given.
11589 if test "${with_nas_library+set}" = set; then
11590 withval="$with_nas_library"
11594 # Check whether --with-nas-includes or --without-nas-includes was given.
11595 if test "${with_nas_includes+set}" = set; then
11596 withval="$with_nas_includes"
11601 # Check whether --enable-audio or --disable-audio was given.
11602 if test "${enable_audio+set}" = set; then
11603 enableval="$enable_audio"
11604 enable_audio=$enableval
11611 test "x$enable_audio" = xyes && enable_audio=default
11613 if test "x$enable_audio" != xno; then
11614 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11615 eval "au_enable_$i=yes"
11621 # Check whether --with-default-output or --without-default-output was given.
11622 if test "${with_default_output+set}" = set; then
11623 withval="$with_default_output"
11624 if test "$enable_audio" != no; then
11625 DEFAULT_PLAYMODE=$withval
11626 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11628 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11629 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11634 if test "x$au_enable_default" = xyes; then
11636 *-*-linux*|*-*-freebsd*)
11640 au_enable_sb_dsp=yes
11642 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11670 au_enable_darwin=yes
11673 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11674 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11680 # Each audio mode's configurations
11681 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11682 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11683 if test "x$au_enable_oss" = xyes; then
11684 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11685 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11686 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11687 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11688 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11692 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11696 if test "x$ac_cv_header_soundcard_h" = xyes; then
11697 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11698 echo "${ECHO_T}yes - <soundcard.h>" >&6
11700 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11701 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11707 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11708 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11709 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lossaudio $LIBS"
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 /* Override any gcc2 internal prototype to avoid an error. */
11725 /* We use char because int might match the return type of a gcc2
11726 builtin and then its argument prototype would still apply. */
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag"
11746 || test ! -s conftest.err'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_lib_ossaudio_open=yes
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_cv_lib_ossaudio_open=no
11765 rm -f conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11769 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11770 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11771 if test $ac_cv_lib_ossaudio_open = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_LIBOSSAUDIO 1
11776 LIBS="-lossaudio $LIBS"
11783 if test ! -e "/dev/dsp"; then
11784 oss_device=/dev/audio
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11793 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11794 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11795 if test "x$au_enable_sun" = xyes; then
11798 if test -f /usr/demo/SOUND/libaudio.a; then
11799 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11800 echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6
11803 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11804 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11808 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11809 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11810 echo "$as_me:$LINENO: result: yes" >&5
11811 echo "${ECHO_T}yes" >&6
11813 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11814 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11817 *) echo "$as_me:$LINENO: result: yes" >&5
11818 echo "${ECHO_T}yes" >&6
11821 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11822 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11824 echo "$as_me:$LINENO: result: no" >&5
11825 echo "${ECHO_T}no" >&6
11828 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11829 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11830 if test "x$au_enable_hpux" = xyes; then
11832 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6 ;;
11834 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11835 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11837 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11838 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11840 echo "$as_me:$LINENO: result: no" >&5
11841 echo "${ECHO_T}no" >&6
11844 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11845 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11846 if test "x$au_enable_irix" = xyes; then
11848 *-sgi-irix5*|*-sgi-irix6.2)
11849 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11850 echo "$as_me:$LINENO: result: yes" >&5
11851 echo "${ECHO_T}yes" >&6
11854 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11855 echo "$as_me:$LINENO: result: yes" >&5
11856 echo "${ECHO_T}yes" >&6
11858 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11859 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11861 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11862 EXTRALIBS="$EXTRASLIBS -laudio"
11864 echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11868 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11869 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11870 if test "x$au_enable_mme" = xyes; then
11872 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6 ;;
11874 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11875 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11877 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11878 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11879 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11880 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11882 echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6
11886 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11887 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11888 if test "x$au_enable_sb_dsp" = xyes; then
11890 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11891 echo "${ECHO_T}yes" >&6 ;;
11892 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11893 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11895 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11896 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11898 echo "$as_me:$LINENO: result: no" >&5
11899 echo "${ECHO_T}no" >&6
11902 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11903 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11904 if test "x$au_enable_w32" = xyes; then
11907 echo "$as_me:$LINENO: result: yes" >&5
11908 echo "${ECHO_T}yes" >&6
11911 echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6
11915 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11916 echo "$as_me: WARNING: may not work on $target" >&2;}
11919 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11920 EXTRALIBS="$EXTRALIBS -lwinmm"
11921 EXTRADEFS="$EXTRADEFS -DAU_W32"
11923 echo "$as_me:$LINENO: result: no" >&5
11924 echo "${ECHO_T}no" >&6
11927 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11928 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11929 if test "x$au_enable_darwin" = xyes; then
11930 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11931 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11932 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11935 echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6;;
11938 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11939 echo "$as_me: WARNING: may not work on $target" >&2;}
11943 echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6
11948 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11949 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11950 if test "x$au_enable_alsa" = xyes; then
11951 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11952 echo "${ECHO_T}yes, configuring alsa" >&6
11955 KEEPLDFLAGS=$LDFLAGS
11956 alsa_save_CFLAGS="$CFLAGS"
11957 alsa_save_LDFLAGS="$LDFLAGS"
11958 alsa_save_LIBS="$LIBS"
11962 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11963 if test "${with_alsa_prefix+set}" = set; then
11964 withval="$with_alsa_prefix"
11965 alsa_prefix="$withval"
11971 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11972 if test "${with_alsa_inc_prefix+set}" = set; then
11973 withval="$with_alsa_inc_prefix"
11974 alsa_inc_prefix="$withval"
11979 # Check whether --enable-alsatest or --disable-alsatest was given.
11980 if test "${enable_alsatest+set}" = set; then
11981 enableval="$enable_alsatest"
11984 enable_alsatest=yes
11987 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11988 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11989 if test "$alsa_inc_prefix" != "" ; then
11990 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11991 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11993 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11994 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11996 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11997 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11998 if test "$alsa_prefix" != "" ; then
11999 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12000 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12003 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12004 LIBS=`echo $LIBS | sed 's/-lm//'`
12005 LIBS=`echo $LIBS | sed 's/-ldl//'`
12006 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12007 LIBS=`echo $LIBS | sed 's/ //'`
12008 LIBS="$ALSA_LIBS $LIBS"
12009 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12010 echo "${ECHO_T}$ALSA_LIBS" >&6
12012 min_alsa_version=0.1.1
12013 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12014 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12016 alsa_min_major_version=`echo $min_alsa_version | \
12017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12018 alsa_min_minor_version=`echo $min_alsa_version | \
12019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12020 alsa_min_micro_version=`echo $min_alsa_version | \
12021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 #include <alsa/asoundlib.h>
12045 /* ensure backward compatibility */
12046 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12047 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12049 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12050 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12052 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12053 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12056 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12059 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12060 # error not present
12063 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12066 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12067 # error not present
12070 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12071 # error not present
12081 rm -f conftest.$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1 >conftest.err
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 echo "$as_me:$LINENO: result: found." >&5
12104 echo "${ECHO_T}found." >&6
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12116 #include <sys/asoundlib.h>
12122 /* ensure backward compatibility */
12123 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12124 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12126 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12127 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12129 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12130 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12133 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12136 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12137 # error not present
12140 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12143 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12144 # error not present
12147 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12148 # error not present
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 echo "$as_me:$LINENO: result: found." >&5
12181 echo "${ECHO_T}found." >&6
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 echo "$as_me:$LINENO: result: not present." >&5
12187 echo "${ECHO_T}not present." >&6
12188 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12189 echo "${ECHO_T}libasound was not found anywhere." >&6
12192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12194 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 ac_cpp='$CPP $CPPFLAGS'
12200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12207 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12208 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lasound $LIBS"
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12220 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226 char snd_ctl_open ();
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag"
12245 || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_lib_asound_snd_ctl_open=yes
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 ac_cv_lib_asound_snd_ctl_open=no
12264 rm -f conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12269 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12270 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define HAVE_LIBASOUND 1
12275 LIBS="-lasound $LIBS"
12278 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12279 echo "${ECHO_T}No linkable libasound was found." >&6
12285 if test "x$alsa_found" = "xyes" ; then
12287 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12288 LIBS=`echo $LIBS | sed 's/ //'`
12289 LIBS="-lasound $LIBS"
12292 CFLAGS="$alsa_save_CFLAGS"
12293 LDFLAGS="$alsa_save_LDFLAGS"
12294 LIBS="$alsa_save_LIBS"
12302 if test "x$alsa_found" = "xyes" ; then
12303 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12304 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12305 for f in $ALSA_CFLAGS; do
12307 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12308 *) CFLAGS="$CPPFLAGS $f" ;;
12312 LIBS="$LIBS $ALSA_LIBS"
12314 for ac_func in snd_seq_port_info_set_timestamping
12316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12317 echo "$as_me:$LINENO: checking for $ac_func" >&5
12318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12319 if eval "test \"\${$as_ac_var+set}\" = set"; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12330 #define $ac_func innocuous_$ac_func
12332 /* System header to define __stub macros and hopefully few prototypes,
12333 which can conflict with char $ac_func (); below.
12334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12335 <limits.h> exists even on freestanding compilers. */
12338 # include <limits.h>
12340 # include <assert.h>
12345 /* Override any gcc2 internal prototype to avoid an error. */
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12353 /* The GNU C library defines this for functions which it implements
12354 to always fail with ENOSYS. Some functions are actually named
12355 something starting with __ and the normal name is an alias. */
12356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12359 char (*f) () = $ac_func;
12368 return f != $ac_func;
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375 (eval $ac_link) 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag"
12383 || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 eval "$as_ac_var=yes"
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 eval "$as_ac_var=no"
12402 rm -f conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12407 if test `eval echo '${'$as_ac_var'}'` = yes; then
12408 cat >>confdefs.h <<_ACEOF
12409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12416 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12417 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12420 LDFLAGS=$KEEPLDFLAGS
12423 echo "$as_me:$LINENO: result: no" >&5
12424 echo "${ECHO_T}no" >&6
12427 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12428 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12429 if test "x$au_enable_alib" = xyes; then
12431 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12432 echo "${ECHO_T}yes" >&6 ;;
12433 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12434 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12436 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12437 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12438 if test -d /opt/audio/include; then
12439 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12441 if test -d /opt/audio/lib; then
12442 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12444 EXTRALIBS="$EXTRALIBS -lAlib"
12446 echo "$as_me:$LINENO: result: no" >&5
12447 echo "${ECHO_T}no" >&6
12450 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12451 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12452 if test "x$au_enable_nas" = xyes; then
12453 if test "x$with_x" != xyes; then
12454 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12455 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12456 { (exit 1); exit 1; }; }
12458 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12459 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12462 if test "x$with_nas_library" != x; then
12463 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12464 echo "${ECHO_T}$with_nas_library" >&6;
12465 EXTRALIBS="$EXTRALIBS $with_nas_library"
12467 echo "$as_me:$LINENO: result: " >&5
12468 echo "${ECHO_T}" >&6
12469 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12470 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12471 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 ac_func_search_save_LIBS="$LIBS"
12475 timidity_cv_search_AuOpenServer="no"
12476 for i in $x_libraries/libaudio.a \
12477 /usr/lib/libaudio.so \
12478 /usr/lib/libaudio.a ; do
12479 LIBS="$i $ac_func_search_save_LIBS"
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12493 char AuOpenServer ();
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 timidity_cv_search_AuOpenServer="$i"; break
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12530 rm -f conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12533 LIBS="$ac_func_search_save_LIBS"
12535 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12536 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12537 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12538 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12539 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12540 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12542 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12543 echo "$as_me: WARNING: NAS library is not found." >&2;}
12546 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12548 if test "x$have_xext" = xyes; then
12549 lib_xext_opt=-lXext
12551 if test "x$have_xprelibs" = xyes; then
12552 lib_xprelibs_opt='-lSM -lICE'
12555 echo "$as_me:$LINENO: result: no" >&5
12556 echo "${ECHO_T}no" >&6
12559 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12560 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12561 if test "x$au_enable_arts" = xyes; then
12562 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12563 echo "${ECHO_T}yes, configuring aRts" >&6
12566 KEEPLDFLAGS=$LDFLAGS
12568 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12569 if test "${with_arts_prefix+set}" = set; then
12570 withval="$with_arts_prefix"
12571 arts_prefix="$withval"
12575 # Check whether --enable-artstest or --disable-artstest was given.
12576 if test "${enable_artstest+set}" = set; then
12577 enableval="$enable_artstest"
12580 enable_artstest=yes
12583 if test x$arts_prefix != x ; then
12584 arts_args="$arts_args --prefix=$arts_prefix"
12585 if test x${ARTS_CONFIG+set} != xset ; then
12586 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12590 # Extract the first word of "artsc-config", so it can be a program name with args.
12591 set dummy artsc-config; ac_word=$2
12592 echo "$as_me:$LINENO: checking for $ac_word" >&5
12593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 case $ARTS_CONFIG in
12599 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12620 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12622 if test -n "$ARTS_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12624 echo "${ECHO_T}$ARTS_CONFIG" >&6
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12630 min_arts_version=0.9.5
12631 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12632 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12634 if test "$ARTS_CONFIG" = "no" ; then
12637 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12638 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12640 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12642 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12644 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12646 if test "x$enable_artstest" = "xyes" ; then
12647 ac_save_CFLAGS="$CFLAGS"
12648 ac_save_LIBS="$LIBS"
12649 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12650 LIBS="$LIBS $ARTS_LIBS"
12651 rm -f conf.artstest
12652 if test "$cross_compiling" = yes; then
12653 echo $ac_n "cross compiling; assumed OK... $ac_c"
12655 cat >conftest.$ac_ext <<_ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12663 #include <stdlib.h>
12664 #include <string.h>
12668 my_strdup (char *str)
12674 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12675 strcpy (new_str, str);
12685 int major, minor, micro;
12688 system ("touch conf.artstest");
12690 /* HP/UX 9 (%@#!) writes to sscanf strings */
12691 tmp_version = my_strdup("$min_arts_version");
12692 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12693 printf("%s, bad version string\n", "$min_arts_version");
12697 if (($arts_major_version > major) ||
12698 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12699 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12705 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12706 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12707 printf("*** best to upgrade to the required version.\n");
12708 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12709 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12710 printf("*** config.cache before re-running configure\n");
12717 rm -f conftest$ac_exeext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719 (eval $ac_link) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12730 echo "$as_me: program exited with status $ac_status" >&5
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ( exit $ac_status )
12737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12739 CFLAGS="$ac_save_CFLAGS"
12740 LIBS="$ac_save_LIBS"
12743 if test "x$no_arts" = x ; then
12744 echo "$as_me:$LINENO: result: yes" >&5
12745 echo "${ECHO_T}yes" >&6
12748 echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6
12750 if test "$ARTS_CONFIG" = "no" ; then
12751 echo "*** The artsc-config script installed by ARTS could not be found"
12752 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12753 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12754 echo "*** full path to artsc-config."
12756 if test -f conf.artstest ; then
12759 echo "*** Could not run ARTS test program, checking why..."
12760 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12761 LIBS="$LIBS $ARTS_LIBS"
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 echo "*** The test program compiled, but did not run. This usually means"
12803 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12804 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12805 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12806 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12807 echo "*** is required on your system"
12809 echo "*** If you have an old version installed, it is best to remove it, although"
12810 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 echo "*** The test program failed to compile or link. See the file config.log for the"
12816 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12817 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12818 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12820 rm -f conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822 CFLAGS="$ac_save_CFLAGS"
12823 LIBS="$ac_save_LIBS"
12832 rm -f conf.artstest
12836 LDFLAGS=$KEEPLDFLAGS
12837 if test "x$no_arts" = x; then
12838 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12839 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12840 for f in $ARTS_CFLAGS; do
12842 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12843 *) CFLAGS="$CPPFLAGS $f" ;;
12847 LIBS="$LIBS $ARTS_LIBS"
12849 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12850 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12853 echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6
12857 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12858 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12859 if test "x$au_enable_esd" = xyes; then
12860 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12861 echo "${ECHO_T}yes, configuring esd" >&6
12864 KEEPLDFLAGS=$LDFLAGS
12866 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12867 if test "${with_esd_prefix+set}" = set; then
12868 withval="$with_esd_prefix"
12869 esd_prefix="$withval"
12874 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12875 if test "${with_esd_exec_prefix+set}" = set; then
12876 withval="$with_esd_exec_prefix"
12877 esd_exec_prefix="$withval"
12881 # Check whether --enable-esdtest or --disable-esdtest was given.
12882 if test "${enable_esdtest+set}" = set; then
12883 enableval="$enable_esdtest"
12889 if test x$esd_exec_prefix != x ; then
12890 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12891 if test x${ESD_CONFIG+set} != xset ; then
12892 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12895 if test x$esd_prefix != x ; then
12896 esd_args="$esd_args --prefix=$esd_prefix"
12897 if test x${ESD_CONFIG+set} != xset ; then
12898 ESD_CONFIG=$esd_prefix/bin/esd-config
12902 # Extract the first word of "esd-config", so it can be a program name with args.
12903 set dummy esd-config; ac_word=$2
12904 echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12906 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 case $ESD_CONFIG in
12911 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12932 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12934 if test -n "$ESD_CONFIG"; then
12935 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12936 echo "${ECHO_T}$ESD_CONFIG" >&6
12938 echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6
12942 min_esd_version=0.2.7
12943 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12944 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12946 if test "$ESD_CONFIG" = "no" ; then
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12957 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12958 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12960 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12962 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12964 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12966 if test "x$enable_esdtest" = "xyes" ; then
12967 ac_save_CFLAGS="$CFLAGS"
12968 ac_save_LIBS="$LIBS"
12969 CFLAGS="$CFLAGS $ESD_CFLAGS"
12970 LIBS="$LIBS $ESD_LIBS"
12972 if test "$cross_compiling" = yes; then
12973 echo $ac_n "cross compiling; assumed OK... $ac_c"
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12983 #include <stdlib.h>
12984 #include <string.h>
12988 my_strdup (char *str)
12994 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12995 strcpy (new_str, str);
13005 int major, minor, micro;
13008 system ("touch conf.esdtest");
13010 /* HP/UX 9 (%@#!) writes to sscanf strings */
13011 tmp_version = my_strdup("$min_esd_version");
13012 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13013 printf("%s, bad version string\n", "$min_esd_version");
13017 if (($esd_major_version > major) ||
13018 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13019 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13025 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13026 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13027 printf("*** best to upgrade to the required version.\n");
13028 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13029 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13030 printf("*** config.cache before re-running configure\n");
13037 rm -f conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13050 echo "$as_me: program exited with status $ac_status" >&5
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ( exit $ac_status )
13057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13059 CFLAGS="$ac_save_CFLAGS"
13060 LIBS="$ac_save_LIBS"
13062 ac_cpp='$CPP $CPPFLAGS'
13063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069 if test "x$no_esd" = x ; then
13070 echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6
13074 echo "$as_me:$LINENO: result: no" >&5
13075 echo "${ECHO_T}no" >&6
13076 if test "$ESD_CONFIG" = "no" ; then
13077 echo "*** The esd-config script installed by ESD could not be found"
13078 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13079 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13080 echo "*** full path to esd-config."
13082 if test -f conf.esdtest ; then
13085 echo "*** Could not run ESD test program, checking why..."
13086 CFLAGS="$CFLAGS $ESD_CFLAGS"
13087 LIBS="$LIBS $ESD_LIBS"
13091 ac_cpp='$CPP $CPPFLAGS'
13092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096 cat >conftest.$ac_ext <<_ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 echo "*** The test program compiled, but did not run. This usually means"
13137 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13138 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13139 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13140 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13141 echo "*** is required on your system"
13143 echo "*** If you have an old version installed, it is best to remove it, although"
13144 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 echo "*** The test program failed to compile or link. See the file config.log for the"
13150 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13151 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13152 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13154 rm -f conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 CFLAGS="$ac_save_CFLAGS"
13157 LIBS="$ac_save_LIBS"
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176 LDFLAGS=$KEEPLDFLAGS
13177 if test "x$no_esd" = x; then
13178 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13179 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13180 for f in $ESD_CFLAGS; do
13182 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13183 *) CFLAGS="$CPPFLAGS $f" ;;
13187 LIBS="$LIBS $ESD_LIBS"
13189 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13190 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13193 echo "$as_me:$LINENO: result: no" >&5
13194 echo "${ECHO_T}no" >&6
13197 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13198 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13199 if test "x$au_enable_portaudio" = xyes; then
13200 echo "$as_me:$LINENO: result: yes" >&5
13201 echo "${ECHO_T}yes" >&6
13202 if test "x$CYGNUS" = xyes ||test "x$MINGW" = xyes; then
13203 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13204 EXTRALIBS="$EXTRALIBS -lportaudio"
13205 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13207 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13208 EXTRALIBS="$EXTRALIBS -lportaudio"
13209 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13212 echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6
13216 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13217 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13218 if test "x$au_enable_jack" = xyes; then
13219 echo "$as_me:$LINENO: result: yes" >&5
13220 echo "${ECHO_T}yes" >&6
13221 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13222 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13223 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13225 echo "$as_me:$LINENO: result: no" >&5
13226 echo "${ECHO_T}no" >&6
13229 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13230 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13231 if test "x$au_enable_ao" = xyes; then
13232 echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13233 echo "${ECHO_T}yes, configuring ao" >&6
13235 # Check whether --with-ao or --without-ao was given.
13236 if test "${with_ao+set}" = set; then
13238 ao_prefix="$withval"
13243 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13244 if test "${with_ao_libraries+set}" = set; then
13245 withval="$with_ao_libraries"
13246 ao_libraries="$withval"
13251 # Check whether --with-ao-includes or --without-ao-includes was given.
13252 if test "${with_ao_includes+set}" = set; then
13253 withval="$with_ao_includes"
13254 ao_includes="$withval"
13258 # Check whether --enable-aotest or --disable-aotest was given.
13259 if test "${enable_aotest+set}" = set; then
13260 enableval="$enable_aotest"
13267 if test "x$ao_libraries" != "x" ; then
13268 AO_LIBS="-L$ao_libraries"
13269 elif test "x$ao_prefix" != "x"; then
13270 AO_LIBS="-L$ao_prefix/lib"
13271 elif test "x$prefix" != "xNONE"; then
13272 AO_LIBS="-L$prefix/lib"
13275 if test "x$ao_includes" != "x" ; then
13276 AO_CFLAGS="-I$ao_includes"
13277 elif test "x$ao_prefix" != "x"; then
13278 AO_CFLAGS="-I$ao_prefix/include"
13279 elif test "x$prefix" != "xNONE"; then
13280 AO_CFLAGS="-I$prefix/include"
13283 # see where dl* and friends live
13285 for ac_func in dlopen
13287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13288 echo "$as_me:$LINENO: checking for $ac_func" >&5
13289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13290 if eval "test \"\${$as_ac_var+set}\" = set"; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13301 #define $ac_func innocuous_$ac_func
13303 /* System header to define __stub macros and hopefully few prototypes,
13304 which can conflict with char $ac_func (); below.
13305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13306 <limits.h> exists even on freestanding compilers. */
13309 # include <limits.h>
13311 # include <assert.h>
13316 /* Override any gcc2 internal prototype to avoid an error. */
13321 /* We use char because int might match the return type of a gcc2
13322 builtin and then its argument prototype would still apply. */
13324 /* The GNU C library defines this for functions which it implements
13325 to always fail with ENOSYS. Some functions are actually named
13326 something starting with __ and the normal name is an alias. */
13327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13330 char (*f) () = $ac_func;
13339 return f != $ac_func;
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13346 (eval $ac_link) 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest$ac_exeext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13366 eval "$as_ac_var=yes"
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371 eval "$as_ac_var=no"
13373 rm -f conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13378 if test `eval echo '${'$as_ac_var'}'` = yes; then
13379 cat >>confdefs.h <<_ACEOF
13380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13385 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13386 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_check_lib_save_LIBS=$LIBS
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_lib_dl_dlopen=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_cv_lib_dl_dlopen=no
13443 rm -f conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13449 if test $ac_cv_lib_dl_dlopen = yes; then
13453 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13454 your system may not be supported." >&5
13455 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13456 your system may not be supported." >&2;}
13465 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13467 echo "$as_me:$LINENO: checking for ao" >&5
13468 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13472 if test "x$enable_aotest" = "xyes" ; then
13473 ac_save_CFLAGS="$CFLAGS"
13474 ac_save_LIBS="$LIBS"
13475 CFLAGS="$CFLAGS $AO_CFLAGS"
13476 LIBS="$LIBS $AO_LIBS"
13478 if test "$cross_compiling" = yes; then
13479 echo $ac_n "cross compiling; assumed OK... $ac_c"
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13489 #include <stdlib.h>
13490 #include <string.h>
13495 system("touch conf.aotest");
13501 rm -f conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503 (eval $ac_link) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13514 echo "$as_me: program exited with status $ac_status" >&5
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ( exit $ac_status )
13521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13523 CFLAGS="$ac_save_CFLAGS"
13524 LIBS="$ac_save_LIBS"
13527 if test "x$no_ao" = "x" ; then
13528 echo "$as_me:$LINENO: result: yes" >&5
13529 echo "${ECHO_T}yes" >&6
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534 if test -f conf.aotest ; then
13537 echo "*** Could not run ao test program, checking why..."
13538 CFLAGS="$CFLAGS $AO_CFLAGS"
13539 LIBS="$LIBS $AO_LIBS"
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560 (eval $ac_link) 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag"
13568 || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 echo "*** The test program compiled, but did not run. This usually means"
13581 echo "*** that the run-time linker is not finding ao or finding the wrong"
13582 echo "*** version of ao. If it is not finding ao, you'll need to set your"
13583 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13584 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13585 echo "*** is required on your system"
13587 echo "*** If you have an old version installed, it is best to remove it, although"
13588 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 echo "*** The test program failed to compile or link. See the file config.log for the"
13594 echo "*** exact error that occured. This usually means ao was incorrectly installed"
13595 echo "*** or that you have moved ao since it was installed."
13597 rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 CFLAGS="$ac_save_CFLAGS"
13600 LIBS="$ac_save_LIBS"
13610 if test "x$no_ao" = "x" ; then
13611 echo "$as_me:$LINENO: result: yes" >&5
13612 echo "${ECHO_T}yes" >&6
13613 EXTRADEFS="$EXTRADEFS -DAU_AO"
13614 SYSEXTRAS="$SYSEXTRAS ao_a.c"
13615 for f in $AO_CFLAGS; do
13617 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13618 *) CFLAGS="$CPPFLAGS $f" ;;
13622 LIBS="$LIBS $AO_LIBS"
13624 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13625 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13628 echo "$as_me:$LINENO: result: no" >&5
13629 echo "${ECHO_T}no" >&6
13632 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13633 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13634 if test "x$au_enable_vorbis" = xyes; then
13635 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13636 echo "${ECHO_T}yes, configuring vorbis" >&6
13638 # Check whether --with-ogg or --without-ogg was given.
13639 if test "${with_ogg+set}" = set; then
13640 withval="$with_ogg"
13641 ogg_prefix="$withval"
13646 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13647 if test "${with_ogg_libraries+set}" = set; then
13648 withval="$with_ogg_libraries"
13649 ogg_libraries="$withval"
13654 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13655 if test "${with_ogg_includes+set}" = set; then
13656 withval="$with_ogg_includes"
13657 ogg_includes="$withval"
13661 # Check whether --enable-oggtest or --disable-oggtest was given.
13662 if test "${enable_oggtest+set}" = set; then
13663 enableval="$enable_oggtest"
13669 if test "x$ogg_libraries" != "x" ; then
13670 OGG_LIBS="-L$ogg_libraries"
13671 elif test "x$ogg_prefix" != "x" ; then
13672 OGG_LIBS="-L$ogg_prefix/lib"
13673 elif test "x$prefix" != "xNONE" ; then
13674 OGG_LIBS="-L$prefix/lib"
13677 OGG_LIBS="$OGG_LIBS -logg"
13679 if test "x$ogg_includes" != "x" ; then
13680 OGG_CFLAGS="-I$ogg_includes"
13681 elif test "x$ogg_prefix" != "x" ; then
13682 OGG_CFLAGS="-I$ogg_prefix/include"
13683 elif test "x$prefix" != "xNONE"; then
13684 OGG_CFLAGS="-I$prefix/include"
13687 echo "$as_me:$LINENO: checking for Ogg" >&5
13688 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13692 if test "x$enable_oggtest" = "xyes" ; then
13693 ac_save_CFLAGS="$CFLAGS"
13694 ac_save_LIBS="$LIBS"
13695 CFLAGS="$CFLAGS $OGG_CFLAGS"
13696 LIBS="$LIBS $OGG_LIBS"
13698 if test "$cross_compiling" = yes; then
13699 echo $ac_n "cross compiling; assumed OK... $ac_c"
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13709 #include <stdlib.h>
13710 #include <string.h>
13711 #include <ogg/ogg.h>
13715 system("touch conf.oggtest");
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13734 echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ( exit $ac_status )
13741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13743 CFLAGS="$ac_save_CFLAGS"
13744 LIBS="$ac_save_LIBS"
13747 if test "x$no_ogg" = "x" ; then
13748 echo "$as_me:$LINENO: result: yes" >&5
13749 echo "${ECHO_T}yes" >&6
13752 # Check whether --with-vorbis or --without-vorbis was given.
13753 if test "${with_vorbis+set}" = set; then
13754 withval="$with_vorbis"
13755 vorbis_prefix="$withval"
13760 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13761 if test "${with_vorbis_libraries+set}" = set; then
13762 withval="$with_vorbis_libraries"
13763 vorbis_libraries="$withval"
13765 vorbis_libraries=""
13768 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13769 if test "${with_vorbis_includes+set}" = set; then
13770 withval="$with_vorbis_includes"
13771 vorbis_includes="$withval"
13775 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13776 if test "${enable_vorbistest+set}" = set; then
13777 enableval="$enable_vorbistest"
13780 enable_vorbistest=yes
13783 if test "x$vorbis_libraries" != "x" ; then
13784 VORBIS_LIBS="-L$vorbis_libraries"
13785 elif test "x$vorbis_prefix" != "x" ; then
13786 VORBIS_LIBS="-L$vorbis_prefix/lib"
13787 elif test "x$prefix" != "xNONE"; then
13788 VORBIS_LIBS="-L$prefix/lib"
13791 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13792 VORBISFILE_LIBS="-lvorbisfile"
13793 VORBISENC_LIBS="-lvorbisenc"
13795 if test "x$vorbis_includes" != "x" ; then
13796 VORBIS_CFLAGS="-I$vorbis_includes"
13797 elif test "x$vorbis_prefix" != "x" ; then
13798 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13799 elif test "x$prefix" != "xNONE"; then
13800 VORBIS_CFLAGS="-I$prefix/include"
13804 echo "$as_me:$LINENO: checking for Vorbis" >&5
13805 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13809 if test "x$enable_vorbistest" = "xyes" ; then
13810 ac_save_CFLAGS="$CFLAGS"
13811 ac_save_LIBS="$LIBS"
13812 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13813 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13814 rm -f conf.vorbistest
13815 if test "$cross_compiling" = yes; then
13816 echo $ac_n "cross compiling; assumed OK... $ac_c"
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13826 #include <stdlib.h>
13827 #include <string.h>
13828 #include <vorbis/codec.h>
13832 system("touch conf.vorbistest");
13838 rm -f conftest$ac_exeext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13840 (eval $ac_link) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13851 echo "$as_me: program exited with status $ac_status" >&5
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ( exit $ac_status )
13858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13860 CFLAGS="$ac_save_CFLAGS"
13861 LIBS="$ac_save_LIBS"
13864 if test "x$no_vorbis" = "x" ; then
13865 echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13869 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13870 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13871 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13872 if test "x$CYGNUS" = "xyes"; then
13873 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13874 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13876 if test "x$MINGW" = "xyes"; then
13877 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13878 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13882 echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13884 if test -f conf.vorbistest ; then
13887 echo "*** Could not run Vorbis test program, checking why..."
13888 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13889 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13890 cat >conftest.$ac_ext <<_ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13898 #include <vorbis/codec.h>
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910 (eval $ac_link) 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag"
13918 || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest$ac_exeext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 echo "*** The test program compiled, but did not run. This usually means"
13931 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13932 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13933 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13934 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13935 echo "*** is required on your system"
13937 echo "*** If you have an old version installed, it is best to remove it, although"
13938 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 echo "*** The test program failed to compile or link. See the file config.log for the"
13944 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13945 echo "*** or that you have moved Vorbis since it was installed."
13947 rm -f conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 CFLAGS="$ac_save_CFLAGS"
13950 LIBS="$ac_save_LIBS"
13957 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13958 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13965 rm -f conf.vorbistest
13969 echo "$as_me:$LINENO: result: no" >&5
13970 echo "${ECHO_T}no" >&6
13971 if test -f conf.oggtest ; then
13974 echo "*** Could not run Ogg test program, checking why..."
13975 CFLAGS="$CFLAGS $OGG_CFLAGS"
13976 LIBS="$LIBS $OGG_LIBS"
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13985 #include <ogg/ogg.h>
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13997 (eval $ac_link) 2>conftest.er1
13999 grep -v '^ *+' conftest.er1 >conftest.err
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 echo "*** The test program compiled, but did not run. This usually means"
14018 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14019 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14020 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14021 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14022 echo "*** is required on your system"
14024 echo "*** If you have an old version installed, it is best to remove it, although"
14025 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 echo "*** The test program failed to compile or link. See the file config.log for the"
14031 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14032 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14033 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 CFLAGS="$ac_save_CFLAGS"
14038 LIBS="$ac_save_LIBS"
14043 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14044 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14053 echo "$as_me:$LINENO: result: no" >&5
14054 echo "${ECHO_T}no" >&6
14057 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14058 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14059 if test "x$au_enable_flac" = xyes; then
14060 echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14061 echo "${ECHO_T}yes, configuring flac" >&6
14062 SYSEXTRAS="$SYSEXTRAS flac_a.c"
14064 # Check whether --with-libFLAC or --without-libFLAC was given.
14065 if test "${with_libFLAC+set}" = set; then
14066 withval="$with_libFLAC"
14067 libFLAC_prefix="$withval"
14072 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14073 if test "${with_libFLAC_libraries+set}" = set; then
14074 withval="$with_libFLAC_libraries"
14075 libFLAC_libraries="$withval"
14077 libFLAC_libraries=""
14080 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14081 if test "${with_libFLAC_includes+set}" = set; then
14082 withval="$with_libFLAC_includes"
14083 libFLAC_includes="$withval"
14085 libFLAC_includes=""
14087 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14088 if test "${enable_libFLACtest+set}" = set; then
14089 enableval="$enable_libFLACtest"
14092 enable_libFLACtest=yes
14095 if test "x$libFLAC_libraries" != "x" ; then
14096 LIBFLAC_LIBS="-L$libFLAC_libraries"
14097 elif test "x$libFLAC_prefix" != "x" ; then
14098 LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14099 elif test "x$prefix" != "xNONE" ; then
14100 LIBFLAC_LIBS="-L$prefix/lib"
14103 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14105 if test "x$libFLAC_includes" != "x" ; then
14106 LIBFLAC_CFLAGS="-I$libFLAC_includes"
14107 elif test "x$libFLAC_prefix" != "x" ; then
14108 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14109 elif test "$prefix" != "xNONE"; then
14110 LIBFLAC_CFLAGS="-I$prefix/include"
14113 echo "$as_me:$LINENO: checking for libFLAC" >&5
14114 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14118 if test "x$enable_libFLACtest" = "xyes" ; then
14119 ac_save_CFLAGS="$CFLAGS"
14120 ac_save_CXXFLAGS="$CXXFLAGS"
14121 ac_save_LIBS="$LIBS"
14122 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14123 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14124 LIBS="$LIBS $LIBFLAC_LIBS"
14125 rm -f conf.libFLACtest
14126 if test "$cross_compiling" = yes; then
14127 echo $ac_n "cross compiling; assumed OK... $ac_c"
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14137 #include <stdlib.h>
14138 #include <string.h>
14139 #include <FLAC/format.h>
14143 system("touch conf.libFLACtest");
14149 rm -f conftest$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151 (eval $ac_link) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14162 echo "$as_me: program exited with status $ac_status" >&5
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ( exit $ac_status )
14169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14171 CFLAGS="$ac_save_CFLAGS"
14172 LIBS="$ac_save_LIBS"
14175 if test "x$no_libFLAC" = "x" ; then
14176 echo "$as_me:$LINENO: result: yes" >&5
14177 echo "${ECHO_T}yes" >&6
14179 EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14180 for f in $LIBFLAC_CFLAGS; do
14182 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14183 *) CFLAGS="$CPPFLAGS $f" ;;
14187 LIBS="$LIBS $LIBFLAC_LIBS"
14190 echo "$as_me:$LINENO: result: no" >&5
14191 echo "${ECHO_T}no" >&6
14192 if test -f conf.libFLACtest ; then
14195 echo "*** Could not run libFLAC test program, checking why..."
14196 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14197 LIBS="$LIBS $LIBFLAC_LIBS"
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14206 #include <FLAC/format.h>
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 echo "*** The test program compiled, but did not run. This usually means"
14239 echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14240 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14241 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14242 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14243 echo "*** is required on your system"
14245 echo "*** If you have an old version installed, it is best to remove it, although"
14246 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 echo "*** The test program failed to compile or link. See the file config.log for the"
14252 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14253 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14254 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14256 rm -f conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 CFLAGS="$ac_save_CFLAGS"
14259 LIBS="$ac_save_LIBS"
14267 rm -f conf.libFLACtest
14270 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14271 if test "${with_libOggFLAC+set}" = set; then
14272 withval="$with_libOggFLAC"
14273 libOggFLAC_prefix="$withval"
14275 libOggFLAC_prefix=""
14278 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14279 if test "${with_libOggFLAC_libraries+set}" = set; then
14280 withval="$with_libOggFLAC_libraries"
14281 libOggFLAC_libraries="$withval"
14283 libOggFLAC_libraries=""
14286 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14287 if test "${with_libOggFLAC_includes+set}" = set; then
14288 withval="$with_libOggFLAC_includes"
14289 libOggFLAC_includes="$withval"
14291 libOggFLAC_includes=""
14293 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14294 if test "${enable_libOggFLACtest+set}" = set; then
14295 enableval="$enable_libOggFLACtest"
14298 enable_libOggFLACtest=yes
14301 if test "x$libOggFLAC_libraries" != "x" ; then
14302 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14303 elif test "x$libOggFLAC_prefix" != "x" ; then
14304 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14305 elif test "x$prefix" != "xNONE" ; then
14306 LIBOGGFLAC_LIBS="-L$prefix/lib"
14309 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14311 if test "x$libOggFLAC_includes" != "x" ; then
14312 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14313 elif test "x$libOggFLAC_prefix" != "x" ; then
14314 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14315 elif test "$prefix" != "xNONE"; then
14316 LIBOGGFLAC_CFLAGS="-I$prefix/include"
14319 echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14320 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14324 if test "x$enable_libOggFLACtest" = "xyes" ; then
14325 ac_save_CFLAGS="$CFLAGS"
14326 ac_save_CXXFLAGS="$CXXFLAGS"
14327 ac_save_LIBS="$LIBS"
14328 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14329 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14330 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14331 rm -f conf.libOggFLACtest
14332 if test "$cross_compiling" = yes; then
14333 echo $ac_n "cross compiling; assumed OK... $ac_c"
14335 cat >conftest.$ac_ext <<_ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14343 #include <stdlib.h>
14344 #include <string.h>
14345 #include <OggFLAC/stream_decoder.h>
14349 system("touch conf.libOggFLACtest");
14355 rm -f conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14368 echo "$as_me: program exited with status $ac_status" >&5
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ( exit $ac_status )
14375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14377 CFLAGS="$ac_save_CFLAGS"
14378 LIBS="$ac_save_LIBS"
14381 if test "x$no_libOggFLAC" = "x" ; then
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14385 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14386 for f in $LIBOGGFLAC_CFLAGS; do
14388 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14389 *) CFLAGS="$CPPFLAGS $f" ;;
14393 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14396 echo "$as_me:$LINENO: result: no" >&5
14397 echo "${ECHO_T}no" >&6
14398 if test -f conf.libOggFLACtest ; then
14401 echo "*** Could not run libOggFLAC test program, checking why..."
14402 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14403 LIBS="$LIBS $LIBOGGFLAC_LIBS"
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14412 #include <OggFLAC/stream_decoder.h>
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 echo "*** The test program compiled, but did not run. This usually means"
14445 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14446 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14447 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14448 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14449 echo "*** is required on your system"
14451 echo "*** If you have an old version installed, it is best to remove it, although"
14452 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 echo "*** The test program failed to compile or link. See the file config.log for the"
14458 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14459 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14460 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14462 rm -f conftest.err conftest.$ac_objext \
14463 conftest$ac_exeext conftest.$ac_ext
14464 CFLAGS="$ac_save_CFLAGS"
14465 LIBS="$ac_save_LIBS"
14467 LIBOGGFLAC_CFLAGS=""
14473 rm -f conf.libOggFLACtest
14476 echo "$as_me:$LINENO: result: no" >&5
14477 echo "${ECHO_T}no" >&6
14480 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14481 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14482 if test "x$au_enable_speex" = xyes; then
14483 if test "${have_speex+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 cat >conftest.$ac_ext <<_ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14494 #include <ogg/ogg.h>
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest$ac_exeext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14535 rm -f conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14539 echo "$as_me:$LINENO: result: $have_speex" >&5
14540 echo "${ECHO_T}$have_speex" >&6
14541 if test "x$have_speex" = xyes; then
14542 SYSEXTRAS="$SYSEXTRAS speex_a.c"
14543 EXTRALIBS="$EXTRALIBS -lspeex -logg"
14544 EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14547 echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6
14551 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14552 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14553 if test "x$au_enable_gogo" = xyes; then
14554 if test "x$CYGNUS" = "xyes"; then
14555 echo "$as_me:$LINENO: result: yes" >&5
14556 echo "${ECHO_T}yes" >&6
14558 if test "x$MINGW" = "xyes"; then
14559 echo "$as_me:$LINENO: result: yes" >&5
14560 echo "${ECHO_T}yes" >&6
14562 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
14563 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
14567 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14568 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14569 EXTRALIBS="$EXTRALIBS -lgogo"
14571 echo "$as_me:$LINENO: result: no" >&5
14572 echo "${ECHO_T}no" >&6
14575 if test "x$au_enable_none" = xyes; then
14576 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14577 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14579 echo "$as_me:$LINENO: checking default output mode" >&5
14580 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14581 if test "x$DEFAULT_PLAYMODE" = x; then
14582 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14584 case ".$DEFAULT_PLAYMODE" in
14585 .default) TIMIDITY_OUTPUT_ID=d ;;
14586 .oss) TIMIDITY_OUTPUT_ID=d ;;
14587 .alsa) TIMIDITY_OUTPUT_ID=s ;;
14588 .sun) TIMIDITY_OUTPUT_ID=d ;;
14589 .hpux) TIMIDITY_OUTPUT_ID=d ;;
14590 .irix) TIMIDITY_OUTPUT_ID=d ;;
14591 .mme) TIMIDITY_OUTPUT_ID=d ;;
14592 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
14593 .darwin) TIMIDITY_OUTPUT_ID=d ;;
14594 .w32) TIMIDITY_OUTPUT_ID=d ;;
14595 .alib) TIMIDITY_OUTPUT_ID=A ;;
14596 .nas) TIMIDITY_OUTPUT_ID=n ;;
14597 .arts) TIMIDITY_OUTPUT_ID=R ;;
14598 .esd) TIMIDITY_OUTPUT_ID=e ;;
14599 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
14600 .wav) TIMIDITY_OUTPUT_ID=w ;;
14601 .au) TIMIDITY_OUTPUT_ID=u ;;
14602 .aiff) TIMIDITY_OUTPUT_ID=a ;;
14603 .list) TIMIDITY_OUTPUT_ID=l ;;
14604 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
14605 .flac) TIMIDITY_OUTPUT_ID=F ;;
14606 .speex) TIMIDITY_OUTPUT_ID=S ;;
14607 .gogo) TIMIDITY_OUTPUT_ID=g ;;
14608 .jack) TIMIDITY_OUTPUT_ID=j ;;
14609 *) TIMIDITY_OUTPUT_ID= ;;
14611 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14612 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14615 # Interface Section
14618 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14620 # Check whether --enable-interface or --disable-interface was given.
14621 if test "${enable_interface+set}" = set; then
14622 enableval="$enable_interface"
14623 for i in `echo $enableval | sed 's/,/ /g'`; do
14624 eval "enable_$i=yes"
14628 # Dynamic link configuration
14629 # Check whether --enable-dynamic or --disable-dynamic was given.
14630 if test "${enable_dynamic+set}" = set; then
14631 enableval="$enable_dynamic"
14632 if test "x$enable_dynamic" = xyes; then
14633 enable_dynamic=dynamic
14634 elif test "x$enable_dynamic" != xno; then
14635 for i in `echo $enableval | sed 's/,/ /g'`; do
14636 eval "enable_$i=dynamic"
14642 for i in $interface_targets; do
14643 eval "join_targets=$join_targets\$enable_$i"
14646 case ".$join_targets" in
14647 .*dynamic*) NEEDDLOPEN=yes;;
14651 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14652 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14654 if test "$NEEDDLOPEN" = "yes"; then
14657 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14658 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14659 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <windows.h>
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14681 (eval $ac_link) 2>conftest.er1
14683 grep -v '^ *+' conftest.er1 >conftest.err
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -z "$ac_c_werror_flag"
14689 || test ! -s conftest.err'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 wapi_cv_func_LoadLibrary=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 wapi_cv_func_LoadLibrary=no
14708 rm -f conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext conftest.$ac_ext
14712 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14713 echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6
14717 echo "$as_me:$LINENO: result: no" >&5
14718 echo "${ECHO_T}no" >&6
14721 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14723 if test "$have_dl" = "no"; then
14724 echo "$as_me:$LINENO: checking for shl_load" >&5
14725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14726 if test "${ac_cv_func_shl_load+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14737 #define shl_load innocuous_shl_load
14739 /* System header to define __stub macros and hopefully few prototypes,
14740 which can conflict with char shl_load (); below.
14741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14742 <limits.h> exists even on freestanding compilers. */
14745 # include <limits.h>
14747 # include <assert.h>
14752 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14760 /* The GNU C library defines this for functions which it implements
14761 to always fail with ENOSYS. Some functions are actually named
14762 something starting with __ and the normal name is an alias. */
14763 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14766 char (*f) () = shl_load;
14775 return f != shl_load;
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782 (eval $ac_link) 2>conftest.er1
14784 grep -v '^ *+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -z "$ac_c_werror_flag"
14790 || test ! -s conftest.err'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest$ac_exeext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 ac_cv_func_shl_load=yes
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_cv_func_shl_load=no
14809 rm -f conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14813 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14814 if test $ac_cv_func_shl_load = yes; then
14819 if test "$have_dl" = "no"; then
14820 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14821 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14822 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14833 #define NSLinkModule innocuous_NSLinkModule
14835 /* System header to define __stub macros and hopefully few prototypes,
14836 which can conflict with char NSLinkModule (); below.
14837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14838 <limits.h> exists even on freestanding compilers. */
14841 # include <limits.h>
14843 # include <assert.h>
14846 #undef NSLinkModule
14848 /* Override any gcc2 internal prototype to avoid an error. */
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char NSLinkModule ();
14856 /* The GNU C library defines this for functions which it implements
14857 to always fail with ENOSYS. Some functions are actually named
14858 something starting with __ and the normal name is an alias. */
14859 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14862 char (*f) () = NSLinkModule;
14871 return f != NSLinkModule;
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag"
14886 || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_cv_func_NSLinkModule=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_cv_func_NSLinkModule=no
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14909 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14910 if test $ac_cv_func_NSLinkModule = yes; then
14915 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14918 if test "$have_dl" = "no"; then
14919 echo "$as_me:$LINENO: checking for dlopen" >&5
14920 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14921 if test "${ac_cv_func_dlopen+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14932 #define dlopen innocuous_dlopen
14934 /* System header to define __stub macros and hopefully few prototypes,
14935 which can conflict with char dlopen (); below.
14936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14937 <limits.h> exists even on freestanding compilers. */
14940 # include <limits.h>
14942 # include <assert.h>
14947 /* Override any gcc2 internal prototype to avoid an error. */
14952 /* We use char because int might match the return type of a gcc2
14953 builtin and then its argument prototype would still apply. */
14955 /* The GNU C library defines this for functions which it implements
14956 to always fail with ENOSYS. Some functions are actually named
14957 something starting with __ and the normal name is an alias. */
14958 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14961 char (*f) () = dlopen;
14970 return f != dlopen;
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_func_dlopen=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_func_dlopen=no
15004 rm -f conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15007 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15008 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15009 if test $ac_cv_func_dlopen = yes; then
15014 if test "$have_dl" = "no"; then
15015 echo "$as_me:$LINENO: checking for dld_init" >&5
15016 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15017 if test "${ac_cv_func_dld_init+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15028 #define dld_init innocuous_dld_init
15030 /* System header to define __stub macros and hopefully few prototypes,
15031 which can conflict with char dld_init (); below.
15032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15033 <limits.h> exists even on freestanding compilers. */
15036 # include <limits.h>
15038 # include <assert.h>
15043 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15051 /* The GNU C library defines this for functions which it implements
15052 to always fail with ENOSYS. Some functions are actually named
15053 something starting with __ and the normal name is an alias. */
15054 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15057 char (*f) () = dld_init;
15066 return f != dld_init;
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_func_dld_init=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_cv_func_dld_init=no
15100 rm -f conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15104 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15105 if test $ac_cv_func_dld_init = yes; then
15110 if test "$have_dl" = "no"; then
15111 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15112 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15113 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 ac_check_lib_save_LIBS=$LIBS
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 /* Override any gcc2 internal prototype to avoid an error. */
15129 /* We use char because int might match the return type of a gcc2
15130 builtin and then its argument prototype would still apply. */
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag"
15150 || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest$ac_exeext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_cv_lib_dld_dld_init=yes
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_cv_lib_dld_dld_init=no
15169 rm -f conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15174 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15175 if test $ac_cv_lib_dld_dld_init = yes; then
15176 have_dl=dld;lib_dl_opt=-ldld
15181 echo "$as_me:$LINENO: checking dynamic link method" >&5
15182 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15185 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15186 echo "${ECHO_T}use dl_dlopen.c" >&6
15187 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15188 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15189 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15190 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 case "$ac_cv_header_dlfcn_h" in
15194 yes) i_dlfcn=define;;
15205 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
15207 #include <sys/types.h>
15212 extern int fred() ;
15221 int mode = RTLD_LAZY ;
15223 handle = dlopen("./dyna.$so", mode) ;
15224 if (handle == NULL) {
15229 symbol = dlsym(handle, "fred") ;
15230 if (symbol == NULL) {
15231 /* try putting a leading underscore */
15232 symbol = dlsym(handle, "_fred") ;
15233 if (symbol == NULL) {
15246 : Call the object file tmp-dyna.o in case dlext=o.
15247 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15248 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15249 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15250 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15253 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
15254 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
15256 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
15257 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
15259 3) timidity_cv_func_dlsym_underscore=yes
15261 4) timidity_cv_func_dlsym_underscore=no
15265 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15266 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15268 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15272 case "x$timidity_cv_func_dlsym_underscore" in
15274 cat >>confdefs.h <<\_ACEOF
15275 #define DLSYM_NEEDS_UNDERSCORE 1
15278 echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6
15282 echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6
15289 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15290 echo "${ECHO_T}use dl_dld.c" >&6
15291 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15294 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15295 echo "${ECHO_T}use dl_hpux.c" >&6
15296 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15297 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15300 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15301 echo "${ECHO_T}use dl_w32.c" >&6
15302 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15305 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15306 echo "${ECHO_T}use dl_dyld.c" >&6
15307 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15311 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15312 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15317 if test "$NEEDDLOPEN" = "yes"; then
15318 cat >> confdefs.h <<EOF
15319 #define IA_DYNAMIC 1
15323 cat >>confdefs.h <<_ACEOF
15324 #define SHARED_LIB_EXT ".$so"
15327 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
15332 if test "$NEEDDLOPEN" = "yes"; then
15334 NEEDDLOPEN_FALSE='#'
15336 NEEDDLOPEN_TRUE='#'
15345 ENABLE_NCURSES_TRUE=
15346 ENABLE_NCURSES_FALSE='#'
15348 ENABLE_NCURSES_TRUE='#'
15349 ENABLE_NCURSES_FALSE=
15352 # Check whether --enable-ncurses or --disable-ncurses was given.
15353 if test "${enable_ncurses+set}" = set; then
15354 enableval="$enable_ncurses"
15355 case "x$enable_ncurses" in xyes|xdynamic)
15358 for ac_header in ncurses.h ncurses/curses.h curses.h
15360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15362 echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15370 # Is the header compilable?
15371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 $ac_includes_default
15380 #include <$ac_header>
15382 rm -f conftest.$ac_objext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384 (eval $ac_compile) 2>conftest.er1
15386 grep -v '^ *+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_header_compiler=yes
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_header_compiler=no
15411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6
15415 # Is the header present?
15416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <$ac_header>
15426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15443 if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_preproc=no
15451 rm -f conftest.err conftest.$ac_ext
15452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15453 echo "${ECHO_T}$ac_header_preproc" >&6
15455 # So? What about this header?
15456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15462 ac_header_preproc=yes
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479 ## ------------------------------- ##
15480 ## Report this to root@mput.dip.jp ##
15481 ## ------------------------------- ##
15484 sed "s/^/$as_me: WARNING: /" >&2
15487 echo "$as_me:$LINENO: checking for $ac_header" >&5
15488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 eval "$as_ac_Header=\$ac_header_preproc"
15494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15511 *) for i in /usr/include /usr/local/include; do
15512 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15513 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
15514 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
15515 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15522 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15523 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15524 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lncurses $LIBS"
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15536 /* Override any gcc2 internal prototype to avoid an error. */
15540 /* We use char because int might match the return type of a gcc2
15541 builtin and then its argument prototype would still apply. */
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15553 (eval $ac_link) 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest$ac_exeext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_cv_lib_ncurses_initscr=yes
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ac_cv_lib_ncurses_initscr=no
15580 rm -f conftest.err conftest.$ac_objext \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15584 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15585 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15586 if test $ac_cv_lib_ncurses_initscr = yes; then
15587 lib_curses_opt=-lncurses
15589 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15590 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15591 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-lcurses $lib_user32_test $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 /* Override any gcc2 internal prototype to avoid an error. */
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char PDC_set_ctrl_break ();
15613 PDC_set_ctrl_break ();
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620 (eval $ac_link) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag"
15628 || test ! -s conftest.err'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest$ac_exeext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_cv_lib_curses_PDC_set_ctrl_break=yes
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_cv_lib_curses_PDC_set_ctrl_break=no
15647 rm -f conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15649 LIBS=$ac_check_lib_save_LIBS
15651 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15652 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15653 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15654 lib_curses_opt=-lcurses
15656 cat >>confdefs.h <<\_ACEOF
15657 #define USE_PDCURSES 1
15660 lib_user32_opt="$lib_user32_test"
15663 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15664 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15665 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 ac_check_lib_save_LIBS=$LIBS
15669 LIBS="-lpdcurses $LIBS"
15670 cat >conftest.$ac_ext <<_ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15677 /* Override any gcc2 internal prototype to avoid an error. */
15681 /* We use char because int might match the return type of a gcc2
15682 builtin and then its argument prototype would still apply. */
15683 char PDC_set_ctrl_break ();
15687 PDC_set_ctrl_break ();
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15721 rm -f conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS
15725 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15726 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15727 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15728 lib_curses_opt=-lpdcurses
15730 cat >>confdefs.h <<\_ACEOF
15731 #define USE_PDCURSES 1
15734 lib_user32_opt="$lib_user32_test"
15739 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15740 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15741 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 ac_check_lib_save_LIBS=$LIBS
15745 LIBS="-lcurses $LIBS"
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15753 /* Override any gcc2 internal prototype to avoid an error. */
15757 /* We use char because int might match the return type of a gcc2
15758 builtin and then its argument prototype would still apply. */
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770 (eval $ac_link) 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest$ac_exeext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_cv_lib_curses_initscr=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_cv_lib_curses_initscr=no
15797 rm -f conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15801 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15802 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15803 if test $ac_cv_lib_curses_initscr = yes; then
15804 lib_curses_opt=-lcurses
15806 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15807 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15814 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15829 case "x$enable_ncurses" in
15831 cat >> confdefs.h <<EOF
15832 #define IA_NCURSES 1
15838 ENABLE_NCURSES_TRUE=
15839 ENABLE_NCURSES_FALSE='#'
15841 ENABLE_NCURSES_TRUE='#'
15842 ENABLE_NCURSES_FALSE=
15845 LIBS="$LIBS $lib_curses_opt"
15848 EXTRALIBS="$EXTRALIBS -lmytinfo"
15851 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15855 dynamic_targets="$dynamic_targets interface_n.\$(so)"
15856 n_so_libs="$lib_curses_opt"
15859 EXTRALIBS="$EXTRALIBS -lmytinfo"
15874 ENABLE_SLANG_FALSE='#'
15876 ENABLE_SLANG_TRUE='#'
15877 ENABLE_SLANG_FALSE=
15880 # Check whether --enable-slang or --disable-slang was given.
15881 if test "${enable_slang+set}" = set; then
15882 enableval="$enable_slang"
15883 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15884 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15885 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-lslang $LIBS"
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15897 /* Override any gcc2 internal prototype to avoid an error. */
15901 /* We use char because int might match the return type of a gcc2
15902 builtin and then its argument prototype would still apply. */
15903 char SLang_init_tty ();
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914 (eval $ac_link) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest$ac_exeext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_lib_slang_SLang_init_tty=yes
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_lib_slang_SLang_init_tty=no
15941 rm -f conftest.err conftest.$ac_objext \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15945 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15946 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15947 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15951 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15952 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15958 for ac_header in slang/slang.h slang.h
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15970 # Is the header compilable?
15971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 $ac_includes_default
15980 #include <$ac_header>
15982 rm -f conftest.$ac_objext
15983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15984 (eval $ac_compile) 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag"
15992 || test ! -s conftest.err'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; } &&
15998 { ac_try='test -s conftest.$ac_objext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_header_compiler=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_header_compiler=no
16011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16013 echo "${ECHO_T}$ac_header_compiler" >&6
16015 # Is the header present?
16016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <$ac_header>
16026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } >/dev/null; then
16034 if test -s conftest.err; then
16035 ac_cpp_err=$ac_c_preproc_warn_flag
16036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16043 if test -z "$ac_cpp_err"; then
16044 ac_header_preproc=yes
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 ac_header_preproc=no
16051 rm -f conftest.err conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16062 ac_header_preproc=yes
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16079 ## ------------------------------- ##
16080 ## Report this to root@mput.dip.jp ##
16081 ## ------------------------------- ##
16084 sed "s/^/$as_me: WARNING: /" >&2
16087 echo "$as_me:$LINENO: checking for $ac_header" >&5
16088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 eval "$as_ac_Header=\$ac_header_preproc"
16094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16109 case "x$enable_slang" in
16111 cat >> confdefs.h <<EOF
16119 ENABLE_SLANG_FALSE='#'
16121 ENABLE_SLANG_TRUE='#'
16122 ENABLE_SLANG_FALSE=
16125 LIBS="$LIBS -lslang"
16126 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16130 dynamic_targets="$dynamic_targets interface_s.\$(so)"
16131 s_so_libs="-lslang"
16132 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16133 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16134 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 ac_check_lib_save_LIBS=$LIBS
16138 LIBS="-ltermcap $LIBS"
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16146 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163 (eval $ac_link) 2>conftest.er1
16165 grep -v '^ *+' conftest.er1 >conftest.err
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -z "$ac_c_werror_flag"
16171 || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_lib_termcap_initscr=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 ac_cv_lib_termcap_initscr=no
16190 rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16195 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16196 if test $ac_cv_lib_termcap_initscr = yes; then
16197 s_so_libs="$s_so_libs -ltermcap"
16213 ENABLE_MOTIF_FALSE='#'
16215 ENABLE_MOTIF_TRUE='#'
16216 ENABLE_MOTIF_FALSE=
16219 # Check whether --enable-motif or --disable-motif was given.
16220 if test "${enable_motif+set}" = set; then
16221 enableval="$enable_motif"
16222 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
16223 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16224 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16225 { (exit 1); exit 1; }; }
16227 if test "x$have_xm" != xyes; then
16228 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16229 echo "$as_me: WARNING: Motif library is not found." >&2;}
16234 case "x$enable_motif" in
16236 cat >> confdefs.h <<EOF
16244 ENABLE_MOTIF_FALSE='#'
16246 ENABLE_MOTIF_TRUE='#'
16247 ENABLE_MOTIF_FALSE=
16252 lib_xext_opt=-lXext
16253 if test "x$have_xprelibs" = xyes; then
16254 lib_xprelibs_opt='-lSM -lICE'
16256 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16260 dynamic_targets="$dynamic_targets interface_m.\$(so)"
16261 if test x$have_xprelibs = xyes; then
16262 m_so_libs="-lXext -lSM -lICE"
16264 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16278 ENABLE_TCLTK_FALSE='#'
16280 ENABLE_TCLTK_TRUE='#'
16281 ENABLE_TCLTK_FALSE=
16284 # Check whether --enable-tcltk or --disable-tcltk was given.
16285 if test "${enable_tcltk+set}" = set; then
16286 enableval="$enable_tcltk"
16287 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
16288 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16289 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16290 { (exit 1); exit 1; }; }
16293 KEEPCPPFLAGS=$CPPFLAGS
16294 KEEPLDFLAGS=$LDFLAGS
16297 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16298 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16299 LIBS="$LIBS $lib_dl_opt"
16303 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16304 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16305 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16306 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16307 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 ac_check_lib_save_LIBS=$LIBS
16312 cat >conftest.$ac_ext <<_ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16319 /* Override any gcc2 internal prototype to avoid an error. */
16323 /* We use char because int might match the return type of a gcc2
16324 builtin and then its argument prototype would still apply. */
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336 (eval $ac_link) 2>conftest.er1
16338 grep -v '^ *+' conftest.er1 >conftest.err
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -z "$ac_c_werror_flag"
16344 || test ! -s conftest.err'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest$ac_exeext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 eval "$as_ac_Lib=yes"
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 eval "$as_ac_Lib=no"
16363 rm -f conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16368 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16369 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16374 LIBS="$LIBS $tcl_lib"
16375 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16376 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16377 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16378 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16379 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 ac_check_lib_save_LIBS=$LIBS
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16391 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408 (eval $ac_link) 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest$ac_exeext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 eval "$as_ac_Lib=yes"
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 eval "$as_ac_Lib=no"
16435 rm -f conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16437 LIBS=$ac_check_lib_save_LIBS
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16441 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16448 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16449 CPPFLAGS=$KEEPCPPFLAGS
16450 LDFLAGS=$KEEPLDFLAGS
16452 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16453 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16455 tcltk_dep='tclIndex'
16459 case "x$enable_tcltk" in
16461 cat >> confdefs.h <<EOF
16469 ENABLE_TCLTK_FALSE='#'
16471 ENABLE_TCLTK_TRUE='#'
16472 ENABLE_TCLTK_FALSE=
16475 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16478 EXTRALIBS="$EXTRALIBS -lipc"
16481 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16485 dynamic_targets="$dynamic_targets interface_k.\$(so)"
16486 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16489 k_so_libs="$k_so_libs -lipc"
16492 k_so_libs="$k_so_libs -lX11 -lm"
16503 if test "x$enable_tcltk" = "xdynamic"; then
16504 ENABLE_DYNAMIC_TCLTK_TRUE=
16505 ENABLE_DYNAMIC_TCLTK_FALSE='#'
16507 ENABLE_DYNAMIC_TCLTK_TRUE='#'
16508 ENABLE_DYNAMIC_TCLTK_FALSE=
16516 ENABLE_EMACS_FALSE='#'
16518 ENABLE_EMACS_TRUE='#'
16519 ENABLE_EMACS_FALSE=
16522 # Check whether --enable-emacs or --disable-emacs was given.
16523 if test "${enable_emacs+set}" = set; then
16524 enableval="$enable_emacs"
16525 case "x$enable_emacs" in xyes|xdynamic) ;; esac
16527 case "x$enable_emacs" in
16529 cat >> confdefs.h <<EOF
16537 ENABLE_EMACS_FALSE='#'
16539 ENABLE_EMACS_TRUE='#'
16540 ENABLE_EMACS_FALSE=
16543 ELFILES="$ELFILES timidity.el"
16544 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16548 dynamic_targets="$dynamic_targets interface_e.\$(so)"
16549 ELFILES="$ELFILES timidity.el"
16562 ENABLE_VT100_FALSE='#'
16564 ENABLE_VT100_TRUE='#'
16565 ENABLE_VT100_FALSE=
16568 # Check whether --enable-vt100 or --disable-vt100 was given.
16569 if test "${enable_vt100+set}" = set; then
16570 enableval="$enable_vt100"
16571 case "x$enable_vt100" in xyes|xdynamic) ;; esac
16573 case "x$enable_vt100" in
16575 cat >> confdefs.h <<EOF
16583 ENABLE_VT100_FALSE='#'
16585 ENABLE_VT100_TRUE='#'
16586 ENABLE_VT100_FALSE=
16589 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16592 dynamic_targets="$dynamic_targets interface_T.\$(so)"
16606 ENABLE_XAW_FALSE='#'
16608 ENABLE_XAW_TRUE='#'
16612 # Check whether --enable-xaw or --disable-xaw was given.
16613 if test "${enable_xaw+set}" = set; then
16614 enableval="$enable_xaw"
16615 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
16616 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16617 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16618 { (exit 1); exit 1; }; }
16620 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16621 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16622 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16626 case "x$enable_xaw" in
16628 cat >> confdefs.h <<EOF
16636 ENABLE_XAW_FALSE='#'
16638 ENABLE_XAW_TRUE='#'
16642 if test "x$have_xext" = xyes; then
16643 lib_xext_opt=-lXext
16645 if test "x$have_xprelibs" = xyes; then
16646 lib_xprelibs_opt='-lSM -lICE'
16650 if test "x$have_xaw" = x3d; then
16652 cat >>confdefs.h <<\_ACEOF
16656 lib_xaw_opt=-lXaw3d
16660 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16664 dynamic_targets="$dynamic_targets interface_a.\$(so)"
16665 if test "x$have_xext" = xyes; then
16666 a_so_libs="-lXext -lX11"
16672 a_so_libs="$a_so_libs -lcc_dynamic"
16675 if test "x$have_xprelibs" = xyes; then
16676 a_so_libs="-lSM -lICE $a_so_libs"
16678 if test "x$have_xaw" = xyes; then
16679 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16680 elif test "x$have_xaw" = x3d; then
16682 cat >>confdefs.h <<\_ACEOF
16686 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16688 a_so_libs="$ldflags_x_opt $a_so_libs"
16699 if test "x$enable_xaw" = "xdynamic"; then
16700 ENABLE_DYNAMIC_XAW_TRUE=
16701 ENABLE_DYNAMIC_XAW_FALSE='#'
16703 ENABLE_DYNAMIC_XAW_TRUE='#'
16704 ENABLE_DYNAMIC_XAW_FALSE=
16712 ENABLE_XSKIN_FALSE='#'
16714 ENABLE_XSKIN_TRUE='#'
16715 ENABLE_XSKIN_FALSE=
16718 # Check whether --enable-xskin or --disable-xskin was given.
16719 if test "${enable_xskin+set}" = set; then
16720 enableval="$enable_xskin"
16721 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
16722 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16723 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16724 { (exit 1); exit 1; }; }
16728 case "x$enable_xskin" in
16730 cat >> confdefs.h <<EOF
16738 ENABLE_XSKIN_FALSE='#'
16740 ENABLE_XSKIN_TRUE='#'
16741 ENABLE_XSKIN_FALSE=
16744 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16747 dynamic_targets="$dynamic_targets interface_i.\$(so)"
16748 i_so_libs="$ldflags_x_opt -lX11"
16761 ENABLE_GTK_FALSE='#'
16763 ENABLE_GTK_TRUE='#'
16767 # Check whether --enable-gtk or --disable-gtk was given.
16768 if test "${enable_gtk+set}" = set; then
16769 enableval="$enable_gtk"
16770 case "x$enable_gtk" in xyes|xdynamic)
16771 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16772 if test "${with_gtk_prefix+set}" = set; then
16773 withval="$with_gtk_prefix"
16774 gtk_config_prefix="$withval"
16776 gtk_config_prefix=""
16779 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16780 if test "${with_gtk_exec_prefix+set}" = set; then
16781 withval="$with_gtk_exec_prefix"
16782 gtk_config_exec_prefix="$withval"
16784 gtk_config_exec_prefix=""
16786 # Check whether --enable-gtktest or --disable-gtktest was given.
16787 if test "${enable_gtktest+set}" = set; then
16788 enableval="$enable_gtktest"
16798 gtk_config_args="$gtk_config_args gthread"
16803 if test x$gtk_config_exec_prefix != x ; then
16804 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16805 if test x${GTK_CONFIG+set} != xset ; then
16806 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16809 if test x$gtk_config_prefix != x ; then
16810 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16811 if test x${GTK_CONFIG+set} != xset ; then
16812 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16816 # Extract the first word of "gtk-config", so it can be a program name with args.
16817 set dummy gtk-config; ac_word=$2
16818 echo "$as_me:$LINENO: checking for $ac_word" >&5
16819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16820 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 case $GTK_CONFIG in
16825 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 for as_dir in $PATH
16832 test -z "$as_dir" && as_dir=.
16833 for ac_exec_ext in '' $ac_executable_extensions; do
16834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16835 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16842 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16846 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16848 if test -n "$GTK_CONFIG"; then
16849 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16850 echo "${ECHO_T}$GTK_CONFIG" >&6
16852 echo "$as_me:$LINENO: result: no" >&5
16853 echo "${ECHO_T}no" >&6
16856 min_gtk_version=1.1.3
16857 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16858 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16860 if test "$GTK_CONFIG" = "no" ; then
16863 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16864 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16865 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16866 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16867 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16868 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16869 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16870 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16871 if test "x$enable_gtktest" = "xyes" ; then
16872 ac_save_CFLAGS="$CFLAGS"
16873 ac_save_LIBS="$LIBS"
16874 CFLAGS="$CFLAGS $GTK_CFLAGS"
16875 LIBS="$GTK_LIBS $LIBS"
16877 if test "$cross_compiling" = yes; then
16878 echo $ac_n "cross compiling; assumed OK... $ac_c"
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16887 #include <gtk/gtk.h>
16889 #include <stdlib.h>
16894 int major, minor, micro;
16897 system ("touch conf.gtktest");
16899 /* HP/UX 9 (%@#!) writes to sscanf strings */
16900 tmp_version = g_strdup("$min_gtk_version");
16901 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
16902 printf("%s, bad version string\n", "$min_gtk_version");
16906 if ((gtk_major_version != $gtk_config_major_version) ||
16907 (gtk_minor_version != $gtk_config_minor_version) ||
16908 (gtk_micro_version != $gtk_config_micro_version))
16910 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16911 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16912 gtk_major_version, gtk_minor_version, gtk_micro_version);
16913 printf ("*** was found! If gtk-config was correct, then it is best\n");
16914 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16915 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16916 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16917 printf("*** required on your system.\n");
16918 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16919 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16920 printf("*** before re-running configure\n");
16922 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16923 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16924 (gtk_minor_version != GTK_MINOR_VERSION) ||
16925 (gtk_micro_version != GTK_MICRO_VERSION))
16927 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16928 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16929 printf("*** library (version %d.%d.%d)\n",
16930 gtk_major_version, gtk_minor_version, gtk_micro_version);
16932 #endif /* defined (GTK_MAJOR_VERSION) ... */
16935 if ((gtk_major_version > major) ||
16936 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16937 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16943 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16944 gtk_major_version, gtk_minor_version, gtk_micro_version);
16945 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16946 major, minor, micro);
16947 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16949 printf("*** If you have already installed a sufficiently new version, this error\n");
16950 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16951 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16952 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16953 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16954 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16955 printf("*** so that the correct libraries are found at run-time))\n");
16962 rm -f conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16975 echo "$as_me: program exited with status $ac_status" >&5
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ( exit $ac_status )
16982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16984 CFLAGS="$ac_save_CFLAGS"
16985 LIBS="$ac_save_LIBS"
16988 if test "x$no_gtk" = x ; then
16989 echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6
16993 echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6
16995 if test "$GTK_CONFIG" = "no" ; then
16996 echo "*** The gtk-config script installed by GTK could not be found"
16997 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16998 echo "*** your path, or set the GTK_CONFIG environment variable to the"
16999 echo "*** full path to gtk-config."
17001 if test -f conf.gtktest ; then
17004 echo "*** Could not run GTK test program, checking why..."
17005 CFLAGS="$CFLAGS $GTK_CFLAGS"
17006 LIBS="$LIBS $GTK_LIBS"
17007 cat >conftest.$ac_ext <<_ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17014 #include <gtk/gtk.h>
17020 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17027 (eval $ac_link) 2>conftest.er1
17029 grep -v '^ *+' conftest.er1 >conftest.err
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest$ac_exeext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 echo "*** The test program compiled, but did not run. This usually means"
17048 echo "*** that the run-time linker is not finding GTK or finding the wrong"
17049 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17050 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17051 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17052 echo "*** is required on your system"
17054 echo "*** If you have an old version installed, it is best to remove it, although"
17055 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17057 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17058 echo "*** came with the system with the command"
17060 echo "*** rpm --erase --nodeps gtk gtk-devel"
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 echo "*** The test program failed to compile or link. See the file config.log for the"
17066 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17067 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17068 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17070 rm -f conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072 CFLAGS="$ac_save_CFLAGS"
17073 LIBS="$ac_save_LIBS"
17085 case "x$enable_gtk" in
17087 cat >> confdefs.h <<EOF
17095 ENABLE_GTK_FALSE='#'
17097 ENABLE_GTK_TRUE='#'
17101 LIBS="$LIBS $GTK_LIBS"
17102 for f in $GTK_CFLAGS; do
17104 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17105 *) CFLAGS="$CPPFLAGS $f" ;;
17109 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17113 dynamic_targets="$dynamic_targets interface_g.\$(so)"
17114 if test "x$GCC" = xyes; then
17115 for i in $GTK_LIBS; do
17118 *) g_so_libs="$g_so_libs $i" ;;
17122 g_so_libs="$GTK_LIBS"
17124 for f in $GTK_CFLAGS; do
17126 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
17127 *) CFLAGS="$CPPFLAGS $f" ;;
17142 ENABLE_SERVER_TRUE=
17143 ENABLE_SERVER_FALSE='#'
17145 ENABLE_SERVER_TRUE='#'
17146 ENABLE_SERVER_FALSE=
17149 # Check whether --enable-server or --disable-server was given.
17150 if test "${enable_server+set}" = set; then
17151 enableval="$enable_server"
17152 case "x$enable_server" in xyes|xdynamic) ;; esac
17154 case "x$enable_server" in
17156 cat >> confdefs.h <<EOF
17157 #define IA_SERVER 1
17163 ENABLE_SERVER_TRUE=
17164 ENABLE_SERVER_FALSE='#'
17166 ENABLE_SERVER_TRUE='#'
17167 ENABLE_SERVER_FALSE=
17170 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17172 for ac_header in sys/soundcard.h
17174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17176 echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17184 # Is the header compilable?
17185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17194 #include <$ac_header>
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag"
17206 || test ! -s conftest.err'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_header_compiler=yes
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_header_compiler=no
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17227 echo "${ECHO_T}$ac_header_compiler" >&6
17229 # Is the header present?
17230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 #include <$ac_header>
17240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null; then
17248 if test -s conftest.err; then
17249 ac_cpp_err=$ac_c_preproc_warn_flag
17250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17257 if test -z "$ac_cpp_err"; then
17258 ac_header_preproc=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_header_preproc=no
17265 rm -f conftest.err conftest.$ac_ext
17266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17267 echo "${ECHO_T}$ac_header_preproc" >&6
17269 # So? What about this header?
17270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17276 ac_header_preproc=yes
17279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17293 ## ------------------------------- ##
17294 ## Report this to root@mput.dip.jp ##
17295 ## ------------------------------- ##
17298 sed "s/^/$as_me: WARNING: /" >&2
17301 echo "$as_me:$LINENO: checking for $ac_header" >&5
17302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 eval "$as_ac_Header=\$ac_header_preproc"
17308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17324 dynamic_targets="$dynamic_targets interface_r.\$(so)"
17337 ENABLE_ALSASEQ_TRUE=
17338 ENABLE_ALSASEQ_FALSE='#'
17340 ENABLE_ALSASEQ_TRUE='#'
17341 ENABLE_ALSASEQ_FALSE=
17344 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17345 if test "${enable_alsaseq+set}" = set; then
17346 enableval="$enable_alsaseq"
17347 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
17349 case "x$enable_alsaseq" in
17351 cat >> confdefs.h <<EOF
17352 #define IA_ALSASEQ 1
17358 ENABLE_ALSASEQ_TRUE=
17359 ENABLE_ALSASEQ_FALSE='#'
17361 ENABLE_ALSASEQ_TRUE='#'
17362 ENABLE_ALSASEQ_FALSE=
17365 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17366 alsa_save_CFLAGS="$CFLAGS"
17367 alsa_save_LDFLAGS="$LDFLAGS"
17368 alsa_save_LIBS="$LIBS"
17372 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17373 if test "${with_alsa_prefix+set}" = set; then
17374 withval="$with_alsa_prefix"
17375 alsa_prefix="$withval"
17381 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17382 if test "${with_alsa_inc_prefix+set}" = set; then
17383 withval="$with_alsa_inc_prefix"
17384 alsa_inc_prefix="$withval"
17389 # Check whether --enable-alsatest or --disable-alsatest was given.
17390 if test "${enable_alsatest+set}" = set; then
17391 enableval="$enable_alsatest"
17394 enable_alsatest=yes
17397 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17398 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17399 if test "$alsa_inc_prefix" != "" ; then
17400 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17401 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17403 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17404 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17406 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17407 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17408 if test "$alsa_prefix" != "" ; then
17409 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17410 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17413 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17414 LIBS=`echo $LIBS | sed 's/-lm//'`
17415 LIBS=`echo $LIBS | sed 's/-ldl//'`
17416 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17417 LIBS=`echo $LIBS | sed 's/ //'`
17418 LIBS="$ALSA_LIBS $LIBS"
17419 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17420 echo "${ECHO_T}$ALSA_LIBS" >&6
17422 min_alsa_version=0.1.1
17423 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17424 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17426 alsa_min_major_version=`echo $min_alsa_version | \
17427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17428 alsa_min_minor_version=`echo $min_alsa_version | \
17429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17430 alsa_min_micro_version=`echo $min_alsa_version | \
17431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17449 #include <alsa/asoundlib.h>
17455 /* ensure backward compatibility */
17456 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17457 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17459 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17460 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17462 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17463 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17466 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17469 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17470 # error not present
17473 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17476 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17477 # error not present
17480 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17481 # error not present
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17495 grep -v '^ *+' conftest.er1 >conftest.err
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 echo "$as_me:$LINENO: result: found." >&5
17514 echo "${ECHO_T}found." >&6
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17526 #include <sys/asoundlib.h>
17532 /* ensure backward compatibility */
17533 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17534 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17536 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17537 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17539 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17540 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17543 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17546 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17547 # error not present
17550 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17553 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17554 # error not present
17557 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17558 # error not present
17568 rm -f conftest.$ac_objext
17569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17570 (eval $ac_compile) 2>conftest.er1
17572 grep -v '^ *+' conftest.er1 >conftest.err
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag"
17578 || test ! -s conftest.err'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } &&
17584 { ac_try='test -s conftest.$ac_objext'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 echo "$as_me:$LINENO: result: found." >&5
17591 echo "${ECHO_T}found." >&6
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 echo "$as_me:$LINENO: result: not present." >&5
17597 echo "${ECHO_T}not present." >&6
17598 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17599 echo "${ECHO_T}libasound was not found anywhere." >&6
17602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17603 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17604 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 ac_cpp='$CPP $CPPFLAGS'
17610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17616 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17617 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17618 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-lasound $LIBS"
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17630 /* Override any gcc2 internal prototype to avoid an error. */
17634 /* We use char because int might match the return type of a gcc2
17635 builtin and then its argument prototype would still apply. */
17636 char snd_ctl_open ();
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17649 grep -v '^ *+' conftest.er1 >conftest.err
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17667 ac_cv_lib_asound_snd_ctl_open=yes
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ac_cv_lib_asound_snd_ctl_open=no
17674 rm -f conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17679 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17680 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define HAVE_LIBASOUND 1
17685 LIBS="-lasound $LIBS"
17688 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17689 echo "${ECHO_T}No linkable libasound was found." >&6
17695 if test "x$alsa_found" = "xyes" ; then
17697 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17698 LIBS=`echo $LIBS | sed 's/ //'`
17699 LIBS="-lasound $LIBS"
17702 CFLAGS="$alsa_save_CFLAGS"
17703 LDFLAGS="$alsa_save_LDFLAGS"
17704 LIBS="$alsa_save_LIBS"
17715 dynamic_targets="$dynamic_targets interface_A.\$(so)"
17728 ENABLE_WINSYN_TRUE=
17729 ENABLE_WINSYN_FALSE='#'
17731 ENABLE_WINSYN_TRUE='#'
17732 ENABLE_WINSYN_FALSE=
17735 # Check whether --enable-winsyn or --disable-winsyn was given.
17736 if test "${enable_winsyn+set}" = set; then
17737 enableval="$enable_winsyn"
17738 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
17740 case "x$enable_winsyn" in
17742 cat >> confdefs.h <<EOF
17743 #define IA_WINSYN 1
17749 ENABLE_WINSYN_TRUE=
17750 ENABLE_WINSYN_FALSE='#'
17752 ENABLE_WINSYN_TRUE='#'
17753 ENABLE_WINSYN_FALSE=
17756 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17759 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17772 ENABLE_PORTMIDISYN_TRUE=
17773 ENABLE_PORTMIDISYN_FALSE='#'
17775 ENABLE_PORTMIDISYN_TRUE='#'
17776 ENABLE_PORTMIDISYN_FALSE=
17779 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17780 if test "${enable_portmidisyn+set}" = set; then
17781 enableval="$enable_portmidisyn"
17782 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
17784 case "x$enable_portmidisyn" in
17786 cat >> confdefs.h <<EOF
17787 #define IA_PORTMIDISYN 1
17793 ENABLE_PORTMIDISYN_TRUE=
17794 ENABLE_PORTMIDISYN_FALSE='#'
17796 ENABLE_PORTMIDISYN_TRUE='#'
17797 ENABLE_PORTMIDISYN_FALSE=
17800 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17803 dynamic_targets="$dynamic_targets interface_P.\$(so)"
17816 ENABLE_W32G_SYN_TRUE=
17817 ENABLE_W32G_SYN_FALSE='#'
17819 ENABLE_W32G_SYN_TRUE='#'
17820 ENABLE_W32G_SYN_FALSE=
17823 # Check whether --enable-winsyng or --disable-winsyng was given.
17824 if test "${enable_winsyng+set}" = set; then
17825 enableval="$enable_winsyng"
17826 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
17828 case "x$enable_winsyng" in
17830 cat >> confdefs.h <<EOF
17831 #define IA_W32G_SYN 1
17837 ENABLE_W32G_SYN_TRUE=
17838 ENABLE_W32G_SYN_FALSE='#'
17840 ENABLE_W32G_SYN_TRUE='#'
17841 ENABLE_W32G_SYN_FALSE=
17844 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17845 lib_user32_opt='-luser32'
17846 LDFLAGS="-mwindows $LDFLAGS"
17847 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"
17851 dynamic_targets="$dynamic_targets interface_W.\$(so)"
17865 ENABLE_W32GUI_TRUE=
17866 ENABLE_W32GUI_FALSE='#'
17868 ENABLE_W32GUI_TRUE='#'
17869 ENABLE_W32GUI_FALSE=
17872 # Check whether --enable-w32gui or --disable-w32gui was given.
17873 if test "${enable_w32gui+set}" = set; then
17874 enableval="$enable_w32gui"
17875 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
17877 case "x$enable_w32gui" in
17879 cat >> confdefs.h <<EOF
17880 #define IA_W32GUI 1
17886 ENABLE_W32GUI_TRUE=
17887 ENABLE_W32GUI_FALSE='#'
17889 ENABLE_W32GUI_TRUE='#'
17890 ENABLE_W32GUI_FALSE=
17893 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17894 lib_user32_opt='-luser32'
17895 LDFLAGS="-mwindows $LDFLAGS"
17896 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"
17900 dynamic_targets="$dynamic_targets interface_w.\$(so)"
17913 ENABLE_PLUGIN_TRUE=
17914 ENABLE_PLUGIN_FALSE='#'
17916 ENABLE_PLUGIN_TRUE='#'
17917 ENABLE_PLUGIN_FALSE=
17920 # Check whether --enable-ump or --disable-ump was given.
17921 if test "${enable_ump+set}" = set; then
17922 enableval="$enable_ump"
17923 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
17924 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
17925 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
17926 { (exit 1); exit 1; }; }
17928 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17929 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17930 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17931 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17935 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17937 # Is the header compilable?
17938 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17939 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17940 cat >conftest.$ac_ext <<_ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 $ac_includes_default
17947 #include <X11/xpm.h>
17949 rm -f conftest.$ac_objext
17950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17951 (eval $ac_compile) 2>conftest.er1
17953 grep -v '^ *+' conftest.er1 >conftest.err
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag"
17959 || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 ac_header_compiler=yes
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 ac_header_compiler=no
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17980 echo "${ECHO_T}$ac_header_compiler" >&6
17982 # Is the header present?
17983 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17984 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <X11/xpm.h>
17993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17994 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18001 if test -s conftest.err; then
18002 ac_cpp_err=$ac_c_preproc_warn_flag
18003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18010 if test -z "$ac_cpp_err"; then
18011 ac_header_preproc=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_header_preproc=no
18018 rm -f conftest.err conftest.$ac_ext
18019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18020 echo "${ECHO_T}$ac_header_preproc" >&6
18022 # So? What about this header?
18023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18025 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18026 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18027 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18028 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18029 ac_header_preproc=yes
18032 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18033 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
18035 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18037 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
18039 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18040 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18041 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18042 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18043 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18046 ## ------------------------------- ##
18047 ## Report this to root@mput.dip.jp ##
18048 ## ------------------------------- ##
18051 sed "s/^/$as_me: WARNING: /" >&2
18054 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18055 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18056 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 ac_cv_header_X11_xpm_h=$ac_header_preproc
18061 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18062 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18065 if test $ac_cv_header_X11_xpm_h = yes; then
18068 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18069 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18070 { (exit 1); exit 1; }; }
18074 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18075 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18076 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 ac_check_lib_save_LIBS=$LIBS
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18088 /* Override any gcc2 internal prototype to avoid an error. */
18092 /* We use char because int might match the return type of a gcc2
18093 builtin and then its argument prototype would still apply. */
18094 char XpmCreatePixmapFromData ();
18098 XpmCreatePixmapFromData ();
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105 (eval $ac_link) 2>conftest.er1
18107 grep -v '^ *+' conftest.er1 >conftest.err
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag"
18113 || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18132 rm -f conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18137 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18138 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18141 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18142 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18143 { (exit 1); exit 1; }; }
18146 if test "x$have_xext" = xyes; then
18147 lib_xext_opt=-lXext
18149 if test "x$have_xprelibs" = xyes; then
18150 lib_xprelibs_opt='-lSM -lICE'
18156 case "x$enable_ump" in
18158 cat >> confdefs.h <<EOF
18159 #define IA_PLUGIN 1
18165 ENABLE_PLUGIN_TRUE=
18166 ENABLE_PLUGIN_FALSE='#'
18168 ENABLE_PLUGIN_TRUE='#'
18169 ENABLE_PLUGIN_FALSE=
18175 dynamic_targets="$dynamic_targets interface_p.\$(so)"
18186 # Check whether --enable-offix or --disable-offix was given.
18187 if test "${enable_offix+set}" = set; then
18188 enableval="$enable_offix"
18189 if test "$enableval" = "yes"; then
18190 KEEPCPPFLAGS=$CPPFLAGS
18192 KEEPLDFLAGS=$LDFLAGS
18193 CPPFLAGS="$CPPFLAGS $offix_include_dir"
18194 LDFLAGS="$LDFLAGS $offix_lib_dir"
18195 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18196 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18197 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18198 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_check_lib_save_LIBS=$LIBS
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18210 /* Override any gcc2 internal prototype to avoid an error. */
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char DndInitialize ();
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_lib_Dnd_DndInitialize=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_lib_Dnd_DndInitialize=no
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18259 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18260 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18263 lib_offix_opt="-lDnd"
18265 cat >>confdefs.h <<\_ACEOF
18271 LDFLAGS=$KEEPLDFLAGS
18272 CPPFLAGS=$KEEPCPPFLAGS
18281 # Check whether --enable-network or --disable-network was given.
18282 if test "${enable_network+set}" = set; then
18283 enableval="$enable_network"
18284 if test "$enableval" = "yes"; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define SUPPORT_SOCKET 1
18294 if test "x$enable_network" = "xyes"; then
18295 ENABLE_NETWORK_TRUE=
18296 ENABLE_NETWORK_FALSE='#'
18298 ENABLE_NETWORK_TRUE='#'
18299 ENABLE_NETWORK_FALSE=
18303 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18304 if test "${enable_spectrogram+set}" = set; then
18305 enableval="$enable_spectrogram"
18306 if test "$enableval" = "yes"; then
18307 if test "x$with_x" != xyes; then
18308 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18309 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18310 { (exit 1); exit 1; }; }
18313 cat >>confdefs.h <<\_ACEOF
18314 #define SUPPORT_SOUNDSPEC 1
18321 if test "x$enable_spectrogram" = "xyes"; then
18322 ENABLE_SOUND_SPEC_TRUE=
18323 ENABLE_SOUND_SPEC_FALSE='#'
18325 ENABLE_SOUND_SPEC_TRUE='#'
18326 ENABLE_SOUND_SPEC_FALSE=
18330 # Check whether --enable-spline or --disable-spline was given.
18331 if test "${enable_spline+set}" = set; then
18332 enableval="$enable_spline"
18333 case "x$enableval" in
18336 cat >>confdefs.h <<\_ACEOF
18337 #define DEFAULT_RESAMPLATION resample_linear
18343 cat >>confdefs.h <<\_ACEOF
18344 #define DEFAULT_RESAMPLATION resample_cspline
18350 cat >>confdefs.h <<\_ACEOF
18351 #define DEFAULT_RESAMPLATION resample_lagrange
18357 cat >>confdefs.h <<\_ACEOF
18358 #define DEFAULT_RESAMPLATION resample_newton
18364 cat >>confdefs.h <<\_ACEOF
18365 #define DEFAULT_RESAMPLATION resample_gauss
18371 cat >>confdefs.h <<\_ACEOF
18372 #define DEFAULT_RESAMPLATION resample_none
18377 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18378 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18379 { (exit 1); exit 1; }; }
18384 # Check whether --enable-wrd or --disable-wrd was given.
18385 if test "${enable_wrd+set}" = set; then
18386 enableval="$enable_wrd"
18387 if test "$enableval" = "yes"; then
18388 if test "x$with_x" != xyes; then
18389 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18390 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18391 { (exit 1); exit 1; }; }
18394 cat >>confdefs.h <<\_ACEOF
18398 enable_sherry_wrd=yes
18399 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18400 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18401 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_check_lib_save_LIBS=$LIBS
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18413 /* Override any gcc2 internal prototype to avoid an error. */
18417 /* We use char because int might match the return type of a gcc2
18418 builtin and then its argument prototype would still apply. */
18419 char zlibVersion ();
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430 (eval $ac_link) 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag"
18438 || test ! -s conftest.err'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_lib_z_zlibVersion=yes
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_cv_lib_z_zlibVersion=no
18457 rm -f conftest.err conftest.$ac_objext \
18458 conftest$ac_exeext conftest.$ac_ext
18459 LIBS=$ac_check_lib_save_LIBS
18461 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18462 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18463 if test $ac_cv_lib_z_zlibVersion = yes; then
18466 enable_sherry_wrd=no
18469 if test "${ac_cv_header_png_h+set}" = set; then
18470 echo "$as_me:$LINENO: checking for png.h" >&5
18471 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18472 if test "${ac_cv_header_png_h+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18476 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18478 # Is the header compilable?
18479 echo "$as_me:$LINENO: checking png.h usability" >&5
18480 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 $ac_includes_default
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest.$ac_objext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_header_compiler=yes
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_header_compiler=no
18519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18521 echo "${ECHO_T}$ac_header_compiler" >&6
18523 # Is the header present?
18524 echo "$as_me:$LINENO: checking png.h presence" >&5
18525 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } >/dev/null; then
18542 if test -s conftest.err; then
18543 ac_cpp_err=$ac_c_preproc_warn_flag
18544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18551 if test -z "$ac_cpp_err"; then
18552 ac_header_preproc=yes
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_header_preproc=no
18559 rm -f conftest.err conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6
18563 # So? What about this header?
18564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18569 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18570 ac_header_preproc=yes
18573 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18578 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
18580 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18582 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18584 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18587 ## ------------------------------- ##
18588 ## Report this to root@mput.dip.jp ##
18589 ## ------------------------------- ##
18592 sed "s/^/$as_me: WARNING: /" >&2
18595 echo "$as_me:$LINENO: checking for png.h" >&5
18596 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18597 if test "${ac_cv_header_png_h+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 ac_cv_header_png_h=$ac_header_preproc
18602 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18603 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18606 if test $ac_cv_header_png_h = yes; then
18609 enable_sherry_wrd=no
18613 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18614 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18615 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 ac_check_lib_save_LIBS=$LIBS
18619 LIBS="-lpng -lz $LIBS"
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18627 /* Override any gcc2 internal prototype to avoid an error. */
18631 /* We use char because int might match the return type of a gcc2
18632 builtin and then its argument prototype would still apply. */
18633 char png_init_io ();
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18644 (eval $ac_link) 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag"
18652 || test ! -s conftest.err'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest$ac_exeext'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_lib_png_png_init_io=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_lib_png_png_init_io=no
18671 rm -f conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
18673 LIBS=$ac_check_lib_save_LIBS
18675 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18676 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18677 if test $ac_cv_lib_png_png_init_io = yes; then
18680 enable_sherry_wrd=no
18683 if test "$enable_sherry_wrd" = yes; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define ENABLE_SHERRY 1
18692 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18693 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18695 if test "x$have_xext" = xyes; then
18696 lib_xext_opt=-lXext
18709 if test "x$enable_wrd" = "xyes"; then
18711 ENABLE_WRD_FALSE='#'
18713 ENABLE_WRD_TRUE='#'
18720 if test "x$CYGNUS" = xyes; then
18730 if test "x$MINGW" = xyes; then
18740 if test "x$W32READDIR" = "xyes"; then
18742 W32READDIR_FALSE='#'
18744 W32READDIR_TRUE='#'
18749 rm -f wordtmp >/dev/null 2>&1
18751 for f in $LDFLAGS; do
18752 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18755 echo $f >>wordtmp; val="$val $f"
18760 rm -f wordtmp >/dev/null 2>&1
18762 rm -f wordtmp >/dev/null 2>&1
18764 for f in $SHLDFLAGS; do
18765 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18768 echo $f >>wordtmp; val="$val $f"
18773 rm -f wordtmp >/dev/null 2>&1
18775 rm -f wordtmp >/dev/null 2>&1
18777 for f in $EXTRACFLAGS $CFLAGS; do
18778 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18781 echo $f >>wordtmp; val="$val $f"
18786 rm -f wordtmp >/dev/null 2>&1
18788 rm -f wordtmp >/dev/null 2>&1
18790 for f in $CPPFLAGS $EXTRADEFS; do
18791 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18794 echo $f >>wordtmp; val="$val $f"
18799 rm -f wordtmp >/dev/null 2>&1
18802 if test "x$oss_device" != x; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define OSS_DEVICE "$oss_device"
18810 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18812 cat >>confdefs.h <<_ACEOF
18813 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18818 if test "x$with_x" = xyes; then
18819 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/"`
18821 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18822 SHLD="$SHLD $SHLDFLAGS"
18842 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 utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18844 cat >confcache <<\_ACEOF
18845 # This file is a shell script that caches the results of configure
18846 # tests run on this system so they can be shared between configure
18847 # scripts and configure runs, see configure's option --config-cache.
18848 # It is not useful on other systems. If it contains results you don't
18849 # want to keep, you may remove or edit it.
18851 # config.status only pays attention to the cache file if you give it
18852 # the --recheck option to rerun configure.
18854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18856 # following values.
18860 # The following way of writing the cache mishandles newlines in values,
18861 # but we know of no workaround that is simple, portable, and efficient.
18862 # So, don't put newlines in cache variables' values.
18863 # Ultrix sh set writes to stderr and can't be redirected directly,
18864 # and sets the high bit in the cache file unless we assign to the vars.
18867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18869 # `set' does not quote correctly, so add quotes (double-quote
18870 # substitution turns \\\\ into \\, and sed turns \\ into \).
18873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18876 # `set' quotes correctly as required by POSIX, so do not add quotes.
18878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18890 if test -w $cache_file; then
18891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18892 cat confcache >$cache_file
18894 echo "not updating unwritable cache $cache_file"
18899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18900 # Let make expand exec_prefix.
18901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18905 # trailing colons and then remove the whole line if VPATH becomes empty
18906 # (actually we leave an empty line to preserve line numbers).
18907 if test "x$srcdir" = x.; then
18908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18909 s/:*\$(srcdir):*/:/;
18910 s/:*\${srcdir}:*/:/;
18912 s/^\([^=]*=[ ]*\):*/\1/;
18918 DEFS=-DHAVE_CONFIG_H
18922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18923 # 1. Remove the extension, and $U if already installed.
18924 ac_i=`echo "$ac_i" |
18925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18930 LIBOBJS=$ac_libobjs
18932 LTLIBOBJS=$ac_ltlibobjs
18935 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18936 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18937 Usually this means the macro was only invoked conditionally." >&5
18938 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18939 Usually this means the macro was only invoked conditionally." >&2;}
18940 { (exit 1); exit 1; }; }
18942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18943 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18944 Usually this means the macro was only invoked conditionally." >&5
18945 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18946 Usually this means the macro was only invoked conditionally." >&2;}
18947 { (exit 1); exit 1; }; }
18949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18950 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18951 Usually this means the macro was only invoked conditionally." >&5
18952 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18953 Usually this means the macro was only invoked conditionally." >&2;}
18954 { (exit 1); exit 1; }; }
18956 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18957 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18958 Usually this means the macro was only invoked conditionally." >&5
18959 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18960 Usually this means the macro was only invoked conditionally." >&2;}
18961 { (exit 1); exit 1; }; }
18963 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18964 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18965 Usually this means the macro was only invoked conditionally." >&5
18966 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18967 Usually this means the macro was only invoked conditionally." >&2;}
18968 { (exit 1); exit 1; }; }
18970 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18971 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18972 Usually this means the macro was only invoked conditionally." >&5
18973 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18974 Usually this means the macro was only invoked conditionally." >&2;}
18975 { (exit 1); exit 1; }; }
18977 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18978 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18979 Usually this means the macro was only invoked conditionally." >&5
18980 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18981 Usually this means the macro was only invoked conditionally." >&2;}
18982 { (exit 1); exit 1; }; }
18984 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18985 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18986 Usually this means the macro was only invoked conditionally." >&5
18987 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18988 Usually this means the macro was only invoked conditionally." >&2;}
18989 { (exit 1); exit 1; }; }
18991 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18992 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18993 Usually this means the macro was only invoked conditionally." >&5
18994 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18995 Usually this means the macro was only invoked conditionally." >&2;}
18996 { (exit 1); exit 1; }; }
18998 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18999 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19000 Usually this means the macro was only invoked conditionally." >&5
19001 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19002 Usually this means the macro was only invoked conditionally." >&2;}
19003 { (exit 1); exit 1; }; }
19005 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19006 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19007 Usually this means the macro was only invoked conditionally." >&5
19008 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19009 Usually this means the macro was only invoked conditionally." >&2;}
19010 { (exit 1); exit 1; }; }
19012 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19013 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19014 Usually this means the macro was only invoked conditionally." >&5
19015 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19016 Usually this means the macro was only invoked conditionally." >&2;}
19017 { (exit 1); exit 1; }; }
19019 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19020 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19021 Usually this means the macro was only invoked conditionally." >&5
19022 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19023 Usually this means the macro was only invoked conditionally." >&2;}
19024 { (exit 1); exit 1; }; }
19026 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19027 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19028 Usually this means the macro was only invoked conditionally." >&5
19029 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19030 Usually this means the macro was only invoked conditionally." >&2;}
19031 { (exit 1); exit 1; }; }
19033 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19034 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19035 Usually this means the macro was only invoked conditionally." >&5
19036 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19037 Usually this means the macro was only invoked conditionally." >&2;}
19038 { (exit 1); exit 1; }; }
19040 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19041 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19042 Usually this means the macro was only invoked conditionally." >&5
19043 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19044 Usually this means the macro was only invoked conditionally." >&2;}
19045 { (exit 1); exit 1; }; }
19047 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19048 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19049 Usually this means the macro was only invoked conditionally." >&5
19050 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19051 Usually this means the macro was only invoked conditionally." >&2;}
19052 { (exit 1); exit 1; }; }
19054 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19055 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19056 Usually this means the macro was only invoked conditionally." >&5
19057 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19058 Usually this means the macro was only invoked conditionally." >&2;}
19059 { (exit 1); exit 1; }; }
19061 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19062 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19063 Usually this means the macro was only invoked conditionally." >&5
19064 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19065 Usually this means the macro was only invoked conditionally." >&2;}
19066 { (exit 1); exit 1; }; }
19068 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19069 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19070 Usually this means the macro was only invoked conditionally." >&5
19071 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19072 Usually this means the macro was only invoked conditionally." >&2;}
19073 { (exit 1); exit 1; }; }
19075 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19076 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19077 Usually this means the macro was only invoked conditionally." >&5
19078 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19079 Usually this means the macro was only invoked conditionally." >&2;}
19080 { (exit 1); exit 1; }; }
19082 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19083 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19084 Usually this means the macro was only invoked conditionally." >&5
19085 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19086 Usually this means the macro was only invoked conditionally." >&2;}
19087 { (exit 1); exit 1; }; }
19089 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19090 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19091 Usually this means the macro was only invoked conditionally." >&5
19092 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19093 Usually this means the macro was only invoked conditionally." >&2;}
19094 { (exit 1); exit 1; }; }
19096 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19097 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19098 Usually this means the macro was only invoked conditionally." >&5
19099 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19100 Usually this means the macro was only invoked conditionally." >&2;}
19101 { (exit 1); exit 1; }; }
19103 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19104 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19105 Usually this means the macro was only invoked conditionally." >&5
19106 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19107 Usually this means the macro was only invoked conditionally." >&2;}
19108 { (exit 1); exit 1; }; }
19110 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19111 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19112 Usually this means the macro was only invoked conditionally." >&5
19113 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19114 Usually this means the macro was only invoked conditionally." >&2;}
19115 { (exit 1); exit 1; }; }
19117 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19118 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19119 Usually this means the macro was only invoked conditionally." >&5
19120 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19121 Usually this means the macro was only invoked conditionally." >&2;}
19122 { (exit 1); exit 1; }; }
19124 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19125 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19126 Usually this means the macro was only invoked conditionally." >&5
19127 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19128 Usually this means the macro was only invoked conditionally." >&2;}
19129 { (exit 1); exit 1; }; }
19131 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19132 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19133 Usually this means the macro was only invoked conditionally." >&5
19134 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19135 Usually this means the macro was only invoked conditionally." >&2;}
19136 { (exit 1); exit 1; }; }
19138 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19139 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19140 Usually this means the macro was only invoked conditionally." >&5
19141 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19142 Usually this means the macro was only invoked conditionally." >&2;}
19143 { (exit 1); exit 1; }; }
19145 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19146 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19147 Usually this means the macro was only invoked conditionally." >&5
19148 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19149 Usually this means the macro was only invoked conditionally." >&2;}
19150 { (exit 1); exit 1; }; }
19152 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19153 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19154 Usually this means the macro was only invoked conditionally." >&5
19155 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19156 Usually this means the macro was only invoked conditionally." >&2;}
19157 { (exit 1); exit 1; }; }
19159 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19160 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19161 Usually this means the macro was only invoked conditionally." >&5
19162 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19163 Usually this means the macro was only invoked conditionally." >&2;}
19164 { (exit 1); exit 1; }; }
19166 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19167 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19168 Usually this means the macro was only invoked conditionally." >&5
19169 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19170 Usually this means the macro was only invoked conditionally." >&2;}
19171 { (exit 1); exit 1; }; }
19173 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19174 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19175 Usually this means the macro was only invoked conditionally." >&5
19176 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19177 Usually this means the macro was only invoked conditionally." >&2;}
19178 { (exit 1); exit 1; }; }
19180 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19181 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19182 Usually this means the macro was only invoked conditionally." >&5
19183 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19184 Usually this means the macro was only invoked conditionally." >&2;}
19185 { (exit 1); exit 1; }; }
19187 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19188 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19189 Usually this means the macro was only invoked conditionally." >&5
19190 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19191 Usually this means the macro was only invoked conditionally." >&2;}
19192 { (exit 1); exit 1; }; }
19194 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19195 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19196 Usually this means the macro was only invoked conditionally." >&5
19197 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19198 Usually this means the macro was only invoked conditionally." >&2;}
19199 { (exit 1); exit 1; }; }
19201 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19202 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19203 Usually this means the macro was only invoked conditionally." >&5
19204 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19205 Usually this means the macro was only invoked conditionally." >&2;}
19206 { (exit 1); exit 1; }; }
19208 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19209 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19210 Usually this means the macro was only invoked conditionally." >&5
19211 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19212 Usually this means the macro was only invoked conditionally." >&2;}
19213 { (exit 1); exit 1; }; }
19215 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19216 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19217 Usually this means the macro was only invoked conditionally." >&5
19218 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19219 Usually this means the macro was only invoked conditionally." >&2;}
19220 { (exit 1); exit 1; }; }
19222 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19223 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19224 Usually this means the macro was only invoked conditionally." >&5
19225 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19226 Usually this means the macro was only invoked conditionally." >&2;}
19227 { (exit 1); exit 1; }; }
19229 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19230 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19231 Usually this means the macro was only invoked conditionally." >&5
19232 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19233 Usually this means the macro was only invoked conditionally." >&2;}
19234 { (exit 1); exit 1; }; }
19236 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19237 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
19238 Usually this means the macro was only invoked conditionally." >&5
19239 echo "$as_me: error: conditional \"MINGW\" was never defined.
19240 Usually this means the macro was only invoked conditionally." >&2;}
19241 { (exit 1); exit 1; }; }
19243 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19244 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19245 Usually this means the macro was only invoked conditionally." >&5
19246 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19247 Usually this means the macro was only invoked conditionally." >&2;}
19248 { (exit 1); exit 1; }; }
19251 : ${CONFIG_STATUS=./config.status}
19252 ac_clean_files_save=$ac_clean_files
19253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19256 cat >$CONFIG_STATUS <<_ACEOF
19258 # Generated by $as_me.
19259 # Run this file to recreate the current configuration.
19260 # Compiler output produced by configure, useful for debugging
19261 # configure, is in config.log if it exists.
19264 ac_cs_recheck=false
19266 SHELL=\${CONFIG_SHELL-$SHELL}
19269 cat >>$CONFIG_STATUS <<\_ACEOF
19270 ## --------------------- ##
19271 ## M4sh Initialization. ##
19272 ## --------------------- ##
19274 # Be Bourne compatible
19275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19279 # is contrary to our usage. Disable this feature.
19280 alias -g '${1+"$@"}'='"$@"'
19281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19284 DUALCASE=1; export DUALCASE # for MKS sh
19286 # Support unset when possible.
19287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19294 # Work around bugs in pre-3.0 UWIN ksh.
19295 $as_unset ENV MAIL MAILPATH
19302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19304 LC_TELEPHONE LC_TIME
19306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19307 eval $as_var=C; export $as_var
19313 # Required to use basename.
19314 if expr a : '\(a\)' >/dev/null 2>&1; then
19320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19321 as_basename=basename
19327 # Name of the executable.
19328 as_me=`$as_basename "$0" ||
19329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19330 X"$0" : 'X\(//\)$' \| \
19331 X"$0" : 'X\(/\)$' \| \
19332 . : '\(.\)' 2>/dev/null ||
19334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19335 /^X\/\(\/\/\)$/{ s//\1/; q; }
19336 /^X\/\(\/\).*/{ s//\1/; q; }
19340 # PATH needs CR, and LINENO needs CR and PATH.
19341 # Avoid depending upon Character Ranges.
19342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19345 as_cr_digits='0123456789'
19346 as_cr_alnum=$as_cr_Letters$as_cr_digits
19348 # The user is always right.
19349 if test "${PATH_SEPARATOR+set}" != set; then
19350 echo "#! /bin/sh" >conf$$.sh
19351 echo "exit 0" >>conf$$.sh
19353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19362 as_lineno_1=$LINENO
19363 as_lineno_2=$LINENO
19364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19365 test "x$as_lineno_1" != "x$as_lineno_2" &&
19366 test "x$as_lineno_3" = "x$as_lineno_2" || {
19367 # Find who we are. Look in the path if we contain no path at all
19370 *[\\/]* ) as_myself=$0 ;;
19371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19372 for as_dir in $PATH
19375 test -z "$as_dir" && as_dir=.
19376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19381 # We did not find ourselves, most probably we were run as `sh COMMAND'
19382 # in which case we are not to be found in the path.
19383 if test "x$as_myself" = x; then
19386 if test ! -f "$as_myself"; then
19387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19389 { (exit 1); exit 1; }; }
19391 case $CONFIG_SHELL in
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19397 test -z "$as_dir" && as_dir=.
19398 for as_base in sh bash ksh sh5; do
19401 if ("$as_dir/$as_base" -c '
19402 as_lineno_1=$LINENO
19403 as_lineno_2=$LINENO
19404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19405 test "x$as_lineno_1" != "x$as_lineno_2" &&
19406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19409 CONFIG_SHELL=$as_dir/$as_base
19410 export CONFIG_SHELL
19411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19420 # uniformly replaced by the line number. The first 'sed' inserts a
19421 # line-number line before each line; the second 'sed' does the real
19422 # work. The second script uses 'N' to pair each line-number line
19423 # with the numbered line, and appends trailing '-' during
19424 # substitution so that $LINENO is not a special case at line end.
19425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19427 sed '=' <$as_myself |
19432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19435 s,^['$as_cr_digits']*\n,,
19436 ' >$as_me.lineno &&
19437 chmod +x $as_me.lineno ||
19438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19440 { (exit 1); exit 1; }; }
19442 # Don't try to exec as it changes $[0], causing all sort of problems
19443 # (the dirname of $[0] is not the place where we might find the
19444 # original and so on. Autoconf is especially sensible to this).
19446 # Exit status is that of the last command.
19451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19452 *c*,-n*) ECHO_N= ECHO_C='
19454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19458 if expr a : '\(a\)' >/dev/null 2>&1; then
19464 rm -f conf$$ conf$$.exe conf$$.file
19466 if ln -s conf$$.file conf$$ 2>/dev/null; then
19467 # We could just check for DJGPP; but this test a) works b) is more generic
19468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19469 if test -f conf$$.exe; then
19470 # Don't use ln at all; we don't have any links
19475 elif ln conf$$.file conf$$ 2>/dev/null; then
19480 rm -f conf$$ conf$$.exe conf$$.file
19482 if mkdir -p . 2>/dev/null; then
19485 test -d ./-p && rmdir ./-p
19489 as_executable_p="test -f"
19491 # Sed expression to map a string onto a valid CPP name.
19492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19494 # Sed expression to map a string onto a valid variable name.
19495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19499 # We need space, tab and new line, in precisely that order.
19509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19510 # report actual input values of CONFIG_FILES etc. instead of their
19511 # values after options handling. Logging --version etc. is OK.
19515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19516 ## Running $as_me. ##
19521 This file was extended by TiMidity++ $as_me current, which was
19522 generated by GNU Autoconf 2.59. Invocation command line was
19524 CONFIG_FILES = $CONFIG_FILES
19525 CONFIG_HEADERS = $CONFIG_HEADERS
19526 CONFIG_LINKS = $CONFIG_LINKS
19527 CONFIG_COMMANDS = $CONFIG_COMMANDS
19531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19535 # Files that config.status was made for.
19536 if test -n "$ac_config_files"; then
19537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19540 if test -n "$ac_config_headers"; then
19541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19544 if test -n "$ac_config_links"; then
19545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19548 if test -n "$ac_config_commands"; then
19549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19552 cat >>$CONFIG_STATUS <<\_ACEOF
19555 \`$as_me' instantiates files from templates according to the
19556 current configuration.
19558 Usage: $0 [OPTIONS] [FILE]...
19560 -h, --help print this help, then exit
19561 -V, --version print version number, then exit
19562 -q, --quiet do not print progress messages
19563 -d, --debug don't remove temporary files
19564 --recheck update $as_me by reconfiguring in the same conditions
19565 --file=FILE[:TEMPLATE]
19566 instantiate the configuration file FILE
19567 --header=FILE[:TEMPLATE]
19568 instantiate the configuration header FILE
19570 Configuration files:
19573 Configuration headers:
19576 Configuration commands:
19579 Report bugs to <bug-autoconf@gnu.org>."
19582 cat >>$CONFIG_STATUS <<_ACEOF
19584 TiMidity++ config.status current
19585 configured by $0, generated by GNU Autoconf 2.59,
19586 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19588 Copyright (C) 2003 Free Software Foundation, Inc.
19589 This config.status script is free software; the Free Software Foundation
19590 gives unlimited permission to copy, distribute and modify it."
19595 cat >>$CONFIG_STATUS <<\_ACEOF
19596 # If no file are specified by the user, then we need to provide default
19597 # value. By we need to know if files were specified by the user.
19603 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19604 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19612 *) # This is not an option, so the user has probably given explicit
19615 ac_need_defaults=false;;
19619 # Handling of the options.
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19624 --version | --vers* | -V )
19625 echo "$ac_cs_version"; exit 0 ;;
19627 # Conflict between --help and --header
19628 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19629 Try \`$0 --help' for more information." >&5
19630 echo "$as_me: error: ambiguous option: $1
19631 Try \`$0 --help' for more information." >&2;}
19632 { (exit 1); exit 1; }; };;
19633 --help | --hel | -h )
19634 echo "$ac_cs_usage"; exit 0 ;;
19635 --debug | --d* | -d )
19637 --file | --fil | --fi | --f )
19639 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19640 ac_need_defaults=false;;
19641 --header | --heade | --head | --hea )
19643 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19644 ac_need_defaults=false;;
19645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19649 # This is an error.
19650 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19651 Try \`$0 --help' for more information." >&5
19652 echo "$as_me: error: unrecognized option: $1
19653 Try \`$0 --help' for more information." >&2;}
19654 { (exit 1); exit 1; }; } ;;
19656 *) ac_config_targets="$ac_config_targets $1" ;;
19662 ac_configure_extra_args=
19664 if $ac_cs_silent; then
19666 ac_configure_extra_args="$ac_configure_extra_args --silent"
19670 cat >>$CONFIG_STATUS <<_ACEOF
19671 if \$ac_cs_recheck; then
19672 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19673 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19678 cat >>$CONFIG_STATUS <<_ACEOF
19680 # INIT-COMMANDS section.
19683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19690 for ac_config_target in $ac_config_targets
19692 case "$ac_config_target" in
19693 # Handling of arguments.
19694 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19695 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19696 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19697 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19698 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19699 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19700 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19701 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19702 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19703 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19704 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19705 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19706 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19707 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19708 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19709 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19710 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19711 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19712 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19713 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19714 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19717 { (exit 1); exit 1; }; };;
19721 # If the user did not use the arguments to specify the items to instantiate,
19722 # then the envvar interface is used. Set only those that are not.
19723 # We use the long form for the default assignment because of an extremely
19724 # bizarre bug on SunOS 4.1.3.
19725 if $ac_need_defaults; then
19726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19731 # Have a temporary directory for convenience. Make it in the build tree
19732 # simply because there is no reason to put it here, and in addition,
19733 # creating and moving files from /tmp can sometimes cause problems.
19734 # Create a temporary directory, and hook for its removal unless debugging.
19737 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19738 trap '{ (exit 1); exit 1; }' 1 2 13 15
19741 # Create a (secure) tmp directory for tmp files.
19744 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19745 test -n "$tmp" && test -d "$tmp"
19748 tmp=./confstat$$-$RANDOM
19749 (umask 077 && mkdir $tmp)
19752 echo "$me: cannot create a temporary directory in ." >&2
19753 { (exit 1); exit 1; }
19758 cat >>$CONFIG_STATUS <<_ACEOF
19761 # CONFIG_FILES section.
19764 # No need to generate the scripts if there are no CONFIG_FILES.
19765 # This happens for instance when ./config.status config.h
19766 if test -n "\$CONFIG_FILES"; then
19767 # Protect against being on the right side of a sed subst in config.status.
19768 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19769 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19770 s,@SHELL@,$SHELL,;t t
19771 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19772 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19773 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19774 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19775 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19776 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19777 s,@exec_prefix@,$exec_prefix,;t t
19778 s,@prefix@,$prefix,;t t
19779 s,@program_transform_name@,$program_transform_name,;t t
19780 s,@bindir@,$bindir,;t t
19781 s,@sbindir@,$sbindir,;t t
19782 s,@libexecdir@,$libexecdir,;t t
19783 s,@datadir@,$datadir,;t t
19784 s,@sysconfdir@,$sysconfdir,;t t
19785 s,@sharedstatedir@,$sharedstatedir,;t t
19786 s,@localstatedir@,$localstatedir,;t t
19787 s,@libdir@,$libdir,;t t
19788 s,@includedir@,$includedir,;t t
19789 s,@oldincludedir@,$oldincludedir,;t t
19790 s,@infodir@,$infodir,;t t
19791 s,@mandir@,$mandir,;t t
19792 s,@build_alias@,$build_alias,;t t
19793 s,@host_alias@,$host_alias,;t t
19794 s,@target_alias@,$target_alias,;t t
19795 s,@DEFS@,$DEFS,;t t
19796 s,@ECHO_C@,$ECHO_C,;t t
19797 s,@ECHO_N@,$ECHO_N,;t t
19798 s,@ECHO_T@,$ECHO_T,;t t
19799 s,@LIBS@,$LIBS,;t t
19800 s,@build@,$build,;t t
19801 s,@build_cpu@,$build_cpu,;t t
19802 s,@build_vendor@,$build_vendor,;t t
19803 s,@build_os@,$build_os,;t t
19804 s,@host@,$host,;t t
19805 s,@host_cpu@,$host_cpu,;t t
19806 s,@host_vendor@,$host_vendor,;t t
19807 s,@host_os@,$host_os,;t t
19808 s,@target@,$target,;t t
19809 s,@target_cpu@,$target_cpu,;t t
19810 s,@target_vendor@,$target_vendor,;t t
19811 s,@target_os@,$target_os,;t t
19812 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19813 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19814 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19815 s,@CYGPATH_W@,$CYGPATH_W,;t t
19816 s,@PACKAGE@,$PACKAGE,;t t
19817 s,@VERSION@,$VERSION,;t t
19818 s,@ACLOCAL@,$ACLOCAL,;t t
19819 s,@AUTOCONF@,$AUTOCONF,;t t
19820 s,@AUTOMAKE@,$AUTOMAKE,;t t
19821 s,@AUTOHEADER@,$AUTOHEADER,;t t
19822 s,@MAKEINFO@,$MAKEINFO,;t t
19823 s,@AMTAR@,$AMTAR,;t t
19824 s,@install_sh@,$install_sh,;t t
19825 s,@STRIP@,$STRIP,;t t
19826 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19827 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19829 s,@SET_MAKE@,$SET_MAKE,;t t
19830 s,@am__leading_dot@,$am__leading_dot,;t t
19831 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19832 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19833 s,@MAINT@,$MAINT,;t t
19834 s,@EMACS@,$EMACS,;t t
19835 s,@lispdir@,$lispdir,;t t
19837 s,@CFLAGS@,$CFLAGS,;t t
19838 s,@LDFLAGS@,$LDFLAGS,;t t
19839 s,@CPPFLAGS@,$CPPFLAGS,;t t
19840 s,@ac_ct_CC@,$ac_ct_CC,;t t
19841 s,@EXEEXT@,$EXEEXT,;t t
19842 s,@OBJEXT@,$OBJEXT,;t t
19843 s,@DEPDIR@,$DEPDIR,;t t
19844 s,@am__include@,$am__include,;t t
19845 s,@am__quote@,$am__quote,;t t
19846 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19847 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19848 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19849 s,@CCDEPMODE@,$CCDEPMODE,;t t
19850 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19851 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19853 s,@EGREP@,$EGREP,;t t
19854 s,@RANLIB@,$RANLIB,;t t
19855 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19856 s,@LN_S@,$LN_S,;t t
19857 s,@X_CFLAGS@,$X_CFLAGS,;t t
19858 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19859 s,@X_LIBS@,$X_LIBS,;t t
19860 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19861 s,@LIBOBJS@,$LIBOBJS,;t t
19862 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19863 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19864 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19865 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19866 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19867 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19868 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19869 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19870 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19871 s,@ESD_LIBS@,$ESD_LIBS,;t t
19872 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19873 s,@AO_LIBS@,$AO_LIBS,;t t
19874 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19875 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19876 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19877 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19878 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19879 s,@OGG_LIBS@,$OGG_LIBS,;t t
19880 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
19881 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
19882 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
19883 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
19884 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19885 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19886 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19887 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19888 s,@n_so_libs@,$n_so_libs,;t t
19889 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19890 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19891 s,@s_so_libs@,$s_so_libs,;t t
19892 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19893 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19894 s,@m_so_libs@,$m_so_libs,;t t
19895 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19896 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19897 s,@k_so_libs@,$k_so_libs,;t t
19898 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19899 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19900 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19901 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19902 s,@e_so_libs@,$e_so_libs,;t t
19903 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19904 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19905 s,@T_so_libs@,$T_so_libs,;t t
19906 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19907 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19908 s,@a_so_libs@,$a_so_libs,;t t
19909 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19910 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19911 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19912 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19913 s,@i_so_libs@,$i_so_libs,;t t
19914 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19915 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19916 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19917 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19918 s,@GTK_LIBS@,$GTK_LIBS,;t t
19919 s,@g_so_libs@,$g_so_libs,;t t
19920 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19921 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19922 s,@r_so_libs@,$r_so_libs,;t t
19923 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19924 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19925 s,@A_so_libs@,$A_so_libs,;t t
19926 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19927 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19928 s,@W_so_libs@,$W_so_libs,;t t
19929 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19930 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19931 s,@P_so_libs@,$P_so_libs,;t t
19932 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19933 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19934 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19935 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19936 s,@w_so_libs@,$w_so_libs,;t t
19937 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19938 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19939 s,@p_so_libs@,$p_so_libs,;t t
19940 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19941 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19942 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19943 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19944 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19945 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19946 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19947 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19948 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19949 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19950 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19951 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19952 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19953 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19954 s,@EXTRALIBS@,$EXTRALIBS,;t t
19955 s,@NETSRCS@,$NETSRCS,;t t
19956 s,@ELFILES@,$ELFILES,;t t
19957 s,@SHLD@,$SHLD,;t t
19958 s,@SHCFLAGS@,$SHCFLAGS,;t t
19959 s,@dynamic_targets@,$dynamic_targets,;t t
19961 s,@WISH@,$WISH,;t t
19962 s,@tcltk_dep@,$tcltk_dep,;t t
19963 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19964 s,@pkgdatadir@,$pkgdatadir,;t t
19965 s,@pkglibdir@,$pkglibdir,;t t
19966 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19971 cat >>$CONFIG_STATUS <<\_ACEOF
19972 # Split the substitutions into bite-sized pieces for seds with
19973 # small command number limits, like on Digital OSF/1 and HP-UX.
19974 ac_max_sed_lines=48
19975 ac_sed_frag=1 # Number of current file.
19976 ac_beg=1 # First line for current file.
19977 ac_end=$ac_max_sed_lines # Line after last line for current file.
19980 while $ac_more_lines; do
19981 if test $ac_beg -gt 1; then
19982 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19984 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19986 if test ! -s $tmp/subs.frag; then
19987 ac_more_lines=false
19989 # The purpose of the label and of the branching condition is to
19990 # speed up the sed processing (if there are no `@' at all, there
19991 # is no need to browse any of the substitutions).
19992 # These are the two extra sed commands mentioned above.
19994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19995 if test -z "$ac_sed_cmds"; then
19996 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19998 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20000 ac_sed_frag=`expr $ac_sed_frag + 1`
20002 ac_end=`expr $ac_end + $ac_max_sed_lines`
20005 if test -z "$ac_sed_cmds"; then
20008 fi # test -n "$CONFIG_FILES"
20011 cat >>$CONFIG_STATUS <<\_ACEOF
20012 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20015 - | *:- | *:-:* ) # input from stdin
20017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20021 * ) ac_file_in=$ac_file.in ;;
20024 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20027 X"$ac_file" : 'X\(//\)[^/]' \| \
20028 X"$ac_file" : 'X\(//\)$' \| \
20029 X"$ac_file" : 'X\(/\)' \| \
20030 . : '\(.\)' 2>/dev/null ||
20032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20034 /^X\(\/\/\)$/{ s//\1/; q; }
20035 /^X\(\/\).*/{ s//\1/; q; }
20037 { if $as_mkdir_p; then
20042 while test ! -d "$as_dir"; do
20043 as_dirs="$as_dir $as_dirs"
20044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20046 X"$as_dir" : 'X\(//\)[^/]' \| \
20047 X"$as_dir" : 'X\(//\)$' \| \
20048 X"$as_dir" : 'X\(/\)' \| \
20049 . : '\(.\)' 2>/dev/null ||
20051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20053 /^X\(\/\/\)$/{ s//\1/; q; }
20054 /^X\(\/\).*/{ s//\1/; q; }
20057 test ! -n "$as_dirs" || mkdir $as_dirs
20058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20060 { (exit 1); exit 1; }; }; }
20064 if test "$ac_dir" != .; then
20065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20066 # A "../" for each directory in $ac_dir_suffix.
20067 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20069 ac_dir_suffix= ac_top_builddir=
20073 .) # No --srcdir option. We are building in place.
20075 if test -z "$ac_top_builddir"; then
20078 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20080 [\\/]* | ?:[\\/]* ) # Absolute path.
20081 ac_srcdir=$srcdir$ac_dir_suffix;
20082 ac_top_srcdir=$srcdir ;;
20083 *) # Relative path.
20084 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20085 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20088 # Do not use `cd foo && pwd` to compute absolute paths, because
20089 # the directories may not exist.
20091 .) ac_abs_builddir="$ac_dir";;
20094 .) ac_abs_builddir=`pwd`;;
20095 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20096 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20099 case $ac_abs_builddir in
20100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20102 case ${ac_top_builddir}. in
20103 .) ac_abs_top_builddir=$ac_abs_builddir;;
20104 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20105 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20108 case $ac_abs_builddir in
20109 .) ac_abs_srcdir=$ac_srcdir;;
20112 .) ac_abs_srcdir=$ac_abs_builddir;;
20113 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20114 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20117 case $ac_abs_builddir in
20118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20120 case $ac_top_srcdir in
20121 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20122 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20123 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20130 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20133 if test x"$ac_file" != x-; then
20134 { echo "$as_me:$LINENO: creating $ac_file" >&5
20135 echo "$as_me: creating $ac_file" >&6;}
20138 # Let's still pretend it is `configure' which instantiates (i.e., don't
20139 # use $as_me), people would be surprised to read:
20140 # /* config.h. Generated by config.status. */
20141 if test x"$ac_file" = x-; then
20144 configure_input="$ac_file. "
20146 configure_input=$configure_input"Generated from `echo $ac_file_in |
20147 sed 's,.*/,,'` by configure."
20149 # First look for the input files in the build tree, otherwise in the
20151 ac_file_inputs=`IFS=:
20152 for f in $ac_file_in; do
20154 -) echo $tmp/stdin ;;
20156 # Absolute (can't be DOS-style, as IFS=:)
20157 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20158 echo "$as_me: error: cannot find input file: $f" >&2;}
20159 { (exit 1); exit 1; }; }
20162 if test -f "$f"; then
20165 elif test -f "$srcdir/$f"; then
20170 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20171 echo "$as_me: error: cannot find input file: $f" >&2;}
20172 { (exit 1); exit 1; }; }
20175 done` || { (exit 1); exit 1; }
20177 cat >>$CONFIG_STATUS <<_ACEOF
20181 cat >>$CONFIG_STATUS <<\_ACEOF
20183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20184 s,@configure_input@,$configure_input,;t t
20185 s,@srcdir@,$ac_srcdir,;t t
20186 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20187 s,@top_srcdir@,$ac_top_srcdir,;t t
20188 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20189 s,@builddir@,$ac_builddir,;t t
20190 s,@abs_builddir@,$ac_abs_builddir,;t t
20191 s,@top_builddir@,$ac_top_builddir,;t t
20192 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20193 s,@INSTALL@,$ac_INSTALL,;t t
20194 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20196 if test x"$ac_file" != x-; then
20197 mv $tmp/out $ac_file
20205 cat >>$CONFIG_STATUS <<\_ACEOF
20208 # CONFIG_HEADER section.
20211 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20212 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20214 # ac_d sets the value in "#define NAME VALUE" lines.
20215 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20216 ac_dB='[ ].*$,\1#\2'
20219 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20220 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20221 ac_uB='$,\1#\2define\3'
20225 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20228 - | *:- | *:-:* ) # input from stdin
20230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20234 * ) ac_file_in=$ac_file.in ;;
20237 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20238 echo "$as_me: creating $ac_file" >&6;}
20240 # First look for the input files in the build tree, otherwise in the
20242 ac_file_inputs=`IFS=:
20243 for f in $ac_file_in; do
20245 -) echo $tmp/stdin ;;
20247 # Absolute (can't be DOS-style, as IFS=:)
20248 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20249 echo "$as_me: error: cannot find input file: $f" >&2;}
20250 { (exit 1); exit 1; }; }
20251 # Do quote $f, to prevent DOS paths from being IFS'd.
20254 if test -f "$f"; then
20257 elif test -f "$srcdir/$f"; then
20262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20263 echo "$as_me: error: cannot find input file: $f" >&2;}
20264 { (exit 1); exit 1; }; }
20267 done` || { (exit 1); exit 1; }
20268 # Remove the trailing spaces.
20269 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20273 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20274 # `conftest.undefs', that substitutes the proper values into
20275 # config.h.in to produce config.h. The first handles `#define'
20276 # templates, and the second `#undef' templates.
20277 # And first: Protect against being on the right side of a sed subst in
20278 # config.status. Protect against being in an unquoted here document
20279 # in config.status.
20280 rm -f conftest.defines conftest.undefs
20281 # Using a here document instead of a string reduces the quoting nightmare.
20282 # Putting comments in sed scripts is not portable.
20284 # `end' is used to avoid that the second main sed command (meant for
20285 # 0-ary CPP macros) applies to n-ary macro definitions.
20286 # See the Autoconf documentation for `clear'.
20287 cat >confdef2sed.sed <<\_ACEOF
20292 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20294 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20297 # If some macros were called several times there might be several times
20298 # the same #defines, which is useless. Nevertheless, we may not want to
20299 # sort them, since we want the *last* AC-DEFINE to be honored.
20300 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20301 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20302 rm -f confdef2sed.sed
20304 # This sed command replaces #undef with comments. This is necessary, for
20305 # example, in the case of _POSIX_SOURCE, which is predefined and required
20306 # on some systems where configure will not decide to define it.
20307 cat >>conftest.undefs <<\_ACEOF
20308 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20311 # Break up conftest.defines because some shells have a limit on the size
20312 # of here documents, and old seds have small limits too (100 cmds).
20313 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20314 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20315 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20316 echo ' :' >>$CONFIG_STATUS
20317 rm -f conftest.tail
20318 while grep . conftest.defines >/dev/null
20320 # Write a limited-size here document to $tmp/defines.sed.
20321 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20322 # Speed up: don't consider the non `#define' lines.
20323 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20324 # Work around the forget-to-reset-the-flag bug.
20325 echo 't clr' >>$CONFIG_STATUS
20326 echo ': clr' >>$CONFIG_STATUS
20327 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20329 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20331 mv $tmp/out $tmp/in
20333 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20334 rm -f conftest.defines
20335 mv conftest.tail conftest.defines
20337 rm -f conftest.defines
20338 echo ' fi # grep' >>$CONFIG_STATUS
20339 echo >>$CONFIG_STATUS
20341 # Break up conftest.undefs because some shells have a limit on the size
20342 # of here documents, and old seds have small limits too (100 cmds).
20343 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20344 rm -f conftest.tail
20345 while grep . conftest.undefs >/dev/null
20347 # Write a limited-size here document to $tmp/undefs.sed.
20348 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20349 # Speed up: don't consider the non `#undef'
20350 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20351 # Work around the forget-to-reset-the-flag bug.
20352 echo 't clr' >>$CONFIG_STATUS
20353 echo ': clr' >>$CONFIG_STATUS
20354 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20356 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20358 mv $tmp/out $tmp/in
20360 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20361 rm -f conftest.undefs
20362 mv conftest.tail conftest.undefs
20364 rm -f conftest.undefs
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 # Let's still pretend it is `configure' which instantiates (i.e., don't
20368 # use $as_me), people would be surprised to read:
20369 # /* config.h. Generated by config.status. */
20370 if test x"$ac_file" = x-; then
20371 echo "/* Generated by configure. */" >$tmp/config.h
20373 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20375 cat $tmp/in >>$tmp/config.h
20377 if test x"$ac_file" != x-; then
20378 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20380 echo "$as_me: $ac_file is unchanged" >&6;}
20382 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20384 X"$ac_file" : 'X\(//\)[^/]' \| \
20385 X"$ac_file" : 'X\(//\)$' \| \
20386 X"$ac_file" : 'X\(/\)' \| \
20387 . : '\(.\)' 2>/dev/null ||
20389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20391 /^X\(\/\/\)$/{ s//\1/; q; }
20392 /^X\(\/\).*/{ s//\1/; q; }
20394 { if $as_mkdir_p; then
20399 while test ! -d "$as_dir"; do
20400 as_dirs="$as_dir $as_dirs"
20401 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20403 X"$as_dir" : 'X\(//\)[^/]' \| \
20404 X"$as_dir" : 'X\(//\)$' \| \
20405 X"$as_dir" : 'X\(/\)' \| \
20406 . : '\(.\)' 2>/dev/null ||
20408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20410 /^X\(\/\/\)$/{ s//\1/; q; }
20411 /^X\(\/\).*/{ s//\1/; q; }
20414 test ! -n "$as_dirs" || mkdir $as_dirs
20415 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20416 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20417 { (exit 1); exit 1; }; }; }
20420 mv $tmp/config.h $ac_file
20424 rm -f $tmp/config.h
20426 # Compute $ac_file's index in $config_headers.
20428 for _am_header in $config_headers :; do
20429 case $_am_header in
20430 $ac_file | $ac_file:* )
20433 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20436 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20437 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20438 X$ac_file : 'X\(//\)[^/]' \| \
20439 X$ac_file : 'X\(//\)$' \| \
20440 X$ac_file : 'X\(/\)' \| \
20441 . : '\(.\)' 2>/dev/null ||
20443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20445 /^X\(\/\/\)$/{ s//\1/; q; }
20446 /^X\(\/\).*/{ s//\1/; q; }
20447 s/.*/./; q'`/stamp-h$_am_stamp_count
20450 cat >>$CONFIG_STATUS <<\_ACEOF
20453 # CONFIG_COMMANDS section.
20455 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20456 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20457 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20458 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20459 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20460 X"$ac_dest" : 'X\(//\)[^/]' \| \
20461 X"$ac_dest" : 'X\(//\)$' \| \
20462 X"$ac_dest" : 'X\(/\)' \| \
20463 . : '\(.\)' 2>/dev/null ||
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20467 /^X\(\/\/\)$/{ s//\1/; q; }
20468 /^X\(\/\).*/{ s//\1/; q; }
20470 { if $as_mkdir_p; then
20475 while test ! -d "$as_dir"; do
20476 as_dirs="$as_dir $as_dirs"
20477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20479 X"$as_dir" : 'X\(//\)[^/]' \| \
20480 X"$as_dir" : 'X\(//\)$' \| \
20481 X"$as_dir" : 'X\(/\)' \| \
20482 . : '\(.\)' 2>/dev/null ||
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20486 /^X\(\/\/\)$/{ s//\1/; q; }
20487 /^X\(\/\).*/{ s//\1/; q; }
20490 test ! -n "$as_dirs" || mkdir $as_dirs
20491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20493 { (exit 1); exit 1; }; }; }
20497 if test "$ac_dir" != .; then
20498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20499 # A "../" for each directory in $ac_dir_suffix.
20500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20502 ac_dir_suffix= ac_top_builddir=
20506 .) # No --srcdir option. We are building in place.
20508 if test -z "$ac_top_builddir"; then
20511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20513 [\\/]* | ?:[\\/]* ) # Absolute path.
20514 ac_srcdir=$srcdir$ac_dir_suffix;
20515 ac_top_srcdir=$srcdir ;;
20516 *) # Relative path.
20517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20521 # Do not use `cd foo && pwd` to compute absolute paths, because
20522 # the directories may not exist.
20524 .) ac_abs_builddir="$ac_dir";;
20527 .) ac_abs_builddir=`pwd`;;
20528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20532 case $ac_abs_builddir in
20533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20535 case ${ac_top_builddir}. in
20536 .) ac_abs_top_builddir=$ac_abs_builddir;;
20537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20541 case $ac_abs_builddir in
20542 .) ac_abs_srcdir=$ac_srcdir;;
20545 .) ac_abs_srcdir=$ac_abs_builddir;;
20546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20550 case $ac_abs_builddir in
20551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20553 case $ac_top_srcdir in
20554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20561 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20562 echo "$as_me: executing $ac_dest commands" >&6;}
20564 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20565 # Strip MF so we end up with the name of the file.
20566 mf=`echo "$mf" | sed -e 's/:.*$//'`
20567 # Check whether this is an Automake generated Makefile or not.
20568 # We used to match only the files named `Makefile.in', but
20569 # some people rename them; so instead we look at the file content.
20570 # Grep'ing the first line is not enough: some people post-process
20571 # each Makefile.in and add a new line on top of each file to say so.
20572 # So let's grep whole file.
20573 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20574 dirpart=`(dirname "$mf") 2>/dev/null ||
20575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576 X"$mf" : 'X\(//\)[^/]' \| \
20577 X"$mf" : 'X\(//\)$' \| \
20578 X"$mf" : 'X\(/\)' \| \
20579 . : '\(.\)' 2>/dev/null ||
20581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20583 /^X\(\/\/\)$/{ s//\1/; q; }
20584 /^X\(\/\).*/{ s//\1/; q; }
20589 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20590 # Extract the definition of DEP_FILES from the Makefile without
20592 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20593 test -z "$DEPDIR" && continue
20594 # When using ansi2knr, U may be empty or an underscore; expand it
20595 U=`sed -n -e '/^U = / s///p' < "$mf"`
20596 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20597 # We invoke sed twice because it is the simplest approach to
20598 # changing $(DEPDIR) to its actual value in the expansion.
20599 for file in `sed -n -e '
20600 /^DEP_FILES = .*\\\\$/ {
20609 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20610 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20611 # Make sure the directory exists.
20612 test -f "$dirpart/$file" && continue
20613 fdir=`(dirname "$file") 2>/dev/null ||
20614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20615 X"$file" : 'X\(//\)[^/]' \| \
20616 X"$file" : 'X\(//\)$' \| \
20617 X"$file" : 'X\(/\)' \| \
20618 . : '\(.\)' 2>/dev/null ||
20620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20622 /^X\(\/\/\)$/{ s//\1/; q; }
20623 /^X\(\/\).*/{ s//\1/; q; }
20625 { if $as_mkdir_p; then
20626 mkdir -p $dirpart/$fdir
20628 as_dir=$dirpart/$fdir
20630 while test ! -d "$as_dir"; do
20631 as_dirs="$as_dir $as_dirs"
20632 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20634 X"$as_dir" : 'X\(//\)[^/]' \| \
20635 X"$as_dir" : 'X\(//\)$' \| \
20636 X"$as_dir" : 'X\(/\)' \| \
20637 . : '\(.\)' 2>/dev/null ||
20639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20641 /^X\(\/\/\)$/{ s//\1/; q; }
20642 /^X\(\/\).*/{ s//\1/; q; }
20645 test ! -n "$as_dirs" || mkdir $as_dirs
20646 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20647 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20648 { (exit 1); exit 1; }; }; }
20650 # echo "creating $dirpart/$file"
20651 echo '# dummy' > "$dirpart/$file"
20659 cat >>$CONFIG_STATUS <<\_ACEOF
20661 { (exit 0); exit 0; }
20663 chmod +x $CONFIG_STATUS
20664 ac_clean_files=$ac_clean_files_save
20667 # configure is writing to config.log, and then calls config.status.
20668 # config.status does its own redirection, appending to config.log.
20669 # Unfortunately, on DOS this fails, as config.log is still kept open
20670 # by configure, so config.status won't be able to write to it; its
20671 # output is simply discarded. So we exec the FD to /dev/null,
20672 # effectively closing config.log, so it can be properly (re)opened and
20673 # appended to by config.status. When coming back to configure, we
20674 # need to make the FD available again.
20675 if test "$no_create" != yes; then
20677 ac_config_status_args=
20678 test "$silent" = yes &&
20679 ac_config_status_args="$ac_config_status_args --quiet"
20681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20684 # would make configure fail if this is the last instruction.
20685 $ac_cs_success || { (exit 1); exit 1; }