2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ 2.13.0-rc2.
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='2.13.0-rc2'
273 PACKAGE_STRING='TiMidity++ 2.13.0-rc2'
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 VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_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++ 2.13.0-rc2 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++ 2.13.0-rc2:";;
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
884 gogo: MP3 GOGO (Only Windows is supported)
885 --disable-alsatest Do not try to compile and run a test Alsa program
886 --disable-artstest Do not try to compile and run a test ARTS program
887 --disable-esdtest Do not try to compile and run a test ESD program
888 --disable-oggtest Do not try to compile and run a test Ogg program
889 --disable-vorbistest Do not try to compile and run a test Vorbis program
890 --enable-interface=interface_list
891 Comma separated interface list
892 --enable-dynamic Enable dynamic link interface (default is no)
893 --enable-dynamic=dynamic_list
894 Comma separated dynamic interface list
895 --enable-ncurses Enable ncurses interface (default is no)
896 --enable-slang Enable slang interface (default is no)
897 --enable-motif Enable motif interface (default is no)
898 --enable-tcltk Enable tcltk interface (default is no)
899 --enable-emacs Enable emacs interface (default is no)
900 --enable-vt100 Enable VT100 interface (default is no)
901 --enable-xaw Enable athena interface (default is no)
902 --enable-xskin Enable X skin interface (default is no)
903 --enable-gtk Enable GTK+ interface (default is no)
904 --disable-gtktest Do not try to compile and run a test GTK program
905 --enable-server Enable server interface (default is no)
906 --enable-alsaseq Enable ALSA sequencer server interface
908 --enable-winsyn Enable Windows Synthesizer interface
910 --enable-portmidisyn Enable PortMIDI Synthesizer interface
912 --enable-winsyng Enable Windows GUI Synthesizer interface
914 --enable-w32gui Enable Windows GUI interface (default is no)
915 --enable-ump UMP configuration (default is no)
916 --enable-offix Enable offix support (default is no)
917 --enable-network Enable network support (default is no)
918 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
919 --enable-spline=method Specify spline method.
920 one of no,linear,cubic,lagrange,newton,gauss
922 --enable-wrd Enable WRD interface for X (default is no)
925 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
926 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
927 --with-includes=DIR Specify include directories (colon separated)
928 --with-libraries=DIR Specify library directories (colon separated)
929 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
930 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
931 --with-lispdir Override the default lisp directory
932 --with-elf create ELF shared object instead of AOUT
933 --with-simd create SIMD friendly binary (default is no)
934 --with-x use the X Window System
935 --with-tcl-includes=DIR Tcl include file path
936 --with-tcl-libs=DIR Tcl library file path
937 --with-tk-includes=DIR Tk include file path
938 --with-tk-libs=DIR Tk library file path
939 --with-offix-includes=DIR Offix include file path
940 --with-offix-libs=DIR Offix include file path
941 --with-nas-library=library NAS absolute library path(Don't use -laudio)
942 --with-nas-includes=DIR NAS include files are in dir
943 --with-default-output=<mode> Specify default output mode (optional):
944 (default|alsa|alib|arts|nas|
945 esd|wav|au|aiff|list|vorbis|
947 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
948 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
949 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
950 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
951 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
952 --with-ogg=PFX Prefix where libogg is installed (optional)
953 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
954 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
955 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
956 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
957 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
958 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
959 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
961 Some influential environment variables:
962 CC C compiler command
963 CFLAGS C compiler flags
964 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
965 nonstandard directory <lib dir>
966 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
967 headers in a nonstandard directory <include dir>
970 Use these variables to override the choices made by `configure' or to help
971 it to find libraries and programs with nonstandard names/locations.
973 Report bugs to <root@mput.dip.jp>.
977 if test "$ac_init_help" = "recursive"; then
978 # If there are subdirs, report their specific --help.
980 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
981 test -d $ac_dir || continue
984 if test "$ac_dir" != .; then
985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
986 # A "../" for each directory in $ac_dir_suffix.
987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
989 ac_dir_suffix= ac_top_builddir=
993 .) # No --srcdir option. We are building in place.
995 if test -z "$ac_top_builddir"; then
998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1000 [\\/]* | ?:[\\/]* ) # Absolute path.
1001 ac_srcdir=$srcdir$ac_dir_suffix;
1002 ac_top_srcdir=$srcdir ;;
1004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1005 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1008 # Do not use `cd foo && pwd` to compute absolute paths, because
1009 # the directories may not exist.
1011 .) ac_abs_builddir="$ac_dir";;
1014 .) ac_abs_builddir=`pwd`;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1016 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1019 case $ac_abs_builddir in
1020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1022 case ${ac_top_builddir}. in
1023 .) ac_abs_top_builddir=$ac_abs_builddir;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1025 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1028 case $ac_abs_builddir in
1029 .) ac_abs_srcdir=$ac_srcdir;;
1032 .) ac_abs_srcdir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1034 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1037 case $ac_abs_builddir in
1038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1040 case $ac_top_srcdir in
1041 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1043 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1048 # Check for guested configure; otherwise get Cygnus style configure.
1049 if test -f $ac_srcdir/configure.gnu; then
1051 $SHELL $ac_srcdir/configure.gnu --help=recursive
1052 elif test -f $ac_srcdir/configure; then
1054 $SHELL $ac_srcdir/configure --help=recursive
1055 elif test -f $ac_srcdir/configure.ac ||
1056 test -f $ac_srcdir/configure.in; then
1058 $ac_configure --help
1060 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1066 test -n "$ac_init_help" && exit 0
1067 if $ac_init_version; then
1069 TiMidity++ configure 2.13.0-rc2
1070 generated by GNU Autoconf 2.59
1072 Copyright (C) 2003 Free Software Foundation, Inc.
1073 This configure script is free software; the Free Software Foundation
1074 gives unlimited permission to copy, distribute and modify it.
1080 This file contains any messages produced by compilers while
1081 running configure, to aid debugging if configure makes a mistake.
1083 It was created by TiMidity++ $as_me 2.13.0-rc2, which was
1084 generated by GNU Autoconf 2.59. Invocation command line was
1095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1107 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1118 test -z "$as_dir" && as_dir=.
1119 echo "PATH: $as_dir"
1134 # Keep a trace of the command line.
1135 # Strip out --no-create and --no-recursion so they do not pile up.
1136 # Strip out --silent because we don't want to record it for future runs.
1137 # Also quote any args containing shell meta-characters.
1138 # Make two passes to allow for proper duplicate-argument suppression.
1143 ac_must_keep_next=false
1149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1153 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1154 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1157 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1159 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1160 if test $ac_must_keep_next = true; then
1161 ac_must_keep_next=false # Got value, back to normal.
1164 *=* | --config-cache | -C | -disable-* | --disable-* \
1165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1167 | -with-* | --with-* | -without-* | --without-* | --x)
1168 case "$ac_configure_args0 " in
1169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1172 -* ) ac_must_keep_next=true ;;
1175 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1176 # Get rid of the leading space.
1182 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1183 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1185 # When interrupted or exit'd, cleanup temporary files, and complete
1186 # config.log. We remove comments because anyway the quotes in there
1187 # would cause problems or look ugly.
1188 # WARNING: Be sure not to use single quotes in there, as some shells,
1189 # such as our DU 5.0 friend, will then `close' the trap.
1190 trap 'exit_status=$?
1191 # Save into config.log some information that might help in debugging.
1196 ## ---------------- ##
1197 ## Cache variables. ##
1198 ## ---------------- ##
1201 # The following way of writing the cache mishandles newlines in values,
1204 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1207 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1212 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1219 ## ----------------- ##
1220 ## Output variables. ##
1221 ## ----------------- ##
1224 for ac_var in $ac_subst_vars
1226 eval ac_val=$`echo $ac_var`
1227 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -n "$ac_subst_files"; then
1238 for ac_var in $ac_subst_files
1240 eval ac_val=$`echo $ac_var`
1241 echo "$ac_var='"'"'$ac_val'"'"'"
1246 if test -s confdefs.h; then
1253 sed "/^$/d" confdefs.h | sort
1256 test "$ac_signal" != 0 &&
1257 echo "$as_me: caught signal $ac_signal"
1258 echo "$as_me: exit $exit_status"
1260 rm -f core *.core &&
1261 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1264 for ac_signal in 1 2 13 15; do
1265 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1270 rm -rf conftest* confdefs.h
1271 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1274 # Predefined preprocessor variables.
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_NAME "$PACKAGE_NAME"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_STRING "$PACKAGE_STRING"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1301 # Let the site file select an alternate cache file if it wants to.
1302 # Prefer explicitly selected file to automatically selected ones.
1303 if test -z "$CONFIG_SITE"; then
1304 if test "x$prefix" != xNONE; then
1305 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1307 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1310 for ac_site_file in $CONFIG_SITE; do
1311 if test -r "$ac_site_file"; then
1312 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1313 echo "$as_me: loading site script $ac_site_file" >&6;}
1314 sed 's/^/| /' "$ac_site_file" >&5
1319 if test -r "$cache_file"; then
1320 # Some versions of bash will fail to source /dev/null (special
1321 # files actually), so we avoid doing that.
1322 if test -f "$cache_file"; then
1323 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1324 echo "$as_me: loading cache $cache_file" >&6;}
1326 [\\/]* | ?:[\\/]* ) . $cache_file;;
1327 *) . ./$cache_file;;
1331 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1332 echo "$as_me: creating cache $cache_file" >&6;}
1336 # Check that the precious variables saved in the cache have kept the same
1338 ac_cache_corrupted=false
1339 for ac_var in `(set) 2>&1 |
1340 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1341 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1342 eval ac_new_set=\$ac_env_${ac_var}_set
1343 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1344 eval ac_new_val="\$ac_env_${ac_var}_value"
1345 case $ac_old_set,$ac_new_set in
1347 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1351 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1352 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1353 ac_cache_corrupted=: ;;
1356 if test "x$ac_old_val" != "x$ac_new_val"; then
1357 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1358 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1359 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1360 echo "$as_me: former value: $ac_old_val" >&2;}
1361 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1362 echo "$as_me: current value: $ac_new_val" >&2;}
1363 ac_cache_corrupted=:
1366 # Pass precious variables to config.status.
1367 if test "$ac_new_set" = set; then
1369 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1370 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1371 *) ac_arg=$ac_var=$ac_new_val ;;
1373 case " $ac_configure_args " in
1374 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1375 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1379 if $ac_cache_corrupted; then
1380 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1381 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1382 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1383 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1384 { (exit 1); exit 1; }; }
1388 ac_cpp='$CPP $CPPFLAGS'
1389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420 for ac_dir in autoconf $srcdir/autoconf; do
1421 if test -f $ac_dir/install-sh; then
1423 ac_install_sh="$ac_aux_dir/install-sh -c"
1425 elif test -f $ac_dir/install.sh; then
1427 ac_install_sh="$ac_aux_dir/install.sh -c"
1429 elif test -f $ac_dir/shtool; then
1431 ac_install_sh="$ac_aux_dir/shtool install -c"
1435 if test -z "$ac_aux_dir"; then
1436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1438 { (exit 1); exit 1; }; }
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1444 # Make sure we can run config.sub.
1445 $ac_config_sub sun4 >/dev/null 2>&1 ||
1446 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1447 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1448 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: checking build system type" >&5
1451 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1452 if test "${ac_cv_build+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_build_alias=$build_alias
1456 test -z "$ac_cv_build_alias" &&
1457 ac_cv_build_alias=`$ac_config_guess`
1458 test -z "$ac_cv_build_alias" &&
1459 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1460 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1461 { (exit 1); exit 1; }; }
1462 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1469 echo "${ECHO_T}$ac_cv_build" >&6
1471 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 echo "$as_me:$LINENO: checking host system type" >&5
1477 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1478 if test "${ac_cv_host+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 ac_cv_host_alias=$host_alias
1482 test -z "$ac_cv_host_alias" &&
1483 ac_cv_host_alias=$ac_cv_build_alias
1484 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1491 echo "${ECHO_T}$ac_cv_host" >&6
1493 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1498 echo "$as_me:$LINENO: checking target system type" >&5
1499 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1500 if test "${ac_cv_target+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 ac_cv_target_alias=$target_alias
1504 test "x$ac_cv_target_alias" = "x" &&
1505 ac_cv_target_alias=$ac_cv_host_alias
1506 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1507 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1508 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1509 { (exit 1); exit 1; }; }
1512 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1513 echo "${ECHO_T}$ac_cv_target" >&6
1514 target=$ac_cv_target
1515 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1516 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1517 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1520 # The aliases save the names the user supplied, while $host etc.
1521 # will get canonicalized.
1522 test -n "$target_alias" &&
1523 test "$program_prefix$program_suffix$program_transform_name" = \
1525 program_prefix=${target_alias}-
1526 am__api_version="1.7"
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 # Account for people who put trailing slashes in PATH elements.
1553 ./ | .// | /cC/* | \
1554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558 # OSF1 and SCO ODT 3.0 have their own names for install.
1559 # Don't use installbsd from OSF since it installs stuff as root
1561 for ac_prog in ginstall scoinst install; do
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564 if test $ac_prog = install &&
1565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # AIX install. It has an incompatible calling convention.
1568 elif test $ac_prog = install &&
1569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # program-specific install script used by HP pwplus--don't use.
1573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1585 if test "${ac_cv_path_install+set}" = set; then
1586 INSTALL=$ac_cv_path_install
1588 # As a last resort, use the slow shell script. We don't cache a
1589 # path for INSTALL within a source directory, because that will
1590 # break other packages using the cache if that directory is
1591 # removed, or if the path is relative.
1592 INSTALL=$ac_install_sh
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 echo timestamp > conftest.file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments. Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1617 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618 if test "$*" = "X"; then
1620 set X `ls -t $srcdir/configure conftest.file`
1623 if test "$*" != "X $srcdir/configure conftest.file" \
1624 && test "$*" != "X conftest.file $srcdir/configure"; then
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1637 test "$2" = conftest.file
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE &&
1652 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE &&
1655 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $. echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF >conftest.sed
1659 s/[\\$]/&&/g;s/;s,x,x,$//
1661 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671 am_missing_run="$MISSING --run "
1674 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678 for ac_prog in gawk mawk nawk awk
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_AWK+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$AWK"; then
1688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_AWK="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test -n "$AWK"; then
1708 echo "$as_me:$LINENO: result: $AWK" >&5
1709 echo "${ECHO_T}$AWK" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$AWK" && break
1718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 cat >conftest.make <<\_ACEOF
1726 @echo 'ac_maketemp="$(MAKE)"'
1728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1730 if test -n "$ac_maketemp"; then
1731 eval ac_cv_prog_make_${ac_make}_set=yes
1733 eval ac_cv_prog_make_${ac_make}_set=no
1737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 SET_MAKE="MAKE=${MAKE-make}"
1747 rm -rf .tst 2>/dev/null
1748 mkdir .tst 2>/dev/null
1749 if test -d .tst; then
1754 rmdir .tst 2>/dev/null
1756 # test to see if srcdir already configured
1757 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758 test -f $srcdir/config.status; then
1759 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1760 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1761 { (exit 1); exit 1; }; }
1764 # test whether we have cygpath
1765 if test -z "$CYGPATH_W"; then
1766 if (cygpath --version) >/dev/null 2>/dev/null; then
1767 CYGPATH_W='cygpath -w'
1774 # Define the identity of the package.
1775 PACKAGE='TiMidity++'
1776 VERSION='2.13.0-rc2'
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE "$PACKAGE"
1784 cat >>confdefs.h <<_ACEOF
1785 #define VERSION "$VERSION"
1788 # Some tools Automake needs.
1790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1805 AMTAR=${AMTAR-"${am_missing_run}tar"}
1807 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1809 # Installed binaries are usually stripped using `strip' when the user
1810 # run `make install-strip'. However `strip' might not be the right
1811 # tool to use in cross-compilation environments, therefore Automake
1812 # will honor the `STRIP' environment variable to overrule this program.
1813 if test "$cross_compiling" != no; then
1814 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}strip; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_STRIP+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$STRIP"; then
1823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 STRIP=$ac_cv_prog_STRIP
1842 if test -n "$STRIP"; then
1843 echo "$as_me:$LINENO: result: $STRIP" >&5
1844 echo "${ECHO_T}$STRIP" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1851 if test -z "$ac_cv_prog_STRIP"; then
1853 # Extract the first word of "strip", so it can be a program name with args.
1854 set dummy strip; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$ac_ct_STRIP"; then
1861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_STRIP="strip"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1881 if test -n "$ac_ct_STRIP"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1883 echo "${ECHO_T}$ac_ct_STRIP" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1891 STRIP="$ac_cv_prog_STRIP"
1895 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1897 # We need awk for the "check" target. The system "awk" is bad on
1903 ac_config_headers="$ac_config_headers config.h interface.h"
1905 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1906 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1907 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1908 if test "${enable_maintainer_mode+set}" = set; then
1909 enableval="$enable_maintainer_mode"
1910 USE_MAINTAINER_MODE=$enableval
1912 USE_MAINTAINER_MODE=no
1914 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1915 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1918 if test $USE_MAINTAINER_MODE = yes; then
1919 MAINTAINER_MODE_TRUE=
1920 MAINTAINER_MODE_FALSE='#'
1922 MAINTAINER_MODE_TRUE='#'
1923 MAINTAINER_MODE_FALSE=
1926 MAINT=$MAINTAINER_MODE_TRUE
1930 SHELL=${CONFIG_SHELL-"/bin/sh"}
1933 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1934 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1935 echo "grimblepritz" >grimble
1936 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1937 contains="./contains"
1938 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1941 contains="./contains"
1945 grep) echo "$as_me:$LINENO: result: yes" >&5
1946 echo "${ECHO_T}yes" >&6
1949 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1950 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1951 cat >./contains <<'EOSS'
1952 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1954 chmod +x "./contains"
1959 # Check for compiler options -- such as debug flags.
1961 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1962 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1963 # Check whether --enable-debug or --disable-debug was given.
1964 if test "${enable_debug+set}" = set; then
1965 enableval="$enable_debug"
1966 timidity_cv_debug="yes"
1968 timidity_cv_debug="no"
1970 if test "x$timidity_cv_debug" = "xyes"; then
1972 cat >>confdefs.h <<\_ACEOF
1976 CFLAGS=${CFLAGS-"-g"}
1978 if test "x$timidity_cv_debug" = "xno"; then
1980 cat >>confdefs.h <<\_ACEOF
1985 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1986 echo "${ECHO_T}$timidity_cv_debug" >&6
1988 CFLAGS=${CFLAGS-"-O2"}
1990 if test "x$with_x" = x; then
1996 # Checking gcc environment
1997 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1998 LDFLAGS="$LDFLAGS -L${i}"
2000 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2001 CPPFLAGS="$CPPFLAGS -I${i}"
2004 # add $prefix if specified.
2005 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2006 LDFLAGS="-L$prefix/lib $LDFLAGS"
2007 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2008 CPPFLAGS="-I$prefix/include $CPPFLAGS"
2012 # Check whether --with-includes or --without-includes was given.
2013 if test "${with_includes+set}" = set; then
2014 withval="$with_includes"
2016 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2019 CPPFLAGS="$j$CPPFLAGS"
2024 # Check whether --with-libraries or --without-libraries was given.
2025 if test "${with_libraries+set}" = set; then
2026 withval="$with_libraries"
2028 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2031 LDFLAGS="$j$LDFLAGS"
2037 # Check whether --with-default-path or --without-default-path was given.
2038 if test "${with_default_path+set}" = set; then
2039 withval="$with_default_path"
2043 if test "x$prefix" != "xNONE"; then
2044 pkgdatadir='${prefix}/share/timidity'
2046 pkgdatadir='/usr/local/share/timidity'
2050 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2052 cat >>confdefs.h <<_ACEOF
2053 #define DEFAULT_PATH "$tmpdefpath"
2057 cat >>confdefs.h <<\_ACEOF
2058 #define PKGDATADIR DEFAULT_PATH
2063 # Check whether --with-module-dir or --without-module-dir was given.
2064 if test "${with_module_dir+set}" = set; then
2065 withval="$with_module_dir"
2069 if test "x$prefix" != "xNONE"; then
2070 pkglibdir='${prefix}/lib/timidity'
2072 pkglibdir='/usr/local/lib/timidity'
2076 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PKGLIBDIR "$tmplibdir"
2084 # Checks for programs.
2086 # Check whether --with-lispdir or --without-lispdir was given.
2087 if test "${with_lispdir+set}" = set; then
2088 withval="$with_lispdir"
2090 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2091 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2092 echo "$as_me:$LINENO: result: $lispdir" >&5
2093 echo "${ECHO_T}$lispdir" >&6
2096 # If set to t, that means we are running in a shell under Emacs.
2097 # If you have an Emacs named "t", then use the full path.
2098 test x"$EMACS" = xt && EMACS=
2099 for ac_prog in emacs xemacs
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_EMACS+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$EMACS"; then
2109 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_EMACS="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 EMACS=$ac_cv_prog_EMACS
2128 if test -n "$EMACS"; then
2129 echo "$as_me:$LINENO: result: $EMACS" >&5
2130 echo "${ECHO_T}$EMACS" >&6
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$EMACS" && break
2138 test -n "$EMACS" || EMACS="no"
2140 if test $EMACS != "no"; then
2141 if test x${lispdir+set} != xset; then
2142 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2143 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2144 if test "${am_cv_lispdir+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2148 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2149 # which is non-obvious for non-emacs users.
2150 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2151 # emacsen earlier and avoid running this altogether.
2152 { (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
2153 ($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
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }
2157 am_cv_lispdir=`sed -n \
2159 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2160 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2163 if test -z "$am_cv_lispdir"; then
2164 am_cv_lispdir='${datadir}/emacs/site-lisp'
2168 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2169 echo "${ECHO_T}$am_cv_lispdir" >&6
2170 lispdir="$am_cv_lispdir"
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182 if test -n "$ac_tool_prefix"; then
2183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2219 if test -z "$ac_cv_prog_CC"; then
2221 # Extract the first word of "gcc", so it can be a program name with args.
2222 set dummy gcc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$ac_ct_CC"; then
2229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238 ac_cv_prog_ac_ct_CC="gcc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250 echo "${ECHO_T}$ac_ct_CC" >&6
2252 echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2261 if test -z "$CC"; then
2262 if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2264 set dummy ${ac_tool_prefix}cc; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 ac_cv_prog_CC="${ac_tool_prefix}cc"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 if test -n "$CC"; then
2291 echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2299 if test -z "$ac_cv_prog_CC"; then
2301 # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 ac_cv_prog_ac_ct_CC="cc"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2328 if test -n "$ac_ct_CC"; then
2329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2330 echo "${ECHO_T}$ac_ct_CC" >&6
2332 echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2342 if test -z "$CC"; then
2343 # Extract the first word of "cc", so it can be a program name with args.
2344 set dummy cc; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_prog_CC+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$CC"; then
2351 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2362 ac_prog_rejected=yes
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2376 if test $# != 0; then
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2387 if test -n "$CC"; then
2388 echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6
2391 echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2396 if test -z "$CC"; then
2397 if test -n "$ac_tool_prefix"; then
2400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$CC"; then
2428 echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$CC" && break
2438 if test -z "$CC"; then
2442 # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_ac_ct_CC="$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 echo "${ECHO_T}$ac_ct_CC" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$ac_ct_CC" && break
2486 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2487 See \`config.log' for more details." >&5
2488 echo "$as_me: error: no acceptable C compiler found in \$PATH
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }
2492 # Provide some information about the compiler.
2493 echo "$as_me:$LINENO:" \
2494 "checking for C compiler version" >&5
2495 ac_compiler=`set X $ac_compile; echo $2`
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2497 (eval $ac_compiler --version </dev/null >&5) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }
2501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2502 (eval $ac_compiler -v </dev/null >&5) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }
2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2507 (eval $ac_compiler -V </dev/null >&5) 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2527 ac_clean_files_save=$ac_clean_files
2528 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2529 # Try to create an executable without -o first, disregard a.out.
2530 # It will help us diagnose broken compilers, and finding out an intuition
2532 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2533 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2534 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2536 (eval $ac_link_default) 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; then
2540 # Find the output, starting from the most likely. This scheme is
2541 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2544 # Be careful to initialize this variable, since it used to be cached.
2545 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2547 # b.out is created by i960 compilers.
2548 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2550 test -f "$ac_file" || continue
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2555 # This is the source file.
2558 # We found the default executable, but exeext='' is most
2562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563 # FIXME: I believe we export ac_cv_exeext for Libtool,
2564 # but it would be cool to find out if it's true. Does anybody
2565 # maintain Libtool? --akim.
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&2;}
2580 { (exit 77); exit 77; }; }
2583 ac_exeext=$ac_cv_exeext
2584 echo "$as_me:$LINENO: result: $ac_file" >&5
2585 echo "${ECHO_T}$ac_file" >&6
2587 # Check the compiler produces executables we can run. If not, either
2588 # the compiler is broken, or we cross compile.
2589 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2592 # If not cross compiling, check that we can run a simple program.
2593 if test "$cross_compiling" != yes; then
2594 if { ac_try='./$ac_file'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2624 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6
2627 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2630 (eval $ac_link) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; then
2634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2638 for ac_file in conftest.exe conftest conftest.*; do
2639 test -f "$ac_file" || continue
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2656 rm -f conftest$ac_cv_exeext
2657 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2658 echo "${ECHO_T}$ac_cv_exeext" >&6
2660 rm -f conftest.$ac_ext
2661 EXEEXT=$ac_cv_exeext
2663 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2665 if test "${ac_cv_objext+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 rm -f conftest.o conftest.obj
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; then
2689 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&2;}
2704 { (exit 1); exit 1; }; }
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2709 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2710 echo "${ECHO_T}$ac_cv_objext" >&6
2711 OBJEXT=$ac_cv_objext
2713 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 cat >conftest.$ac_ext <<_ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag"
2746 || test ! -s conftest.err'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2769 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2770 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2771 GCC=`test $ac_compiler_gnu = yes && echo yes`
2772 ac_test_CFLAGS=${CFLAGS+set}
2773 ac_save_CFLAGS=$CFLAGS
2775 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2777 if test "${ac_cv_prog_cc_g+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1 >conftest.err
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2827 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2828 if test "$ac_test_CFLAGS" = set; then
2829 CFLAGS=$ac_save_CFLAGS
2830 elif test $ac_cv_prog_cc_g = yes; then
2831 if test "$GCC" = yes; then
2837 if test "$GCC" = yes; then
2843 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 ac_cv_prog_cc_stdc=no
2850 cat >conftest.$ac_ext <<_ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2858 #include <sys/types.h>
2859 #include <sys/stat.h>
2860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2861 struct buf { int x; };
2862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863 static char *e (p, i)
2869 static char *f (char * (*g) (char **, int), char **p, ...)
2874 s = g (p, va_arg (v,int));
2879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2880 function prototypes and stuff, but not '\xHH' hex character constants.
2881 These don't provoke an error unfortunately, instead are silently treated
2882 as 'x'. The following induces an error, until -std1 is added to get
2883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2884 array size at least. It's necessary to write '\x00'==0 to get something
2885 that's true only with -std1. */
2886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2888 int test (int i, double x);
2889 struct s1 {int (*f) (int a);};
2890 struct s2 {int (*f) (double a);};
2891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX -qlanglvl=ansi
2905 # Ultrix and OSF/1 -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions -Aa -D_HPUX_SOURCE
2908 # SVR4 -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2911 CC="$ac_save_CC $ac_arg"
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_prog_cc_stdc=$ac_arg
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2941 rm -f conftest.err conftest.$ac_objext
2943 rm -f conftest.$ac_ext conftest.$ac_objext
2948 case "x$ac_cv_prog_cc_stdc" in
2950 echo "$as_me:$LINENO: result: none needed" >&5
2951 echo "${ECHO_T}none needed" >&6 ;;
2953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2954 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2955 CC="$CC $ac_cv_prog_cc_stdc" ;;
2958 # Some people use a C++ compiler to compile C. Since we use `exit',
2959 # in C++ we need to declare it. In case someone uses the same compiler
2960 # for both compiling C and C++ we need to have the C++ compiler decide
2961 # the declaration of exit, since it's the most demanding environment.
2962 cat >conftest.$ac_ext <<_ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969 (eval $ac_compile) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag"
2977 || test ! -s conftest.err'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 for ac_declaration in \
2991 'extern "C" void std::exit (int) throw (); using std::exit;' \
2992 'extern "C" void std::exit (int); using std::exit;' \
2993 'extern "C" void exit (int) throw ();' \
2994 'extern "C" void exit (int);' \
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3089 if test -n "$ac_declaration"; then
3090 echo '#ifdef __cplusplus' >>confdefs.h
3091 echo $ac_declaration >>confdefs.h
3092 echo '#endif' >>confdefs.h
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
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 DEPDIR="${am__leading_dot}deps"
3108 ac_config_commands="$ac_config_commands depfiles"
3111 am_make=${MAKE-make}
3112 cat > confinc << 'END'
3117 # If we don't find an include directive, just comment out the code.
3118 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3119 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3123 # First try GNU make style include.
3124 echo "include confinc" > confmf
3125 # We grep out `Entering directory' and `Leaving directory'
3126 # messages which can occur if `w' ends up in MAKEFLAGS.
3127 # In particular we don't look at `^make:' because GNU make might
3128 # be invoked under some other name (usually "gmake"), in which
3129 # case it prints its new name instead of `make'.
3130 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3135 # Now try BSD make style include.
3136 if test "$am__include" = "#"; then
3137 echo '.include "confinc"' > confmf
3138 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3139 am__include=.include
3146 echo "$as_me:$LINENO: result: $_am_result" >&5
3147 echo "${ECHO_T}$_am_result" >&6
3148 rm -f confinc confmf
3150 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3151 if test "${enable_dependency_tracking+set}" = set; then
3152 enableval="$enable_dependency_tracking"
3155 if test "x$enable_dependency_tracking" != xno; then
3156 am_depcomp="$ac_aux_dir/depcomp"
3161 if test "x$enable_dependency_tracking" != xno; then
3172 depcc="$CC" am_compiler_list=
3174 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3175 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3176 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3180 # We make a subdir and do the tests there. Otherwise we can end up
3181 # making bogus files that we don't know about and never remove. For
3182 # instance it was reported that on HP-UX the gcc test will end up
3183 # making a dummy file named `D' -- because `-MD' means `put the output
3186 # Copy depcomp to subdir because otherwise we won't find it if we're
3187 # using a relative directory.
3188 cp "$am_depcomp" conftest.dir
3190 # We will build objects and dependencies in a subdirectory because
3191 # it helps to detect inapplicable dependency modes. For instance
3192 # both Tru64's cc and ICC support -MD to output dependencies as a
3193 # side effect of compilation, but ICC will put the dependencies in
3194 # the current directory while Tru64 will put them in the object
3198 am_cv_CC_dependencies_compiler_type=none
3199 if test "$am_compiler_list" = ""; then
3200 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3202 for depmode in $am_compiler_list; do
3203 # Setup a source with many dependencies, because some compilers
3204 # like to wrap large dependency lists on column 80 (with \), and
3205 # we should not choose a depcomp mode which is confused by this.
3207 # We need to recreate these files for each test, as the compiler may
3208 # overwrite some of them when testing with obscure command lines.
3209 # This happens at least with the AIX C compiler.
3211 for i in 1 2 3 4 5 6; do
3212 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240 # icc doesn't choke on unknown options, it will just issue warnings
3241 # (even with -Werror). So we grep stderr for any message
3242 # that says an option was ignored.
3243 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3253 am_cv_CC_dependencies_compiler_type=none
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3267 am__fastdepCC_FALSE='#'
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3281 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3282 # On Suns, sometimes $CPP names a directory.
3283 if test -n "$CPP" && test -d "$CPP"; then
3286 if test -z "$CPP"; then
3287 if test "${ac_cv_prog_CPP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 # Double quotes because CPP needs to be expanded
3291 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3294 for ac_c_preproc_warn_flag in '' yes
3296 # Use a header file that comes with gcc, so configuring glibc
3297 # with a fresh cross-compiler works.
3298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3299 # <limits.h> exists even on freestanding compilers.
3300 # On the NeXT, cc -E runs the code through the compiler's parser,
3301 # not just through cpp. "Syntax error" is here to catch this case.
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3309 # include <limits.h>
3311 # include <assert.h>
3315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null; then
3323 if test -s conftest.err; then
3324 ac_cpp_err=$ac_c_preproc_warn_flag
3325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3332 if test -z "$ac_cpp_err"; then
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 # Broken: fails on valid input.
3341 rm -f conftest.err conftest.$ac_ext
3343 # OK, works on sane cases. Now check whether non-existent headers
3344 # can be detected and how.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <ac_nonexistent.h>
3353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } >/dev/null; then
3361 if test -s conftest.err; then
3362 ac_cpp_err=$ac_c_preproc_warn_flag
3363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370 if test -z "$ac_cpp_err"; then
3371 # Broken: success on invalid input.
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Passes both tests.
3381 rm -f conftest.err conftest.$ac_ext
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then
3398 echo "$as_me:$LINENO: result: $CPP" >&5
3399 echo "${ECHO_T}$CPP" >&6
3401 for ac_c_preproc_warn_flag in '' yes
3403 # Use a header file that comes with gcc, so configuring glibc
3404 # with a fresh cross-compiler works.
3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406 # <limits.h> exists even on freestanding compilers.
3407 # On the NeXT, cc -E runs the code through the compiler's parser,
3408 # not just through cpp. "Syntax error" is here to catch this case.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3416 # include <limits.h>
3418 # include <assert.h>
3422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null; then
3430 if test -s conftest.err; then
3431 ac_cpp_err=$ac_c_preproc_warn_flag
3432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439 if test -z "$ac_cpp_err"; then
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 # Broken: fails on valid input.
3448 rm -f conftest.err conftest.$ac_ext
3450 # OK, works on sane cases. Now check whether non-existent headers
3451 # can be detected and how.
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477 if test -z "$ac_cpp_err"; then
3478 # Broken: success on invalid input.
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Passes both tests.
3488 rm -f conftest.err conftest.$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500 { (exit 1); exit 1; }; }
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 echo "$as_me:$LINENO: checking for egrep" >&5
3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3512 if test "${ac_cv_prog_egrep+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3516 then ac_cv_prog_egrep='grep -E'
3517 else ac_cv_prog_egrep='egrep'
3520 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3521 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3522 EGREP=$ac_cv_prog_egrep
3525 if test $ac_cv_c_compiler_gnu = yes; then
3526 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3527 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3528 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 ac_pattern="Autoconf.*'x'"
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3543 ac_cv_prog_gcc_traditional=yes
3545 ac_cv_prog_gcc_traditional=no
3550 if test $ac_cv_prog_gcc_traditional = no; then
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3562 ac_cv_prog_gcc_traditional=yes
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3569 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3570 if test $ac_cv_prog_gcc_traditional = yes; then
3571 CC="$CC -traditional"
3575 # Find a good install program. We prefer a C program (faster),
3576 # so one script is as good as another. But avoid the broken or
3577 # incompatible versions:
3578 # SysV /etc/install, /usr/sbin/install
3579 # SunOS /usr/etc/install
3580 # IRIX /sbin/install
3582 # AmigaOS /C/install, which installs bootblocks on floppy discs
3583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3586 # OS/2's system install, which has a completely different semantic
3587 # ./install, which can be erroneously created by make from ./install.sh.
3588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3590 if test -z "$INSTALL"; then
3591 if test "${ac_cv_path_install+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 # Account for people who put trailing slashes in PATH elements.
3601 ./ | .// | /cC/* | \
3602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3606 # OSF1 and SCO ODT 3.0 have their own names for install.
3607 # Don't use installbsd from OSF since it installs stuff as root
3609 for ac_prog in ginstall scoinst install; do
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3612 if test $ac_prog = install &&
3613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3614 # AIX install. It has an incompatible calling convention.
3616 elif test $ac_prog = install &&
3617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618 # program-specific install script used by HP pwplus--don't use.
3621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633 if test "${ac_cv_path_install+set}" = set; then
3634 INSTALL=$ac_cv_path_install
3636 # As a last resort, use the slow shell script. We don't cache a
3637 # path for INSTALL within a source directory, because that will
3638 # break other packages using the cache if that directory is
3639 # removed, or if the path is relative.
3640 INSTALL=$ac_install_sh
3643 echo "$as_me:$LINENO: result: $INSTALL" >&5
3644 echo "${ECHO_T}$INSTALL" >&6
3646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3647 # It thinks the first close brace ends the variable substitution.
3648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3654 for ac_prog in gawk mawk nawk awk
3656 # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 set dummy $ac_prog; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_prog_AWK+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -n "$AWK"; then
3664 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_AWK="$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 if test -n "$AWK"; then
3684 echo "$as_me:$LINENO: result: $AWK" >&5
3685 echo "${ECHO_T}$AWK" >&6
3687 echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6
3691 test -n "$AWK" && break
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_RANLIB+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test -n "$RANLIB"; then
3703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 RANLIB=$ac_cv_prog_RANLIB
3722 if test -n "$RANLIB"; then
3723 echo "$as_me:$LINENO: result: $RANLIB" >&5
3724 echo "${ECHO_T}$RANLIB" >&6
3726 echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3731 if test -z "$ac_cv_prog_RANLIB"; then
3732 ac_ct_RANLIB=$RANLIB
3733 # Extract the first word of "ranlib", so it can be a program name with args.
3734 set dummy ranlib; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$ac_ct_RANLIB"; then
3741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_RANLIB="ranlib"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3761 if test -n "$ac_ct_RANLIB"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3763 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 RANLIB=$ac_ct_RANLIB
3771 RANLIB="$ac_cv_prog_RANLIB"
3774 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3777 if test "$LN_S" = "ln -s"; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6
3781 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3782 echo "${ECHO_T}no, using $LN_S" >&6
3785 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3786 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3787 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3788 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 cat > conftest.$ac_ext <<EOF
3792 int main() {return 0;}
3794 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3795 if test -s conftest.out; then
3796 eval "timidity_cv_ccoption_$ac_ccoption=no"
3798 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3801 eval "timidity_cv_ccoption_$ac_ccoption=no"
3806 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3807 echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3817 # Checks for target dependencies
3820 # Check whether --with-elf or --without-elf was given.
3821 if test "${with_elf+set}" = set; then
3829 # Check whether --with-simd or --without-simd was given.
3830 if test "${with_simd+set}" = set; then
3831 withval="$with_simd"
3840 test -n "$SHLD" || SHLD="ld -b"
3844 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3845 test -n "$SHLD" || SHLD="cc -shared -all"
3849 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3854 test -n "$SHLD" || SHLD="ld -Bshareable"
3858 if test "$ELFFORMAT" = yes; then
3859 test -n "$SHLD" || SHLD="ld -Bshareable"
3862 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3863 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3869 # EXTRALIBS="$EXTRALIBS -lxpg4"
3870 # test -n "$SHLD" || SHLD="ld -Bshareable"
3875 EXTRADEFS="-D__W32__"
3878 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3879 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3880 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3881 *) test -n "$SHLD" || SHLD="unknown" ;;
3885 lib_user32_test=-luser32
3888 EXTRADEFS="-D__W32__"
3891 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3892 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3893 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3894 *) test -n "$SHLD" || SHLD="unknown" ;;
3898 lib_user32_test=-luser32
3902 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3906 EXTRADEFS="-DSOLARIS"
3907 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3911 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3915 if test "x$SIMD" = "xyes"; then
3917 cat >>confdefs.h <<\_ACEOF
3918 #define USE_ALTIVEC 1
3921 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3922 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define USE_ALTIVEC 0
3930 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3931 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3932 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3936 test -n "$SHLD" || \
3937 if test "x$GCC" = xyes; then
3940 SHLD="ld -Bdynamic -G"
3947 # Checks for libraries.
3949 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3950 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3951 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_check_lib_save_LIBS=$LIBS
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest$ac_exeext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_lib_m_sqrt=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4007 rm -f conftest.err conftest.$ac_objext \
4008 conftest$ac_exeext conftest.$ac_ext
4009 LIBS=$ac_check_lib_save_LIBS
4011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4012 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4013 if test $ac_cv_lib_m_sqrt = yes; then
4014 cat >>confdefs.h <<_ACEOF
4023 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4024 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4025 if test "${ac_cv_lib_socket_socket+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_check_lib_save_LIBS=$LIBS
4029 LIBS="-lsocket $LIBS"
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_lib_socket_socket=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_lib_socket_socket=no
4081 rm -f conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4086 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4087 if test $ac_cv_lib_socket_socket = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define HAVE_LIBSOCKET 1
4092 LIBS="-lsocket $LIBS"
4096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 ac_check_lib_save_LIBS=$LIBS
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_c_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest$ac_exeext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_lib_dl_dlopen=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_lib_dl_dlopen=no
4154 rm -f conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4160 if test $ac_cv_lib_dl_dlopen = yes; then
4164 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4165 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4166 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 ac_check_lib_save_LIBS=$LIBS
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4184 char NSLinkModule ();
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_lib_objc_NSLinkModule=yes
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_lib_objc_NSLinkModule=no
4222 rm -f conftest.err conftest.$ac_objext \
4223 conftest$ac_exeext conftest.$ac_ext
4224 LIBS=$ac_check_lib_save_LIBS
4226 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4227 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4228 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4231 # Mac OS X need this.
4233 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4234 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4235 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 ac_check_lib_save_LIBS=$LIBS
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4247 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_lib_xpg4_setlocale=yes
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_lib_xpg4_setlocale=no
4291 rm -f conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4293 LIBS=$ac_check_lib_save_LIBS
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4296 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4297 if test $ac_cv_lib_xpg4_setlocale = yes; then
4298 cat >>confdefs.h <<_ACEOF
4299 #define HAVE_LIBXPG4 1
4305 # Mac OS X (and maybe NetBSD) need this.
4307 for ac_func in gethostbyname
4309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4310 echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4312 if eval "test \"\${$as_ac_var+set}\" = set"; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4323 #define $ac_func innocuous_$ac_func
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4331 # include <limits.h>
4333 # include <assert.h>
4338 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4346 /* The GNU C library defines this for functions which it implements
4347 to always fail with ENOSYS. Some functions are actually named
4348 something starting with __ and the normal name is an alias. */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4352 char (*f) () = $ac_func;
4361 return f != $ac_func;
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368 (eval $ac_link) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest$ac_exeext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 eval "$as_ac_var=yes"
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 eval "$as_ac_var=no"
4395 rm -f conftest.err conftest.$ac_objext \
4396 conftest$ac_exeext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4407 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4408 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4409 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_check_lib_save_LIBS=$LIBS
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4427 char gethostbyname ();
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438 (eval $ac_link) 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag"
4446 || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest$ac_exeext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_lib_nsl_gethostbyname=yes
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_lib_nsl_gethostbyname=no
4465 rm -f conftest.err conftest.$ac_objext \
4466 conftest$ac_exeext conftest.$ac_ext
4467 LIBS=$ac_check_lib_save_LIBS
4469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define HAVE_LIBNSL 1
4483 echo "$as_me:$LINENO: checking for X" >&5
4484 echo $ECHO_N "checking for X... $ECHO_C" >&6
4487 # Check whether --with-x or --without-x was given.
4488 if test "${with_x+set}" = set; then
4492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4493 if test "x$with_x" = xno; then
4494 # The user explicitly disabled X.
4497 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4498 # Both variables are already set.
4501 if test "${ac_cv_have_x+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 # One or both of the vars are not set, and there is no cached value.
4505 ac_x_includes=no ac_x_libraries=no
4507 if mkdir conftest.dir; then
4509 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4510 cat >Imakefile <<'_ACEOF'
4512 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4514 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4515 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4516 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4518 for ac_extension in a so sl; do
4519 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4520 test -f $ac_im_libdir/libX11.$ac_extension; then
4521 ac_im_usrlibdir=$ac_im_libdir; break
4524 # Screen out bogus values from the imake configuration. They are
4525 # bogus both because they are the default anyway, and because
4526 # using them would break gcc on systems where it needs fixed includes.
4527 case $ac_im_incroot in
4529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4531 case $ac_im_usrlibdir in
4533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4540 # Standard set of common directories for X headers.
4541 # Check X11 before X11Rn because it is often a symlink to the current release.
4553 /usr/local/X11/include
4554 /usr/local/X11R6/include
4555 /usr/local/X11R5/include
4556 /usr/local/X11R4/include
4558 /usr/local/include/X11
4559 /usr/local/include/X11R6
4560 /usr/local/include/X11R5
4561 /usr/local/include/X11R4
4565 /usr/XFree86/include/X11
4569 /usr/unsupported/include
4571 /usr/local/x11r5/include
4572 /usr/lpp/Xamples/include
4574 /usr/openwin/include
4575 /usr/openwin/share/include'
4577 if test "$ac_x_includes" = no; then
4578 # Guess where to find include files, by looking for Intrinsic.h.
4579 # First, try using that file with no special directory specified.
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <X11/Intrinsic.h>
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null; then
4596 if test -s conftest.err; then
4597 ac_cpp_err=$ac_c_preproc_warn_flag
4598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4605 if test -z "$ac_cpp_err"; then
4606 # We can compile using X headers with no special include directory.
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 for ac_dir in $ac_x_header_dirs; do
4613 if test -r "$ac_dir/X11/Intrinsic.h"; then
4614 ac_x_includes=$ac_dir
4619 rm -f conftest.err conftest.$ac_ext
4620 fi # $ac_x_includes = no
4622 if test "$ac_x_libraries" = no; then
4623 # Check for the libraries.
4624 # See if we find them without any special options.
4625 # Don't add to $LIBS permanently.
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <X11/Intrinsic.h>
4643 rm -f conftest.$ac_objext conftest$ac_exeext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645 (eval $ac_link) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_c_werror_flag"
4653 || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest$ac_exeext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4666 # We can link X programs with no special library path.
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4673 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4675 # Don't even attempt the hair of trying to link an X program!
4676 for ac_extension in a so sl; do
4677 if test -r $ac_dir/libXt.$ac_extension; then
4678 ac_x_libraries=$ac_dir
4684 rm -f conftest.err conftest.$ac_objext \
4685 conftest$ac_exeext conftest.$ac_ext
4686 fi # $ac_x_libraries = no
4688 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4689 # Didn't find X anywhere. Cache the known absence of X.
4690 ac_cv_have_x="have_x=no"
4692 # Record where we found X for the cache.
4693 ac_cv_have_x="have_x=yes \
4694 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4699 eval "$ac_cv_have_x"
4702 if test "$have_x" != yes; then
4703 echo "$as_me:$LINENO: result: $have_x" >&5
4704 echo "${ECHO_T}$have_x" >&6
4707 # If each of the values was on the command line, it overrides each guess.
4708 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4709 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4710 # Update the cache value to reflect the command line values.
4711 ac_cv_have_x="have_x=yes \
4712 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4713 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4714 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4717 if test "$no_x" = yes; then
4718 # Not all programs may use this symbol, but it does not hurt to define it.
4720 cat >>confdefs.h <<\_ACEOF
4721 #define X_DISPLAY_MISSING 1
4724 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4726 if test -n "$x_includes"; then
4727 X_CFLAGS="$X_CFLAGS -I$x_includes"
4730 # It would also be nice to do this for all -L options, not just this one.
4731 if test -n "$x_libraries"; then
4732 X_LIBS="$X_LIBS -L$x_libraries"
4733 # For Solaris; some versions of Sun CC require a space after -R and
4734 # others require no space. Words are not sufficient . . . .
4735 case `(uname -sr) 2>/dev/null` in
4737 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4738 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4739 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4784 rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786 if test $ac_R_nospace = yes; then
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789 X_LIBS="$X_LIBS -R$x_libraries"
4791 LIBS="$ac_xsave_LIBS -R $x_libraries"
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4836 rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 if test $ac_R_space = yes; then
4839 echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4841 X_LIBS="$X_LIBS -R $x_libraries"
4843 echo "$as_me:$LINENO: result: neither works" >&5
4844 echo "${ECHO_T}neither works" >&6
4851 # Check for system-dependent libraries X programs must link with.
4852 # Do this before checking for the system-independent R6 libraries
4853 # (-lICE), since we may need -lsocket or whatever for X linking.
4855 if test "$ISC" = yes; then
4856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4858 # Martyn Johnson says this is needed for Ultrix, if the X
4859 # libraries were built with DECnet support. And Karl Berry says
4860 # the Alpha needs dnet_stub (dnet does not exist).
4861 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4875 char XOpenDisplay ();
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4912 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_check_lib_save_LIBS=$LIBS
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_lib_dnet_dnet_ntoa=yes
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ac_cv_lib_dnet_dnet_ntoa=no
4969 rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4971 LIBS=$ac_check_lib_save_LIBS
4973 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4974 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4975 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4976 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4979 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4980 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4981 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4982 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_check_lib_save_LIBS=$LIBS
4986 LIBS="-ldnet_stub $LIBS"
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4994 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_lib_dnet_stub_dnet_ntoa=no
5038 rm -f conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5043 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5044 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5050 rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS="$ac_xsave_LIBS"
5054 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5055 # to get the SysV transport functions.
5056 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5058 # The nsl library prevents programs from opening the X display
5059 # on Irix 5.2, according to T.E. Dickey.
5060 # The functions gethostbyname, getservbyname, and inet_addr are
5061 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5062 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5063 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5064 if test "${ac_cv_func_gethostbyname+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5075 #define gethostbyname innocuous_gethostbyname
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char gethostbyname (); below.
5079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 <limits.h> exists even on freestanding compilers. */
5083 # include <limits.h>
5085 # include <assert.h>
5088 #undef gethostbyname
5090 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char gethostbyname ();
5098 /* The GNU C library defines this for functions which it implements
5099 to always fail with ENOSYS. Some functions are actually named
5100 something starting with __ and the normal name is an alias. */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5104 char (*f) () = gethostbyname;
5113 return f != gethostbyname;
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120 (eval $ac_link) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_func_gethostbyname=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_cv_func_gethostbyname=no
5147 rm -f conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5151 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5153 if test $ac_cv_func_gethostbyname = no; then
5154 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5155 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5156 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_check_lib_save_LIBS=$LIBS
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char gethostbyname ();
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_lib_nsl_gethostbyname=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_lib_nsl_gethostbyname=no
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5218 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5222 if test $ac_cv_lib_nsl_gethostbyname = no; then
5223 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5224 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_check_lib_save_LIBS=$LIBS
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5243 char gethostbyname ();
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 ac_cv_lib_bsd_gethostbyname=yes
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_lib_bsd_gethostbyname=no
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5286 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5287 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5294 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5295 # socket/setsockopt and other routines are undefined under SCO ODT
5296 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5297 # on later versions), says Simon Leinen: it contains gethostby*
5298 # variants that don't use the name server (or something). -lsocket
5299 # must be given before -lnsl if both are needed. We assume that
5300 # if connect needs -lnsl, so does gethostbyname.
5301 echo "$as_me:$LINENO: checking for connect" >&5
5302 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5303 if test "${ac_cv_func_connect+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5314 #define connect innocuous_connect
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char connect (); below.
5318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319 <limits.h> exists even on freestanding compilers. */
5322 # include <limits.h>
5324 # include <assert.h>
5329 /* Override any gcc2 internal prototype to avoid an error. */
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_connect) || defined (__stub___connect)
5343 char (*f) () = connect;
5352 return f != connect;
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_connect=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_func_connect=no
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5390 echo "${ECHO_T}$ac_cv_func_connect" >&6
5392 if test $ac_cv_func_connect = no; then
5393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5395 if test "${ac_cv_lib_socket_connect+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_lib_socket_connect=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_cv_lib_socket_connect=no
5451 rm -f conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5455 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5456 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5457 if test $ac_cv_lib_socket_connect = yes; then
5458 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5463 # Guillermo Gomez says -lposix is necessary on A/UX.
5464 echo "$as_me:$LINENO: checking for remove" >&5
5465 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5466 if test "${ac_cv_func_remove+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5477 #define remove innocuous_remove
5479 /* System header to define __stub macros and hopefully few prototypes,
5480 which can conflict with char remove (); below.
5481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 <limits.h> exists even on freestanding compilers. */
5485 # include <limits.h>
5487 # include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_remove) || defined (__stub___remove)
5506 char (*f) () = remove;
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_c_werror_flag"
5530 || test ! -s conftest.err'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; } &&
5536 { ac_try='test -s conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_func_remove=yes
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_cv_func_remove=no
5549 rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5553 echo "${ECHO_T}$ac_cv_func_remove" >&6
5555 if test $ac_cv_func_remove = no; then
5556 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5557 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5558 if test "${ac_cv_lib_posix_remove+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lposix $LIBS"
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_lib_posix_remove=yes
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cv_lib_posix_remove=no
5614 rm -f conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5619 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5620 if test $ac_cv_lib_posix_remove = yes; then
5621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5626 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5627 echo "$as_me:$LINENO: checking for shmat" >&5
5628 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5629 if test "${ac_cv_func_shmat+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5640 #define shmat innocuous_shmat
5642 /* System header to define __stub macros and hopefully few prototypes,
5643 which can conflict with char shmat (); below.
5644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 <limits.h> exists even on freestanding compilers. */
5648 # include <limits.h>
5650 # include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_shmat) || defined (__stub___shmat)
5669 char (*f) () = shmat;
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_func_shmat=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5712 rm -f conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5716 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5718 if test $ac_cv_func_shmat = no; then
5719 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5720 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5721 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 ac_check_lib_save_LIBS=$LIBS
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5733 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_lib_ipc_shmat=yes
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cv_lib_ipc_shmat=no
5777 rm -f conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5782 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5783 if test $ac_cv_lib_ipc_shmat = yes; then
5784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5790 # Check for libraries that X11R6 Xt/Xaw programs need.
5791 ac_save_LDFLAGS=$LDFLAGS
5792 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5793 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5794 # check for ICE first), but we must link in the order -lSM -lICE or
5795 # we get undefined symbols. So assume we have SM if we have ICE.
5796 # These have to be linked with before -lX11, unlike the other
5797 # libraries we check for below, so use a different variable.
5798 # John Interrante, Karl Berry
5799 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5800 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_check_lib_save_LIBS=$LIBS
5805 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5819 char IceConnectionNumber ();
5823 IceConnectionNumber ();
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_ICE_IceConnectionNumber=yes
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_ICE_IceConnectionNumber=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5863 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5864 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5867 LDFLAGS=$ac_save_LDFLAGS
5873 if test "x$with_x" = xyes; then
5874 if test "x$have_x" = xno; then
5875 if test "x$x_config_flag" = xyes; then
5876 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5877 echo "$as_me: error: Could not configure X" >&2;}
5878 { (exit 1); exit 1; }; }
5880 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5881 echo "$as_me: WARNING: Could not configure X" >&2;}
5885 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5886 if test "x$x_libraries" != x; then
5887 ldflags_x_opt="-L$x_libraries"
5888 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5889 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5893 if test "x$x_includes" != x; then
5894 CPPFLAGS="$CPPFLAGS -I$x_includes"
5898 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5899 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5900 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_check_lib_save_LIBS=$LIBS
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5912 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5918 char XOpenDisplay ();
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_lib_X11_XOpenDisplay=yes
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_cv_lib_X11_XOpenDisplay=no
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5961 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5962 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBX11 1
5971 echo "$as_me:$LINENO: checking X11 version 6" >&5
5972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5973 if test "${timidity_cv_x11_version_6+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <X11/Xlib.h>
5987 #if XlibSpecificationRelease < 6
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag"
6005 || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 timidity_cv_x11_version_6=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 timidity_cv_x11_version_6=no
6024 rm -f conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6028 if test "$timidity_cv_x11_version_6" = "yes"; then
6029 echo "$as_me:$LINENO: result: 6 or newer" >&5
6030 echo "${ECHO_T}6 or newer" >&6
6032 echo "$as_me:$LINENO: result: before 6" >&5
6033 echo "${ECHO_T}before 6" >&6
6037 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6038 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6039 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_check_lib_save_LIBS=$LIBS
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6051 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6057 char XShapeCombineMask ();
6061 XShapeCombineMask ();
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_lib_Xext_XShapeCombineMask=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_lib_Xext_XShapeCombineMask=no
6095 rm -f conftest.err conftest.$ac_objext \
6096 conftest$ac_exeext conftest.$ac_ext
6097 LIBS=$ac_check_lib_save_LIBS
6099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6100 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6101 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6102 have_xext=yes; LIBS="-lXext $LIBS"
6108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_check_lib_save_LIBS=$LIBS
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6122 /* Override any gcc2 internal prototype to avoid an error. */
6126 /* We use char because int might match the return type of a gcc2
6127 builtin and then its argument prototype would still apply. */
6128 char IceConnectionNumber ();
6132 IceConnectionNumber ();
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139 (eval $ac_link) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_lib_ICE_IceConnectionNumber=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_cv_lib_ICE_IceConnectionNumber=no
6166 rm -f conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6170 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6171 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6172 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6173 cat >>confdefs.h <<_ACEOF
6174 #define HAVE_LIBICE 1
6181 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6182 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6183 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_check_lib_save_LIBS=$LIBS
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201 char SmcOpenConnection ();
6205 SmcOpenConnection ();
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_lib_SM_SmcOpenConnection=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_lib_SM_SmcOpenConnection=no
6239 rm -f conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6243 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6244 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6245 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6246 have_xprelibs=yes; LIBS="-lSM $LIBS"
6251 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6252 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6253 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_check_lib_save_LIBS=$LIBS
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6265 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char XtVaAppInitialize ();
6275 XtVaAppInitialize ();
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_lib_Xt_XtVaAppInitialize=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_cv_lib_Xt_XtVaAppInitialize=no
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 LIBS=$ac_check_lib_save_LIBS
6313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6314 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6315 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6316 have_xt=yes; LIBS="-lXt $LIBS"
6321 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6322 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_check_lib_save_LIBS=$LIBS
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char XmuInternAtom ();
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest$ac_exeext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_cv_lib_Xmu_XmuInternAtom=yes
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_cv_lib_Xmu_XmuInternAtom=no
6379 rm -f conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6383 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6384 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6385 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6390 for ac_func in XmuRegisterExternalAgent
6392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_func" >&5
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_var+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6406 #define $ac_func innocuous_$ac_func
6408 /* System header to define __stub macros and hopefully few prototypes,
6409 which can conflict with char $ac_func (); below.
6410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411 <limits.h> exists even on freestanding compilers. */
6414 # include <limits.h>
6416 # include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6429 /* The GNU C library defines this for functions which it implements
6430 to always fail with ENOSYS. Some functions are actually named
6431 something starting with __ and the normal name is an alias. */
6432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6435 char (*f) () = $ac_func;
6444 return f != $ac_func;
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 eval "$as_ac_var=yes"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 eval "$as_ac_var=no"
6478 rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6483 if test `eval echo '${'$as_ac_var'}'` = yes; then
6484 cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6491 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6492 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6493 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lXaw3d $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char XawInitializeWidgetSet ();
6515 XawInitializeWidgetSet ();
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6554 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6555 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6558 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6559 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6560 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_check_lib_save_LIBS=$LIBS
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6578 char XawInitializeWidgetSet ();
6582 XawInitializeWidgetSet ();
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6616 rm -f conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6621 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6622 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6630 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6631 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6632 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_check_lib_save_LIBS=$LIBS
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char XmCreateForm ();
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest$ac_exeext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_lib_Xm_XmCreateForm=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_cv_lib_Xm_XmCreateForm=no
6688 rm -f conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6692 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6693 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6694 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6701 for ac_func in XShmCreatePixmap
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6717 #define $ac_func innocuous_$ac_func
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func (); below.
6721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 <limits.h> exists even on freestanding compilers. */
6725 # include <limits.h>
6727 # include <assert.h>
6732 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6746 char (*f) () = $ac_func;
6755 return f != $ac_func;
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 eval "$as_ac_var=yes"
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 eval "$as_ac_var=no"
6789 rm -f conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6794 if test `eval echo '${'$as_ac_var'}'` = yes; then
6795 cat >>confdefs.h <<_ACEOF
6796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6805 # Checks for header files.
6806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_header_stdc=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_header_stdc=no
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 if test $ac_cv_header_stdc = yes; then
6862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "memchr" >/dev/null 2>&1; then
6876 ac_cv_header_stdc=no
6882 if test $ac_cv_header_stdc = yes; then
6883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "free" >/dev/null 2>&1; then
6897 ac_cv_header_stdc=no
6903 if test $ac_cv_header_stdc = yes; then
6904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905 if test "$cross_compiling" = yes; then
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6919 # define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6938 rm -f conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6951 echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_header_stdc=no
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983 inttypes.h stdint.h unistd.h
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
6999 #include <$ac_header>
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest.$ac_objext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 eval "$as_ac_Header=yes"
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 eval "$as_ac_Header=no"
7030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7044 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7045 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7046 if test "${ac_cv_header_stdbool_h+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 #include <stdbool.h>
7058 # error bool is not defined
7061 # error false is not defined
7064 # error false is not 0
7067 # error true is not defined
7070 # error true is not 1
7072 #ifndef __bool_true_false_are_defined
7073 # error __bool_true_false_are_defined is not defined
7076 struct s { _Bool s: 1; _Bool t; } s;
7078 char a[true == 1 ? 1 : -1];
7079 char b[false == 0 ? 1 : -1];
7080 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7081 char d[(bool) -0.5 == true ? 1 : -1];
7083 char f[(_Bool) -0.0 == false ? 1 : -1];
7085 char h[sizeof (_Bool)];
7091 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag"
7106 || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest.$ac_objext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_header_stdbool_h=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_header_stdbool_h=no
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7128 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7129 echo "$as_me:$LINENO: checking for _Bool" >&5
7130 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7131 if test "${ac_cv_type__Bool+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try='test -z "$ac_c_werror_flag"
7162 || test ! -s conftest.err'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_type__Bool=yes
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7184 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7185 if test $ac_cv_type__Bool = yes; then
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE__BOOL 1
7194 if test $ac_cv_header_stdbool_h = yes; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_STDBOOL_H 1
7202 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7203 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7204 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <sys/types.h>
7214 #include <sys/wait.h>
7216 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7227 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1 >conftest.err
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_header_sys_wait_h=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_header_sys_wait_h=no
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7264 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7265 if test $ac_cv_header_sys_wait_h = yes; then
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_SYS_WAIT_H 1
7273 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7275 if test "${ac_cv_header_time+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/types.h>
7285 #include <sys/time.h>
7291 if ((struct tm *) 0)
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299 (eval $ac_compile) 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -z "$ac_c_werror_flag"
7307 || test ! -s conftest.err'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; } &&
7313 { ac_try='test -s conftest.$ac_objext'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7319 ac_cv_header_time=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_cv_header_time=no
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7329 echo "${ECHO_T}$ac_cv_header_time" >&6
7330 if test $ac_cv_header_time = yes; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define TIME_WITH_SYS_TIME 1
7344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7345 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7346 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <sys/types.h>
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_Header=yes"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_Header=no"
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7407 ac_header_dirent=$ac_hdr; break
7411 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7412 if test $ac_header_dirent = dirent.h; then
7413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7415 if test "${ac_cv_search_opendir+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_func_search_save_LIBS=$LIBS
7419 ac_cv_search_opendir=no
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_search_opendir="none required"
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 if test "$ac_cv_search_opendir" = no; then
7473 for ac_lib in dir; do
7474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7482 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_search_opendir="-l$ac_lib"
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7526 rm -f conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7530 LIBS=$ac_func_search_save_LIBS
7532 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7533 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7534 if test "$ac_cv_search_opendir" != no; then
7535 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7540 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7542 if test "${ac_cv_search_opendir+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_func_search_save_LIBS=$LIBS
7546 ac_cv_search_opendir=no
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7554 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag"
7579 || test ! -s conftest.err'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_search_opendir="none required"
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7597 rm -f conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 if test "$ac_cv_search_opendir" = no; then
7601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7609 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_search_opendir="-l$ac_lib"
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7657 LIBS=$ac_func_search_save_LIBS
7659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7661 if test "$ac_cv_search_opendir" != no; then
7662 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748 echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7756 # Is the header compilable?
7757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759 cat >conftest.$ac_ext <<_ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 #include <$ac_header>
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_header_compiler=yes
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_header_compiler=no
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 #include <$ac_header>
7812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } >/dev/null; then
7820 if test -s conftest.err; then
7821 ac_cpp_err=$ac_c_preproc_warn_flag
7822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7829 if test -z "$ac_cpp_err"; then
7830 ac_header_preproc=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_header_preproc=no
7837 rm -f conftest.err conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839 echo "${ECHO_T}$ac_header_preproc" >&6
7841 # So? What about this header?
7842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848 ac_header_preproc=yes
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865 ## ------------------------------- ##
7866 ## Report this to root@mput.dip.jp ##
7867 ## ------------------------------- ##
7870 sed "s/^/$as_me: WARNING: /" >&2
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 eval "$as_ac_Header=\$ac_header_preproc"
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885 cat >>confdefs.h <<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7911 #ifdef HAVE_X11_XLIB_H
7912 #include <X11/Xlib.h>
7916 #include <$ac_header>
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 eval "$as_ac_Header=yes"
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 eval "$as_ac_Header=no"
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7952 cat >>confdefs.h <<_ACEOF
7953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960 if test "${ac_cv_header_string_h+set}" = set; then
7961 echo "$as_me:$LINENO: checking for string.h" >&5
7962 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7963 if test "${ac_cv_header_string_h+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7967 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7969 # Is the header compilable?
7970 echo "$as_me:$LINENO: checking string.h usability" >&5
7971 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 $ac_includes_default
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_header_compiler=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_header_compiler=no
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking string.h presence" >&5
8016 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } >/dev/null; then
8033 if test -s conftest.err; then
8034 ac_cpp_err=$ac_c_preproc_warn_flag
8035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8042 if test -z "$ac_cpp_err"; then
8043 ac_header_preproc=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8064 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8078 ## ------------------------------- ##
8079 ## Report this to root@mput.dip.jp ##
8080 ## ------------------------------- ##
8083 sed "s/^/$as_me: WARNING: /" >&2
8086 echo "$as_me:$LINENO: checking for string.h" >&5
8087 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_string_h+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cv_header_string_h=$ac_header_preproc
8093 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8097 if test $ac_cv_header_string_h = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define NO_STRING_H 1
8109 # Checks for typedefs, structures, and compiler characteristics.
8110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8112 if test "${ac_cv_c_bigendian+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 # See if sys/param.h defines the BYTE_ORDER macro.
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 #include <sys/types.h>
8123 #include <sys/param.h>
8128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 # It does; now see whether it defined to BIG_ENDIAN or not.
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <sys/types.h>
8166 #include <sys/param.h>
8171 #if BYTE_ORDER != BIG_ENDIAN
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>conftest.er1
8183 grep -v '^ *+' conftest.er1 >conftest.err
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest.$ac_objext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_c_bigendian=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 ac_cv_c_bigendian=no
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 # It does not; compile a test program.
8214 if test "$cross_compiling" = yes; then
8215 # try to guess the endianness by grepping values into an object file
8216 ac_cv_c_bigendian=unknown
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8232 _ascii (); _ebcdic ();
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8260 ac_cv_c_bigendian=yes
8262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8263 if test "$ac_cv_c_bigendian" = unknown; then
8264 ac_cv_c_bigendian=no
8266 # finding both strings is unlikely to happen, but who knows?
8267 ac_cv_c_bigendian=unknown
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8286 /* Are we little or big endian? From Harbison&Steele. */
8290 char c[sizeof (long)];
8293 exit (u.c[sizeof (long) - 1] == 1);
8296 rm -f conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298 (eval $ac_link) 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_c_bigendian=no
8309 echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_cv_c_bigendian=yes
8316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8323 case $ac_cv_c_bigendian in
8326 cat >>confdefs.h <<\_ACEOF
8327 #define WORDS_BIGENDIAN 1
8333 { { echo "$as_me:$LINENO: error: unknown endianness
8334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8335 echo "$as_me: error: unknown endianness
8336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8337 { (exit 1); exit 1; }; } ;;
8341 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8342 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8343 if test "${ac_cv_c_char_unsigned+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8356 static int test_array [1 - 2 * !(((char) -1) < 0)];
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_c_char_unsigned=no
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_cv_c_char_unsigned=yes
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8395 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8396 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define __CHAR_UNSIGNED__ 1
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8418 /* FIXME: Include the comments suggested by Paul. */
8420 /* Ultrix mips cc rejects this. */
8421 typedef int charset[2];
8423 /* SunOS 4.1.1 cc rejects this. */
8424 char const *const *ccp;
8426 /* NEC SVR4.0.2 mips cc rejects this. */
8427 struct point {int x, y;};
8428 static struct point const zero = {0,0};
8429 /* AIX XL C 1.02.0.0 rejects this.
8430 It does not let you subtract one const X* pointer from another in
8431 an arm of an if-expression whose if-part is not a constant
8433 const char *g = "string";
8434 ccp = &g + (g ? g-g : 0);
8435 /* HPUX 7.0 cc rejects these. */
8438 ccp = (char const *const *) p;
8439 { /* SCO 3.2v4 cc rejects this. */
8441 char const *s = 0 ? (char *) 0 : (char const *) 0;
8445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8447 const int *foo = &x[0];
8450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8451 typedef const int *iptr;
8455 { /* AIX XL C 1.02.0.0 rejects this saying
8456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8457 struct s { int j; const int *ap[3]; };
8458 struct s *b; b->j = 5;
8460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8501 echo "${ECHO_T}$ac_cv_c_const" >&6
8502 if test $ac_cv_c_const = no; then
8504 cat >>confdefs.h <<\_ACEOF
8510 echo "$as_me:$LINENO: checking for inline" >&5
8511 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8512 if test "${ac_cv_c_inline+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 for ac_kw in inline __inline__ __inline; do
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8525 static $ac_kw foo_t static_foo () {return 0; }
8526 $ac_kw foo_t foo () {return 0; }
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_c_inline=$ac_kw; break
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8563 echo "${ECHO_T}$ac_cv_c_inline" >&6
8566 case $ac_cv_c_inline in
8569 case $ac_cv_c_inline in
8571 *) ac_val=$ac_cv_c_inline;;
8573 cat >>confdefs.h <<_ACEOF
8575 #define inline $ac_val
8581 echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_c_volatile=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8636 if test $ac_cv_c_volatile = no; then
8638 cat >>confdefs.h <<\_ACEOF
8644 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8645 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8646 if test "${ac_cv_c_stringize+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8657 char *s = x(teststring);
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 $EGREP "#teststring" >/dev/null 2>&1; then
8661 ac_cv_c_stringize=no
8663 ac_cv_c_stringize=yes
8668 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8669 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8670 if test $ac_cv_c_stringize = yes; then
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_STRINGIZE 1
8678 echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8680 if test "$ac_cv_prog_cc_stdc" != no; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6
8684 cat >>confdefs.h <<\_ACEOF
8685 #define PROTOTYPES 1
8689 cat >>confdefs.h <<\_ACEOF
8690 #define __PROTOTYPES 1
8694 echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8700 if test "${ac_cv_struct_tm+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 #include <sys/types.h>
8715 struct tm *tp; tp->tm_sec;
8720 rm -f conftest.$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722 (eval $ac_compile) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest.$ac_objext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_struct_tm=time.h
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_struct_tm=sys/time.h
8749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8752 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8753 if test $ac_cv_struct_tm = sys/time.h; then
8755 cat >>confdefs.h <<\_ACEOF
8756 #define TM_IN_SYS_TIME 1
8761 echo "$as_me:$LINENO: checking for size_t" >&5
8762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_size_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8778 if (sizeof (size_t))
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_type_size_t=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_type_size_t=no
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8817 if test $ac_cv_type_size_t = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define size_t unsigned
8827 echo "$as_me:$LINENO: checking for off_t" >&5
8828 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8829 if test "${ac_cv_type_off_t+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 $ac_includes_default
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_type_off_t=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8882 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8883 if test $ac_cv_type_off_t = yes; then
8887 cat >>confdefs.h <<_ACEOF
8893 echo "$as_me:$LINENO: checking for pid_t" >&5
8894 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8895 if test "${ac_cv_type_pid_t+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_type_pid_t=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8949 if test $ac_cv_type_pid_t = yes; then
8953 cat >>confdefs.h <<_ACEOF
8960 echo "$as_me:$LINENO: checking volatile declaration" >&5
8961 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8962 if test "${timidity_cv_type_volatile+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 timidity_cv_type_volatile=yes
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 timidity_cv_type_volatile=no
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9012 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9013 if test $timidity_cv_type_volatile = no; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define NO_VOLATILE 1
9021 echo "$as_me:$LINENO: checking union semun declaration" >&5
9022 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9023 if test "${timidity_cv_type_union_semun+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 #include <sys/types.h>
9034 #include <sys/ipc.h>
9035 #include <sys/sem.h>
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 timidity_cv_type_union_semun=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 timidity_cv_type_union_semun=no
9074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9077 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9078 if test $timidity_cv_type_union_semun = yes; then
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_UNION_SEMUN 1
9086 if test "x$CYGNUS" = xyes; then
9087 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9088 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9089 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9099 #include <windows.h>
9100 #include <mmsystem.h>
9105 return WOM_OPEN != 0x3BB
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112 (eval $ac_compile) 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 timidity_cv_header_new_mmsystem=yes
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 timidity_cv_header_new_mmsystem=no
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9142 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9143 if test $timidity_cv_header_new_mmsystem = yes; then
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_NEW_MMSYSTEM 1
9152 if test "x$MINGW" = xyes; then
9153 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9154 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9155 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9165 #include <windows.h>
9166 #include <mmsystem.h>
9171 return WOM_OPEN != 0x3BB
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 timidity_cv_header_new_mmsystem=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 timidity_cv_header_new_mmsystem=no
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9208 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9209 if test $timidity_cv_header_new_mmsystem = yes; then
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_NEW_MMSYSTEM 1
9218 # Checks for library functions.
9219 echo "$as_me:$LINENO: checking for error_at_line" >&5
9220 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9221 if test "${ac_cv_lib_error_at_line+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 $ac_includes_default
9234 error_at_line (0, 0, "", 0, "");
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_error_at_line=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_error_at_line=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9272 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9273 if test $ac_cv_lib_error_at_line = no; then
9275 "error.$ac_objext" | \
9276 *" error.$ac_objext" | \
9277 "error.$ac_objext "* | \
9278 *" error.$ac_objext "* ) ;;
9279 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9286 for ac_header in unistd.h vfork.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9298 # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <$ac_header>
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler=yes
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_header_compiler=no
9339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6
9343 # Is the header present?
9344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 #include <$ac_header>
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } >/dev/null; then
9362 if test -s conftest.err; then
9363 ac_cpp_err=$ac_c_preproc_warn_flag
9364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 if test -z "$ac_cpp_err"; then
9372 ac_header_preproc=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_header_preproc=no
9379 rm -f conftest.err conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9381 echo "${ECHO_T}$ac_header_preproc" >&6
9383 # So? What about this header?
9384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9390 ac_header_preproc=yes
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9407 ## ------------------------------- ##
9408 ## Report this to root@mput.dip.jp ##
9409 ## ------------------------------- ##
9412 sed "s/^/$as_me: WARNING: /" >&2
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 eval "$as_ac_Header=\$ac_header_preproc"
9422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437 for ac_func in fork vfork
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9461 # include <limits.h>
9463 # include <assert.h>
9468 /* Override any gcc2 internal prototype to avoid an error. */
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482 char (*f) () = $ac_func;
9491 return f != $ac_func;
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 eval "$as_ac_var=no"
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 if test "x$ac_cv_func_fork" = xyes; then
9539 echo "$as_me:$LINENO: checking for working fork" >&5
9540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9541 if test "${ac_cv_func_fork_works+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 if test "$cross_compiling" = yes; then
9545 ac_cv_func_fork_works=cross
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* By Ruediger Kuhlmann. */
9549 #include <sys/types.h>
9551 # include <unistd.h>
9553 /* Some systems only have a dummy stub for fork() */
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_func_fork_works=yes
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_func_fork_works=no
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9588 ac_cv_func_fork_works=$ac_cv_func_fork
9590 if test "x$ac_cv_func_fork_works" = xcross; then
9592 *-*-amigaos* | *-*-msdosdjgpp*)
9593 # Override, as these systems have only a dummy fork() stub
9594 ac_cv_func_fork_works=no
9597 ac_cv_func_fork_works=yes
9600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9603 ac_cv_func_vfork_works=$ac_cv_func_vfork
9604 if test "x$ac_cv_func_vfork" = xyes; then
9605 echo "$as_me:$LINENO: checking for working vfork" >&5
9606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9607 if test "${ac_cv_func_vfork_works+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 if test "$cross_compiling" = yes; then
9611 ac_cv_func_vfork_works=cross
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Thanks to Paul Eggert for this test. */
9622 #include <sys/types.h>
9623 #include <sys/stat.h>
9624 #include <sys/wait.h>
9626 # include <unistd.h>
9631 /* On some sparc systems, changes by the child to local and incoming
9632 argument registers are propagated back to the parent. The compiler
9633 is told about this with #include <vfork.h>, but some compilers
9634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9635 static variable whose address is put into a register that is
9636 clobbered by the vfork. */
9639 sparc_address_test (int arg)
9641 sparc_address_test (arg) int arg;
9662 pid_t parent = getpid ();
9665 sparc_address_test (0);
9670 /* Here is another test for sparc vfork register problems. This
9671 test uses lots of local variables, at least as many local
9672 variables as main has allocated so far including compiler
9673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9675 reuse the register of parent for one of the local variables,
9676 since it will think that parent can't possibly be used any more
9677 in this routine. Assigning to the local variable will thus
9678 munge parent in the parent process. */
9680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9682 /* Convince the compiler that p..p7 are live; otherwise, it might
9683 use the same hardware register for all 8 local variables. */
9684 if (p != p1 || p != p2 || p != p3 || p != p4
9685 || p != p5 || p != p6 || p != p7)
9688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9689 from child file descriptors. If the child closes a descriptor
9690 before it execs or exits, this munges the parent's descriptor
9691 as well. Test for this by closing stdout in the child. */
9692 _exit(close(fileno(stdout)) != 0);
9697 while (wait(&status) != child)
9700 /* Was there some problem with vforking? */
9703 /* Did the child fail? (This shouldn't happen.) */
9706 /* Did the vfork/compiler bug occur? */
9707 || parent != getpid()
9709 /* Did the file descriptor bug occur? */
9710 || fstat(fileno(stdout), &st) != 0
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_func_vfork_works=yes
9728 echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_func_vfork_works=no
9735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9742 if test "x$ac_cv_func_fork_works" = xcross; then
9743 ac_cv_func_vfork_works=$ac_cv_func_vfork
9744 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9748 if test "x$ac_cv_func_vfork_works" = xyes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_WORKING_VFORK 1
9756 cat >>confdefs.h <<\_ACEOF
9761 if test "x$ac_cv_func_fork_works" = xyes; then
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_WORKING_FORK 1
9769 echo "$as_me:$LINENO: checking for working memcmp" >&5
9770 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9771 if test "${ac_cv_func_memcmp_working+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 if test "$cross_compiling" = yes; then
9775 ac_cv_func_memcmp_working=no
9777 cat >conftest.$ac_ext <<_ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9788 /* Some versions of memcmp are not 8-bit clean. */
9789 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9790 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9793 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9794 or more and with at least one buffer not starting on a 4-byte boundary.
9795 William Lewis provided this test program. */
9800 for (i = 0; i < 4; i++)
9804 strcpy (a, "--------01111111");
9805 strcpy (b, "--------10000000");
9806 if (memcmp (a, b, 16) >= 0)
9816 rm -f conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_func_memcmp_working=yes
9829 echo "$as_me: program exited with status $ac_status" >&5
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_func_memcmp_working=no
9836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9840 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9841 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9842 "memcmp.$ac_objext" | \
9843 *" memcmp.$ac_objext" | \
9844 "memcmp.$ac_objext "* | \
9845 *" memcmp.$ac_objext "* ) ;;
9846 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9852 for ac_header in stdlib.h unistd.h
9854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9864 # Is the header compilable?
9865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 $ac_includes_default
9874 #include <$ac_header>
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1 >conftest.err
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest.$ac_objext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_header_compiler=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_header_compiler=no
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9907 echo "${ECHO_T}$ac_header_compiler" >&6
9909 # Is the header present?
9910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 #include <$ac_header>
9920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } >/dev/null; then
9928 if test -s conftest.err; then
9929 ac_cpp_err=$ac_c_preproc_warn_flag
9930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937 if test -z "$ac_cpp_err"; then
9938 ac_header_preproc=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_preproc=no
9945 rm -f conftest.err conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9947 echo "${ECHO_T}$ac_header_preproc" >&6
9949 # So? What about this header?
9950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9956 ac_header_preproc=yes
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9973 ## ------------------------------- ##
9974 ## Report this to root@mput.dip.jp ##
9975 ## ------------------------------- ##
9978 sed "s/^/$as_me: WARNING: /" >&2
9981 echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 eval "$as_ac_Header=\$ac_header_preproc"
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 for ac_func in getpagesize
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10047 char (*f) () = $ac_func;
10056 return f != $ac_func;
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 eval "$as_ac_var=yes"
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 eval "$as_ac_var=no"
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096 cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 echo "$as_me:$LINENO: checking for working mmap" >&5
10104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 if test "$cross_compiling" = yes; then
10109 ac_cv_func_mmap_fixed_mapped=no
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 $ac_includes_default
10118 /* malloc might have been renamed as rpl_malloc. */
10121 /* Thanks to Mike Haertel and Jim Avera for this test.
10122 Here is a matrix of mmap possibilities:
10123 mmap private not fixed
10124 mmap private fixed at somewhere currently unmapped
10125 mmap private fixed at somewhere already mapped
10126 mmap shared not fixed
10127 mmap shared fixed at somewhere currently unmapped
10128 mmap shared fixed at somewhere already mapped
10129 For private mappings, we should verify that changes cannot be read()
10130 back from the file, nor mmap's back from the file at a different
10131 address. (There have been systems where private was not correctly
10132 implemented like the infamous i386 svr4.0, and systems where the
10133 VM page cache was not coherent with the file system buffer cache
10134 like early versions of FreeBSD and possibly contemporary NetBSD.)
10135 For shared mappings, we should conversely verify that changes get
10136 propagated back to all the places they're supposed to be.
10138 Grep wants private fixed already mapped.
10139 The main things grep needs to know about mmap are:
10140 * does it exist and is it safe to write into the mmap'd area
10141 * how to use it (BSD variants) */
10144 #include <sys/mman.h>
10146 #if !STDC_HEADERS && !HAVE_STDLIB_H
10150 /* This mess was copied from the GNU getpagesize.h. */
10151 #if !HAVE_GETPAGESIZE
10152 /* Assume that all systems that can run configure have sys/param.h. */
10153 # if !HAVE_SYS_PARAM_H
10154 # define HAVE_SYS_PARAM_H 1
10157 # ifdef _SC_PAGESIZE
10158 # define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 # if HAVE_SYS_PARAM_H
10161 # include <sys/param.h>
10162 # ifdef EXEC_PAGESIZE
10163 # define getpagesize() EXEC_PAGESIZE
10164 # else /* no EXEC_PAGESIZE */
10166 # define getpagesize() NBPG * CLSIZE
10169 # endif /* no CLSIZE */
10170 # else /* no NBPG */
10172 # define getpagesize() NBPC
10173 # else /* no NBPC */
10175 # define getpagesize() PAGESIZE
10176 # endif /* PAGESIZE */
10177 # endif /* no NBPC */
10178 # endif /* no NBPG */
10179 # endif /* no EXEC_PAGESIZE */
10180 # else /* no HAVE_SYS_PARAM_H */
10181 # define getpagesize() 8192 /* punt totally */
10182 # endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10185 #endif /* no HAVE_GETPAGESIZE */
10190 char *data, *data2, *data3;
10194 pagesize = getpagesize ();
10196 /* First, make a file with some known garbage in it. */
10197 data = (char *) malloc (pagesize);
10200 for (i = 0; i < pagesize; ++i)
10201 *(data + i) = rand ();
10203 fd = creat ("conftest.mmap", 0600);
10206 if (write (fd, data, pagesize) != pagesize)
10210 /* Next, try to mmap the file at a fixed address which already has
10211 something else allocated at it. If we can, also make sure that
10212 we see the same garbage. */
10213 fd = open ("conftest.mmap", O_RDWR);
10216 data2 = (char *) malloc (2 * pagesize);
10219 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10220 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10223 for (i = 0; i < pagesize; ++i)
10224 if (*(data + i) != *(data2 + i))
10227 /* Finally, make sure that changes to the mapped area do not
10228 percolate back to the file as seen by read(). (This is a bug on
10229 some variants of i386 svr4.0.) */
10230 for (i = 0; i < pagesize; ++i)
10231 *(data2 + i) = *(data2 + i) + 1;
10232 data3 = (char *) malloc (pagesize);
10235 if (read (fd, data3, pagesize) != pagesize)
10237 for (i = 0; i < pagesize; ++i)
10238 if (*(data + i) != *(data3 + i))
10244 rm -f conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246 (eval $ac_link) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_func_mmap_fixed_mapped=yes
10257 echo "$as_me: program exited with status $ac_status" >&5
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ( exit $ac_status )
10262 ac_cv_func_mmap_fixed_mapped=no
10264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10268 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10269 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_MMAP 1
10276 rm -f conftest.mmap
10278 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10279 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10280 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_cv_func_setvbuf_reversed=no
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10292 int (setvbuf) (FILE *, int, char *, size_t);
10297 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10332 int (setvbuf) (FILE *, int, char *, size_t);
10337 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 # It compiles and links either way, so it must not be declared
10365 # with a prototype and most likely this is a K&R C compiler.
10367 if test "$cross_compiling" = yes; then
10368 : # Assume setvbuf is not reversed when cross-compiling.
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10380 /* This call has the arguments reversed.
10381 A reversed system may check and see that the address of buf
10382 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10384 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10387 exit (0); /* Non-reversed systems SEGV here. */
10392 rm -f conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_cv_func_setvbuf_reversed=yes
10405 echo "$as_me: program exited with status $ac_status" >&5
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ( exit $ac_status )
10412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414 ac_cv_func_setvbuf_reversed=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10427 rm -f conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10431 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10432 if test $ac_cv_func_setvbuf_reversed = yes; then
10434 cat >>confdefs.h <<\_ACEOF
10435 #define SETVBUF_REVERSED 1
10440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10442 if test "${ac_cv_type_signal+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <signal.h>
10457 extern "C" void (*signal (int, void (*)(int)))(int);
10459 void (*signal ()) ();
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_type_signal=void
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_cv_type_signal=int
10499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10502 echo "${ECHO_T}$ac_cv_type_signal" >&6
10504 cat >>confdefs.h <<_ACEOF
10505 #define RETSIGTYPE $ac_cv_type_signal
10510 for ac_func in vprintf
10512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_var+set}\" = set"; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526 #define $ac_func innocuous_$ac_func
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10534 # include <limits.h>
10536 # include <assert.h>
10541 /* Override any gcc2 internal prototype to avoid an error. */
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10555 char (*f) () = $ac_func;
10564 return f != $ac_func;
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 eval "$as_ac_var=yes"
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 eval "$as_ac_var=no"
10598 rm -f conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10608 echo "$as_me:$LINENO: checking for _doprnt" >&5
10609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10610 if test "${ac_cv_func__doprnt+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10621 #define _doprnt innocuous__doprnt
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char _doprnt (); below.
10625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626 <limits.h> exists even on freestanding compilers. */
10629 # include <limits.h>
10631 # include <assert.h>
10636 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10644 /* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10650 char (*f) () = _doprnt;
10659 return f != _doprnt;
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_func__doprnt=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_cv_func__doprnt=no
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10698 if test $ac_cv_func__doprnt = yes; then
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_DOPRNT 1
10778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10779 echo "$as_me:$LINENO: checking for $ac_func" >&5
10780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_var+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10792 #define $ac_func innocuous_$ac_func
10794 /* System header to define __stub macros and hopefully few prototypes,
10795 which can conflict with char $ac_func (); below.
10796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797 <limits.h> exists even on freestanding compilers. */
10800 # include <limits.h>
10802 # include <assert.h>
10807 /* Override any gcc2 internal prototype to avoid an error. */
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821 char (*f) () = $ac_func;
10830 return f != $ac_func;
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 eval "$as_ac_var=no"
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877 echo "$as_me:$LINENO: checking for getopt_long" >&5
10878 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10879 if test "${ac_cv_func_getopt_long+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define getopt_long innocuous_getopt_long
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char getopt_long (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10898 # include <limits.h>
10900 # include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char getopt_long ();
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10919 char (*f) () = getopt_long;
10928 return f != getopt_long;
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 ac_cv_func_getopt_long=yes
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 ac_cv_func_getopt_long=no
10962 rm -f conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10966 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10967 if test $ac_cv_func_getopt_long = yes; then
10969 cat >>confdefs.h <<\_ACEOF
10970 #define HAVE_GETOPT_LONG 1
10973 tm_cv_needgetopt="no"
10975 tm_cv_needgetopt="yes"
10980 if test "x$tm_cv_needgetopt" = "xyes"; then
10982 NEEDGETOPT_FALSE='#'
10984 NEEDGETOPT_TRUE='#'
10990 if test "x$CYGNUS" = xyes; then
10991 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
10993 echo "$as_me:$LINENO: checking for opendir" >&5
10994 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10995 if test "${ac_cv_func_opendir+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11006 #define opendir innocuous_opendir
11008 /* System header to define __stub macros and hopefully few prototypes,
11009 which can conflict with char opendir (); below.
11010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11011 <limits.h> exists even on freestanding compilers. */
11014 # include <limits.h>
11016 # include <assert.h>
11021 /* Override any gcc2 internal prototype to avoid an error. */
11026 /* We use char because int might match the return type of a gcc2
11027 builtin and then its argument prototype would still apply. */
11029 /* The GNU C library defines this for functions which it implements
11030 to always fail with ENOSYS. Some functions are actually named
11031 something starting with __ and the normal name is an alias. */
11032 #if defined (__stub_opendir) || defined (__stub___opendir)
11035 char (*f) () = opendir;
11044 return f != opendir;
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_c_werror_flag"
11059 || test ! -s conftest.err'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; } &&
11065 { ac_try='test -s conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_func_opendir=yes
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_cv_func_opendir=no
11078 rm -f conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11083 if test $ac_cv_func_opendir = yes; then
11086 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11091 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11095 if test "x$enable_network" = "xyes"; then
11096 echo "$as_me:$LINENO: checking for socket" >&5
11097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11098 if test "${ac_cv_func_socket+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109 #define socket innocuous_socket
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char socket (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11117 # include <limits.h>
11119 # include <assert.h>
11124 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined (__stub_socket) || defined (__stub___socket)
11138 char (*f) () = socket;
11147 return f != socket;
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154 (eval $ac_link) 2>conftest.er1
11156 grep -v '^ *+' conftest.er1 >conftest.err
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest$ac_exeext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_cv_func_socket=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_cv_func_socket=no
11181 rm -f conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11185 echo "${ECHO_T}$ac_cv_func_socket" >&6
11186 if test $ac_cv_func_socket = yes; then
11189 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11190 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11191 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11192 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_save_LIBS="$LIBS"
11196 LIBS="-lwsock32 $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 #include <windows.h>
11204 #include <winsock.h>
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "wapi_cv_lib_$ac_lib_var=yes"
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 eval "wapi_cv_lib_$ac_lib_var=no"
11243 rm -f conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS="$ac_save_LIBS"
11248 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11249 echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11251 EXTRALIBS="$EXTRALIBS -lwsock32"
11252 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11254 echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11264 if test "x$CYGWIN" = xyes; then
11265 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
11267 echo "$as_me:$LINENO: checking for opendir" >&5
11268 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11269 if test "${ac_cv_func_opendir+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11280 #define opendir innocuous_opendir
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char opendir (); below.
11284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 <limits.h> exists even on freestanding compilers. */
11288 # include <limits.h>
11290 # include <assert.h>
11295 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11303 /* The GNU C library defines this for functions which it implements
11304 to always fail with ENOSYS. Some functions are actually named
11305 something starting with __ and the normal name is an alias. */
11306 #if defined (__stub_opendir) || defined (__stub___opendir)
11309 char (*f) () = opendir;
11318 return f != opendir;
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325 (eval $ac_link) 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag"
11333 || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func_opendir=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_func_opendir=no
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11356 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11357 if test $ac_cv_func_opendir = yes; then
11360 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11365 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11369 if test "x$enable_network" = "xyes"; then
11370 echo "$as_me:$LINENO: checking for socket" >&5
11371 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11372 if test "${ac_cv_func_socket+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11383 #define socket innocuous_socket
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char socket (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11391 # include <limits.h>
11393 # include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error. */
11403 /* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined (__stub_socket) || defined (__stub___socket)
11412 char (*f) () = socket;
11421 return f != socket;
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_func_socket=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_func_socket=no
11455 rm -f conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11459 echo "${ECHO_T}$ac_cv_func_socket" >&6
11460 if test $ac_cv_func_socket = yes; then
11463 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11464 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11465 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11466 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 ac_save_LIBS="$LIBS"
11470 LIBS="-lwsock32 $LIBS"
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <windows.h>
11478 #include <winsock.h>
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "wapi_cv_lib_$ac_lib_var=yes"
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 eval "wapi_cv_lib_$ac_lib_var=no"
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS="$ac_save_LIBS"
11522 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11523 echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11525 EXTRALIBS="$EXTRALIBS -lwsock32"
11526 EXTRADEFS="$EXTRADEFS -DWINSOCK"
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11537 # Checks on extra paths
11540 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11541 if test "${with_tcl_includes+set}" = set; then
11542 withval="$with_tcl_includes"
11543 if test ! -d $withval; then
11544 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11545 echo "$as_me: WARNING: $withval is not found." >&2;}
11547 tcl_include_dir="-I$withval"
11551 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11552 if test "${with_tcl_libs+set}" = set; then
11553 withval="$with_tcl_libs"
11554 if test ! -d $withval; then
11555 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11556 echo "$as_me: WARNING: $withval is not found." >&2;}
11558 tcl_libdir="-L$withval"
11561 # Check whether --with-tk-includes or --without-tk-includes was given.
11562 if test "${with_tk_includes+set}" = set; then
11563 withval="$with_tk_includes"
11564 if test ! -d $withval; then
11565 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11566 echo "$as_me: WARNING: $withval is not found." >&2;}
11568 tk_includes="-I$withval"
11571 # Check whether --with-tk-libs or --without-tk-libs was given.
11572 if test "${with_tk_libs+set}" = set; then
11573 withval="$with_tk_libs"
11574 if test ! -d $withval; then
11575 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11576 echo "$as_me: WARNING: $withval is not found." >&2;}
11578 tk_libdir="-L$withval"
11582 # Check whether --with-offix-includes or --without-offix-includes was given.
11583 if test "${with_offix_includes+set}" = set; then
11584 withval="$with_offix_includes"
11585 if test ! -d $withval; then
11586 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11587 echo "$as_me: WARNING: $withval is not found." >&2;}
11589 offix_include_dir="-I$withval"
11592 # Check whether --with-offix-libs or --without-offix-libs was given.
11593 if test "${with_offix_libs+set}" = set; then
11594 withval="$with_offix_libs"
11595 if test ! -d $withval; then
11596 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11597 echo "$as_me: WARNING: $withval is not found." >&2;}
11599 offix_lib_dir="-L$withval"
11607 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
11610 # Check whether --with-nas-library or --without-nas-library was given.
11611 if test "${with_nas_library+set}" = set; then
11612 withval="$with_nas_library"
11616 # Check whether --with-nas-includes or --without-nas-includes was given.
11617 if test "${with_nas_includes+set}" = set; then
11618 withval="$with_nas_includes"
11623 # Check whether --enable-audio or --disable-audio was given.
11624 if test "${enable_audio+set}" = set; then
11625 enableval="$enable_audio"
11626 enable_audio=$enableval
11633 test "x$enable_audio" = xyes && enable_audio=default
11635 if test "x$enable_audio" != xno; then
11636 for i in `echo $enable_audio | sed 's/,/ /g'`; do
11637 eval "au_enable_$i=yes"
11643 # Check whether --with-default-output or --without-default-output was given.
11644 if test "${with_default_output+set}" = set; then
11645 withval="$with_default_output"
11646 if test "$enable_audio" != no; then
11647 DEFAULT_PLAYMODE=$withval
11648 eval "au_enable_$DEFAULT_PLAYMODE=yes"
11650 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11651 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11656 if test "x$au_enable_default" = xyes; then
11658 *-*-linux*|*-*-freebsd*)
11662 au_enable_sb_dsp=yes
11664 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11692 au_enable_darwin=yes
11695 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11696 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11702 # Each audio mode's configurations
11703 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11704 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11705 if test "x$au_enable_oss" = xyes; then
11706 EXTRADEFS="$EXTRADEFS -DAU_OSS"
11707 SYSEXTRAS="$SYSEXTRAS oss_a.c"
11708 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11709 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11710 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11714 echo "$as_me:$LINENO: result: yes" >&5
11715 echo "${ECHO_T}yes" >&6
11718 if test "x$ac_cv_header_soundcard_h" = xyes; then
11719 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11720 echo "${ECHO_T}yes - <soundcard.h>" >&6
11722 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11723 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11729 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11730 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11731 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lossaudio $LIBS"
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11743 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_c_werror_flag"
11768 || test ! -s conftest.err'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest$ac_exeext'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_cv_lib_ossaudio_open=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_cv_lib_ossaudio_open=no
11787 rm -f conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11791 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11792 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11793 if test $ac_cv_lib_ossaudio_open = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBOSSAUDIO 1
11798 LIBS="-lossaudio $LIBS"
11805 if test ! -e "/dev/dsp"; then
11806 oss_device=/dev/audio
11811 echo "$as_me:$LINENO: result: no" >&5
11812 echo "${ECHO_T}no" >&6
11815 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11816 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11817 if test "x$au_enable_sun" = xyes; then
11820 if test -f /usr/demo/SOUND/libaudio.a; then
11821 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6
11825 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11826 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11830 if test -f /usr/demo/SOUND/lib/libaudio.a; then
11831 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11832 echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6
11835 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11836 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11839 *) echo "$as_me:$LINENO: result: yes" >&5
11840 echo "${ECHO_T}yes" >&6
11843 EXTRADEFS="$EXTRADEFS -DAU_SUN"
11844 SYSEXTRAS="$SYSEXTRAS sun_a.c"
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11850 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11851 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11852 if test "x$au_enable_hpux" = xyes; then
11854 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6 ;;
11856 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11857 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11859 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11860 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11862 echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11866 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11867 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11868 if test "x$au_enable_irix" = xyes; then
11870 *-sgi-irix5*|*-sgi-irix6.2)
11871 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11872 echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11876 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11877 echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11880 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11881 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11883 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11884 EXTRALIBS="$EXTRASLIBS -laudio"
11886 echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6
11890 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11891 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11892 if test "x$au_enable_mme" = xyes; then
11894 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11895 echo "${ECHO_T}yes" >&6 ;;
11896 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11897 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11899 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11900 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11901 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11902 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11904 echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6
11908 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11909 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11910 if test "x$au_enable_sb_dsp" = xyes; then
11912 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6 ;;
11914 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11915 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11917 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11918 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11920 echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11924 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11925 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11926 if test "x$au_enable_w32" = xyes; then
11929 echo "$as_me:$LINENO: result: yes" >&5
11930 echo "${ECHO_T}yes" >&6
11933 echo "$as_me:$LINENO: result: yes" >&5
11934 echo "${ECHO_T}yes" >&6
11937 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11938 echo "$as_me: WARNING: may not work on $target" >&2;}
11941 SYSEXTRAS="$SYSEXTRAS w32_a.c"
11942 EXTRALIBS="$EXTRALIBS -lwinmm"
11943 EXTRADEFS="$EXTRADEFS -DAU_W32"
11945 echo "$as_me:$LINENO: result: no" >&5
11946 echo "${ECHO_T}no" >&6
11949 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11950 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11951 if test "x$au_enable_darwin" = xyes; then
11952 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11953 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11954 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11957 echo "$as_me:$LINENO: result: yes" >&5
11958 echo "${ECHO_T}yes" >&6;;
11960 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11961 echo "$as_me: WARNING: may not work on $target" >&2;}
11965 echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11970 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11971 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11972 if test "x$au_enable_alsa" = xyes; then
11973 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11974 echo "${ECHO_T}yes, configuring alsa" >&6
11977 KEEPLDFLAGS=$LDFLAGS
11978 alsa_save_CFLAGS="$CFLAGS"
11979 alsa_save_LDFLAGS="$LDFLAGS"
11980 alsa_save_LIBS="$LIBS"
11984 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11985 if test "${with_alsa_prefix+set}" = set; then
11986 withval="$with_alsa_prefix"
11987 alsa_prefix="$withval"
11993 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11994 if test "${with_alsa_inc_prefix+set}" = set; then
11995 withval="$with_alsa_inc_prefix"
11996 alsa_inc_prefix="$withval"
12001 # Check whether --enable-alsatest or --disable-alsatest was given.
12002 if test "${enable_alsatest+set}" = set; then
12003 enableval="$enable_alsatest"
12006 enable_alsatest=yes
12009 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12010 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12011 if test "$alsa_inc_prefix" != "" ; then
12012 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12013 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12015 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12016 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12018 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12020 if test "$alsa_prefix" != "" ; then
12021 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12022 LDFLAGS="$LDFLAGS $ALSA_LIBS"
12025 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12026 LIBS=`echo $LIBS | sed 's/-lm//'`
12027 LIBS=`echo $LIBS | sed 's/-ldl//'`
12028 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12029 LIBS=`echo $LIBS | sed 's/ //'`
12030 LIBS="$ALSA_LIBS $LIBS"
12031 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12032 echo "${ECHO_T}$ALSA_LIBS" >&6
12034 min_alsa_version=0.1.1
12035 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12036 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12038 alsa_min_major_version=`echo $min_alsa_version | \
12039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12040 alsa_min_minor_version=`echo $min_alsa_version | \
12041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12042 alsa_min_micro_version=`echo $min_alsa_version | \
12043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 #include <alsa/asoundlib.h>
12067 /* ensure backward compatibility */
12068 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12069 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12071 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12072 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12074 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12075 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12078 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12081 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12082 # error not present
12085 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12088 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12089 # error not present
12092 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12093 # error not present
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 echo "$as_me:$LINENO: result: found." >&5
12126 echo "${ECHO_T}found." >&6
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 #include <sys/asoundlib.h>
12144 /* ensure backward compatibility */
12145 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12146 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12148 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12149 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12151 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12152 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12155 # if(SND_LIB_MAJOR > $alsa_min_major_version)
12158 # if(SND_LIB_MAJOR < $alsa_min_major_version)
12159 # error not present
12162 # if(SND_LIB_MINOR > $alsa_min_minor_version)
12165 # if(SND_LIB_MINOR < $alsa_min_minor_version)
12166 # error not present
12169 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12170 # error not present
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 echo "$as_me:$LINENO: result: found." >&5
12203 echo "${ECHO_T}found." >&6
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 echo "$as_me:$LINENO: result: not present." >&5
12209 echo "${ECHO_T}not present." >&6
12210 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12211 echo "${ECHO_T}libasound was not found anywhere." >&6
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12216 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12229 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12230 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lasound $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any gcc2 internal prototype to avoid an error. */
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248 char snd_ctl_open ();
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_lib_asound_snd_ctl_open=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ac_cv_lib_asound_snd_ctl_open=no
12286 rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12291 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12292 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define HAVE_LIBASOUND 1
12297 LIBS="-lasound $LIBS"
12300 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12301 echo "${ECHO_T}No linkable libasound was found." >&6
12307 if test "x$alsa_found" = "xyes" ; then
12309 LIBS=`echo $LIBS | sed 's/-lasound//g'`
12310 LIBS=`echo $LIBS | sed 's/ //'`
12311 LIBS="-lasound $LIBS"
12314 CFLAGS="$alsa_save_CFLAGS"
12315 LDFLAGS="$alsa_save_LDFLAGS"
12316 LIBS="$alsa_save_LIBS"
12324 if test "x$alsa_found" = "xyes" ; then
12325 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12326 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12327 for f in $ALSA_CFLAGS; do
12329 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12330 *) CFLAGS="$CPPFLAGS $f" ;;
12334 LIBS="$KEEPLIBS $ALSA_LIBS"
12336 for ac_func in snd_seq_port_info_set_timestamping
12338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12339 echo "$as_me:$LINENO: checking for $ac_func" >&5
12340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_var+set}\" = set"; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12352 #define $ac_func innocuous_$ac_func
12354 /* System header to define __stub macros and hopefully few prototypes,
12355 which can conflict with char $ac_func (); below.
12356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12357 <limits.h> exists even on freestanding compilers. */
12360 # include <limits.h>
12362 # include <assert.h>
12367 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12381 char (*f) () = $ac_func;
12390 return f != $ac_func;
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397 (eval $ac_link) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "$as_ac_var=yes"
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 eval "$as_ac_var=no"
12424 rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12429 if test `eval echo '${'$as_ac_var'}'` = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12438 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12439 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12442 LDFLAGS=$KEEPLDFLAGS
12445 echo "$as_me:$LINENO: result: no" >&5
12446 echo "${ECHO_T}no" >&6
12449 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12450 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12451 if test "x$au_enable_alib" = xyes; then
12453 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12454 echo "${ECHO_T}yes" >&6 ;;
12455 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12456 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12458 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12459 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12460 if test -d /opt/audio/include; then
12461 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12463 if test -d /opt/audio/lib; then
12464 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12466 EXTRALIBS="$EXTRALIBS -lAlib"
12468 echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6
12472 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12473 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12474 if test "x$au_enable_nas" = xyes; then
12475 if test "x$with_x" != xyes; then
12476 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12477 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12478 { (exit 1); exit 1; }; }
12480 EXTRADEFS="$EXTRADEFS -DAU_NAS"
12481 SYSEXTRAS="$SYSEXTRAS nas_a.c"
12484 if test "x$with_nas_library" != x; then
12485 echo "$as_me:$LINENO: result: $with_nas_library" >&5
12486 echo "${ECHO_T}$with_nas_library" >&6;
12487 EXTRALIBS="$EXTRALIBS $with_nas_library"
12489 echo "$as_me:$LINENO: result: " >&5
12490 echo "${ECHO_T}" >&6
12491 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12492 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12493 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 ac_func_search_save_LIBS="$LIBS"
12497 timidity_cv_search_AuOpenServer="no"
12498 for i in $x_libraries/libaudio.a \
12499 /usr/lib/libaudio.so \
12500 /usr/lib/libaudio.a ; do
12501 LIBS="$i $ac_func_search_save_LIBS"
12502 cat >conftest.$ac_ext <<_ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12509 /* Override any gcc2 internal prototype to avoid an error. */
12513 /* We use char because int might match the return type of a gcc2
12514 builtin and then its argument prototype would still apply. */
12515 char AuOpenServer ();
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 timidity_cv_search_AuOpenServer="$i"; break
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 LIBS="$ac_func_search_save_LIBS"
12557 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12558 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12559 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12560 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12561 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12562 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12564 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12565 echo "$as_me: WARNING: NAS library is not found." >&2;}
12568 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12570 if test "x$have_xext" = xyes; then
12571 lib_xext_opt=-lXext
12573 if test "x$have_xprelibs" = xyes; then
12574 lib_xprelibs_opt='-lSM -lICE'
12577 echo "$as_me:$LINENO: result: no" >&5
12578 echo "${ECHO_T}no" >&6
12581 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12582 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12583 if test "x$au_enable_arts" = xyes; then
12584 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12585 echo "${ECHO_T}yes, configuring aRts" >&6
12588 KEEPLDFLAGS=$LDFLAGS
12590 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12591 if test "${with_arts_prefix+set}" = set; then
12592 withval="$with_arts_prefix"
12593 arts_prefix="$withval"
12597 # Check whether --enable-artstest or --disable-artstest was given.
12598 if test "${enable_artstest+set}" = set; then
12599 enableval="$enable_artstest"
12602 enable_artstest=yes
12605 if test x$arts_prefix != x ; then
12606 arts_args="$arts_args --prefix=$arts_prefix"
12607 if test x${ARTS_CONFIG+set} != xset ; then
12608 ARTS_CONFIG=$arts_prefix/bin/artsc-config
12612 # Extract the first word of "artsc-config", so it can be a program name with args.
12613 set dummy artsc-config; ac_word=$2
12614 echo "$as_me:$LINENO: checking for $ac_word" >&5
12615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12616 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 case $ARTS_CONFIG in
12621 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12642 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12644 if test -n "$ARTS_CONFIG"; then
12645 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12646 echo "${ECHO_T}$ARTS_CONFIG" >&6
12648 echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12652 min_arts_version=0.9.5
12653 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12654 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12656 if test "$ARTS_CONFIG" = "no" ; then
12659 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12660 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12662 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12663 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12664 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12666 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12668 if test "x$enable_artstest" = "xyes" ; then
12669 ac_save_CFLAGS="$CFLAGS"
12670 ac_save_LIBS="$LIBS"
12671 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12672 LIBS="$LIBS $ARTS_LIBS"
12673 rm -f conf.artstest
12674 if test "$cross_compiling" = yes; then
12675 echo $ac_n "cross compiling; assumed OK... $ac_c"
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12685 #include <stdlib.h>
12686 #include <string.h>
12690 my_strdup (char *str)
12696 new_str = malloc ((strlen (str) + 1) * sizeof(char));
12697 strcpy (new_str, str);
12707 int major, minor, micro;
12710 system ("touch conf.artstest");
12712 /* HP/UX 9 (%@#!) writes to sscanf strings */
12713 tmp_version = my_strdup("$min_arts_version");
12714 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12715 printf("%s, bad version string\n", "$min_arts_version");
12719 if (($arts_major_version > major) ||
12720 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12721 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12727 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12728 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12729 printf("*** best to upgrade to the required version.\n");
12730 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12731 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12732 printf("*** config.cache before re-running configure\n");
12739 rm -f conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12752 echo "$as_me: program exited with status $ac_status" >&5
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ( exit $ac_status )
12759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12761 CFLAGS="$ac_save_CFLAGS"
12762 LIBS="$ac_save_LIBS"
12765 if test "x$no_arts" = x ; then
12766 echo "$as_me:$LINENO: result: yes" >&5
12767 echo "${ECHO_T}yes" >&6
12770 echo "$as_me:$LINENO: result: no" >&5
12771 echo "${ECHO_T}no" >&6
12772 if test "$ARTS_CONFIG" = "no" ; then
12773 echo "*** The artsc-config script installed by ARTS could not be found"
12774 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12775 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12776 echo "*** full path to artsc-config."
12778 if test -f conf.artstest ; then
12781 echo "*** Could not run ARTS test program, checking why..."
12782 CFLAGS="$CFLAGS $ARTS_CFLAGS"
12783 LIBS="$LIBS $ARTS_LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 echo "*** The test program compiled, but did not run. This usually means"
12825 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12826 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12827 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12828 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12829 echo "*** is required on your system"
12831 echo "*** If you have an old version installed, it is best to remove it, although"
12832 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 echo "*** The test program failed to compile or link. See the file config.log for the"
12838 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12839 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12840 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 CFLAGS="$ac_save_CFLAGS"
12845 LIBS="$ac_save_LIBS"
12854 rm -f conf.artstest
12858 LDFLAGS=$KEEPLDFLAGS
12859 if test "x$no_arts" = x; then
12860 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12861 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12862 for f in $ARTS_CFLAGS; do
12864 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12865 *) CFLAGS="$CPPFLAGS $f" ;;
12869 LIBS="$LIBS $ARTS_LIBS"
12871 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12872 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12875 echo "$as_me:$LINENO: result: no" >&5
12876 echo "${ECHO_T}no" >&6
12879 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12880 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12881 if test "x$au_enable_esd" = xyes; then
12882 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12883 echo "${ECHO_T}yes, configuring esd" >&6
12886 KEEPLDFLAGS=$LDFLAGS
12888 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12889 if test "${with_esd_prefix+set}" = set; then
12890 withval="$with_esd_prefix"
12891 esd_prefix="$withval"
12896 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12897 if test "${with_esd_exec_prefix+set}" = set; then
12898 withval="$with_esd_exec_prefix"
12899 esd_exec_prefix="$withval"
12903 # Check whether --enable-esdtest or --disable-esdtest was given.
12904 if test "${enable_esdtest+set}" = set; then
12905 enableval="$enable_esdtest"
12911 if test x$esd_exec_prefix != x ; then
12912 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12913 if test x${ESD_CONFIG+set} != xset ; then
12914 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12917 if test x$esd_prefix != x ; then
12918 esd_args="$esd_args --prefix=$esd_prefix"
12919 if test x${ESD_CONFIG+set} != xset ; then
12920 ESD_CONFIG=$esd_prefix/bin/esd-config
12924 # Extract the first word of "esd-config", so it can be a program name with args.
12925 set dummy esd-config; ac_word=$2
12926 echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12928 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 case $ESD_CONFIG in
12933 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12954 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12956 if test -n "$ESD_CONFIG"; then
12957 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12958 echo "${ECHO_T}$ESD_CONFIG" >&6
12960 echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6
12964 min_esd_version=0.2.7
12965 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12966 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12968 if test "$ESD_CONFIG" = "no" ; then
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12980 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12982 esd_major_version=`$ESD_CONFIG $esd_args --version | \
12983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12984 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12986 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12988 if test "x$enable_esdtest" = "xyes" ; then
12989 ac_save_CFLAGS="$CFLAGS"
12990 ac_save_LIBS="$LIBS"
12991 CFLAGS="$CFLAGS $ESD_CFLAGS"
12992 LIBS="$LIBS $ESD_LIBS"
12994 if test "$cross_compiling" = yes; then
12995 echo $ac_n "cross compiling; assumed OK... $ac_c"
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13005 #include <stdlib.h>
13006 #include <string.h>
13010 my_strdup (char *str)
13016 new_str = malloc ((strlen (str) + 1) * sizeof(char));
13017 strcpy (new_str, str);
13027 int major, minor, micro;
13030 system ("touch conf.esdtest");
13032 /* HP/UX 9 (%@#!) writes to sscanf strings */
13033 tmp_version = my_strdup("$min_esd_version");
13034 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13035 printf("%s, bad version string\n", "$min_esd_version");
13039 if (($esd_major_version > major) ||
13040 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13041 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13047 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13048 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13049 printf("*** best to upgrade to the required version.\n");
13050 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13051 printf("*** to point to the correct copy of esd-config, and remove the file\n");
13052 printf("*** config.cache before re-running configure\n");
13059 rm -f conftest$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13072 echo "$as_me: program exited with status $ac_status" >&5
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ( exit $ac_status )
13079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13081 CFLAGS="$ac_save_CFLAGS"
13082 LIBS="$ac_save_LIBS"
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091 if test "x$no_esd" = x ; then
13092 echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6
13096 echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13098 if test "$ESD_CONFIG" = "no" ; then
13099 echo "*** The esd-config script installed by ESD could not be found"
13100 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13101 echo "*** your path, or set the ESD_CONFIG environment variable to the"
13102 echo "*** full path to esd-config."
13104 if test -f conf.esdtest ; then
13107 echo "*** Could not run ESD test program, checking why..."
13108 CFLAGS="$CFLAGS $ESD_CFLAGS"
13109 LIBS="$LIBS $ESD_LIBS"
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 echo "*** The test program compiled, but did not run. This usually means"
13159 echo "*** that the run-time linker is not finding ESD or finding the wrong"
13160 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13161 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13162 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13163 echo "*** is required on your system"
13165 echo "*** If you have an old version installed, it is best to remove it, although"
13166 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13171 echo "*** The test program failed to compile or link. See the file config.log for the"
13172 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13173 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13174 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13176 rm -f conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 CFLAGS="$ac_save_CFLAGS"
13179 LIBS="$ac_save_LIBS"
13181 ac_cpp='$CPP $CPPFLAGS'
13182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198 LDFLAGS=$KEEPLDFLAGS
13199 if test "x$no_esd" = x; then
13200 EXTRADEFS="$EXTRADEFS -DAU_ESD"
13201 SYSEXTRAS="$SYSEXTRAS esd_a.c"
13202 for f in $ESD_CFLAGS; do
13204 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
13205 *) CFLAGS="$CPPFLAGS $f" ;;
13209 LIBS="$LIBS $ESD_LIBS"
13211 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13212 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13215 echo "$as_me:$LINENO: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13219 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13220 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13221 if test "x$au_enable_portaudio" = xyes; then
13222 echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13225 EXTRALIBS="$EXTRALIBS -lportaudio"
13226 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13228 echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13232 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13233 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13234 if test "x$au_enable_jack" = xyes; then
13235 echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6
13237 SYSEXTRAS="$SYSEXTRAS jack_a.c"
13238 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13239 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13241 echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13245 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13246 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13247 if test "x$au_enable_vorbis" = xyes; then
13248 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13249 echo "${ECHO_T}yes, configuring vorbis" >&6
13251 # Check whether --with-ogg or --without-ogg was given.
13252 if test "${with_ogg+set}" = set; then
13253 withval="$with_ogg"
13254 ogg_prefix="$withval"
13259 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13260 if test "${with_ogg_libraries+set}" = set; then
13261 withval="$with_ogg_libraries"
13262 ogg_libraries="$withval"
13267 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13268 if test "${with_ogg_includes+set}" = set; then
13269 withval="$with_ogg_includes"
13270 ogg_includes="$withval"
13274 # Check whether --enable-oggtest or --disable-oggtest was given.
13275 if test "${enable_oggtest+set}" = set; then
13276 enableval="$enable_oggtest"
13282 if test "x$ogg_libraries" != "x" ; then
13283 OGG_LIBS="-L$ogg_libraries"
13284 elif test "x$ogg_prefix" != "x" ; then
13285 OGG_LIBS="-L$ogg_prefix/lib"
13286 elif test "x$prefix" != "xNONE" ; then
13287 OGG_LIBS="-L$prefix/lib"
13290 OGG_LIBS="$OGG_LIBS -logg"
13292 if test "x$ogg_includes" != "x" ; then
13293 OGG_CFLAGS="-I$ogg_includes"
13294 elif test "x$ogg_prefix" != "x" ; then
13295 OGG_CFLAGS="-I$ogg_prefix/include"
13296 elif test "x$prefix" != "xNONE"; then
13297 OGG_CFLAGS="-I$prefix/include"
13300 echo "$as_me:$LINENO: checking for Ogg" >&5
13301 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13305 if test "x$enable_oggtest" = "xyes" ; then
13306 ac_save_CFLAGS="$CFLAGS"
13307 ac_save_LIBS="$LIBS"
13308 CFLAGS="$CFLAGS $OGG_CFLAGS"
13309 LIBS="$LIBS $OGG_LIBS"
13311 if test "$cross_compiling" = yes; then
13312 echo $ac_n "cross compiling; assumed OK... $ac_c"
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13322 #include <stdlib.h>
13323 #include <string.h>
13324 #include <ogg/ogg.h>
13328 system("touch conf.oggtest");
13334 rm -f conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336 (eval $ac_link) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13347 echo "$as_me: program exited with status $ac_status" >&5
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ( exit $ac_status )
13354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13356 CFLAGS="$ac_save_CFLAGS"
13357 LIBS="$ac_save_LIBS"
13360 if test "x$no_ogg" = "x" ; then
13361 echo "$as_me:$LINENO: result: yes" >&5
13362 echo "${ECHO_T}yes" >&6
13365 # Check whether --with-vorbis or --without-vorbis was given.
13366 if test "${with_vorbis+set}" = set; then
13367 withval="$with_vorbis"
13368 vorbis_prefix="$withval"
13373 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13374 if test "${with_vorbis_libraries+set}" = set; then
13375 withval="$with_vorbis_libraries"
13376 vorbis_libraries="$withval"
13378 vorbis_libraries=""
13381 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13382 if test "${with_vorbis_includes+set}" = set; then
13383 withval="$with_vorbis_includes"
13384 vorbis_includes="$withval"
13388 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13389 if test "${enable_vorbistest+set}" = set; then
13390 enableval="$enable_vorbistest"
13393 enable_vorbistest=yes
13396 if test "x$vorbis_libraries" != "x" ; then
13397 VORBIS_LIBS="-L$vorbis_libraries"
13398 elif test "x$vorbis_prefix" != "x" ; then
13399 VORBIS_LIBS="-L$vorbis_prefix/lib"
13400 elif test "x$prefix" != "xNONE"; then
13401 VORBIS_LIBS="-L$prefix/lib"
13404 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13405 VORBISFILE_LIBS="-lvorbisfile"
13406 VORBISENC_LIBS="-lvorbisenc"
13408 if test "x$vorbis_includes" != "x" ; then
13409 VORBIS_CFLAGS="-I$vorbis_includes"
13410 elif test "x$vorbis_prefix" != "x" ; then
13411 VORBIS_CFLAGS="-I$vorbis_prefix/include"
13412 elif test "x$prefix" != "xNONE"; then
13413 VORBIS_CFLAGS="-I$prefix/include"
13417 echo "$as_me:$LINENO: checking for Vorbis" >&5
13418 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13422 if test "x$enable_vorbistest" = "xyes" ; then
13423 ac_save_CFLAGS="$CFLAGS"
13424 ac_save_LIBS="$LIBS"
13425 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13426 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13427 rm -f conf.vorbistest
13428 if test "$cross_compiling" = yes; then
13429 echo $ac_n "cross compiling; assumed OK... $ac_c"
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13439 #include <stdlib.h>
13440 #include <string.h>
13441 #include <vorbis/codec.h>
13445 system("touch conf.vorbistest");
13451 rm -f conftest$ac_exeext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453 (eval $ac_link) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13464 echo "$as_me: program exited with status $ac_status" >&5
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ( exit $ac_status )
13471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13473 CFLAGS="$ac_save_CFLAGS"
13474 LIBS="$ac_save_LIBS"
13477 if test "x$no_vorbis" = "x" ; then
13478 echo "$as_me:$LINENO: result: yes" >&5
13479 echo "${ECHO_T}yes" >&6
13482 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13483 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13484 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13485 if test "x$CYGNUS" = "xyes"; then
13486 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13487 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13489 if test "x$MINGW" = "xyes"; then
13490 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13491 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13495 echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6
13497 if test -f conf.vorbistest ; then
13500 echo "*** Could not run Vorbis test program, checking why..."
13501 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13502 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13511 #include <vorbis/codec.h>
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 echo "*** The test program compiled, but did not run. This usually means"
13544 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13545 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13546 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13547 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13548 echo "*** is required on your system"
13550 echo "*** If you have an old version installed, it is best to remove it, although"
13551 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 echo "*** The test program failed to compile or link. See the file config.log for the"
13557 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13558 echo "*** or that you have moved Vorbis since it was installed."
13560 rm -f conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 CFLAGS="$ac_save_CFLAGS"
13563 LIBS="$ac_save_LIBS"
13570 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13571 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13578 rm -f conf.vorbistest
13582 echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6
13584 if test -f conf.oggtest ; then
13587 echo "*** Could not run Ogg test program, checking why..."
13588 CFLAGS="$CFLAGS $OGG_CFLAGS"
13589 LIBS="$LIBS $OGG_LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13598 #include <ogg/ogg.h>
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 echo "*** The test program compiled, but did not run. This usually means"
13631 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13632 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13633 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13634 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13635 echo "*** is required on your system"
13637 echo "*** If you have an old version installed, it is best to remove it, although"
13638 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 echo "*** The test program failed to compile or link. See the file config.log for the"
13644 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13645 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
13646 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
13648 rm -f conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 CFLAGS="$ac_save_CFLAGS"
13651 LIBS="$ac_save_LIBS"
13656 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13657 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13666 echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6
13670 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
13671 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
13672 if test "x$au_enable_gogo" = xyes; then
13673 if test "x$CYGNUS" = "xyes"; then
13674 echo "$as_me:$LINENO: result: yes" >&5
13675 echo "${ECHO_T}yes" >&6
13677 if test "x$MINGW" = "xyes"; then
13678 echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13681 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
13682 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
13686 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
13687 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
13688 EXTRALIBS="$EXTRALIBS -lgogo"
13690 echo "$as_me:$LINENO: result: no" >&5
13691 echo "${ECHO_T}no" >&6
13694 if test "x$au_enable_none" = xyes; then
13695 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
13696 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
13698 echo "$as_me:$LINENO: checking default output mode" >&5
13699 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
13700 if test "x$DEFAULT_PLAYMODE" = x; then
13701 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
13703 case ".$DEFAULT_PLAYMODE" in
13704 .default) TIMIDITY_OUTPUT_ID=d ;;
13705 .oss) TIMIDITY_OUTPUT_ID=d ;;
13706 .alsa) TIMIDITY_OUTPUT_ID=s ;;
13707 .sun) TIMIDITY_OUTPUT_ID=d ;;
13708 .hpux) TIMIDITY_OUTPUT_ID=d ;;
13709 .irix) TIMIDITY_OUTPUT_ID=d ;;
13710 .mme) TIMIDITY_OUTPUT_ID=d ;;
13711 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
13712 .darwin) TIMIDITY_OUTPUT_ID=d ;;
13713 .w32) TIMIDITY_OUTPUT_ID=d ;;
13714 .alib) TIMIDITY_OUTPUT_ID=A ;;
13715 .nas) TIMIDITY_OUTPUT_ID=n ;;
13716 .arts) TIMIDITY_OUTPUT_ID=R ;;
13717 .esd) TIMIDITY_OUTPUT_ID=e ;;
13718 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
13719 .wav) TIMIDITY_OUTPUT_ID=w ;;
13720 .au) TIMIDITY_OUTPUT_ID=u ;;
13721 .aiff) TIMIDITY_OUTPUT_ID=a ;;
13722 .list) TIMIDITY_OUTPUT_ID=l ;;
13723 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
13724 .gogo) TIMIDITY_OUTPUT_ID=g ;;
13725 .jack) TIMIDITY_OUTPUT_ID=j ;;
13726 *) TIMIDITY_OUTPUT_ID= ;;
13728 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
13729 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
13732 # Interface Section
13735 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
13737 # Check whether --enable-interface or --disable-interface was given.
13738 if test "${enable_interface+set}" = set; then
13739 enableval="$enable_interface"
13740 for i in `echo $enableval | sed 's/,/ /g'`; do
13741 eval "enable_$i=yes"
13745 # Dynamic link configuration
13746 # Check whether --enable-dynamic or --disable-dynamic was given.
13747 if test "${enable_dynamic+set}" = set; then
13748 enableval="$enable_dynamic"
13749 if test "x$enable_dynamic" = xyes; then
13750 enable_dynamic=dynamic
13751 elif test "x$enable_dynamic" != xno; then
13752 for i in `echo $enableval | sed 's/,/ /g'`; do
13753 eval "enable_$i=dynamic"
13759 for i in $interface_targets; do
13760 eval "join_targets=$join_targets\$enable_$i"
13763 case ".$join_targets" in
13764 .*dynamic*) NEEDDLOPEN=yes;;
13768 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
13769 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
13771 if test "$NEEDDLOPEN" = "yes"; then
13774 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
13775 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
13776 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 #include <windows.h>
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798 (eval $ac_link) 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -z "$ac_c_werror_flag"
13806 || test ! -s conftest.err'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 wapi_cv_func_LoadLibrary=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 wapi_cv_func_LoadLibrary=no
13825 rm -f conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13829 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
13830 echo "$as_me:$LINENO: result: yes" >&5
13831 echo "${ECHO_T}yes" >&6
13834 echo "$as_me:$LINENO: result: no" >&5
13835 echo "${ECHO_T}no" >&6
13838 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
13840 if test "$have_dl" = "no"; then
13841 echo "$as_me:$LINENO: checking for shl_load" >&5
13842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13843 if test "${ac_cv_func_shl_load+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 cat >conftest.$ac_ext <<_ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13854 #define shl_load innocuous_shl_load
13856 /* System header to define __stub macros and hopefully few prototypes,
13857 which can conflict with char shl_load (); below.
13858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13859 <limits.h> exists even on freestanding compilers. */
13862 # include <limits.h>
13864 # include <assert.h>
13869 /* Override any gcc2 internal prototype to avoid an error. */
13874 /* We use char because int might match the return type of a gcc2
13875 builtin and then its argument prototype would still apply. */
13877 /* The GNU C library defines this for functions which it implements
13878 to always fail with ENOSYS. Some functions are actually named
13879 something starting with __ and the normal name is an alias. */
13880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13883 char (*f) () = shl_load;
13892 return f != shl_load;
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13899 (eval $ac_link) 2>conftest.er1
13901 grep -v '^ *+' conftest.er1 >conftest.err
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_func_shl_load=yes
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_cv_func_shl_load=no
13926 rm -f conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13931 if test $ac_cv_func_shl_load = yes; then
13936 if test "$have_dl" = "no"; then
13937 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
13938 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
13939 if test "${ac_cv_func_NSLinkModule+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define NSLinkModule innocuous_NSLinkModule
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char NSLinkModule (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13963 #undef NSLinkModule
13965 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char NSLinkModule ();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
13979 char (*f) () = NSLinkModule;
13988 return f != NSLinkModule;
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_func_NSLinkModule=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_cv_func_NSLinkModule=no
14022 rm -f conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14025 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14026 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14027 if test $ac_cv_func_NSLinkModule = yes; then
14032 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14035 if test "$have_dl" = "no"; then
14036 echo "$as_me:$LINENO: checking for dlopen" >&5
14037 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14038 if test "${ac_cv_func_dlopen+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14049 #define dlopen innocuous_dlopen
14051 /* System header to define __stub macros and hopefully few prototypes,
14052 which can conflict with char dlopen (); below.
14053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054 <limits.h> exists even on freestanding compilers. */
14057 # include <limits.h>
14059 # include <assert.h>
14064 /* Override any gcc2 internal prototype to avoid an error. */
14069 /* We use char because int might match the return type of a gcc2
14070 builtin and then its argument prototype would still apply. */
14072 /* The GNU C library defines this for functions which it implements
14073 to always fail with ENOSYS. Some functions are actually named
14074 something starting with __ and the normal name is an alias. */
14075 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14078 char (*f) () = dlopen;
14087 return f != dlopen;
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_func_dlopen=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_cv_func_dlopen=no
14121 rm -f conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14124 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14125 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14126 if test $ac_cv_func_dlopen = yes; then
14131 if test "$have_dl" = "no"; then
14132 echo "$as_me:$LINENO: checking for dld_init" >&5
14133 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14134 if test "${ac_cv_func_dld_init+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14145 #define dld_init innocuous_dld_init
14147 /* System header to define __stub macros and hopefully few prototypes,
14148 which can conflict with char dld_init (); below.
14149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14150 <limits.h> exists even on freestanding compilers. */
14153 # include <limits.h>
14155 # include <assert.h>
14160 /* Override any gcc2 internal prototype to avoid an error. */
14165 /* We use char because int might match the return type of a gcc2
14166 builtin and then its argument prototype would still apply. */
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14174 char (*f) () = dld_init;
14183 return f != dld_init;
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190 (eval $ac_link) 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag"
14198 || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_func_dld_init=yes
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_func_dld_init=no
14217 rm -f conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14221 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14222 if test $ac_cv_func_dld_init = yes; then
14227 if test "$have_dl" = "no"; then
14228 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14229 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14230 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_check_lib_save_LIBS=$LIBS
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_lib_dld_dld_init=yes
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_cv_lib_dld_dld_init=no
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14291 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14292 if test $ac_cv_lib_dld_dld_init = yes; then
14293 have_dl=dld;lib_dl_opt=-ldld
14298 echo "$as_me:$LINENO: checking dynamic link method" >&5
14299 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14302 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14303 echo "${ECHO_T}use dl_dlopen.c" >&6
14304 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14305 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14306 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14307 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 case "$ac_cv_header_dlfcn_h" in
14311 yes) i_dlfcn=define;;
14322 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
14324 #include <sys/types.h>
14329 extern int fred() ;
14338 int mode = RTLD_LAZY ;
14340 handle = dlopen("./dyna.$so", mode) ;
14341 if (handle == NULL) {
14346 symbol = dlsym(handle, "fred") ;
14347 if (symbol == NULL) {
14348 /* try putting a leading underscore */
14349 symbol = dlsym(handle, "_fred") ;
14350 if (symbol == NULL) {
14363 : Call the object file tmp-dyna.o in case dlext=o.
14364 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14365 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14366 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14367 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14370 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
14371 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
14373 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
14374 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
14376 3) timidity_cv_func_dlsym_underscore=yes
14378 4) timidity_cv_func_dlsym_underscore=no
14382 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14383 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14385 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14389 case "x$timidity_cv_func_dlsym_underscore" in
14391 cat >>confdefs.h <<\_ACEOF
14392 #define DLSYM_NEEDS_UNDERSCORE 1
14395 echo "$as_me:$LINENO: result: yes" >&5
14396 echo "${ECHO_T}yes" >&6
14399 echo "$as_me:$LINENO: result: no" >&5
14400 echo "${ECHO_T}no" >&6
14406 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14407 echo "${ECHO_T}use dl_dld.c" >&6
14408 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14411 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14412 echo "${ECHO_T}use dl_hpux.c" >&6
14413 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14414 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14417 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14418 echo "${ECHO_T}use dl_w32.c" >&6
14419 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14422 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14423 echo "${ECHO_T}use dl_dyld.c" >&6
14424 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14428 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14429 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14434 if test "$NEEDDLOPEN" = "yes"; then
14435 cat >> confdefs.h <<EOF
14436 #define IA_DYNAMIC 1
14440 cat >>confdefs.h <<_ACEOF
14441 #define SHARED_LIB_EXT ".$so"
14444 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
14449 if test "$NEEDDLOPEN" = "yes"; then
14451 NEEDDLOPEN_FALSE='#'
14453 NEEDDLOPEN_TRUE='#'
14462 ENABLE_NCURSES_TRUE=
14463 ENABLE_NCURSES_FALSE='#'
14465 ENABLE_NCURSES_TRUE='#'
14466 ENABLE_NCURSES_FALSE=
14469 # Check whether --enable-ncurses or --disable-ncurses was given.
14470 if test "${enable_ncurses+set}" = set; then
14471 enableval="$enable_ncurses"
14472 case "x$enable_ncurses" in xyes|xdynamic)
14475 for ac_header in ncurses.h ncurses/curses.h curses.h
14477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14487 # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 #include <$ac_header>
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_header_compiler=yes
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_header_compiler=no
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14530 echo "${ECHO_T}$ac_header_compiler" >&6
14532 # Is the header present?
14533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 #include <$ac_header>
14543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14546 grep -v '^ *+' conftest.er1 >conftest.err
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } >/dev/null; then
14551 if test -s conftest.err; then
14552 ac_cpp_err=$ac_c_preproc_warn_flag
14553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14560 if test -z "$ac_cpp_err"; then
14561 ac_header_preproc=yes
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_header_preproc=no
14568 rm -f conftest.err conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14570 echo "${ECHO_T}$ac_header_preproc" >&6
14572 # So? What about this header?
14573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14579 ac_header_preproc=yes
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14596 ## ------------------------------- ##
14597 ## Report this to root@mput.dip.jp ##
14598 ## ------------------------------- ##
14601 sed "s/^/$as_me: WARNING: /" >&2
14604 echo "$as_me:$LINENO: checking for $ac_header" >&5
14605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 eval "$as_ac_Header=\$ac_header_preproc"
14611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14626 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
14628 *) for i in /usr/include /usr/local/include; do
14629 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
14630 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
14631 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
14632 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
14639 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
14640 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
14641 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 ac_check_lib_save_LIBS=$LIBS
14645 LIBS="-lncurses $LIBS"
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 /* Override any gcc2 internal prototype to avoid an error. */
14657 /* We use char because int might match the return type of a gcc2
14658 builtin and then its argument prototype would still apply. */
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -z "$ac_c_werror_flag"
14678 || test ! -s conftest.err'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest$ac_exeext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 ac_cv_lib_ncurses_initscr=yes
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 ac_cv_lib_ncurses_initscr=no
14697 rm -f conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14699 LIBS=$ac_check_lib_save_LIBS
14701 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
14702 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
14703 if test $ac_cv_lib_ncurses_initscr = yes; then
14704 lib_curses_opt=-lncurses
14706 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
14707 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
14708 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lcurses $lib_user32_test $LIBS"
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14726 char PDC_set_ctrl_break ();
14730 PDC_set_ctrl_break ();
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest$ac_exeext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_lib_curses_PDC_set_ctrl_break=yes
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_cv_lib_curses_PDC_set_ctrl_break=no
14764 rm -f conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14766 LIBS=$ac_check_lib_save_LIBS
14768 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
14769 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
14770 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
14771 lib_curses_opt=-lcurses
14773 cat >>confdefs.h <<\_ACEOF
14774 #define USE_PDCURSES 1
14777 lib_user32_opt="$lib_user32_test"
14780 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
14781 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
14782 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lpdcurses $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any gcc2 internal prototype to avoid an error. */
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14800 char PDC_set_ctrl_break ();
14804 PDC_set_ctrl_break ();
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>conftest.er1
14813 grep -v '^ *+' conftest.er1 >conftest.err
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest$ac_exeext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
14838 rm -f conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
14843 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
14844 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
14845 lib_curses_opt=-lpdcurses
14847 cat >>confdefs.h <<\_ACEOF
14848 #define USE_PDCURSES 1
14851 lib_user32_opt="$lib_user32_test"
14856 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
14857 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
14858 if test "${ac_cv_lib_curses_initscr+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lcurses $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14870 /* Override any gcc2 internal prototype to avoid an error. */
14874 /* We use char because int might match the return type of a gcc2
14875 builtin and then its argument prototype would still apply. */
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14889 grep -v '^ *+' conftest.er1 >conftest.err
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_lib_curses_initscr=yes
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_lib_curses_initscr=no
14914 rm -f conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
14919 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
14920 if test $ac_cv_lib_curses_initscr = yes; then
14921 lib_curses_opt=-lcurses
14923 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
14924 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
14931 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
14946 case "x$enable_ncurses" in
14948 cat >> confdefs.h <<EOF
14949 #define IA_NCURSES 1
14955 ENABLE_NCURSES_TRUE=
14956 ENABLE_NCURSES_FALSE='#'
14958 ENABLE_NCURSES_TRUE='#'
14959 ENABLE_NCURSES_FALSE=
14962 LIBS="$LIBS $lib_curses_opt"
14965 EXTRALIBS="$EXTRALIBS -lmytinfo"
14968 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
14972 dynamic_targets="$dynamic_targets interface_n.\$(so)"
14973 n_so_libs="$lib_curses_opt"
14976 EXTRALIBS="$EXTRALIBS -lmytinfo"
14991 ENABLE_SLANG_FALSE='#'
14993 ENABLE_SLANG_TRUE='#'
14994 ENABLE_SLANG_FALSE=
14997 # Check whether --enable-slang or --disable-slang was given.
14998 if test "${enable_slang+set}" = set; then
14999 enableval="$enable_slang"
15000 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15001 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15002 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lslang $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15014 /* Override any gcc2 internal prototype to avoid an error. */
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15020 char SLang_init_tty ();
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest$ac_exeext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_cv_lib_slang_SLang_init_tty=yes
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_cv_lib_slang_SLang_init_tty=no
15058 rm -f conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060 LIBS=$ac_check_lib_save_LIBS
15062 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15063 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15064 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15068 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15069 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15075 for ac_header in slang/slang.h slang.h
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079 echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15087 # Is the header compilable?
15088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 $ac_includes_default
15097 #include <$ac_header>
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_header_compiler=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_header_compiler=no
15128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15130 echo "${ECHO_T}$ac_header_compiler" >&6
15132 # Is the header present?
15133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <$ac_header>
15143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } >/dev/null; then
15151 if test -s conftest.err; then
15152 ac_cpp_err=$ac_c_preproc_warn_flag
15153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15160 if test -z "$ac_cpp_err"; then
15161 ac_header_preproc=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_header_preproc=no
15168 rm -f conftest.err conftest.$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15170 echo "${ECHO_T}$ac_header_preproc" >&6
15172 # So? What about this header?
15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15179 ac_header_preproc=yes
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15196 ## ------------------------------- ##
15197 ## Report this to root@mput.dip.jp ##
15198 ## ------------------------------- ##
15201 sed "s/^/$as_me: WARNING: /" >&2
15204 echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 eval "$as_ac_Header=\$ac_header_preproc"
15211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226 case "x$enable_slang" in
15228 cat >> confdefs.h <<EOF
15236 ENABLE_SLANG_FALSE='#'
15238 ENABLE_SLANG_TRUE='#'
15239 ENABLE_SLANG_FALSE=
15242 LIBS="$LIBS -lslang"
15243 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15247 dynamic_targets="$dynamic_targets interface_s.\$(so)"
15248 s_so_libs="-lslang"
15249 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15250 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15251 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 ac_check_lib_save_LIBS=$LIBS
15255 LIBS="-ltermcap $LIBS"
15256 cat >conftest.$ac_ext <<_ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15263 /* Override any gcc2 internal prototype to avoid an error. */
15267 /* We use char because int might match the return type of a gcc2
15268 builtin and then its argument prototype would still apply. */
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15280 (eval $ac_link) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest$ac_exeext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_lib_termcap_initscr=yes
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_lib_termcap_initscr=no
15307 rm -f conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15309 LIBS=$ac_check_lib_save_LIBS
15311 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15312 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15313 if test $ac_cv_lib_termcap_initscr = yes; then
15314 s_so_libs="$s_so_libs -ltermcap"
15330 ENABLE_MOTIF_FALSE='#'
15332 ENABLE_MOTIF_TRUE='#'
15333 ENABLE_MOTIF_FALSE=
15336 # Check whether --enable-motif or --disable-motif was given.
15337 if test "${enable_motif+set}" = set; then
15338 enableval="$enable_motif"
15339 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
15340 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15341 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15342 { (exit 1); exit 1; }; }
15344 if test "x$have_xm" != xyes; then
15345 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15346 echo "$as_me: WARNING: Motif library is not found." >&2;}
15351 case "x$enable_motif" in
15353 cat >> confdefs.h <<EOF
15361 ENABLE_MOTIF_FALSE='#'
15363 ENABLE_MOTIF_TRUE='#'
15364 ENABLE_MOTIF_FALSE=
15369 lib_xext_opt=-lXext
15370 if test "x$have_xprelibs" = xyes; then
15371 lib_xprelibs_opt='-lSM -lICE'
15373 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15377 dynamic_targets="$dynamic_targets interface_m.\$(so)"
15378 if test x$have_xprelibs = xyes; then
15379 m_so_libs="-lXext -lSM -lICE"
15381 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15395 ENABLE_TCLTK_FALSE='#'
15397 ENABLE_TCLTK_TRUE='#'
15398 ENABLE_TCLTK_FALSE=
15401 # Check whether --enable-tcltk or --disable-tcltk was given.
15402 if test "${enable_tcltk+set}" = set; then
15403 enableval="$enable_tcltk"
15404 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
15405 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15406 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15407 { (exit 1); exit 1; }; }
15410 KEEPCPPFLAGS=$CPPFLAGS
15411 KEEPLDFLAGS=$LDFLAGS
15414 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15415 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15416 LIBS="$LIBS $lib_dl_opt"
15420 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15421 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15422 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15423 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15424 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 ac_check_lib_save_LIBS=$LIBS
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15436 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 eval "$as_ac_Lib=yes"
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 eval "$as_ac_Lib=no"
15480 rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15491 LIBS="$LIBS $tcl_lib"
15492 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
15493 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
15494 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
15495 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
15496 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 ac_check_lib_save_LIBS=$LIBS
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15508 /* Override any gcc2 internal prototype to avoid an error. */
15512 /* We use char because int might match the return type of a gcc2
15513 builtin and then its argument prototype would still apply. */
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525 (eval $ac_link) 2>conftest.er1
15527 grep -v '^ *+' conftest.er1 >conftest.err
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag"
15533 || test ! -s conftest.err'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; } &&
15539 { ac_try='test -s conftest$ac_exeext'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 eval "$as_ac_Lib=yes"
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 eval "$as_ac_Lib=no"
15552 rm -f conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15557 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15558 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15565 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
15566 CPPFLAGS=$KEEPCPPFLAGS
15567 LDFLAGS=$KEEPLDFLAGS
15569 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
15570 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
15572 tcltk_dep='tclIndex'
15576 case "x$enable_tcltk" in
15578 cat >> confdefs.h <<EOF
15586 ENABLE_TCLTK_FALSE='#'
15588 ENABLE_TCLTK_TRUE='#'
15589 ENABLE_TCLTK_FALSE=
15592 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
15595 EXTRALIBS="$EXTRALIBS -lipc"
15598 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
15602 dynamic_targets="$dynamic_targets interface_k.\$(so)"
15603 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
15606 k_so_libs="$k_so_libs -lipc"
15609 k_so_libs="$k_so_libs -lX11 -lm"
15620 if test "x$enable_tcltk" = "xdynamic"; then
15621 ENABLE_DYNAMIC_TCLTK_TRUE=
15622 ENABLE_DYNAMIC_TCLTK_FALSE='#'
15624 ENABLE_DYNAMIC_TCLTK_TRUE='#'
15625 ENABLE_DYNAMIC_TCLTK_FALSE=
15633 ENABLE_EMACS_FALSE='#'
15635 ENABLE_EMACS_TRUE='#'
15636 ENABLE_EMACS_FALSE=
15639 # Check whether --enable-emacs or --disable-emacs was given.
15640 if test "${enable_emacs+set}" = set; then
15641 enableval="$enable_emacs"
15642 case "x$enable_emacs" in xyes|xdynamic) ;; esac
15644 case "x$enable_emacs" in
15646 cat >> confdefs.h <<EOF
15654 ENABLE_EMACS_FALSE='#'
15656 ENABLE_EMACS_TRUE='#'
15657 ENABLE_EMACS_FALSE=
15660 ELFILES="$ELFILES timidity.el"
15661 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
15665 dynamic_targets="$dynamic_targets interface_e.\$(so)"
15666 ELFILES="$ELFILES timidity.el"
15679 ENABLE_VT100_FALSE='#'
15681 ENABLE_VT100_TRUE='#'
15682 ENABLE_VT100_FALSE=
15685 # Check whether --enable-vt100 or --disable-vt100 was given.
15686 if test "${enable_vt100+set}" = set; then
15687 enableval="$enable_vt100"
15688 case "x$enable_vt100" in xyes|xdynamic) ;; esac
15690 case "x$enable_vt100" in
15692 cat >> confdefs.h <<EOF
15700 ENABLE_VT100_FALSE='#'
15702 ENABLE_VT100_TRUE='#'
15703 ENABLE_VT100_FALSE=
15706 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
15709 dynamic_targets="$dynamic_targets interface_T.\$(so)"
15723 ENABLE_XAW_FALSE='#'
15725 ENABLE_XAW_TRUE='#'
15729 # Check whether --enable-xaw or --disable-xaw was given.
15730 if test "${enable_xaw+set}" = set; then
15731 enableval="$enable_xaw"
15732 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
15733 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
15734 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
15735 { (exit 1); exit 1; }; }
15737 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
15738 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
15739 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
15743 case "x$enable_xaw" in
15745 cat >> confdefs.h <<EOF
15753 ENABLE_XAW_FALSE='#'
15755 ENABLE_XAW_TRUE='#'
15759 if test "x$have_xext" = xyes; then
15760 lib_xext_opt=-lXext
15762 if test "x$have_xprelibs" = xyes; then
15763 lib_xprelibs_opt='-lSM -lICE'
15767 if test "x$have_xaw" = x3d; then
15769 cat >>confdefs.h <<\_ACEOF
15773 lib_xaw_opt=-lXaw3d
15777 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
15781 dynamic_targets="$dynamic_targets interface_a.\$(so)"
15782 if test "x$have_xext" = xyes; then
15783 a_so_libs="-lXext -lX11"
15789 a_so_libs="$a_so_libs -lcc_dynamic"
15792 if test "x$have_xprelibs" = xyes; then
15793 a_so_libs="-lSM -lICE $a_so_libs"
15795 if test "x$have_xaw" = xyes; then
15796 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
15797 elif test "x$have_xaw" = x3d; then
15799 cat >>confdefs.h <<\_ACEOF
15803 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
15805 a_so_libs="$ldflags_x_opt $a_so_libs"
15816 if test "x$enable_xaw" = "xdynamic"; then
15817 ENABLE_DYNAMIC_XAW_TRUE=
15818 ENABLE_DYNAMIC_XAW_FALSE='#'
15820 ENABLE_DYNAMIC_XAW_TRUE='#'
15821 ENABLE_DYNAMIC_XAW_FALSE=
15829 ENABLE_XSKIN_FALSE='#'
15831 ENABLE_XSKIN_TRUE='#'
15832 ENABLE_XSKIN_FALSE=
15835 # Check whether --enable-xskin or --disable-xskin was given.
15836 if test "${enable_xskin+set}" = set; then
15837 enableval="$enable_xskin"
15838 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
15839 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
15840 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
15841 { (exit 1); exit 1; }; }
15845 case "x$enable_xskin" in
15847 cat >> confdefs.h <<EOF
15855 ENABLE_XSKIN_FALSE='#'
15857 ENABLE_XSKIN_TRUE='#'
15858 ENABLE_XSKIN_FALSE=
15861 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
15864 dynamic_targets="$dynamic_targets interface_i.\$(so)"
15865 i_so_libs="$ldflags_x_opt -lX11"
15878 ENABLE_GTK_FALSE='#'
15880 ENABLE_GTK_TRUE='#'
15884 # Check whether --enable-gtk or --disable-gtk was given.
15885 if test "${enable_gtk+set}" = set; then
15886 enableval="$enable_gtk"
15887 case "x$enable_gtk" in xyes|xdynamic)
15888 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
15889 if test "${with_gtk_prefix+set}" = set; then
15890 withval="$with_gtk_prefix"
15891 gtk_config_prefix="$withval"
15893 gtk_config_prefix=""
15896 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15897 if test "${with_gtk_exec_prefix+set}" = set; then
15898 withval="$with_gtk_exec_prefix"
15899 gtk_config_exec_prefix="$withval"
15901 gtk_config_exec_prefix=""
15903 # Check whether --enable-gtktest or --disable-gtktest was given.
15904 if test "${enable_gtktest+set}" = set; then
15905 enableval="$enable_gtktest"
15915 gtk_config_args="$gtk_config_args gthread"
15920 if test x$gtk_config_exec_prefix != x ; then
15921 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15922 if test x${GTK_CONFIG+set} != xset ; then
15923 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15926 if test x$gtk_config_prefix != x ; then
15927 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15928 if test x${GTK_CONFIG+set} != xset ; then
15929 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15933 # Extract the first word of "gtk-config", so it can be a program name with args.
15934 set dummy gtk-config; ac_word=$2
15935 echo "$as_me:$LINENO: checking for $ac_word" >&5
15936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15937 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 case $GTK_CONFIG in
15942 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15963 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15965 if test -n "$GTK_CONFIG"; then
15966 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
15967 echo "${ECHO_T}$GTK_CONFIG" >&6
15969 echo "$as_me:$LINENO: result: no" >&5
15970 echo "${ECHO_T}no" >&6
15973 min_gtk_version=1.1.3
15974 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
15975 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
15977 if test "$GTK_CONFIG" = "no" ; then
15980 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15981 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15982 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15984 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15986 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15988 if test "x$enable_gtktest" = "xyes" ; then
15989 ac_save_CFLAGS="$CFLAGS"
15990 ac_save_LIBS="$LIBS"
15991 CFLAGS="$CFLAGS $GTK_CFLAGS"
15992 LIBS="$GTK_LIBS $LIBS"
15994 if test "$cross_compiling" = yes; then
15995 echo $ac_n "cross compiling; assumed OK... $ac_c"
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16004 #include <gtk/gtk.h>
16006 #include <stdlib.h>
16011 int major, minor, micro;
16014 system ("touch conf.gtktest");
16016 /* HP/UX 9 (%@#!) writes to sscanf strings */
16017 tmp_version = g_strdup("$min_gtk_version");
16018 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
16019 printf("%s, bad version string\n", "$min_gtk_version");
16023 if ((gtk_major_version != $gtk_config_major_version) ||
16024 (gtk_minor_version != $gtk_config_minor_version) ||
16025 (gtk_micro_version != $gtk_config_micro_version))
16027 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16028 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16029 gtk_major_version, gtk_minor_version, gtk_micro_version);
16030 printf ("*** was found! If gtk-config was correct, then it is best\n");
16031 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16032 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16033 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16034 printf("*** required on your system.\n");
16035 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16036 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16037 printf("*** before re-running configure\n");
16039 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16040 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16041 (gtk_minor_version != GTK_MINOR_VERSION) ||
16042 (gtk_micro_version != GTK_MICRO_VERSION))
16044 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16045 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16046 printf("*** library (version %d.%d.%d)\n",
16047 gtk_major_version, gtk_minor_version, gtk_micro_version);
16049 #endif /* defined (GTK_MAJOR_VERSION) ... */
16052 if ((gtk_major_version > major) ||
16053 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16054 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16060 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16061 gtk_major_version, gtk_minor_version, gtk_micro_version);
16062 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16063 major, minor, micro);
16064 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16066 printf("*** If you have already installed a sufficiently new version, this error\n");
16067 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16068 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16069 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16070 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16071 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16072 printf("*** so that the correct libraries are found at run-time))\n");
16079 rm -f conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16092 echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ( exit $ac_status )
16099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16101 CFLAGS="$ac_save_CFLAGS"
16102 LIBS="$ac_save_LIBS"
16105 if test "x$no_gtk" = x ; then
16106 echo "$as_me:$LINENO: result: yes" >&5
16107 echo "${ECHO_T}yes" >&6
16110 echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6
16112 if test "$GTK_CONFIG" = "no" ; then
16113 echo "*** The gtk-config script installed by GTK could not be found"
16114 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16115 echo "*** your path, or set the GTK_CONFIG environment variable to the"
16116 echo "*** full path to gtk-config."
16118 if test -f conf.gtktest ; then
16121 echo "*** Could not run GTK test program, checking why..."
16122 CFLAGS="$CFLAGS $GTK_CFLAGS"
16123 LIBS="$LIBS $GTK_LIBS"
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16131 #include <gtk/gtk.h>
16137 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144 (eval $ac_link) 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -z "$ac_c_werror_flag"
16152 || test ! -s conftest.err'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest$ac_exeext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 echo "*** The test program compiled, but did not run. This usually means"
16165 echo "*** that the run-time linker is not finding GTK or finding the wrong"
16166 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16167 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16168 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16169 echo "*** is required on your system"
16171 echo "*** If you have an old version installed, it is best to remove it, although"
16172 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16174 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16175 echo "*** came with the system with the command"
16177 echo "*** rpm --erase --nodeps gtk gtk-devel"
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 echo "*** The test program failed to compile or link. See the file config.log for the"
16183 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16184 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16185 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16187 rm -f conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 CFLAGS="$ac_save_CFLAGS"
16190 LIBS="$ac_save_LIBS"
16202 case "x$enable_gtk" in
16204 cat >> confdefs.h <<EOF
16212 ENABLE_GTK_FALSE='#'
16214 ENABLE_GTK_TRUE='#'
16218 LIBS="$LIBS $GTK_LIBS"
16219 for f in $GTK_CFLAGS; do
16221 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16222 *) CFLAGS="$CPPFLAGS $f" ;;
16226 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16230 dynamic_targets="$dynamic_targets interface_g.\$(so)"
16231 if test "x$GCC" = xyes; then
16232 for i in $GTK_LIBS; do
16235 *) g_so_libs="$g_so_libs $i" ;;
16239 g_so_libs="$GTK_LIBS"
16241 for f in $GTK_CFLAGS; do
16243 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
16244 *) CFLAGS="$CPPFLAGS $f" ;;
16259 ENABLE_SERVER_TRUE=
16260 ENABLE_SERVER_FALSE='#'
16262 ENABLE_SERVER_TRUE='#'
16263 ENABLE_SERVER_FALSE=
16266 # Check whether --enable-server or --disable-server was given.
16267 if test "${enable_server+set}" = set; then
16268 enableval="$enable_server"
16269 case "x$enable_server" in xyes|xdynamic) ;; esac
16271 case "x$enable_server" in
16273 cat >> confdefs.h <<EOF
16274 #define IA_SERVER 1
16280 ENABLE_SERVER_TRUE=
16281 ENABLE_SERVER_FALSE='#'
16283 ENABLE_SERVER_TRUE='#'
16284 ENABLE_SERVER_FALSE=
16287 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16289 for ac_header in sys/soundcard.h
16291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16293 echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16301 # Is the header compilable?
16302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16311 #include <$ac_header>
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315 (eval $ac_compile) 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag"
16323 || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_header_compiler=no
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6
16346 # Is the header present?
16347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <$ac_header>
16357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_preproc=no
16382 rm -f conftest.err conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384 echo "${ECHO_T}$ac_header_preproc" >&6
16386 # So? What about this header?
16387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393 ac_header_preproc=yes
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ## ------------------------------- ##
16411 ## Report this to root@mput.dip.jp ##
16412 ## ------------------------------- ##
16415 sed "s/^/$as_me: WARNING: /" >&2
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 eval "$as_ac_Header=\$ac_header_preproc"
16425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16441 dynamic_targets="$dynamic_targets interface_r.\$(so)"
16454 ENABLE_ALSASEQ_TRUE=
16455 ENABLE_ALSASEQ_FALSE='#'
16457 ENABLE_ALSASEQ_TRUE='#'
16458 ENABLE_ALSASEQ_FALSE=
16461 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16462 if test "${enable_alsaseq+set}" = set; then
16463 enableval="$enable_alsaseq"
16464 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
16466 case "x$enable_alsaseq" in
16468 cat >> confdefs.h <<EOF
16469 #define IA_ALSASEQ 1
16475 ENABLE_ALSASEQ_TRUE=
16476 ENABLE_ALSASEQ_FALSE='#'
16478 ENABLE_ALSASEQ_TRUE='#'
16479 ENABLE_ALSASEQ_FALSE=
16482 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
16483 alsa_save_CFLAGS="$CFLAGS"
16484 alsa_save_LDFLAGS="$LDFLAGS"
16485 alsa_save_LIBS="$LIBS"
16489 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
16490 if test "${with_alsa_prefix+set}" = set; then
16491 withval="$with_alsa_prefix"
16492 alsa_prefix="$withval"
16498 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
16499 if test "${with_alsa_inc_prefix+set}" = set; then
16500 withval="$with_alsa_inc_prefix"
16501 alsa_inc_prefix="$withval"
16506 # Check whether --enable-alsatest or --disable-alsatest was given.
16507 if test "${enable_alsatest+set}" = set; then
16508 enableval="$enable_alsatest"
16511 enable_alsatest=yes
16514 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
16515 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
16516 if test "$alsa_inc_prefix" != "" ; then
16517 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
16518 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
16520 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
16521 echo "${ECHO_T}$ALSA_CFLAGS" >&6
16523 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
16524 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
16525 if test "$alsa_prefix" != "" ; then
16526 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
16527 LDFLAGS="$LDFLAGS $ALSA_LIBS"
16530 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
16531 LIBS=`echo $LIBS | sed 's/-lm//'`
16532 LIBS=`echo $LIBS | sed 's/-ldl//'`
16533 LIBS=`echo $LIBS | sed 's/-lpthread//'`
16534 LIBS=`echo $LIBS | sed 's/ //'`
16535 LIBS="$ALSA_LIBS $LIBS"
16536 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
16537 echo "${ECHO_T}$ALSA_LIBS" >&6
16539 min_alsa_version=0.1.1
16540 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
16541 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
16543 alsa_min_major_version=`echo $min_alsa_version | \
16544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16545 alsa_min_minor_version=`echo $min_alsa_version | \
16546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16547 alsa_min_micro_version=`echo $min_alsa_version | \
16548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16566 #include <alsa/asoundlib.h>
16572 /* ensure backward compatibility */
16573 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
16574 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
16576 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
16577 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
16579 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
16580 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
16583 # if(SND_LIB_MAJOR > $alsa_min_major_version)
16586 # if(SND_LIB_MAJOR < $alsa_min_major_version)
16587 # error not present
16590 # if(SND_LIB_MINOR > $alsa_min_minor_version)
16593 # if(SND_LIB_MINOR < $alsa_min_minor_version)
16594 # error not present
16597 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
16598 # error not present
16608 rm -f conftest.$ac_objext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>conftest.er1
16612 grep -v '^ *+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag"
16618 || test ! -s conftest.err'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; } &&
16624 { ac_try='test -s conftest.$ac_objext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 echo "$as_me:$LINENO: result: found." >&5
16631 echo "${ECHO_T}found." >&6
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 cat >conftest.$ac_ext <<_ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16643 #include <sys/asoundlib.h>
16649 /* ensure backward compatibility */
16650 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
16651 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
16653 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
16654 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
16656 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
16657 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
16660 # if(SND_LIB_MAJOR > $alsa_min_major_version)
16663 # if(SND_LIB_MAJOR < $alsa_min_major_version)
16664 # error not present
16667 # if(SND_LIB_MINOR > $alsa_min_minor_version)
16670 # if(SND_LIB_MINOR < $alsa_min_minor_version)
16671 # error not present
16674 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
16675 # error not present
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687 (eval $ac_compile) 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 echo "$as_me:$LINENO: result: found." >&5
16708 echo "${ECHO_T}found." >&6
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 echo "$as_me:$LINENO: result: not present." >&5
16714 echo "${ECHO_T}not present." >&6
16715 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
16716 echo "${ECHO_T}libasound was not found anywhere." >&6
16719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
16721 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
16724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16726 ac_cpp='$CPP $CPPFLAGS'
16727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16733 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
16734 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
16735 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lasound $LIBS"
16740 cat >conftest.$ac_ext <<_ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16747 /* Override any gcc2 internal prototype to avoid an error. */
16751 /* We use char because int might match the return type of a gcc2
16752 builtin and then its argument prototype would still apply. */
16753 char snd_ctl_open ();
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16764 (eval $ac_link) 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag"
16772 || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_lib_asound_snd_ctl_open=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_cv_lib_asound_snd_ctl_open=no
16791 rm -f conftest.err conftest.$ac_objext \
16792 conftest$ac_exeext conftest.$ac_ext
16793 LIBS=$ac_check_lib_save_LIBS
16795 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
16796 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
16797 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define HAVE_LIBASOUND 1
16802 LIBS="-lasound $LIBS"
16805 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
16806 echo "${ECHO_T}No linkable libasound was found." >&6
16812 if test "x$alsa_found" = "xyes" ; then
16814 LIBS=`echo $LIBS | sed 's/-lasound//g'`
16815 LIBS=`echo $LIBS | sed 's/ //'`
16816 LIBS="-lasound $LIBS"
16819 CFLAGS="$alsa_save_CFLAGS"
16820 LDFLAGS="$alsa_save_LDFLAGS"
16821 LIBS="$alsa_save_LIBS"
16832 dynamic_targets="$dynamic_targets interface_A.\$(so)"
16845 ENABLE_WINSYN_TRUE=
16846 ENABLE_WINSYN_FALSE='#'
16848 ENABLE_WINSYN_TRUE='#'
16849 ENABLE_WINSYN_FALSE=
16852 # Check whether --enable-winsyn or --disable-winsyn was given.
16853 if test "${enable_winsyn+set}" = set; then
16854 enableval="$enable_winsyn"
16855 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
16857 case "x$enable_winsyn" in
16859 cat >> confdefs.h <<EOF
16860 #define IA_WINSYN 1
16866 ENABLE_WINSYN_TRUE=
16867 ENABLE_WINSYN_FALSE='#'
16869 ENABLE_WINSYN_TRUE='#'
16870 ENABLE_WINSYN_FALSE=
16873 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
16876 dynamic_targets="$dynamic_targets interface_W.\$(so)"
16889 ENABLE_PORTMIDISYN_TRUE=
16890 ENABLE_PORTMIDISYN_FALSE='#'
16892 ENABLE_PORTMIDISYN_TRUE='#'
16893 ENABLE_PORTMIDISYN_FALSE=
16896 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
16897 if test "${enable_portmidisyn+set}" = set; then
16898 enableval="$enable_portmidisyn"
16899 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
16901 case "x$enable_portmidisyn" in
16903 cat >> confdefs.h <<EOF
16904 #define IA_PORTMIDISYN 1
16910 ENABLE_PORTMIDISYN_TRUE=
16911 ENABLE_PORTMIDISYN_FALSE='#'
16913 ENABLE_PORTMIDISYN_TRUE='#'
16914 ENABLE_PORTMIDISYN_FALSE=
16917 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
16920 dynamic_targets="$dynamic_targets interface_P.\$(so)"
16933 ENABLE_W32G_SYN_TRUE=
16934 ENABLE_W32G_SYN_FALSE='#'
16936 ENABLE_W32G_SYN_TRUE='#'
16937 ENABLE_W32G_SYN_FALSE=
16940 # Check whether --enable-winsyng or --disable-winsyng was given.
16941 if test "${enable_winsyng+set}" = set; then
16942 enableval="$enable_winsyng"
16943 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
16945 case "x$enable_winsyng" in
16947 cat >> confdefs.h <<EOF
16948 #define IA_W32G_SYN 1
16954 ENABLE_W32G_SYN_TRUE=
16955 ENABLE_W32G_SYN_FALSE='#'
16957 ENABLE_W32G_SYN_TRUE='#'
16958 ENABLE_W32G_SYN_FALSE=
16961 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
16962 lib_user32_opt='-luser32'
16963 LDFLAGS="-mwindows $LDFLAGS"
16964 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"
16968 dynamic_targets="$dynamic_targets interface_W.\$(so)"
16982 ENABLE_W32GUI_TRUE=
16983 ENABLE_W32GUI_FALSE='#'
16985 ENABLE_W32GUI_TRUE='#'
16986 ENABLE_W32GUI_FALSE=
16989 # Check whether --enable-w32gui or --disable-w32gui was given.
16990 if test "${enable_w32gui+set}" = set; then
16991 enableval="$enable_w32gui"
16992 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
16994 case "x$enable_w32gui" in
16996 cat >> confdefs.h <<EOF
16997 #define IA_W32GUI 1
17003 ENABLE_W32GUI_TRUE=
17004 ENABLE_W32GUI_FALSE='#'
17006 ENABLE_W32GUI_TRUE='#'
17007 ENABLE_W32GUI_FALSE=
17010 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17011 lib_user32_opt='-luser32'
17012 LDFLAGS="-mwindows $LDFLAGS"
17013 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"
17017 dynamic_targets="$dynamic_targets interface_w.\$(so)"
17030 ENABLE_PLUGIN_TRUE=
17031 ENABLE_PLUGIN_FALSE='#'
17033 ENABLE_PLUGIN_TRUE='#'
17034 ENABLE_PLUGIN_FALSE=
17037 # Check whether --enable-ump or --disable-ump was given.
17038 if test "${enable_ump+set}" = set; then
17039 enableval="$enable_ump"
17040 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
17041 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
17042 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
17043 { (exit 1); exit 1; }; }
17045 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17046 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17047 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17048 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17052 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17054 # Is the header compilable?
17055 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17056 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 $ac_includes_default
17064 #include <X11/xpm.h>
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068 (eval $ac_compile) 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_header_compiler=yes
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 ac_header_compiler=no
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17097 echo "${ECHO_T}$ac_header_compiler" >&6
17099 # Is the header present?
17100 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17101 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <X11/xpm.h>
17110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } >/dev/null; then
17118 if test -s conftest.err; then
17119 ac_cpp_err=$ac_c_preproc_warn_flag
17120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17127 if test -z "$ac_cpp_err"; then
17128 ac_header_preproc=yes
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_header_preproc=no
17135 rm -f conftest.err conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17137 echo "${ECHO_T}$ac_header_preproc" >&6
17139 # So? What about this header?
17140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17142 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17143 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17145 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17146 ac_header_preproc=yes
17149 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17150 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
17152 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17154 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17155 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
17156 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17157 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17158 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17159 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17160 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17163 ## ------------------------------- ##
17164 ## Report this to root@mput.dip.jp ##
17165 ## ------------------------------- ##
17168 sed "s/^/$as_me: WARNING: /" >&2
17171 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17172 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17173 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 ac_cv_header_X11_xpm_h=$ac_header_preproc
17178 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17182 if test $ac_cv_header_X11_xpm_h = yes; then
17185 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17186 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17187 { (exit 1); exit 1; }; }
17191 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17192 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17193 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 ac_check_lib_save_LIBS=$LIBS
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17205 /* Override any gcc2 internal prototype to avoid an error. */
17209 /* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211 char XpmCreatePixmapFromData ();
17215 XpmCreatePixmapFromData ();
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17249 rm -f conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17251 LIBS=$ac_check_lib_save_LIBS
17253 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17254 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17255 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17258 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17259 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17260 { (exit 1); exit 1; }; }
17263 if test "x$have_xext" = xyes; then
17264 lib_xext_opt=-lXext
17266 if test "x$have_xprelibs" = xyes; then
17267 lib_xprelibs_opt='-lSM -lICE'
17273 case "x$enable_ump" in
17275 cat >> confdefs.h <<EOF
17276 #define IA_PLUGIN 1
17282 ENABLE_PLUGIN_TRUE=
17283 ENABLE_PLUGIN_FALSE='#'
17285 ENABLE_PLUGIN_TRUE='#'
17286 ENABLE_PLUGIN_FALSE=
17292 dynamic_targets="$dynamic_targets interface_p.\$(so)"
17303 # Check whether --enable-offix or --disable-offix was given.
17304 if test "${enable_offix+set}" = set; then
17305 enableval="$enable_offix"
17306 if test "$enableval" = "yes"; then
17307 KEEPCPPFLAGS=$CPPFLAGS
17309 KEEPLDFLAGS=$LDFLAGS
17310 CPPFLAGS="$CPPFLAGS $offix_include_dir"
17311 LDFLAGS="$LDFLAGS $offix_lib_dir"
17312 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17313 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17314 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17315 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 ac_check_lib_save_LIBS=$LIBS
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17327 /* Override any gcc2 internal prototype to avoid an error. */
17331 /* We use char because int might match the return type of a gcc2
17332 builtin and then its argument prototype would still apply. */
17333 char DndInitialize ();
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17344 (eval $ac_link) 2>conftest.er1
17346 grep -v '^ *+' conftest.er1 >conftest.err
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } &&
17351 { ac_try='test -z "$ac_c_werror_flag"
17352 || test ! -s conftest.err'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 ac_cv_lib_Dnd_DndInitialize=yes
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 ac_cv_lib_Dnd_DndInitialize=no
17371 rm -f conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17375 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17376 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17377 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17380 lib_offix_opt="-lDnd"
17382 cat >>confdefs.h <<\_ACEOF
17388 LDFLAGS=$KEEPLDFLAGS
17389 CPPFLAGS=$KEEPCPPFLAGS
17398 # Check whether --enable-network or --disable-network was given.
17399 if test "${enable_network+set}" = set; then
17400 enableval="$enable_network"
17401 if test "$enableval" = "yes"; then
17403 cat >>confdefs.h <<\_ACEOF
17404 #define SUPPORT_SOCKET 1
17411 if test "x$enable_network" = "xyes"; then
17412 ENABLE_NETWORK_TRUE=
17413 ENABLE_NETWORK_FALSE='#'
17415 ENABLE_NETWORK_TRUE='#'
17416 ENABLE_NETWORK_FALSE=
17420 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17421 if test "${enable_spectrogram+set}" = set; then
17422 enableval="$enable_spectrogram"
17423 if test "$enableval" = "yes"; then
17424 if test "x$with_x" != xyes; then
17425 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17426 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17427 { (exit 1); exit 1; }; }
17430 cat >>confdefs.h <<\_ACEOF
17431 #define SUPPORT_SOUNDSPEC 1
17438 if test "x$enable_spectrogram" = "xyes"; then
17439 ENABLE_SOUND_SPEC_TRUE=
17440 ENABLE_SOUND_SPEC_FALSE='#'
17442 ENABLE_SOUND_SPEC_TRUE='#'
17443 ENABLE_SOUND_SPEC_FALSE=
17447 # Check whether --enable-spline or --disable-spline was given.
17448 if test "${enable_spline+set}" = set; then
17449 enableval="$enable_spline"
17450 case "x$enableval" in
17453 cat >>confdefs.h <<\_ACEOF
17454 #define LINEAR_INTERPOLATION 1
17460 cat >>confdefs.h <<\_ACEOF
17461 #define CSPLINE_INTERPOLATION 1
17467 cat >>confdefs.h <<\_ACEOF
17468 #define LAGRANGE_INTERPOLATION 1
17474 cat >>confdefs.h <<\_ACEOF
17475 #define NEWTON_INTERPOLATION 1
17481 cat >>confdefs.h <<\_ACEOF
17482 #define GAUSS_INTERPOLATION 1
17488 cat >>confdefs.h <<\_ACEOF
17489 #define NO_INTERPOLATION 1
17494 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
17495 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
17496 { (exit 1); exit 1; }; }
17501 # Check whether --enable-wrd or --disable-wrd was given.
17502 if test "${enable_wrd+set}" = set; then
17503 enableval="$enable_wrd"
17504 if test "$enableval" = "yes"; then
17505 if test "x$with_x" != xyes; then
17506 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
17507 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
17508 { (exit 1); exit 1; }; }
17511 cat >>confdefs.h <<\_ACEOF
17515 enable_sherry_wrd=yes
17516 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
17517 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
17518 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 ac_check_lib_save_LIBS=$LIBS
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17530 /* Override any gcc2 internal prototype to avoid an error. */
17534 /* We use char because int might match the return type of a gcc2
17535 builtin and then its argument prototype would still apply. */
17536 char zlibVersion ();
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 ac_cv_lib_z_zlibVersion=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_cv_lib_z_zlibVersion=no
17574 rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
17579 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
17580 if test $ac_cv_lib_z_zlibVersion = yes; then
17583 enable_sherry_wrd=no
17586 if test "${ac_cv_header_png_h+set}" = set; then
17587 echo "$as_me:$LINENO: checking for png.h" >&5
17588 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17589 if test "${ac_cv_header_png_h+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
17593 echo "${ECHO_T}$ac_cv_header_png_h" >&6
17595 # Is the header compilable?
17596 echo "$as_me:$LINENO: checking png.h usability" >&5
17597 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_header_compiler=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ac_header_compiler=no
17636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17638 echo "${ECHO_T}$ac_header_compiler" >&6
17640 # Is the header present?
17641 echo "$as_me:$LINENO: checking png.h presence" >&5
17642 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } >/dev/null; then
17659 if test -s conftest.err; then
17660 ac_cpp_err=$ac_c_preproc_warn_flag
17661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17668 if test -z "$ac_cpp_err"; then
17669 ac_header_preproc=yes
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 ac_header_preproc=no
17676 rm -f conftest.err conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17678 echo "${ECHO_T}$ac_header_preproc" >&6
17680 # So? What about this header?
17681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17683 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
17684 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
17686 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
17687 ac_header_preproc=yes
17690 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
17691 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
17693 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
17695 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
17696 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
17697 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
17698 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
17699 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
17700 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
17701 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
17704 ## ------------------------------- ##
17705 ## Report this to root@mput.dip.jp ##
17706 ## ------------------------------- ##
17709 sed "s/^/$as_me: WARNING: /" >&2
17712 echo "$as_me:$LINENO: checking for png.h" >&5
17713 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17714 if test "${ac_cv_header_png_h+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 ac_cv_header_png_h=$ac_header_preproc
17719 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
17720 echo "${ECHO_T}$ac_cv_header_png_h" >&6
17723 if test $ac_cv_header_png_h = yes; then
17726 enable_sherry_wrd=no
17730 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
17731 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
17732 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_check_lib_save_LIBS=$LIBS
17736 LIBS="-lpng -lz $LIBS"
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750 char png_init_io ();
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_c_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_lib_png_png_init_io=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_cv_lib_png_png_init_io=no
17788 rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
17793 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
17794 if test $ac_cv_lib_png_png_init_io = yes; then
17797 enable_sherry_wrd=no
17800 if test "$enable_sherry_wrd" = yes; then
17802 cat >>confdefs.h <<\_ACEOF
17803 #define ENABLE_SHERRY 1
17809 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
17810 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
17812 if test "x$have_xext" = xyes; then
17813 lib_xext_opt=-lXext
17826 if test "x$enable_wrd" = "xyes"; then
17828 ENABLE_WRD_FALSE='#'
17830 ENABLE_WRD_TRUE='#'
17837 if test "x$CYGNUS" = xyes; then
17847 if test "x$MINGW" = xyes; then
17857 if test "x$W32READDIR" = "xyes"; then
17859 W32READDIR_FALSE='#'
17861 W32READDIR_TRUE='#'
17866 rm -f wordtmp >/dev/null 2>&1
17868 for f in $LDFLAGS; do
17869 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17872 echo $f >>wordtmp; val="$val $f"
17877 rm -f wordtmp >/dev/null 2>&1
17879 rm -f wordtmp >/dev/null 2>&1
17881 for f in $SHLDFLAGS; do
17882 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17885 echo $f >>wordtmp; val="$val $f"
17890 rm -f wordtmp >/dev/null 2>&1
17892 rm -f wordtmp >/dev/null 2>&1
17894 for f in $EXTRACFLAGS $CFLAGS; do
17895 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17898 echo $f >>wordtmp; val="$val $f"
17903 rm -f wordtmp >/dev/null 2>&1
17905 rm -f wordtmp >/dev/null 2>&1
17907 for f in $CPPFLAGS $EXTRADEFS; do
17908 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17911 echo $f >>wordtmp; val="$val $f"
17916 rm -f wordtmp >/dev/null 2>&1
17919 if test "x$oss_device" != x; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define OSS_DEVICE "$oss_device"
17927 if test "x$TIMIDITY_OUTPUT_ID" != x; then
17929 cat >>confdefs.h <<_ACEOF
17930 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
17935 if test "x$with_x" = xyes; then
17936 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/"`
17938 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
17939 SHLD="$SHLD $SHLDFLAGS"
17959 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/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"
17961 cat >confcache <<\_ACEOF
17962 # This file is a shell script that caches the results of configure
17963 # tests run on this system so they can be shared between configure
17964 # scripts and configure runs, see configure's option --config-cache.
17965 # It is not useful on other systems. If it contains results you don't
17966 # want to keep, you may remove or edit it.
17968 # config.status only pays attention to the cache file if you give it
17969 # the --recheck option to rerun configure.
17971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17973 # following values.
17977 # The following way of writing the cache mishandles newlines in values,
17978 # but we know of no workaround that is simple, portable, and efficient.
17979 # So, don't put newlines in cache variables' values.
17980 # Ultrix sh set writes to stderr and can't be redirected directly,
17981 # and sets the high bit in the cache file unless we assign to the vars.
17984 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17986 # `set' does not quote correctly, so add quotes (double-quote
17987 # substitution turns \\\\ into \\, and sed turns \\ into \).
17990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17993 # `set' quotes correctly as required by POSIX, so do not add quotes.
17995 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18004 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18006 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18007 if test -w $cache_file; then
18008 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18009 cat confcache >$cache_file
18011 echo "not updating unwritable cache $cache_file"
18016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18017 # Let make expand exec_prefix.
18018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18022 # trailing colons and then remove the whole line if VPATH becomes empty
18023 # (actually we leave an empty line to preserve line numbers).
18024 if test "x$srcdir" = x.; then
18025 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18026 s/:*\$(srcdir):*/:/;
18027 s/:*\${srcdir}:*/:/;
18029 s/^\([^=]*=[ ]*\):*/\1/;
18035 DEFS=-DHAVE_CONFIG_H
18039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18040 # 1. Remove the extension, and $U if already installed.
18041 ac_i=`echo "$ac_i" |
18042 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18044 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18045 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18047 LIBOBJS=$ac_libobjs
18049 LTLIBOBJS=$ac_ltlibobjs
18052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18053 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18054 Usually this means the macro was only invoked conditionally." >&5
18055 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18056 Usually this means the macro was only invoked conditionally." >&2;}
18057 { (exit 1); exit 1; }; }
18059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18060 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18061 Usually this means the macro was only invoked conditionally." >&5
18062 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18063 Usually this means the macro was only invoked conditionally." >&2;}
18064 { (exit 1); exit 1; }; }
18066 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18067 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18068 Usually this means the macro was only invoked conditionally." >&5
18069 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18070 Usually this means the macro was only invoked conditionally." >&2;}
18071 { (exit 1); exit 1; }; }
18073 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18074 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18075 Usually this means the macro was only invoked conditionally." >&5
18076 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18077 Usually this means the macro was only invoked conditionally." >&2;}
18078 { (exit 1); exit 1; }; }
18080 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18081 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18082 Usually this means the macro was only invoked conditionally." >&5
18083 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18084 Usually this means the macro was only invoked conditionally." >&2;}
18085 { (exit 1); exit 1; }; }
18087 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18088 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18089 Usually this means the macro was only invoked conditionally." >&5
18090 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18091 Usually this means the macro was only invoked conditionally." >&2;}
18092 { (exit 1); exit 1; }; }
18094 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18095 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18096 Usually this means the macro was only invoked conditionally." >&5
18097 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18098 Usually this means the macro was only invoked conditionally." >&2;}
18099 { (exit 1); exit 1; }; }
18101 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18102 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18103 Usually this means the macro was only invoked conditionally." >&5
18104 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18105 Usually this means the macro was only invoked conditionally." >&2;}
18106 { (exit 1); exit 1; }; }
18108 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18109 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18110 Usually this means the macro was only invoked conditionally." >&5
18111 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18112 Usually this means the macro was only invoked conditionally." >&2;}
18113 { (exit 1); exit 1; }; }
18115 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18116 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18117 Usually this means the macro was only invoked conditionally." >&5
18118 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18119 Usually this means the macro was only invoked conditionally." >&2;}
18120 { (exit 1); exit 1; }; }
18122 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18123 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18124 Usually this means the macro was only invoked conditionally." >&5
18125 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18126 Usually this means the macro was only invoked conditionally." >&2;}
18127 { (exit 1); exit 1; }; }
18129 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18130 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18131 Usually this means the macro was only invoked conditionally." >&5
18132 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18133 Usually this means the macro was only invoked conditionally." >&2;}
18134 { (exit 1); exit 1; }; }
18136 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18137 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18138 Usually this means the macro was only invoked conditionally." >&5
18139 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18140 Usually this means the macro was only invoked conditionally." >&2;}
18141 { (exit 1); exit 1; }; }
18143 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18144 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18145 Usually this means the macro was only invoked conditionally." >&5
18146 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18147 Usually this means the macro was only invoked conditionally." >&2;}
18148 { (exit 1); exit 1; }; }
18150 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18151 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18152 Usually this means the macro was only invoked conditionally." >&5
18153 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18154 Usually this means the macro was only invoked conditionally." >&2;}
18155 { (exit 1); exit 1; }; }
18157 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18158 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18159 Usually this means the macro was only invoked conditionally." >&5
18160 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18161 Usually this means the macro was only invoked conditionally." >&2;}
18162 { (exit 1); exit 1; }; }
18164 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18165 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18166 Usually this means the macro was only invoked conditionally." >&5
18167 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18168 Usually this means the macro was only invoked conditionally." >&2;}
18169 { (exit 1); exit 1; }; }
18171 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18172 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18173 Usually this means the macro was only invoked conditionally." >&5
18174 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18175 Usually this means the macro was only invoked conditionally." >&2;}
18176 { (exit 1); exit 1; }; }
18178 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18179 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18180 Usually this means the macro was only invoked conditionally." >&5
18181 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18182 Usually this means the macro was only invoked conditionally." >&2;}
18183 { (exit 1); exit 1; }; }
18185 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18186 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18187 Usually this means the macro was only invoked conditionally." >&5
18188 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18189 Usually this means the macro was only invoked conditionally." >&2;}
18190 { (exit 1); exit 1; }; }
18192 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18193 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18194 Usually this means the macro was only invoked conditionally." >&5
18195 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18196 Usually this means the macro was only invoked conditionally." >&2;}
18197 { (exit 1); exit 1; }; }
18199 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18200 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18201 Usually this means the macro was only invoked conditionally." >&5
18202 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18203 Usually this means the macro was only invoked conditionally." >&2;}
18204 { (exit 1); exit 1; }; }
18206 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18207 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18208 Usually this means the macro was only invoked conditionally." >&5
18209 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18210 Usually this means the macro was only invoked conditionally." >&2;}
18211 { (exit 1); exit 1; }; }
18213 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18214 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18215 Usually this means the macro was only invoked conditionally." >&5
18216 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18217 Usually this means the macro was only invoked conditionally." >&2;}
18218 { (exit 1); exit 1; }; }
18220 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18221 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18222 Usually this means the macro was only invoked conditionally." >&5
18223 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18224 Usually this means the macro was only invoked conditionally." >&2;}
18225 { (exit 1); exit 1; }; }
18227 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18228 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18229 Usually this means the macro was only invoked conditionally." >&5
18230 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18231 Usually this means the macro was only invoked conditionally." >&2;}
18232 { (exit 1); exit 1; }; }
18234 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18235 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18236 Usually this means the macro was only invoked conditionally." >&5
18237 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18238 Usually this means the macro was only invoked conditionally." >&2;}
18239 { (exit 1); exit 1; }; }
18241 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18242 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18243 Usually this means the macro was only invoked conditionally." >&5
18244 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18245 Usually this means the macro was only invoked conditionally." >&2;}
18246 { (exit 1); exit 1; }; }
18248 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18249 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18250 Usually this means the macro was only invoked conditionally." >&5
18251 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18252 Usually this means the macro was only invoked conditionally." >&2;}
18253 { (exit 1); exit 1; }; }
18255 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18256 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18257 Usually this means the macro was only invoked conditionally." >&5
18258 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18259 Usually this means the macro was only invoked conditionally." >&2;}
18260 { (exit 1); exit 1; }; }
18262 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18263 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18264 Usually this means the macro was only invoked conditionally." >&5
18265 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18266 Usually this means the macro was only invoked conditionally." >&2;}
18267 { (exit 1); exit 1; }; }
18269 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18270 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18271 Usually this means the macro was only invoked conditionally." >&5
18272 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18273 Usually this means the macro was only invoked conditionally." >&2;}
18274 { (exit 1); exit 1; }; }
18276 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18277 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18278 Usually this means the macro was only invoked conditionally." >&5
18279 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18280 Usually this means the macro was only invoked conditionally." >&2;}
18281 { (exit 1); exit 1; }; }
18283 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18284 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18285 Usually this means the macro was only invoked conditionally." >&5
18286 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18287 Usually this means the macro was only invoked conditionally." >&2;}
18288 { (exit 1); exit 1; }; }
18290 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18291 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18292 Usually this means the macro was only invoked conditionally." >&5
18293 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18294 Usually this means the macro was only invoked conditionally." >&2;}
18295 { (exit 1); exit 1; }; }
18297 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18298 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18299 Usually this means the macro was only invoked conditionally." >&5
18300 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18301 Usually this means the macro was only invoked conditionally." >&2;}
18302 { (exit 1); exit 1; }; }
18304 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18305 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18306 Usually this means the macro was only invoked conditionally." >&5
18307 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18308 Usually this means the macro was only invoked conditionally." >&2;}
18309 { (exit 1); exit 1; }; }
18311 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18312 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18313 Usually this means the macro was only invoked conditionally." >&5
18314 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18315 Usually this means the macro was only invoked conditionally." >&2;}
18316 { (exit 1); exit 1; }; }
18318 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18319 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18320 Usually this means the macro was only invoked conditionally." >&5
18321 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18322 Usually this means the macro was only invoked conditionally." >&2;}
18323 { (exit 1); exit 1; }; }
18325 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18326 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18327 Usually this means the macro was only invoked conditionally." >&5
18328 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18329 Usually this means the macro was only invoked conditionally." >&2;}
18330 { (exit 1); exit 1; }; }
18332 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18333 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18334 Usually this means the macro was only invoked conditionally." >&5
18335 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18336 Usually this means the macro was only invoked conditionally." >&2;}
18337 { (exit 1); exit 1; }; }
18339 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18340 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18341 Usually this means the macro was only invoked conditionally." >&5
18342 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18343 Usually this means the macro was only invoked conditionally." >&2;}
18344 { (exit 1); exit 1; }; }
18346 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18347 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18348 Usually this means the macro was only invoked conditionally." >&5
18349 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18350 Usually this means the macro was only invoked conditionally." >&2;}
18351 { (exit 1); exit 1; }; }
18353 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18354 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18355 Usually this means the macro was only invoked conditionally." >&5
18356 echo "$as_me: error: conditional \"MINGW\" was never defined.
18357 Usually this means the macro was only invoked conditionally." >&2;}
18358 { (exit 1); exit 1; }; }
18360 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18361 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18362 Usually this means the macro was only invoked conditionally." >&5
18363 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18364 Usually this means the macro was only invoked conditionally." >&2;}
18365 { (exit 1); exit 1; }; }
18368 : ${CONFIG_STATUS=./config.status}
18369 ac_clean_files_save=$ac_clean_files
18370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18373 cat >$CONFIG_STATUS <<_ACEOF
18375 # Generated by $as_me.
18376 # Run this file to recreate the current configuration.
18377 # Compiler output produced by configure, useful for debugging
18378 # configure, is in config.log if it exists.
18381 ac_cs_recheck=false
18383 SHELL=\${CONFIG_SHELL-$SHELL}
18386 cat >>$CONFIG_STATUS <<\_ACEOF
18387 ## --------------------- ##
18388 ## M4sh Initialization. ##
18389 ## --------------------- ##
18391 # Be Bourne compatible
18392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18396 # is contrary to our usage. Disable this feature.
18397 alias -g '${1+"$@"}'='"$@"'
18398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18401 DUALCASE=1; export DUALCASE # for MKS sh
18403 # Support unset when possible.
18404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18411 # Work around bugs in pre-3.0 UWIN ksh.
18412 $as_unset ENV MAIL MAILPATH
18419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18421 LC_TELEPHONE LC_TIME
18423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18424 eval $as_var=C; export $as_var
18430 # Required to use basename.
18431 if expr a : '\(a\)' >/dev/null 2>&1; then
18437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18438 as_basename=basename
18444 # Name of the executable.
18445 as_me=`$as_basename "$0" ||
18446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18447 X"$0" : 'X\(//\)$' \| \
18448 X"$0" : 'X\(/\)$' \| \
18449 . : '\(.\)' 2>/dev/null ||
18451 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18452 /^X\/\(\/\/\)$/{ s//\1/; q; }
18453 /^X\/\(\/\).*/{ s//\1/; q; }
18457 # PATH needs CR, and LINENO needs CR and PATH.
18458 # Avoid depending upon Character Ranges.
18459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18462 as_cr_digits='0123456789'
18463 as_cr_alnum=$as_cr_Letters$as_cr_digits
18465 # The user is always right.
18466 if test "${PATH_SEPARATOR+set}" != set; then
18467 echo "#! /bin/sh" >conf$$.sh
18468 echo "exit 0" >>conf$$.sh
18470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18479 as_lineno_1=$LINENO
18480 as_lineno_2=$LINENO
18481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18482 test "x$as_lineno_1" != "x$as_lineno_2" &&
18483 test "x$as_lineno_3" = "x$as_lineno_2" || {
18484 # Find who we are. Look in the path if we contain no path at all
18487 *[\\/]* ) as_myself=$0 ;;
18488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18492 test -z "$as_dir" && as_dir=.
18493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18498 # We did not find ourselves, most probably we were run as `sh COMMAND'
18499 # in which case we are not to be found in the path.
18500 if test "x$as_myself" = x; then
18503 if test ! -f "$as_myself"; then
18504 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18506 { (exit 1); exit 1; }; }
18508 case $CONFIG_SHELL in
18510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18514 test -z "$as_dir" && as_dir=.
18515 for as_base in sh bash ksh sh5; do
18518 if ("$as_dir/$as_base" -c '
18519 as_lineno_1=$LINENO
18520 as_lineno_2=$LINENO
18521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18522 test "x$as_lineno_1" != "x$as_lineno_2" &&
18523 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18524 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18525 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18526 CONFIG_SHELL=$as_dir/$as_base
18527 export CONFIG_SHELL
18528 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18537 # uniformly replaced by the line number. The first 'sed' inserts a
18538 # line-number line before each line; the second 'sed' does the real
18539 # work. The second script uses 'N' to pair each line-number line
18540 # with the numbered line, and appends trailing '-' during
18541 # substitution so that $LINENO is not a special case at line end.
18542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18543 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18544 sed '=' <$as_myself |
18549 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18552 s,^['$as_cr_digits']*\n,,
18553 ' >$as_me.lineno &&
18554 chmod +x $as_me.lineno ||
18555 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18557 { (exit 1); exit 1; }; }
18559 # Don't try to exec as it changes $[0], causing all sort of problems
18560 # (the dirname of $[0] is not the place where we might find the
18561 # original and so on. Autoconf is especially sensible to this).
18563 # Exit status is that of the last command.
18568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18569 *c*,-n*) ECHO_N= ECHO_C='
18571 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18572 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18575 if expr a : '\(a\)' >/dev/null 2>&1; then
18581 rm -f conf$$ conf$$.exe conf$$.file
18583 if ln -s conf$$.file conf$$ 2>/dev/null; then
18584 # We could just check for DJGPP; but this test a) works b) is more generic
18585 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18586 if test -f conf$$.exe; then
18587 # Don't use ln at all; we don't have any links
18592 elif ln conf$$.file conf$$ 2>/dev/null; then
18597 rm -f conf$$ conf$$.exe conf$$.file
18599 if mkdir -p . 2>/dev/null; then
18602 test -d ./-p && rmdir ./-p
18606 as_executable_p="test -f"
18608 # Sed expression to map a string onto a valid CPP name.
18609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18611 # Sed expression to map a string onto a valid variable name.
18612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18616 # We need space, tab and new line, in precisely that order.
18626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18627 # report actual input values of CONFIG_FILES etc. instead of their
18628 # values after options handling. Logging --version etc. is OK.
18632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18633 ## Running $as_me. ##
18638 This file was extended by TiMidity++ $as_me 2.13.0-rc2, which was
18639 generated by GNU Autoconf 2.59. Invocation command line was
18641 CONFIG_FILES = $CONFIG_FILES
18642 CONFIG_HEADERS = $CONFIG_HEADERS
18643 CONFIG_LINKS = $CONFIG_LINKS
18644 CONFIG_COMMANDS = $CONFIG_COMMANDS
18648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18652 # Files that config.status was made for.
18653 if test -n "$ac_config_files"; then
18654 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18657 if test -n "$ac_config_headers"; then
18658 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18661 if test -n "$ac_config_links"; then
18662 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18665 if test -n "$ac_config_commands"; then
18666 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18669 cat >>$CONFIG_STATUS <<\_ACEOF
18672 \`$as_me' instantiates files from templates according to the
18673 current configuration.
18675 Usage: $0 [OPTIONS] [FILE]...
18677 -h, --help print this help, then exit
18678 -V, --version print version number, then exit
18679 -q, --quiet do not print progress messages
18680 -d, --debug don't remove temporary files
18681 --recheck update $as_me by reconfiguring in the same conditions
18682 --file=FILE[:TEMPLATE]
18683 instantiate the configuration file FILE
18684 --header=FILE[:TEMPLATE]
18685 instantiate the configuration header FILE
18687 Configuration files:
18690 Configuration headers:
18693 Configuration commands:
18696 Report bugs to <bug-autoconf@gnu.org>."
18699 cat >>$CONFIG_STATUS <<_ACEOF
18701 TiMidity++ config.status 2.13.0-rc2
18702 configured by $0, generated by GNU Autoconf 2.59,
18703 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18705 Copyright (C) 2003 Free Software Foundation, Inc.
18706 This config.status script is free software; the Free Software Foundation
18707 gives unlimited permission to copy, distribute and modify it."
18712 cat >>$CONFIG_STATUS <<\_ACEOF
18713 # If no file are specified by the user, then we need to provide default
18714 # value. By we need to know if files were specified by the user.
18720 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18721 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18729 *) # This is not an option, so the user has probably given explicit
18732 ac_need_defaults=false;;
18736 # Handling of the options.
18738 cat >>$CONFIG_STATUS <<\_ACEOF
18739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18741 --version | --vers* | -V )
18742 echo "$ac_cs_version"; exit 0 ;;
18744 # Conflict between --help and --header
18745 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18746 Try \`$0 --help' for more information." >&5
18747 echo "$as_me: error: ambiguous option: $1
18748 Try \`$0 --help' for more information." >&2;}
18749 { (exit 1); exit 1; }; };;
18750 --help | --hel | -h )
18751 echo "$ac_cs_usage"; exit 0 ;;
18752 --debug | --d* | -d )
18754 --file | --fil | --fi | --f )
18756 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18757 ac_need_defaults=false;;
18758 --header | --heade | --head | --hea )
18760 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18761 ac_need_defaults=false;;
18762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18766 # This is an error.
18767 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18768 Try \`$0 --help' for more information." >&5
18769 echo "$as_me: error: unrecognized option: $1
18770 Try \`$0 --help' for more information." >&2;}
18771 { (exit 1); exit 1; }; } ;;
18773 *) ac_config_targets="$ac_config_targets $1" ;;
18779 ac_configure_extra_args=
18781 if $ac_cs_silent; then
18783 ac_configure_extra_args="$ac_configure_extra_args --silent"
18787 cat >>$CONFIG_STATUS <<_ACEOF
18788 if \$ac_cs_recheck; then
18789 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18790 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18795 cat >>$CONFIG_STATUS <<_ACEOF
18797 # INIT-COMMANDS section.
18800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18806 cat >>$CONFIG_STATUS <<\_ACEOF
18807 for ac_config_target in $ac_config_targets
18809 case "$ac_config_target" in
18810 # Handling of arguments.
18811 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18812 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
18813 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
18814 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
18815 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18816 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
18817 "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
18818 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
18819 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
18820 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
18821 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
18822 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
18823 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
18824 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
18825 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18826 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
18827 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
18828 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
18829 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18830 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18831 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
18832 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18833 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18834 { (exit 1); exit 1; }; };;
18838 # If the user did not use the arguments to specify the items to instantiate,
18839 # then the envvar interface is used. Set only those that are not.
18840 # We use the long form for the default assignment because of an extremely
18841 # bizarre bug on SunOS 4.1.3.
18842 if $ac_need_defaults; then
18843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18848 # Have a temporary directory for convenience. Make it in the build tree
18849 # simply because there is no reason to put it here, and in addition,
18850 # creating and moving files from /tmp can sometimes cause problems.
18851 # Create a temporary directory, and hook for its removal unless debugging.
18854 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18855 trap '{ (exit 1); exit 1; }' 1 2 13 15
18858 # Create a (secure) tmp directory for tmp files.
18861 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18862 test -n "$tmp" && test -d "$tmp"
18865 tmp=./confstat$$-$RANDOM
18866 (umask 077 && mkdir $tmp)
18869 echo "$me: cannot create a temporary directory in ." >&2
18870 { (exit 1); exit 1; }
18875 cat >>$CONFIG_STATUS <<_ACEOF
18878 # CONFIG_FILES section.
18881 # No need to generate the scripts if there are no CONFIG_FILES.
18882 # This happens for instance when ./config.status config.h
18883 if test -n "\$CONFIG_FILES"; then
18884 # Protect against being on the right side of a sed subst in config.status.
18885 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18886 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18887 s,@SHELL@,$SHELL,;t t
18888 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18889 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18890 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18891 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18892 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18893 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18894 s,@exec_prefix@,$exec_prefix,;t t
18895 s,@prefix@,$prefix,;t t
18896 s,@program_transform_name@,$program_transform_name,;t t
18897 s,@bindir@,$bindir,;t t
18898 s,@sbindir@,$sbindir,;t t
18899 s,@libexecdir@,$libexecdir,;t t
18900 s,@datadir@,$datadir,;t t
18901 s,@sysconfdir@,$sysconfdir,;t t
18902 s,@sharedstatedir@,$sharedstatedir,;t t
18903 s,@localstatedir@,$localstatedir,;t t
18904 s,@libdir@,$libdir,;t t
18905 s,@includedir@,$includedir,;t t
18906 s,@oldincludedir@,$oldincludedir,;t t
18907 s,@infodir@,$infodir,;t t
18908 s,@mandir@,$mandir,;t t
18909 s,@build_alias@,$build_alias,;t t
18910 s,@host_alias@,$host_alias,;t t
18911 s,@target_alias@,$target_alias,;t t
18912 s,@DEFS@,$DEFS,;t t
18913 s,@ECHO_C@,$ECHO_C,;t t
18914 s,@ECHO_N@,$ECHO_N,;t t
18915 s,@ECHO_T@,$ECHO_T,;t t
18916 s,@LIBS@,$LIBS,;t t
18917 s,@build@,$build,;t t
18918 s,@build_cpu@,$build_cpu,;t t
18919 s,@build_vendor@,$build_vendor,;t t
18920 s,@build_os@,$build_os,;t t
18921 s,@host@,$host,;t t
18922 s,@host_cpu@,$host_cpu,;t t
18923 s,@host_vendor@,$host_vendor,;t t
18924 s,@host_os@,$host_os,;t t
18925 s,@target@,$target,;t t
18926 s,@target_cpu@,$target_cpu,;t t
18927 s,@target_vendor@,$target_vendor,;t t
18928 s,@target_os@,$target_os,;t t
18929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18932 s,@CYGPATH_W@,$CYGPATH_W,;t t
18933 s,@PACKAGE@,$PACKAGE,;t t
18934 s,@VERSION@,$VERSION,;t t
18935 s,@ACLOCAL@,$ACLOCAL,;t t
18936 s,@AUTOCONF@,$AUTOCONF,;t t
18937 s,@AUTOMAKE@,$AUTOMAKE,;t t
18938 s,@AUTOHEADER@,$AUTOHEADER,;t t
18939 s,@MAKEINFO@,$MAKEINFO,;t t
18940 s,@AMTAR@,$AMTAR,;t t
18941 s,@install_sh@,$install_sh,;t t
18942 s,@STRIP@,$STRIP,;t t
18943 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18944 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18946 s,@SET_MAKE@,$SET_MAKE,;t t
18947 s,@am__leading_dot@,$am__leading_dot,;t t
18948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18950 s,@MAINT@,$MAINT,;t t
18951 s,@EMACS@,$EMACS,;t t
18952 s,@lispdir@,$lispdir,;t t
18954 s,@CFLAGS@,$CFLAGS,;t t
18955 s,@LDFLAGS@,$LDFLAGS,;t t
18956 s,@CPPFLAGS@,$CPPFLAGS,;t t
18957 s,@ac_ct_CC@,$ac_ct_CC,;t t
18958 s,@EXEEXT@,$EXEEXT,;t t
18959 s,@OBJEXT@,$OBJEXT,;t t
18960 s,@DEPDIR@,$DEPDIR,;t t
18961 s,@am__include@,$am__include,;t t
18962 s,@am__quote@,$am__quote,;t t
18963 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18964 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18965 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18966 s,@CCDEPMODE@,$CCDEPMODE,;t t
18967 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18968 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18970 s,@EGREP@,$EGREP,;t t
18971 s,@RANLIB@,$RANLIB,;t t
18972 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18973 s,@LN_S@,$LN_S,;t t
18974 s,@X_CFLAGS@,$X_CFLAGS,;t t
18975 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18976 s,@X_LIBS@,$X_LIBS,;t t
18977 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18978 s,@LIBOBJS@,$LIBOBJS,;t t
18979 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
18980 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
18981 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
18982 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
18983 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
18984 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
18985 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
18986 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
18987 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
18988 s,@ESD_LIBS@,$ESD_LIBS,;t t
18989 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
18990 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
18991 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
18992 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
18993 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
18994 s,@OGG_LIBS@,$OGG_LIBS,;t t
18995 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
18996 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
18997 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
18998 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
18999 s,@n_so_libs@,$n_so_libs,;t t
19000 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19001 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19002 s,@s_so_libs@,$s_so_libs,;t t
19003 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19004 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19005 s,@m_so_libs@,$m_so_libs,;t t
19006 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19007 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19008 s,@k_so_libs@,$k_so_libs,;t t
19009 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19010 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19011 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19012 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19013 s,@e_so_libs@,$e_so_libs,;t t
19014 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19015 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19016 s,@T_so_libs@,$T_so_libs,;t t
19017 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19018 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19019 s,@a_so_libs@,$a_so_libs,;t t
19020 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19021 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19022 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19023 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19024 s,@i_so_libs@,$i_so_libs,;t t
19025 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19026 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19027 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19028 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19029 s,@GTK_LIBS@,$GTK_LIBS,;t t
19030 s,@g_so_libs@,$g_so_libs,;t t
19031 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19032 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19033 s,@r_so_libs@,$r_so_libs,;t t
19034 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19035 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19036 s,@A_so_libs@,$A_so_libs,;t t
19037 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19038 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19039 s,@W_so_libs@,$W_so_libs,;t t
19040 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19041 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19042 s,@P_so_libs@,$P_so_libs,;t t
19043 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19044 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19045 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19046 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19047 s,@w_so_libs@,$w_so_libs,;t t
19048 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19049 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19050 s,@p_so_libs@,$p_so_libs,;t t
19051 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19052 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19053 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19054 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19055 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19056 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19057 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19058 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19059 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19060 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19061 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19062 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19063 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19064 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19065 s,@EXTRALIBS@,$EXTRALIBS,;t t
19066 s,@NETSRCS@,$NETSRCS,;t t
19067 s,@ELFILES@,$ELFILES,;t t
19068 s,@SHLD@,$SHLD,;t t
19069 s,@SHCFLAGS@,$SHCFLAGS,;t t
19070 s,@dynamic_targets@,$dynamic_targets,;t t
19072 s,@WISH@,$WISH,;t t
19073 s,@tcltk_dep@,$tcltk_dep,;t t
19074 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19075 s,@pkgdatadir@,$pkgdatadir,;t t
19076 s,@pkglibdir@,$pkglibdir,;t t
19077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19082 cat >>$CONFIG_STATUS <<\_ACEOF
19083 # Split the substitutions into bite-sized pieces for seds with
19084 # small command number limits, like on Digital OSF/1 and HP-UX.
19085 ac_max_sed_lines=48
19086 ac_sed_frag=1 # Number of current file.
19087 ac_beg=1 # First line for current file.
19088 ac_end=$ac_max_sed_lines # Line after last line for current file.
19091 while $ac_more_lines; do
19092 if test $ac_beg -gt 1; then
19093 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19095 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19097 if test ! -s $tmp/subs.frag; then
19098 ac_more_lines=false
19100 # The purpose of the label and of the branching condition is to
19101 # speed up the sed processing (if there are no `@' at all, there
19102 # is no need to browse any of the substitutions).
19103 # These are the two extra sed commands mentioned above.
19105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19106 if test -z "$ac_sed_cmds"; then
19107 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19109 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19111 ac_sed_frag=`expr $ac_sed_frag + 1`
19113 ac_end=`expr $ac_end + $ac_max_sed_lines`
19116 if test -z "$ac_sed_cmds"; then
19119 fi # test -n "$CONFIG_FILES"
19122 cat >>$CONFIG_STATUS <<\_ACEOF
19123 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19126 - | *:- | *:-:* ) # input from stdin
19128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19132 * ) ac_file_in=$ac_file.in ;;
19135 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19136 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19138 X"$ac_file" : 'X\(//\)[^/]' \| \
19139 X"$ac_file" : 'X\(//\)$' \| \
19140 X"$ac_file" : 'X\(/\)' \| \
19141 . : '\(.\)' 2>/dev/null ||
19143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19145 /^X\(\/\/\)$/{ s//\1/; q; }
19146 /^X\(\/\).*/{ s//\1/; q; }
19148 { if $as_mkdir_p; then
19153 while test ! -d "$as_dir"; do
19154 as_dirs="$as_dir $as_dirs"
19155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19157 X"$as_dir" : 'X\(//\)[^/]' \| \
19158 X"$as_dir" : 'X\(//\)$' \| \
19159 X"$as_dir" : 'X\(/\)' \| \
19160 . : '\(.\)' 2>/dev/null ||
19162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19164 /^X\(\/\/\)$/{ s//\1/; q; }
19165 /^X\(\/\).*/{ s//\1/; q; }
19168 test ! -n "$as_dirs" || mkdir $as_dirs
19169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19171 { (exit 1); exit 1; }; }; }
19175 if test "$ac_dir" != .; then
19176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19177 # A "../" for each directory in $ac_dir_suffix.
19178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19180 ac_dir_suffix= ac_top_builddir=
19184 .) # No --srcdir option. We are building in place.
19186 if test -z "$ac_top_builddir"; then
19189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19191 [\\/]* | ?:[\\/]* ) # Absolute path.
19192 ac_srcdir=$srcdir$ac_dir_suffix;
19193 ac_top_srcdir=$srcdir ;;
19194 *) # Relative path.
19195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19199 # Do not use `cd foo && pwd` to compute absolute paths, because
19200 # the directories may not exist.
19202 .) ac_abs_builddir="$ac_dir";;
19205 .) ac_abs_builddir=`pwd`;;
19206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19210 case $ac_abs_builddir in
19211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19213 case ${ac_top_builddir}. in
19214 .) ac_abs_top_builddir=$ac_abs_builddir;;
19215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19219 case $ac_abs_builddir in
19220 .) ac_abs_srcdir=$ac_srcdir;;
19223 .) ac_abs_srcdir=$ac_abs_builddir;;
19224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19228 case $ac_abs_builddir in
19229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19231 case $ac_top_srcdir in
19232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19241 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19244 if test x"$ac_file" != x-; then
19245 { echo "$as_me:$LINENO: creating $ac_file" >&5
19246 echo "$as_me: creating $ac_file" >&6;}
19249 # Let's still pretend it is `configure' which instantiates (i.e., don't
19250 # use $as_me), people would be surprised to read:
19251 # /* config.h. Generated by config.status. */
19252 if test x"$ac_file" = x-; then
19255 configure_input="$ac_file. "
19257 configure_input=$configure_input"Generated from `echo $ac_file_in |
19258 sed 's,.*/,,'` by configure."
19260 # First look for the input files in the build tree, otherwise in the
19262 ac_file_inputs=`IFS=:
19263 for f in $ac_file_in; do
19265 -) echo $tmp/stdin ;;
19267 # Absolute (can't be DOS-style, as IFS=:)
19268 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19269 echo "$as_me: error: cannot find input file: $f" >&2;}
19270 { (exit 1); exit 1; }; }
19273 if test -f "$f"; then
19276 elif test -f "$srcdir/$f"; then
19281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19282 echo "$as_me: error: cannot find input file: $f" >&2;}
19283 { (exit 1); exit 1; }; }
19286 done` || { (exit 1); exit 1; }
19288 cat >>$CONFIG_STATUS <<_ACEOF
19292 cat >>$CONFIG_STATUS <<\_ACEOF
19294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19295 s,@configure_input@,$configure_input,;t t
19296 s,@srcdir@,$ac_srcdir,;t t
19297 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19298 s,@top_srcdir@,$ac_top_srcdir,;t t
19299 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19300 s,@builddir@,$ac_builddir,;t t
19301 s,@abs_builddir@,$ac_abs_builddir,;t t
19302 s,@top_builddir@,$ac_top_builddir,;t t
19303 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19304 s,@INSTALL@,$ac_INSTALL,;t t
19305 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19307 if test x"$ac_file" != x-; then
19308 mv $tmp/out $ac_file
19316 cat >>$CONFIG_STATUS <<\_ACEOF
19319 # CONFIG_HEADER section.
19322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19325 # ac_d sets the value in "#define NAME VALUE" lines.
19326 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19327 ac_dB='[ ].*$,\1#\2'
19330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19331 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19332 ac_uB='$,\1#\2define\3'
19336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19339 - | *:- | *:-:* ) # input from stdin
19341 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19343 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19345 * ) ac_file_in=$ac_file.in ;;
19348 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19349 echo "$as_me: creating $ac_file" >&6;}
19351 # First look for the input files in the build tree, otherwise in the
19353 ac_file_inputs=`IFS=:
19354 for f in $ac_file_in; do
19356 -) echo $tmp/stdin ;;
19358 # Absolute (can't be DOS-style, as IFS=:)
19359 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19360 echo "$as_me: error: cannot find input file: $f" >&2;}
19361 { (exit 1); exit 1; }; }
19362 # Do quote $f, to prevent DOS paths from being IFS'd.
19365 if test -f "$f"; then
19368 elif test -f "$srcdir/$f"; then
19373 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19374 echo "$as_me: error: cannot find input file: $f" >&2;}
19375 { (exit 1); exit 1; }; }
19378 done` || { (exit 1); exit 1; }
19379 # Remove the trailing spaces.
19380 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19384 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19385 # `conftest.undefs', that substitutes the proper values into
19386 # config.h.in to produce config.h. The first handles `#define'
19387 # templates, and the second `#undef' templates.
19388 # And first: Protect against being on the right side of a sed subst in
19389 # config.status. Protect against being in an unquoted here document
19390 # in config.status.
19391 rm -f conftest.defines conftest.undefs
19392 # Using a here document instead of a string reduces the quoting nightmare.
19393 # Putting comments in sed scripts is not portable.
19395 # `end' is used to avoid that the second main sed command (meant for
19396 # 0-ary CPP macros) applies to n-ary macro definitions.
19397 # See the Autoconf documentation for `clear'.
19398 cat >confdef2sed.sed <<\_ACEOF
19403 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19405 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19408 # If some macros were called several times there might be several times
19409 # the same #defines, which is useless. Nevertheless, we may not want to
19410 # sort them, since we want the *last* AC-DEFINE to be honored.
19411 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19412 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19413 rm -f confdef2sed.sed
19415 # This sed command replaces #undef with comments. This is necessary, for
19416 # example, in the case of _POSIX_SOURCE, which is predefined and required
19417 # on some systems where configure will not decide to define it.
19418 cat >>conftest.undefs <<\_ACEOF
19419 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19422 # Break up conftest.defines because some shells have a limit on the size
19423 # of here documents, and old seds have small limits too (100 cmds).
19424 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19425 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19426 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19427 echo ' :' >>$CONFIG_STATUS
19428 rm -f conftest.tail
19429 while grep . conftest.defines >/dev/null
19431 # Write a limited-size here document to $tmp/defines.sed.
19432 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19433 # Speed up: don't consider the non `#define' lines.
19434 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19435 # Work around the forget-to-reset-the-flag bug.
19436 echo 't clr' >>$CONFIG_STATUS
19437 echo ': clr' >>$CONFIG_STATUS
19438 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19440 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19442 mv $tmp/out $tmp/in
19444 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19445 rm -f conftest.defines
19446 mv conftest.tail conftest.defines
19448 rm -f conftest.defines
19449 echo ' fi # grep' >>$CONFIG_STATUS
19450 echo >>$CONFIG_STATUS
19452 # Break up conftest.undefs because some shells have a limit on the size
19453 # of here documents, and old seds have small limits too (100 cmds).
19454 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19455 rm -f conftest.tail
19456 while grep . conftest.undefs >/dev/null
19458 # Write a limited-size here document to $tmp/undefs.sed.
19459 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19460 # Speed up: don't consider the non `#undef'
19461 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19462 # Work around the forget-to-reset-the-flag bug.
19463 echo 't clr' >>$CONFIG_STATUS
19464 echo ': clr' >>$CONFIG_STATUS
19465 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19467 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19469 mv $tmp/out $tmp/in
19471 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19472 rm -f conftest.undefs
19473 mv conftest.tail conftest.undefs
19475 rm -f conftest.undefs
19477 cat >>$CONFIG_STATUS <<\_ACEOF
19478 # Let's still pretend it is `configure' which instantiates (i.e., don't
19479 # use $as_me), people would be surprised to read:
19480 # /* config.h. Generated by config.status. */
19481 if test x"$ac_file" = x-; then
19482 echo "/* Generated by configure. */" >$tmp/config.h
19484 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19486 cat $tmp/in >>$tmp/config.h
19488 if test x"$ac_file" != x-; then
19489 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19490 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19491 echo "$as_me: $ac_file is unchanged" >&6;}
19493 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495 X"$ac_file" : 'X\(//\)[^/]' \| \
19496 X"$ac_file" : 'X\(//\)$' \| \
19497 X"$ac_file" : 'X\(/\)' \| \
19498 . : '\(.\)' 2>/dev/null ||
19500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19502 /^X\(\/\/\)$/{ s//\1/; q; }
19503 /^X\(\/\).*/{ s//\1/; q; }
19505 { if $as_mkdir_p; then
19510 while test ! -d "$as_dir"; do
19511 as_dirs="$as_dir $as_dirs"
19512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19514 X"$as_dir" : 'X\(//\)[^/]' \| \
19515 X"$as_dir" : 'X\(//\)$' \| \
19516 X"$as_dir" : 'X\(/\)' \| \
19517 . : '\(.\)' 2>/dev/null ||
19519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19521 /^X\(\/\/\)$/{ s//\1/; q; }
19522 /^X\(\/\).*/{ s//\1/; q; }
19525 test ! -n "$as_dirs" || mkdir $as_dirs
19526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19528 { (exit 1); exit 1; }; }; }
19531 mv $tmp/config.h $ac_file
19535 rm -f $tmp/config.h
19537 # Compute $ac_file's index in $config_headers.
19539 for _am_header in $config_headers :; do
19540 case $_am_header in
19541 $ac_file | $ac_file:* )
19544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19547 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19548 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19549 X$ac_file : 'X\(//\)[^/]' \| \
19550 X$ac_file : 'X\(//\)$' \| \
19551 X$ac_file : 'X\(/\)' \| \
19552 . : '\(.\)' 2>/dev/null ||
19554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19556 /^X\(\/\/\)$/{ s//\1/; q; }
19557 /^X\(\/\).*/{ s//\1/; q; }
19558 s/.*/./; q'`/stamp-h$_am_stamp_count
19561 cat >>$CONFIG_STATUS <<\_ACEOF
19564 # CONFIG_COMMANDS section.
19566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19567 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19568 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19569 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19571 X"$ac_dest" : 'X\(//\)[^/]' \| \
19572 X"$ac_dest" : 'X\(//\)$' \| \
19573 X"$ac_dest" : 'X\(/\)' \| \
19574 . : '\(.\)' 2>/dev/null ||
19576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19578 /^X\(\/\/\)$/{ s//\1/; q; }
19579 /^X\(\/\).*/{ s//\1/; q; }
19581 { if $as_mkdir_p; then
19586 while test ! -d "$as_dir"; do
19587 as_dirs="$as_dir $as_dirs"
19588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19590 X"$as_dir" : 'X\(//\)[^/]' \| \
19591 X"$as_dir" : 'X\(//\)$' \| \
19592 X"$as_dir" : 'X\(/\)' \| \
19593 . : '\(.\)' 2>/dev/null ||
19595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19597 /^X\(\/\/\)$/{ s//\1/; q; }
19598 /^X\(\/\).*/{ s//\1/; q; }
19601 test ! -n "$as_dirs" || mkdir $as_dirs
19602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19604 { (exit 1); exit 1; }; }; }
19608 if test "$ac_dir" != .; then
19609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19610 # A "../" for each directory in $ac_dir_suffix.
19611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19613 ac_dir_suffix= ac_top_builddir=
19617 .) # No --srcdir option. We are building in place.
19619 if test -z "$ac_top_builddir"; then
19622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19624 [\\/]* | ?:[\\/]* ) # Absolute path.
19625 ac_srcdir=$srcdir$ac_dir_suffix;
19626 ac_top_srcdir=$srcdir ;;
19627 *) # Relative path.
19628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19629 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19632 # Do not use `cd foo && pwd` to compute absolute paths, because
19633 # the directories may not exist.
19635 .) ac_abs_builddir="$ac_dir";;
19638 .) ac_abs_builddir=`pwd`;;
19639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19640 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19643 case $ac_abs_builddir in
19644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19646 case ${ac_top_builddir}. in
19647 .) ac_abs_top_builddir=$ac_abs_builddir;;
19648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19652 case $ac_abs_builddir in
19653 .) ac_abs_srcdir=$ac_srcdir;;
19656 .) ac_abs_srcdir=$ac_abs_builddir;;
19657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19661 case $ac_abs_builddir in
19662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19664 case $ac_top_srcdir in
19665 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19672 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19673 echo "$as_me: executing $ac_dest commands" >&6;}
19675 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19676 # Strip MF so we end up with the name of the file.
19677 mf=`echo "$mf" | sed -e 's/:.*$//'`
19678 # Check whether this is an Automake generated Makefile or not.
19679 # We used to match only the files named `Makefile.in', but
19680 # some people rename them; so instead we look at the file content.
19681 # Grep'ing the first line is not enough: some people post-process
19682 # each Makefile.in and add a new line on top of each file to say so.
19683 # So let's grep whole file.
19684 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19685 dirpart=`(dirname "$mf") 2>/dev/null ||
19686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19687 X"$mf" : 'X\(//\)[^/]' \| \
19688 X"$mf" : 'X\(//\)$' \| \
19689 X"$mf" : 'X\(/\)' \| \
19690 . : '\(.\)' 2>/dev/null ||
19692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19694 /^X\(\/\/\)$/{ s//\1/; q; }
19695 /^X\(\/\).*/{ s//\1/; q; }
19700 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19701 # Extract the definition of DEP_FILES from the Makefile without
19703 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19704 test -z "$DEPDIR" && continue
19705 # When using ansi2knr, U may be empty or an underscore; expand it
19706 U=`sed -n -e '/^U = / s///p' < "$mf"`
19707 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19708 # We invoke sed twice because it is the simplest approach to
19709 # changing $(DEPDIR) to its actual value in the expansion.
19710 for file in `sed -n -e '
19711 /^DEP_FILES = .*\\\\$/ {
19720 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19721 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19722 # Make sure the directory exists.
19723 test -f "$dirpart/$file" && continue
19724 fdir=`(dirname "$file") 2>/dev/null ||
19725 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19726 X"$file" : 'X\(//\)[^/]' \| \
19727 X"$file" : 'X\(//\)$' \| \
19728 X"$file" : 'X\(/\)' \| \
19729 . : '\(.\)' 2>/dev/null ||
19731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19733 /^X\(\/\/\)$/{ s//\1/; q; }
19734 /^X\(\/\).*/{ s//\1/; q; }
19736 { if $as_mkdir_p; then
19737 mkdir -p $dirpart/$fdir
19739 as_dir=$dirpart/$fdir
19741 while test ! -d "$as_dir"; do
19742 as_dirs="$as_dir $as_dirs"
19743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19745 X"$as_dir" : 'X\(//\)[^/]' \| \
19746 X"$as_dir" : 'X\(//\)$' \| \
19747 X"$as_dir" : 'X\(/\)' \| \
19748 . : '\(.\)' 2>/dev/null ||
19750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19752 /^X\(\/\/\)$/{ s//\1/; q; }
19753 /^X\(\/\).*/{ s//\1/; q; }
19756 test ! -n "$as_dirs" || mkdir $as_dirs
19757 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19758 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19759 { (exit 1); exit 1; }; }; }
19761 # echo "creating $dirpart/$file"
19762 echo '# dummy' > "$dirpart/$file"
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19772 { (exit 0); exit 0; }
19774 chmod +x $CONFIG_STATUS
19775 ac_clean_files=$ac_clean_files_save
19778 # configure is writing to config.log, and then calls config.status.
19779 # config.status does its own redirection, appending to config.log.
19780 # Unfortunately, on DOS this fails, as config.log is still kept open
19781 # by configure, so config.status won't be able to write to it; its
19782 # output is simply discarded. So we exec the FD to /dev/null,
19783 # effectively closing config.log, so it can be properly (re)opened and
19784 # appended to by config.status. When coming back to configure, we
19785 # need to make the FD available again.
19786 if test "$no_create" != yes; then
19788 ac_config_status_args=
19789 test "$silent" = yes &&
19790 ac_config_status_args="$ac_config_status_args --quiet"
19792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19795 # would make configure fail if this is the last instruction.
19796 $ac_cs_success || { (exit 1); exit 1; }