2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for TiMidity++ 2.12.0-pre1b.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='TiMidity++'
270 PACKAGE_TARNAME='TiMidity++'
271 PACKAGE_VERSION='2.12.0-pre1b'
272 PACKAGE_STRING='TiMidity++ 2.12.0-pre1b'
273 PACKAGE_BUGREPORT='root@mput.dip.jp'
275 ac_unique_file="timidity/timidity.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 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_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'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 --target=TARGET configure for building compilers for TARGET [HOST]
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of TiMidity++ 2.12.0-pre1b:";;
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-debug Build a debugging version.
863 --disable-dependency-tracking Speeds up one-time builds
864 --enable-dependency-tracking Do not reject slow dependency extractors
865 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
866 default: Automatically select audio device.
868 sun: SunOS /dev/audio
869 hpux: HPUX /dev/audio
870 irix: IRIX audio library
872 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
874 darwin: Darwin CoreAudio
875 alsa: ALSA pcm device
876 alib: HPUX network audio (Alib)
877 nas: NAS - Network Audio System
879 esd: EsounD - Enlightened Sound Daemon
881 gogo: MP3 GOGO (Only Windows is supported)
882 --disable-alsatest Do not try to compile and run a test Alsa program
883 --disable-artstest Do not try to compile and run a test ARTS program
884 --disable-esdtest Do not try to compile and run a test ESD program
885 --disable-oggtest Do not try to compile and run a test Ogg program
886 --disable-vorbistest Do not try to compile and run a test Vorbis program
887 --enable-interface=interface_list
888 Comma separated interface list
889 --enable-dynamic Enable dynamic link interface (default is no)
890 --enable-dynamic=dynamic_list
891 Comma separated dynamic interface list
892 --enable-ncurses Enable ncurses interface (default is no)
893 --enable-slang Enable slang interface (default is no)
894 --enable-motif Enable motif interface (default is no)
895 --enable-tcltk Enable tcltk interface (default is no)
896 --enable-emacs Enable emacs interface (default is no)
897 --enable-vt100 Enable VT100 interface (default is no)
898 --enable-xaw Enable athena interface (default is no)
899 --enable-xskin Enable X skin interface (default is no)
900 --enable-gtk Enable GTK+ interface (default is no)
901 --disable-gtktest Do not try to compile and run a test GTK program
902 --enable-server Enable server interface (default is no)
903 --enable-alsaseq Enable ALSA sequencer server interface
905 --enable-winsyn Enable Windows Synthesizer interface
907 --enable-w32gui Enable Windows GUI interface (default is no)
908 --enable-ump UMP configuration (default is no)
909 --enable-offix Enable offix support (default is no)
910 --enable-network Enable network support (default is no)
911 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
912 --enable-spline=method Specify spline method.
913 one of no,linear,cubic,lagrange,newton,gauss
915 --enable-wrd Enable WRD interface for X (default is no)
918 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
919 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
920 --with-includes=DIR Specify include directories (colon separated)
921 --with-libraries=DIR Specify library directories (colon separated)
922 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
923 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
924 --with-lispdir Override the default lisp directory
925 --with-elf create ELF shared object instead of AOUT
926 --with-simd create SIMD friendly binary (default is no)
927 --with-x use the X Window System
928 --with-tcl-includes=DIR Tcl include file path
929 --with-tcl-libs=DIR Tcl library file path
930 --with-tk-includes=DIR Tk include file path
931 --with-tk-libs=DIR Tk library file path
932 --with-offix-includes=DIR Offix include file path
933 --with-offix-libs=DIR Offix include file path
934 --with-nas-library=library NAS absolute library path(Don't use -laudio)
935 --with-nas-includes=DIR NAS include files are in dir
936 --with-default-output=<mode> Specify default output mode (optional):
937 (default|alsa|alib|arts|nas|
938 esd|wav|au|aiff|list|vorbis|
940 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
941 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
942 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
943 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
944 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
945 --with-ogg=PFX Prefix where libogg is installed (optional)
946 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
947 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
948 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
949 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
950 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
951 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
952 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
954 Some influential environment variables:
955 CC C compiler command
956 CFLAGS C compiler flags
957 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
958 nonstandard directory <lib dir>
959 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
960 headers in a nonstandard directory <include dir>
963 Use these variables to override the choices made by `configure' or to help
964 it to find libraries and programs with nonstandard names/locations.
966 Report bugs to <root@mput.dip.jp>.
970 if test "$ac_init_help" = "recursive"; then
971 # If there are subdirs, report their specific --help.
973 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
974 test -d $ac_dir || continue
977 if test "$ac_dir" != .; then
978 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
979 # A "../" for each directory in $ac_dir_suffix.
980 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
982 ac_dir_suffix= ac_top_builddir=
986 .) # No --srcdir option. We are building in place.
988 if test -z "$ac_top_builddir"; then
991 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
993 [\\/]* | ?:[\\/]* ) # Absolute path.
994 ac_srcdir=$srcdir$ac_dir_suffix;
995 ac_top_srcdir=$srcdir ;;
997 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
998 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1000 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1002 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1003 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1004 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1005 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1008 # Check for guested configure; otherwise get Cygnus style configure.
1009 if test -f $ac_srcdir/configure.gnu; then
1011 $SHELL $ac_srcdir/configure.gnu --help=recursive
1012 elif test -f $ac_srcdir/configure; then
1014 $SHELL $ac_srcdir/configure --help=recursive
1015 elif test -f $ac_srcdir/configure.ac ||
1016 test -f $ac_srcdir/configure.in; then
1018 $ac_configure --help
1020 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026 test -n "$ac_init_help" && exit 0
1027 if $ac_init_version; then
1029 TiMidity++ configure 2.12.0-pre1b
1030 generated by GNU Autoconf 2.57
1032 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1033 Free Software Foundation, Inc.
1034 This configure script is free software; the Free Software Foundation
1035 gives unlimited permission to copy, distribute and modify it.
1041 This file contains any messages produced by compilers while
1042 running configure, to aid debugging if configure makes a mistake.
1044 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1045 generated by GNU Autoconf 2.57. Invocation command line was
1056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1068 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1079 test -z "$as_dir" && as_dir=.
1080 echo "PATH: $as_dir"
1095 # Keep a trace of the command line.
1096 # Strip out --no-create and --no-recursion so they do not pile up.
1097 # Strip out --silent because we don't want to record it for future runs.
1098 # Also quote any args containing shell meta-characters.
1099 # Make two passes to allow for proper duplicate-argument suppression.
1104 ac_must_keep_next=false
1110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1114 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1115 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1118 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1120 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1121 if test $ac_must_keep_next = true; then
1122 ac_must_keep_next=false # Got value, back to normal.
1125 *=* | --config-cache | -C | -disable-* | --disable-* \
1126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1128 | -with-* | --with-* | -without-* | --without-* | --x)
1129 case "$ac_configure_args0 " in
1130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1133 -* ) ac_must_keep_next=true ;;
1136 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1137 # Get rid of the leading space.
1143 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1144 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1146 # When interrupted or exit'd, cleanup temporary files, and complete
1147 # config.log. We remove comments because anyway the quotes in there
1148 # would cause problems or look ugly.
1149 # WARNING: Be sure not to use single quotes in there, as some shells,
1150 # such as our DU 5.0 friend, will then `close' the trap.
1151 trap 'exit_status=$?
1152 # Save into config.log some information that might help in debugging.
1157 ## ---------------- ##
1158 ## Cache variables. ##
1159 ## ---------------- ##
1162 # The following way of writing the cache mishandles newlines in values,
1165 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1168 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1173 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1180 ## ----------------- ##
1181 ## Output variables. ##
1182 ## ----------------- ##
1185 for ac_var in $ac_subst_vars
1187 eval ac_val=$`echo $ac_var`
1188 echo "$ac_var='"'"'$ac_val'"'"'"
1192 if test -n "$ac_subst_files"; then
1199 for ac_var in $ac_subst_files
1201 eval ac_val=$`echo $ac_var`
1202 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -s confdefs.h; then
1214 sed "/^$/d" confdefs.h | sort
1217 test "$ac_signal" != 0 &&
1218 echo "$as_me: caught signal $ac_signal"
1219 echo "$as_me: exit $exit_status"
1221 rm -f core core.* *.core &&
1222 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1225 for ac_signal in 1 2 13 15; do
1226 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1235 # Predefined preprocessor variables.
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265 if test "x$prefix" != xNONE; then
1266 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1268 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1271 for ac_site_file in $CONFIG_SITE; do
1272 if test -r "$ac_site_file"; then
1273 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275 sed 's/^/| /' "$ac_site_file" >&5
1280 if test -r "$cache_file"; then
1281 # Some versions of bash will fail to source /dev/null (special
1282 # files actually), so we avoid doing that.
1283 if test -f "$cache_file"; then
1284 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1287 [\\/]* | ?:[\\/]* ) . $cache_file;;
1288 *) . ./$cache_file;;
1292 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1297 # Check that the precious variables saved in the cache have kept the same
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303 eval ac_new_set=\$ac_env_${ac_var}_set
1304 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305 eval ac_new_val="\$ac_env_${ac_var}_value"
1306 case $ac_old_set,$ac_new_set in
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1317 if test "x$ac_old_val" != "x$ac_new_val"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1321 echo "$as_me: former value: $ac_old_val" >&2;}
1322 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1323 echo "$as_me: current value: $ac_new_val" >&2;}
1324 ac_cache_corrupted=:
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1340 if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345 { (exit 1); exit 1; }; }
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 for ac_dir in autoconf $srcdir/autoconf; do
1382 if test -f $ac_dir/install-sh; then
1384 ac_install_sh="$ac_aux_dir/install-sh -c"
1386 elif test -f $ac_dir/install.sh; then
1388 ac_install_sh="$ac_aux_dir/install.sh -c"
1390 elif test -f $ac_dir/shtool; then
1392 ac_install_sh="$ac_aux_dir/shtool install -c"
1396 if test -z "$ac_aux_dir"; then
1397 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1398 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1399 { (exit 1); exit 1; }; }
1401 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1405 # Make sure we can run config.sub.
1406 $ac_config_sub sun4 >/dev/null 2>&1 ||
1407 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: checking build system type" >&5
1412 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413 if test "${ac_cv_build+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 ac_cv_build_alias=$build_alias
1417 test -z "$ac_cv_build_alias" &&
1418 ac_cv_build_alias=`$ac_config_guess`
1419 test -z "$ac_cv_build_alias" &&
1420 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422 { (exit 1); exit 1; }; }
1423 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430 echo "${ECHO_T}$ac_cv_build" >&6
1432 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437 echo "$as_me:$LINENO: checking host system type" >&5
1438 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439 if test "${ac_cv_host+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 ac_cv_host_alias=$host_alias
1443 test -z "$ac_cv_host_alias" &&
1444 ac_cv_host_alias=$ac_cv_build_alias
1445 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452 echo "${ECHO_T}$ac_cv_host" >&6
1454 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking target system type" >&5
1460 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1461 if test "${ac_cv_target+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 ac_cv_target_alias=$target_alias
1465 test "x$ac_cv_target_alias" = "x" &&
1466 ac_cv_target_alias=$ac_cv_host_alias
1467 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1474 echo "${ECHO_T}$ac_cv_target" >&6
1475 target=$ac_cv_target
1476 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 # The aliases save the names the user supplied, while $host etc.
1482 # will get canonicalized.
1483 test -n "$target_alias" &&
1484 test "$program_prefix$program_suffix$program_transform_name" = \
1486 program_prefix=${target_alias}-
1487 am__api_version="1.7"
1488 # Find a good install program. We prefer a C program (faster),
1489 # so one script is as good as another. But avoid the broken or
1490 # incompatible versions:
1491 # SysV /etc/install, /usr/sbin/install
1492 # SunOS /usr/etc/install
1493 # IRIX /sbin/install
1495 # AmigaOS /C/install, which installs bootblocks on floppy discs
1496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 # Account for people who put trailing slashes in PATH elements.
1513 ./ | .// | /cC/* | \
1514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1517 # OSF1 and SCO ODT 3.0 have their own names for install.
1518 # Don't use installbsd from OSF since it installs stuff as root
1520 for ac_prog in ginstall scoinst install; do
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1523 if test $ac_prog = install &&
1524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1525 # AIX install. It has an incompatible calling convention.
1527 elif test $ac_prog = install &&
1528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1529 # program-specific install script used by HP pwplus--don't use.
1532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1544 if test "${ac_cv_path_install+set}" = set; then
1545 INSTALL=$ac_cv_path_install
1547 # As a last resort, use the slow shell script. We don't cache a
1548 # path for INSTALL within a source directory, because that will
1549 # break other packages using the cache if that directory is
1550 # removed, or if the path is relative.
1551 INSTALL=$ac_install_sh
1554 echo "$as_me:$LINENO: result: $INSTALL" >&5
1555 echo "${ECHO_T}$INSTALL" >&6
1557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1558 # It thinks the first close brace ends the variable substitution.
1559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1566 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1569 echo timestamp > conftest.file
1570 # Do `set' in a subshell so we don't clobber the current shell's
1571 # arguments. Must try -L first in case configure is actually a
1572 # symlink; some systems play weird games with the mod time of symlinks
1573 # (eg FreeBSD returns the mod time of the symlink's containing
1576 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1577 if test "$*" = "X"; then
1579 set X `ls -t $srcdir/configure conftest.file`
1582 if test "$*" != "X $srcdir/configure conftest.file" \
1583 && test "$*" != "X conftest.file $srcdir/configure"; then
1585 # If neither matched, then we have a broken ls. This can happen
1586 # if, for instance, CONFIG_SHELL is bash and it inherits a
1587 # broken ls alias from the environment. This has actually
1588 # happened. Such a system could not be considered "sane".
1589 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1590 alias in your environment" >&5
1591 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1592 alias in your environment" >&2;}
1593 { (exit 1); exit 1; }; }
1596 test "$2" = conftest.file
1602 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1603 Check your system clock" >&5
1604 echo "$as_me: error: newly created file is older than distributed files!
1605 Check your system clock" >&2;}
1606 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: yes" >&5
1609 echo "${ECHO_T}yes" >&6
1610 test "$program_prefix" != NONE &&
1611 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1612 # Use a double $ so make ignores it.
1613 test "$program_suffix" != NONE &&
1614 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1615 # Double any \ or $. echo might interpret backslashes.
1616 # By default was `s,x,x', remove it if useless.
1617 cat <<\_ACEOF >conftest.sed
1618 s/[\\$]/&&/g;s/;s,x,x,$//
1620 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630 am_missing_run="$MISSING --run "
1633 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1637 for ac_prog in gawk mawk nawk awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 cat >conftest.make <<\_ACEOF
1685 @echo 'ac_maketemp="$(MAKE)"'
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_${ac_make}_set=yes
1692 eval ac_cv_prog_make_${ac_make}_set=no
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE="MAKE=${MAKE-make}"
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1713 rmdir .tst 2>/dev/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1733 # Define the identity of the package.
1734 PACKAGE='TiMidity++'
1735 VERSION='2.12.0-pre1b'
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1747 # Some tools Automake needs.
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 AMTAR=${AMTAR-"${am_missing_run}tar"}
1766 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1768 # Installed binaries are usually stripped using `strip' when the user
1769 # run `make install-strip'. However `strip' might not be the right
1770 # tool to use in cross-compilation environments, therefore Automake
1771 # will honor the `STRIP' environment variable to overrule this program.
1772 if test "$cross_compiling" != no; then
1773 if test -n "$ac_tool_prefix"; then
1774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775 set dummy ${ac_tool_prefix}strip; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_STRIP+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$STRIP"; then
1782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 STRIP=$ac_cv_prog_STRIP
1801 if test -n "$STRIP"; then
1802 echo "$as_me:$LINENO: result: $STRIP" >&5
1803 echo "${ECHO_T}$STRIP" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1810 if test -z "$ac_cv_prog_STRIP"; then
1812 # Extract the first word of "strip", so it can be a program name with args.
1813 set dummy strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$ac_ct_STRIP"; then
1820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_ac_ct_STRIP="strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840 if test -n "$ac_ct_STRIP"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842 echo "${ECHO_T}$ac_ct_STRIP" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1850 STRIP="$ac_cv_prog_STRIP"
1854 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1856 # We need awk for the "check" target. The system "awk" is bad on
1862 ac_config_headers="$ac_config_headers config.h interface.h"
1864 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1865 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1866 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1867 if test "${enable_maintainer_mode+set}" = set; then
1868 enableval="$enable_maintainer_mode"
1869 USE_MAINTAINER_MODE=$enableval
1871 USE_MAINTAINER_MODE=no
1873 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1874 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1877 if test $USE_MAINTAINER_MODE = yes; then
1878 MAINTAINER_MODE_TRUE=
1879 MAINTAINER_MODE_FALSE='#'
1881 MAINTAINER_MODE_TRUE='#'
1882 MAINTAINER_MODE_FALSE=
1885 MAINT=$MAINTAINER_MODE_TRUE
1889 SHELL=${CONFIG_SHELL-"/bin/sh"}
1892 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1893 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1894 echo "grimblepritz" >grimble
1895 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1896 contains="./contains"
1897 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1900 contains="./contains"
1904 grep) echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1908 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1909 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1910 cat >./contains <<'EOSS'
1911 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1913 chmod +x "./contains"
1918 # Check for compiler options -- such as debug flags.
1920 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1921 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1922 # Check whether --enable-debug or --disable-debug was given.
1923 if test "${enable_debug+set}" = set; then
1924 enableval="$enable_debug"
1925 timidity_cv_debug="yes"
1927 timidity_cv_debug="no"
1929 if test "x$timidity_cv_debug" = "xyes"; then
1931 cat >>confdefs.h <<\_ACEOF
1935 CFLAGS=${CFLAGS-"-g"}
1937 if test "x$timidity_cv_debug" = "xno"; then
1939 cat >>confdefs.h <<\_ACEOF
1944 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1945 echo "${ECHO_T}$timidity_cv_debug" >&6
1947 CFLAGS=${CFLAGS-"-O2"}
1949 if test "x$with_x" = x; then
1955 # Checking gcc environment
1956 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1957 LDFLAGS="$LDFLAGS -L${i}"
1959 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1960 CPPFLAGS="$CPPFLAGS -I${i}"
1963 # add $prefix if specified.
1964 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1965 LDFLAGS="-L$prefix/lib $LDFLAGS"
1966 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1967 CPPFLAGS="-I$prefix/include $CPPFLAGS"
1971 # Check whether --with-includes or --without-includes was given.
1972 if test "${with_includes+set}" = set; then
1973 withval="$with_includes"
1975 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1978 CPPFLAGS="$j$CPPFLAGS"
1983 # Check whether --with-libraries or --without-libraries was given.
1984 if test "${with_libraries+set}" = set; then
1985 withval="$with_libraries"
1987 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1990 LDFLAGS="$j$LDFLAGS"
1996 # Check whether --with-default-path or --without-default-path was given.
1997 if test "${with_default_path+set}" = set; then
1998 withval="$with_default_path"
2002 if test "x$prefix" != "xNONE"; then
2003 pkgdatadir='${prefix}/share/timidity'
2005 pkgdatadir='/usr/local/share/timidity'
2009 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2011 cat >>confdefs.h <<_ACEOF
2012 #define DEFAULT_PATH "$tmpdefpath"
2016 cat >>confdefs.h <<\_ACEOF
2017 #define PKGDATADIR DEFAULT_PATH
2022 # Check whether --with-module-dir or --without-module-dir was given.
2023 if test "${with_module_dir+set}" = set; then
2024 withval="$with_module_dir"
2028 if test "x$prefix" != "xNONE"; then
2029 pkglibdir='${prefix}/lib/timidity'
2031 pkglibdir='/usr/local/lib/timidity'
2035 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2037 cat >>confdefs.h <<_ACEOF
2038 #define PKGLIBDIR "$tmplibdir"
2043 # Checks for programs.
2045 # Check whether --with-lispdir or --without-lispdir was given.
2046 if test "${with_lispdir+set}" = set; then
2047 withval="$with_lispdir"
2049 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2050 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2051 echo "$as_me:$LINENO: result: $lispdir" >&5
2052 echo "${ECHO_T}$lispdir" >&6
2055 # If set to t, that means we are running in a shell under Emacs.
2056 # If you have an Emacs named "t", then use the full path.
2057 test x"$EMACS" = xt && EMACS=
2058 for ac_prog in emacs xemacs
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_EMACS+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test -n "$EMACS"; then
2068 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077 ac_cv_prog_EMACS="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 EMACS=$ac_cv_prog_EMACS
2087 if test -n "$EMACS"; then
2088 echo "$as_me:$LINENO: result: $EMACS" >&5
2089 echo "${ECHO_T}$EMACS" >&6
2091 echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2095 test -n "$EMACS" && break
2097 test -n "$EMACS" || EMACS="no"
2099 if test $EMACS != "no"; then
2100 if test x${lispdir+set} != xset; then
2101 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2102 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2103 if test "${am_cv_lispdir+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2107 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2108 # which is non-obvious for non-emacs users.
2109 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2110 # emacsen earlier and avoid running this altogether.
2111 { (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
2112 ($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
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 am_cv_lispdir=`sed -n \
2118 -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2119 -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2122 if test -z "$am_cv_lispdir"; then
2123 am_cv_lispdir='${datadir}/emacs/site-lisp'
2127 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2128 echo "${ECHO_T}$am_cv_lispdir" >&6
2129 lispdir="$am_cv_lispdir"
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141 if test -n "$ac_tool_prefix"; then
2142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 if test -n "$CC"; then
2170 echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2173 echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207 if test -n "$ac_ct_CC"; then
2208 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209 echo "${ECHO_T}$ac_ct_CC" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2220 if test -z "$CC"; then
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2223 set dummy ${ac_tool_prefix}cc; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_CC="${ac_tool_prefix}cc"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 if test -n "$CC"; then
2250 echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2258 if test -z "$ac_cv_prog_CC"; then
2260 # Extract the first word of "cc", so it can be a program name with args.
2261 set dummy cc; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$ac_ct_CC"; then
2268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_ac_ct_CC="cc"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6
2291 echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2301 if test -z "$CC"; then
2302 # Extract the first word of "cc", so it can be a program name with args.
2303 set dummy cc; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2321 ac_prog_rejected=yes
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 if test $ac_prog_rejected = yes; then
2332 # We found a bogon in the path, so make sure we never use it.
2333 set dummy $ac_cv_prog_CC
2335 if test $# != 0; then
2336 # We chose a different compiler from the bogus one.
2337 # However, it has the same basename, so the bogon will be chosen
2338 # first if we set CC to just the basename; use the full file name.
2340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2346 if test -n "$CC"; then
2347 echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2355 if test -z "$CC"; then
2356 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test -n "$CC"; then
2387 echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 test -n "$CC" && break
2397 if test -z "$CC"; then
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_ac_ct_CC="$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2432 echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2436 test -n "$ac_ct_CC" && break
2445 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&5
2447 echo "$as_me: error: no acceptable C compiler found in \$PATH
2448 See \`config.log' for more details." >&2;}
2449 { (exit 1); exit 1; }; }
2451 # Provide some information about the compiler.
2452 echo "$as_me:$LINENO:" \
2453 "checking for C compiler version" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2456 (eval $ac_compiler --version </dev/null >&5) 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2461 (eval $ac_compiler -v </dev/null >&5) 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2466 (eval $ac_compiler -V </dev/null >&5) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #line $LINENO "configure"
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2487 ac_clean_files_save=$ac_clean_files
2488 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2489 # Try to create an executable without -o first, disregard a.out.
2490 # It will help us diagnose broken compilers, and finding out an intuition
2492 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2493 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2494 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2496 (eval $ac_link_default) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # Find the output, starting from the most likely. This scheme is
2501 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2504 # Be careful to initialize this variable, since it used to be cached.
2505 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2507 # b.out is created by i960 compilers.
2508 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2510 test -f "$ac_file" || continue
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2515 # This is the source file.
2518 # We found the default executable, but exeext='' is most
2522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 # FIXME: I believe we export ac_cv_exeext for Libtool,
2524 # but it would be cool to find out if it's true. Does anybody
2525 # maintain Libtool? --akim.
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2547 # Check the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 if test "$cross_compiling" = maybe; then
2565 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2578 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 # Check the compiler produces executables we can run. If not, either
2581 # the compiler is broken, or we cross compile.
2582 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2584 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585 echo "${ECHO_T}$cross_compiling" >&6
2587 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2616 rm -f conftest$ac_cv_exeext
2617 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2618 echo "${ECHO_T}$ac_cv_exeext" >&6
2620 rm -f conftest.$ac_ext
2621 EXEEXT=$ac_cv_exeext
2623 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2624 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2625 if test "${ac_cv_objext+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.o conftest.obj
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; then
2650 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6
2672 OBJEXT=$ac_cv_objext
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2676 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2721 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2722 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2723 GCC=`test $ac_compiler_gnu = yes && echo yes`
2724 ac_test_CFLAGS=${CFLAGS+set}
2725 ac_save_CFLAGS=$CFLAGS
2727 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2728 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2729 if test "${ac_cv_prog_cc_g+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #line $LINENO "configure"
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2771 if test "$ac_test_CFLAGS" = set; then
2772 CFLAGS=$ac_save_CFLAGS
2773 elif test $ac_cv_prog_cc_g = yes; then
2774 if test "$GCC" = yes; then
2780 if test "$GCC" = yes; then
2786 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2787 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2788 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_cv_prog_cc_stdc=no
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 #include <sys/types.h>
2803 #include <sys/stat.h>
2804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2805 struct buf { int x; };
2806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2807 static char *e (p, i)
2813 static char *f (char * (*g) (char **, int), char **p, ...)
2818 s = g (p, va_arg (v,int));
2822 int test (int i, double x);
2823 struct s1 {int (*f) (int a);};
2824 struct s2 {int (*f) (double a);};
2825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2836 # Don't try gcc -ansi; that turns off useful extensions and
2837 # breaks some systems' header files.
2838 # AIX -qlanglvl=ansi
2839 # Ultrix and OSF/1 -std1
2840 # HP-UX 10.20 and later -Ae
2841 # HP-UX older versions -Aa -D_HPUX_SOURCE
2842 # SVR4 -Xc -D__EXTENSIONS__
2843 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2845 CC="$ac_save_CC $ac_arg"
2846 rm -f conftest.$ac_objext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848 (eval $ac_compile) 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 ac_cv_prog_cc_stdc=$ac_arg
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.$ac_objext
2867 rm -f conftest.$ac_ext conftest.$ac_objext
2872 case "x$ac_cv_prog_cc_stdc" in
2874 echo "$as_me:$LINENO: result: none needed" >&5
2875 echo "${ECHO_T}none needed" >&6 ;;
2877 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2878 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2879 CC="$CC $ac_cv_prog_cc_stdc" ;;
2882 # Some people use a C++ compiler to compile C. Since we use `exit',
2883 # in C++ we need to declare it. In case someone uses the same compiler
2884 # for both compiling C and C++ we need to have the C++ compiler decide
2885 # the declaration of exit, since it's the most demanding environment.
2886 cat >conftest.$ac_ext <<_ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 for ac_declaration in \
2905 '#include <stdlib.h>' \
2906 'extern "C" void std::exit (int) throw (); using std::exit;' \
2907 'extern "C" void std::exit (int); using std::exit;' \
2908 'extern "C" void exit (int) throw ();' \
2909 'extern "C" void exit (int);' \
2912 cat >conftest.$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.$ac_objext conftest.$ac_ext
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.$ac_objext conftest.$ac_ext
2986 if test -n "$ac_declaration"; then
2987 echo '#ifdef __cplusplus' >>confdefs.h
2988 echo $ac_declaration >>confdefs.h
2989 echo '#endif' >>confdefs.h
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f conftest.$ac_objext conftest.$ac_ext
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 DEPDIR="${am__leading_dot}deps"
3005 ac_config_commands="$ac_config_commands depfiles"
3008 am_make=${MAKE-make}
3009 cat > confinc << 'END'
3014 # If we don't find an include directive, just comment out the code.
3015 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3016 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3020 # First try GNU make style include.
3021 echo "include confinc" > confmf
3022 # We grep out `Entering directory' and `Leaving directory'
3023 # messages which can occur if `w' ends up in MAKEFLAGS.
3024 # In particular we don't look at `^make:' because GNU make might
3025 # be invoked under some other name (usually "gmake"), in which
3026 # case it prints its new name instead of `make'.
3027 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034 echo '.include "confinc"' > confmf
3035 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3036 am__include=.include
3043 echo "$as_me:$LINENO: result: $_am_result" >&5
3044 echo "${ECHO_T}$_am_result" >&6
3045 rm -f confinc confmf
3047 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3048 if test "${enable_dependency_tracking+set}" = set; then
3049 enableval="$enable_dependency_tracking"
3052 if test "x$enable_dependency_tracking" != xno; then
3053 am_depcomp="$ac_aux_dir/depcomp"
3058 if test "x$enable_dependency_tracking" != xno; then
3069 depcc="$CC" am_compiler_list=
3071 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3072 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3077 # We make a subdir and do the tests there. Otherwise we can end up
3078 # making bogus files that we don't know about and never remove. For
3079 # instance it was reported that on HP-UX the gcc test will end up
3080 # making a dummy file named `D' -- because `-MD' means `put the output
3083 # Copy depcomp to subdir because otherwise we won't find it if we're
3084 # using a relative directory.
3085 cp "$am_depcomp" conftest.dir
3088 am_cv_CC_dependencies_compiler_type=none
3089 if test "$am_compiler_list" = ""; then
3090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3092 for depmode in $am_compiler_list; do
3093 # We need to recreate these files for each test, as the compiler may
3094 # overwrite some of them when testing with obscure command lines.
3095 # This happens at least with the AIX C compiler.
3096 echo '#include "conftest.h"' > conftest.c
3097 echo 'int i;' > conftest.h
3098 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3102 # after this tag, mechanisms are not by side-effect, so they'll
3103 # only be used when explicitly requested
3104 if test "x$enable_dependency_tracking" = xyes; then
3112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3113 # mode. It turns out that the SunPro C++ compiler does not properly
3114 # handle `-M -o', and we need to detect this.
3115 if depmode=$depmode \
3116 source=conftest.c object=conftest.o \
3117 depfile=conftest.Po tmpdepfile=conftest.TPo \
3118 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3119 >/dev/null 2>conftest.err &&
3120 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3122 # icc doesn't choke on unknown options, it will just issue warnings
3123 # (even with -Werror). So we grep stderr for any message
3124 # that says an option was ignored.
3125 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3126 am_cv_CC_dependencies_compiler_type=$depmode
3135 am_cv_CC_dependencies_compiler_type=none
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3146 test "x$enable_dependency_tracking" != xno \
3147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149 am__fastdepCC_FALSE='#'
3151 am__fastdepCC_TRUE='#'
3152 am__fastdepCC_FALSE=
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3163 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3164 # On Suns, sometimes $CPP names a directory.
3165 if test -n "$CPP" && test -d "$CPP"; then
3168 if test -z "$CPP"; then
3169 if test "${ac_cv_prog_CPP+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 # Double quotes because CPP needs to be expanded
3173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3176 for ac_c_preproc_warn_flag in '' yes
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3192 # include <limits.h>
3194 # include <assert.h>
3198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3214 if test -z "$ac_cpp_err"; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3223 rm -f conftest.err conftest.$ac_ext
3225 # OK, works on sane cases. Now check whether non-existent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3252 if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3263 rm -f conftest.err conftest.$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3280 echo "$as_me:$LINENO: result: $CPP" >&5
3281 echo "${ECHO_T}$CPP" >&6
3283 for ac_c_preproc_warn_flag in '' yes
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 # <limits.h> exists even on freestanding compilers.
3289 # On the NeXT, cc -E runs the code through the compiler's parser,
3290 # not just through cpp. "Syntax error" is here to catch this case.
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3321 if test -z "$ac_cpp_err"; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 # Broken: fails on valid input.
3330 rm -f conftest.err conftest.$ac_ext
3332 # OK, works on sane cases. Now check whether non-existent headers
3333 # can be detected and how.
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <ac_nonexistent.h>
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3359 if test -z "$ac_cpp_err"; then
3360 # Broken: success on invalid input.
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Passes both tests.
3370 rm -f conftest.err conftest.$ac_ext
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3378 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3379 See \`config.log' for more details." >&5
3380 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3381 See \`config.log' for more details." >&2;}
3382 { (exit 1); exit 1; }; }
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 echo "$as_me:$LINENO: checking for egrep" >&5
3393 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3394 if test "${ac_cv_prog_egrep+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3398 then ac_cv_prog_egrep='grep -E'
3399 else ac_cv_prog_egrep='egrep'
3402 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3403 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3404 EGREP=$ac_cv_prog_egrep
3407 if test $ac_cv_c_compiler_gnu = yes; then
3408 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3409 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3410 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 ac_pattern="Autoconf.*'x'"
3414 cat >conftest.$ac_ext <<_ACEOF
3415 #line $LINENO "configure"
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3426 ac_cv_prog_gcc_traditional=yes
3428 ac_cv_prog_gcc_traditional=no
3433 if test $ac_cv_prog_gcc_traditional = no; then
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3446 ac_cv_prog_gcc_traditional=yes
3452 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3454 if test $ac_cv_prog_gcc_traditional = yes; then
3455 CC="$CC -traditional"
3459 # Find a good install program. We prefer a C program (faster),
3460 # so one script is as good as another. But avoid the broken or
3461 # incompatible versions:
3462 # SysV /etc/install, /usr/sbin/install
3463 # SunOS /usr/etc/install
3464 # IRIX /sbin/install
3466 # AmigaOS /C/install, which installs bootblocks on floppy discs
3467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3470 # ./install, which can be erroneously created by make from ./install.sh.
3471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3473 if test -z "$INSTALL"; then
3474 if test "${ac_cv_path_install+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 # Account for people who put trailing slashes in PATH elements.
3484 ./ | .// | /cC/* | \
3485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3488 # OSF1 and SCO ODT 3.0 have their own names for install.
3489 # Don't use installbsd from OSF since it installs stuff as root
3491 for ac_prog in ginstall scoinst install; do
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3494 if test $ac_prog = install &&
3495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3496 # AIX install. It has an incompatible calling convention.
3498 elif test $ac_prog = install &&
3499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3500 # program-specific install script used by HP pwplus--don't use.
3503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3515 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install
3518 # As a last resort, use the slow shell script. We don't cache a
3519 # path for INSTALL within a source directory, because that will
3520 # break other packages using the cache if that directory is
3521 # removed, or if the path is relative.
3522 INSTALL=$ac_install_sh
3525 echo "$as_me:$LINENO: result: $INSTALL" >&5
3526 echo "${ECHO_T}$INSTALL" >&6
3528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529 # It thinks the first close brace ends the variable substitution.
3530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3536 for ac_prog in gawk mawk nawk awk
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AWK+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$AWK"; then
3546 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AWK="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$AWK"; then
3566 echo "$as_me:$LINENO: result: $AWK" >&5
3567 echo "${ECHO_T}$AWK" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AWK" && break
3576 if test -n "$ac_tool_prefix"; then
3577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_RANLIB+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$RANLIB"; then
3585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 RANLIB=$ac_cv_prog_RANLIB
3604 if test -n "$RANLIB"; then
3605 echo "$as_me:$LINENO: result: $RANLIB" >&5
3606 echo "${ECHO_T}$RANLIB" >&6
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3613 if test -z "$ac_cv_prog_RANLIB"; then
3614 ac_ct_RANLIB=$RANLIB
3615 # Extract the first word of "ranlib", so it can be a program name with args.
3616 set dummy ranlib; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$ac_ct_RANLIB"; then
3623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_RANLIB="ranlib"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3643 if test -n "$ac_ct_RANLIB"; then
3644 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3645 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3647 echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3651 RANLIB=$ac_ct_RANLIB
3653 RANLIB="$ac_cv_prog_RANLIB"
3656 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3657 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3659 if test "$LN_S" = "ln -s"; then
3660 echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3663 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3664 echo "${ECHO_T}no, using $LN_S" >&6
3667 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3668 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3669 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3670 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 cat > conftest.$ac_ext <<EOF
3674 int main() {return 0;}
3676 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3677 if test -s conftest.out; then
3678 eval "timidity_cv_ccoption_$ac_ccoption=no"
3680 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3683 eval "timidity_cv_ccoption_$ac_ccoption=no"
3688 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3689 echo "$as_me:$LINENO: result: yes" >&5
3690 echo "${ECHO_T}yes" >&6
3693 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3699 # Checks for target dependencies
3702 # Check whether --with-elf or --without-elf was given.
3703 if test "${with_elf+set}" = set; then
3711 # Check whether --with-simd or --without-simd was given.
3712 if test "${with_simd+set}" = set; then
3713 withval="$with_simd"
3722 test -n "$SHLD" || SHLD="ld -b"
3726 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3727 test -n "$SHLD" || SHLD="cc -shared -all"
3731 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3736 test -n "$SHLD" || SHLD="ld -Bshareable"
3740 if test "$ELFFORMAT" = yes; then
3741 test -n "$SHLD" || SHLD="ld -Bshareable"
3744 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3745 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3751 # EXTRALIBS="$EXTRALIBS -lxpg4"
3752 # test -n "$SHLD" || SHLD="ld -Bshareable"
3757 EXTRADEFS="-D__W32__"
3760 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3761 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3762 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3763 *) test -n "$SHLD" || SHLD="unknown" ;;
3767 lib_user32_test=-luser32
3770 EXTRADEFS="-D__W32__"
3773 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3774 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3775 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3776 *) test -n "$SHLD" || SHLD="unknown" ;;
3780 lib_user32_test=-luser32
3784 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3788 EXTRADEFS="-DSOLARIS"
3789 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3793 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3797 if test "x$SIMD" = "xyes"; then
3799 cat >>confdefs.h <<\_ACEOF
3800 #define USE_ALTIVEC 1
3803 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3804 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3807 cat >>confdefs.h <<\_ACEOF
3808 #define USE_ALTIVEC 0
3812 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3813 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3814 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3818 test -n "$SHLD" || \
3819 if test "x$GCC" = xyes; then
3822 SHLD="ld -Bdynamic -G"
3829 # Checks for libraries.
3831 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3832 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3833 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_check_lib_save_LIBS=$LIBS
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3846 /* Override any gcc2 internal prototype to avoid an error. */
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863 (eval $ac_link) 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -s conftest$ac_exeext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 ac_cv_lib_m_sqrt=yes
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3881 LIBS=$ac_check_lib_save_LIBS
3883 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3884 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3885 if test $ac_cv_lib_m_sqrt = yes; then
3886 cat >>confdefs.h <<_ACEOF
3895 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3896 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3897 if test "${ac_cv_lib_socket_socket+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-lsocket $LIBS"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line $LINENO "configure"
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3910 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_lib_socket_socket=yes
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ac_cv_lib_socket_socket=no
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3945 LIBS=$ac_check_lib_save_LIBS
3947 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3948 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3949 if test $ac_cv_lib_socket_socket = yes; then
3950 cat >>confdefs.h <<_ACEOF
3951 #define HAVE_LIBSOCKET 1
3954 LIBS="-lsocket $LIBS"
3958 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 ac_check_lib_save_LIBS=$LIBS
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line $LINENO "configure"
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3973 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3988 rm -f conftest.$ac_objext conftest$ac_exeext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990 (eval $ac_link) 2>&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_dl_dlopen=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 ac_cv_lib_dl_dlopen=no
4007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4012 if test $ac_cv_lib_dl_dlopen = yes; then
4016 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4017 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4018 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 ac_check_lib_save_LIBS=$LIBS
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4035 /* We use char because int might match the return type of a gcc2
4036 builtin and then its argument prototype would still apply. */
4037 char NSLinkModule ();
4046 rm -f conftest.$ac_objext conftest$ac_exeext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048 (eval $ac_link) 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -s conftest$ac_exeext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_lib_objc_NSLinkModule=yes
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 ac_cv_lib_objc_NSLinkModule=no
4065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4066 LIBS=$ac_check_lib_save_LIBS
4068 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4069 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4070 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4073 # Mac OS X need this.
4075 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4076 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4077 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 ac_check_lib_save_LIBS=$LIBS
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4090 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4105 rm -f conftest.$ac_objext conftest$ac_exeext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107 (eval $ac_link) 2>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -s conftest$ac_exeext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_lib_xpg4_setlocale=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_cv_lib_xpg4_setlocale=no
4124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4125 LIBS=$ac_check_lib_save_LIBS
4127 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4128 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4129 if test $ac_cv_lib_xpg4_setlocale = yes; then
4130 cat >>confdefs.h <<_ACEOF
4131 #define HAVE_LIBXPG4 1
4137 # Mac OS X (and maybe NetBSD) need this.
4139 for ac_func in gethostbyname
4141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4142 echo "$as_me:$LINENO: checking for $ac_func" >&5
4143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4144 if eval "test \"\${$as_ac_var+set}\" = set"; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line $LINENO "configure"
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 /* System header to define __stub macros and hopefully few prototypes,
4155 which can conflict with char $ac_func (); below.
4156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 <limits.h> exists even on freestanding compilers. */
4159 # include <limits.h>
4161 # include <assert.h>
4163 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4171 /* The GNU C library defines this for functions which it implements
4172 to always fail with ENOSYS. Some functions are actually named
4173 something starting with __ and the normal name is an alias. */
4174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4177 char (*f) () = $ac_func;
4186 return f != $ac_func;
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193 (eval $ac_link) 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -s conftest$ac_exeext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 eval "$as_ac_var=yes"
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 eval "$as_ac_var=no"
4210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4214 if test `eval echo '${'$as_ac_var'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4221 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4222 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 ac_check_lib_save_LIBS=$LIBS
4228 cat >conftest.$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4236 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4242 char gethostbyname ();
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_lib_nsl_gethostbyname=yes
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_lib_nsl_gethostbyname=no
4270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4271 LIBS=$ac_check_lib_save_LIBS
4273 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4274 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4275 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4276 cat >>confdefs.h <<_ACEOF
4277 #define HAVE_LIBNSL 1
4287 echo "$as_me:$LINENO: checking for X" >&5
4288 echo $ECHO_N "checking for X... $ECHO_C" >&6
4291 # Check whether --with-x or --without-x was given.
4292 if test "${with_x+set}" = set; then
4296 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4297 if test "x$with_x" = xno; then
4298 # The user explicitly disabled X.
4301 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4302 # Both variables are already set.
4305 if test "${ac_cv_have_x+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 # One or both of the vars are not set, and there is no cached value.
4309 ac_x_includes=no ac_x_libraries=no
4311 if mkdir conftest.dir; then
4313 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4314 cat >Imakefile <<'_ACEOF'
4316 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4318 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4320 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4321 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4322 for ac_extension in a so sl; do
4323 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4324 test -f $ac_im_libdir/libX11.$ac_extension; then
4325 ac_im_usrlibdir=$ac_im_libdir; break
4328 # Screen out bogus values from the imake configuration. They are
4329 # bogus both because they are the default anyway, and because
4330 # using them would break gcc on systems where it needs fixed includes.
4331 case $ac_im_incroot in
4333 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4335 case $ac_im_usrlibdir in
4337 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4344 # Standard set of common directories for X headers.
4345 # Check X11 before X11Rn because it is often a symlink to the current release.
4357 /usr/local/X11/include
4358 /usr/local/X11R6/include
4359 /usr/local/X11R5/include
4360 /usr/local/X11R4/include
4362 /usr/local/include/X11
4363 /usr/local/include/X11R6
4364 /usr/local/include/X11R5
4365 /usr/local/include/X11R4
4369 /usr/XFree86/include/X11
4373 /usr/unsupported/include
4375 /usr/local/x11r5/include
4376 /usr/lpp/Xamples/include
4378 /usr/openwin/include
4379 /usr/openwin/share/include'
4381 if test "$ac_x_includes" = no; then
4382 # Guess where to find include files, by looking for Intrinsic.h.
4383 # First, try using that file with no special directory specified.
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 #include <X11/Intrinsic.h>
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null; then
4401 if test -s conftest.err; then
4402 ac_cpp_err=$ac_c_preproc_warn_flag
4409 if test -z "$ac_cpp_err"; then
4410 # We can compile using X headers with no special include directory.
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 for ac_dir in $ac_x_header_dirs; do
4417 if test -r "$ac_dir/X11/Intrinsic.h"; then
4418 ac_x_includes=$ac_dir
4423 rm -f conftest.err conftest.$ac_ext
4424 fi # $ac_x_includes = no
4426 if test "$ac_x_libraries" = no; then
4427 # Check for the libraries.
4428 # See if we find them without any special options.
4429 # Don't add to $LIBS permanently.
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 #include <X11/Intrinsic.h>
4448 rm -f conftest.$ac_objext conftest$ac_exeext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450 (eval $ac_link) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4461 # We can link X programs with no special library path.
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4468 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4470 # Don't even attempt the hair of trying to link an X program!
4471 for ac_extension in a so sl; do
4472 if test -r $ac_dir/libXt.$ac_extension; then
4473 ac_x_libraries=$ac_dir
4479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480 fi # $ac_x_libraries = no
4482 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4483 # Didn't find X anywhere. Cache the known absence of X.
4484 ac_cv_have_x="have_x=no"
4486 # Record where we found X for the cache.
4487 ac_cv_have_x="have_x=yes \
4488 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4493 eval "$ac_cv_have_x"
4496 if test "$have_x" != yes; then
4497 echo "$as_me:$LINENO: result: $have_x" >&5
4498 echo "${ECHO_T}$have_x" >&6
4501 # If each of the values was on the command line, it overrides each guess.
4502 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4503 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4504 # Update the cache value to reflect the command line values.
4505 ac_cv_have_x="have_x=yes \
4506 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4507 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4508 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4511 if test "$no_x" = yes; then
4512 # Not all programs may use this symbol, but it does not hurt to define it.
4514 cat >>confdefs.h <<\_ACEOF
4515 #define X_DISPLAY_MISSING 1
4518 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4520 if test -n "$x_includes"; then
4521 X_CFLAGS="$X_CFLAGS -I$x_includes"
4524 # It would also be nice to do this for all -L options, not just this one.
4525 if test -n "$x_libraries"; then
4526 X_LIBS="$X_LIBS -L$x_libraries"
4527 # For Solaris; some versions of Sun CC require a space after -R and
4528 # others require no space. Words are not sufficient . . . .
4529 case `(uname -sr) 2>/dev/null` in
4531 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4532 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4533 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4534 cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4550 rm -f conftest.$ac_objext conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -s conftest$ac_exeext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4570 if test $ac_R_nospace = yes; then
4571 echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4573 X_LIBS="$X_LIBS -R$x_libraries"
4575 LIBS="$ac_xsave_LIBS -R $x_libraries"
4576 cat >conftest.$ac_ext <<_ACEOF
4577 #line $LINENO "configure"
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4612 if test $ac_R_space = yes; then
4613 echo "$as_me:$LINENO: result: yes" >&5
4614 echo "${ECHO_T}yes" >&6
4615 X_LIBS="$X_LIBS -R $x_libraries"
4617 echo "$as_me:$LINENO: result: neither works" >&5
4618 echo "${ECHO_T}neither works" >&6
4625 # Check for system-dependent libraries X programs must link with.
4626 # Do this before checking for the system-independent R6 libraries
4627 # (-lICE), since we may need -lsocket or whatever for X linking.
4629 if test "$ISC" = yes; then
4630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4632 # Martyn Johnson says this is needed for Ultrix, if the X
4633 # libraries were built with DECnet support. And Karl Berry says
4634 # the Alpha needs dnet_stub (dnet does not exist).
4635 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4644 /* Override any gcc2 internal prototype to avoid an error. */
4648 /* We use char because int might match the return type of a gcc2
4649 builtin and then its argument prototype would still apply. */
4650 char XOpenDisplay ();
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4677 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4678 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 ac_check_lib_save_LIBS=$LIBS
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest$ac_exeext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_cv_lib_dnet_dnet_ntoa=yes
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 ac_cv_lib_dnet_dnet_ntoa=no
4725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4726 LIBS=$ac_check_lib_save_LIBS
4728 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4729 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4730 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4731 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4734 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4735 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4736 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4737 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-ldnet_stub $LIBS"
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4750 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&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
4777 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_cv_lib_dnet_stub_dnet_ntoa=no
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4788 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4789 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4790 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4796 LIBS="$ac_xsave_LIBS"
4798 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4799 # to get the SysV transport functions.
4800 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4802 # The nsl library prevents programs from opening the X display
4803 # on Irix 5.2, according to T.E. Dickey.
4804 # The functions gethostbyname, getservbyname, and inet_addr are
4805 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4806 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4807 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4808 if test "${ac_cv_func_gethostbyname+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4812 #line $LINENO "configure"
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 /* System header to define __stub macros and hopefully few prototypes,
4819 which can conflict with char gethostbyname (); below.
4820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821 <limits.h> exists even on freestanding compilers. */
4823 # include <limits.h>
4825 # include <assert.h>
4827 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4834 char gethostbyname ();
4835 /* The GNU C library defines this for functions which it implements
4836 to always fail with ENOSYS. Some functions are actually named
4837 something starting with __ and the normal name is an alias. */
4838 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4841 char (*f) () = gethostbyname;
4850 return f != gethostbyname;
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857 (eval $ac_link) 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -s conftest$ac_exeext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_func_gethostbyname=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_func_gethostbyname=no
4874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4877 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4879 if test $ac_cv_func_gethostbyname = no; then
4880 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4881 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4882 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 ac_check_lib_save_LIBS=$LIBS
4887 cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4901 char gethostbyname ();
4910 rm -f conftest.$ac_objext conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912 (eval $ac_link) 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -s conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_lib_nsl_gethostbyname=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_cv_lib_nsl_gethostbyname=no
4929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4932 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4933 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4934 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4938 if test $ac_cv_lib_nsl_gethostbyname = no; then
4939 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4940 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4941 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_check_lib_save_LIBS=$LIBS
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char gethostbyname ();
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_lib_bsd_gethostbyname=yes
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ac_cv_lib_bsd_gethostbyname=no
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4991 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4992 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4993 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5000 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5001 # socket/setsockopt and other routines are undefined under SCO ODT
5002 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5003 # on later versions), says Simon Leinen: it contains gethostby*
5004 # variants that don't use the name server (or something). -lsocket
5005 # must be given before -lnsl if both are needed. We assume that
5006 # if connect needs -lnsl, so does gethostbyname.
5007 echo "$as_me:$LINENO: checking for connect" >&5
5008 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5009 if test "${ac_cv_func_connect+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char connect (); below.
5021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 <limits.h> exists even on freestanding compilers. */
5024 # include <limits.h>
5026 # include <assert.h>
5028 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_connect) || defined (__stub___connect)
5042 char (*f) () = connect;
5051 return f != connect;
5056 rm -f conftest.$ac_objext conftest$ac_exeext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_func_connect=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_func_connect=no
5075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5078 echo "${ECHO_T}$ac_cv_func_connect" >&6
5080 if test $ac_cv_func_connect = no; then
5081 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5083 if test "${ac_cv_lib_socket_connect+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_check_lib_save_LIBS=$LIBS
5087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_lib_socket_connect=yes
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_cv_lib_socket_connect=no
5130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5131 LIBS=$ac_check_lib_save_LIBS
5133 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5134 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5135 if test $ac_cv_lib_socket_connect = yes; then
5136 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5141 # Guillermo Gomez says -lposix is necessary on A/UX.
5142 echo "$as_me:$LINENO: checking for remove" >&5
5143 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5144 if test "${ac_cv_func_remove+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char remove (); below.
5156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 <limits.h> exists even on freestanding compilers. */
5159 # include <limits.h>
5161 # include <assert.h>
5163 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_remove) || defined (__stub___remove)
5177 char (*f) () = remove;
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_func_remove=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_func_remove=no
5210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5213 echo "${ECHO_T}$ac_cv_func_remove" >&6
5215 if test $ac_cv_func_remove = no; then
5216 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5217 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5218 if test "${ac_cv_lib_posix_remove+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 ac_check_lib_save_LIBS=$LIBS
5222 LIBS="-lposix $LIBS"
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5246 rm -f conftest.$ac_objext conftest$ac_exeext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5248 (eval $ac_link) 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_lib_posix_remove=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_cv_lib_posix_remove=no
5265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5268 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5269 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5270 if test $ac_cv_lib_posix_remove = yes; then
5271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5276 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5277 echo "$as_me:$LINENO: checking for shmat" >&5
5278 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5279 if test "${ac_cv_func_shmat+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 /* System header to define __stub macros and hopefully few prototypes,
5290 which can conflict with char shmat (); below.
5291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292 <limits.h> exists even on freestanding compilers. */
5294 # include <limits.h>
5296 # include <assert.h>
5298 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5306 /* The GNU C library defines this for functions which it implements
5307 to always fail with ENOSYS. Some functions are actually named
5308 something starting with __ and the normal name is an alias. */
5309 #if defined (__stub_shmat) || defined (__stub___shmat)
5312 char (*f) () = shmat;
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_func_shmat=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5348 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5350 if test $ac_cv_func_shmat = no; then
5351 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5352 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5353 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_check_lib_save_LIBS=$LIBS
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_lib_ipc_shmat=yes
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 ac_cv_lib_ipc_shmat=no
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5404 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5405 if test $ac_cv_lib_ipc_shmat = yes; then
5406 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5412 # Check for libraries that X11R6 Xt/Xaw programs need.
5413 ac_save_LDFLAGS=$LDFLAGS
5414 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5415 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5416 # check for ICE first), but we must link in the order -lSM -lICE or
5417 # we get undefined symbols. So assume we have SM if we have ICE.
5418 # These have to be linked with before -lX11, unlike the other
5419 # libraries we check for below, so use a different variable.
5420 # John Interrante, Karl Berry
5421 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5422 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5423 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_check_lib_save_LIBS=$LIBS
5427 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5436 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5442 char IceConnectionNumber ();
5446 IceConnectionNumber ();
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_lib_ICE_IceConnectionNumber=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_cv_lib_ICE_IceConnectionNumber=no
5470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5471 LIBS=$ac_check_lib_save_LIBS
5473 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5474 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5475 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5476 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5479 LDFLAGS=$ac_save_LDFLAGS
5485 if test "x$with_x" = xyes; then
5486 if test "x$have_x" = xno; then
5487 if test "x$x_config_flag" = xyes; then
5488 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5489 echo "$as_me: error: Could not configure X" >&2;}
5490 { (exit 1); exit 1; }; }
5492 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5493 echo "$as_me: WARNING: Could not configure X" >&2;}
5497 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5498 if test "x$x_libraries" != x; then
5499 ldflags_x_opt="-L$x_libraries"
5500 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5501 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5505 if test "x$x_includes" != x; then
5506 CPPFLAGS="$CPPFLAGS -I$x_includes"
5510 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5511 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5512 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5531 char XOpenDisplay ();
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_X11_XOpenDisplay=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_lib_X11_XOpenDisplay=no
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5563 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5564 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBX11 1
5573 echo "$as_me:$LINENO: checking X11 version 6" >&5
5574 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5575 if test "${timidity_cv_x11_version_6+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line $LINENO "configure"
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <X11/Xlib.h>
5590 #if XlibSpecificationRelease < 6
5598 rm -f conftest.$ac_objext conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -s conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 timidity_cv_x11_version_6=yes
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 timidity_cv_x11_version_6=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5620 if test "$timidity_cv_x11_version_6" = "yes"; then
5621 echo "$as_me:$LINENO: result: 6 or newer" >&5
5622 echo "${ECHO_T}6 or newer" >&6
5624 echo "$as_me:$LINENO: result: before 6" >&5
5625 echo "${ECHO_T}before 6" >&6
5629 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5630 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5631 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_check_lib_save_LIBS=$LIBS
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5644 /* Override any gcc2 internal prototype to avoid an error. */
5648 /* We use char because int might match the return type of a gcc2
5649 builtin and then its argument prototype would still apply. */
5650 char XShapeCombineMask ();
5654 XShapeCombineMask ();
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661 (eval $ac_link) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_lib_Xext_XShapeCombineMask=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_lib_Xext_XShapeCombineMask=no
5678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_check_lib_save_LIBS
5681 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5682 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5683 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5684 have_xext=yes; LIBS="-lXext $LIBS"
5690 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5691 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5692 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_check_lib_save_LIBS=$LIBS
5697 cat >conftest.$ac_ext <<_ACEOF
5698 #line $LINENO "configure"
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char IceConnectionNumber ();
5715 IceConnectionNumber ();
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_lib_ICE_IceConnectionNumber=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_lib_ICE_IceConnectionNumber=no
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5744 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5745 cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBICE 1
5753 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5754 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5755 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774 char SmcOpenConnection ();
5778 SmcOpenConnection ();
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -s conftest$ac_exeext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_lib_SM_SmcOpenConnection=yes
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_cv_lib_SM_SmcOpenConnection=no
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5806 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5807 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5808 have_xprelibs=yes; LIBS="-lSM $LIBS"
5813 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5814 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5815 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_check_lib_save_LIBS=$LIBS
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5832 /* We use char because int might match the return type of a gcc2
5833 builtin and then its argument prototype would still apply. */
5834 char XtVaAppInitialize ();
5838 XtVaAppInitialize ();
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -s conftest$ac_exeext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 ac_cv_lib_Xt_XtVaAppInitialize=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_lib_Xt_XtVaAppInitialize=no
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5866 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5867 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5868 have_xt=yes; LIBS="-lXt $LIBS"
5873 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5874 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5875 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_check_lib_save_LIBS=$LIBS
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char XmuInternAtom ();
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -s conftest$ac_exeext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_cv_lib_Xmu_XmuInternAtom=yes
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5920 ac_cv_lib_Xmu_XmuInternAtom=no
5922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5923 LIBS=$ac_check_lib_save_LIBS
5925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5926 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5927 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5932 for ac_func in XmuRegisterExternalAgent
5934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5935 echo "$as_me:$LINENO: checking for $ac_func" >&5
5936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5937 if eval "test \"\${$as_ac_var+set}\" = set"; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func (); below.
5949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 <limits.h> exists even on freestanding compilers. */
5952 # include <limits.h>
5954 # include <assert.h>
5956 /* Override any gcc2 internal prototype to avoid an error. */
5961 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 char (*f) () = $ac_func;
5979 return f != $ac_func;
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986 (eval $ac_link) 2>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -s conftest$ac_exeext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 eval "$as_ac_var=yes"
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 eval "$as_ac_var=no"
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6007 if test `eval echo '${'$as_ac_var'}'` = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6015 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6016 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6017 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 ac_check_lib_save_LIBS=$LIBS
6021 LIBS="-lXaw3d $LIBS"
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6036 char XawInitializeWidgetSet ();
6040 XawInitializeWidgetSet ();
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6065 LIBS=$ac_check_lib_save_LIBS
6067 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6068 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6069 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6072 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6073 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6074 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_check_lib_save_LIBS=$LIBS
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6087 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char XawInitializeWidgetSet ();
6097 XawInitializeWidgetSet ();
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 LIBS=$ac_check_lib_save_LIBS
6124 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6125 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6126 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6134 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6135 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6136 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 ac_check_lib_save_LIBS=$LIBS
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155 char XmCreateForm ();
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_lib_Xm_XmCreateForm=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ac_cv_lib_Xm_XmCreateForm=no
6183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6186 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6187 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6188 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6195 for ac_func in XShmCreatePixmap
6197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6198 echo "$as_me:$LINENO: checking for $ac_func" >&5
6199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_var+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func (); below.
6212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213 <limits.h> exists even on freestanding compilers. */
6215 # include <limits.h>
6217 # include <assert.h>
6219 /* Override any gcc2 internal prototype to avoid an error. */
6224 /* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6227 /* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 char (*f) () = $ac_func;
6242 return f != $ac_func;
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 eval "$as_ac_var=yes"
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 eval "$as_ac_var=no"
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6270 if test `eval echo '${'$as_ac_var'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6281 # Checks for header files.
6282 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6284 if test "${ac_cv_header_stdc+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_header_stdc=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_cv_header_stdc=no
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6328 if test $ac_cv_header_stdc = yes; then
6329 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341 $EGREP "memchr" >/dev/null 2>&1; then
6344 ac_cv_header_stdc=no
6350 if test $ac_cv_header_stdc = yes; then
6351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6352 cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 $EGREP "free" >/dev/null 2>&1; then
6366 ac_cv_header_stdc=no
6372 if test $ac_cv_header_stdc = yes; then
6373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6374 if test "$cross_compiling" = yes; then
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 #if ((' ' & 0x0FF) == 0x020)
6386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6389 # define ISLOWER(c) \
6390 (('a' <= (c) && (c) <= 'i') \
6391 || ('j' <= (c) && (c) <= 'r') \
6392 || ('s' <= (c) && (c) <= 'z'))
6393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6401 for (i = 0; i < 256; i++)
6402 if (XOR (islower (i), ISLOWER (i))
6403 || toupper (i) != TOUPPER (i))
6408 rm -f conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6421 echo "$as_me: program exited with status $ac_status" >&5
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_cv_header_stdc=no
6428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6434 if test $ac_cv_header_stdc = yes; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define STDC_HEADERS 1
6442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6453 inttypes.h stdint.h unistd.h
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6470 #include <$ac_header>
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -s conftest.$ac_objext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 eval "$as_ac_Header=yes"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 eval "$as_ac_Header=no"
6491 rm -f conftest.$ac_objext conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6506 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6507 if test "${ac_cv_header_stdbool_h+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6518 #include <stdbool.h>
6520 # error bool is not defined
6523 # error false is not defined
6526 # error false is not 0
6529 # error true is not defined
6532 # error true is not 1
6534 #ifndef __bool_true_false_are_defined
6535 # error __bool_true_false_are_defined is not defined
6538 struct s { _Bool s: 1; _Bool t; } s;
6540 char a[true == 1 ? 1 : -1];
6541 char b[false == 0 ? 1 : -1];
6542 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6543 char d[(bool) -0.5 == true ? 1 : -1];
6545 char f[(_Bool) -0.0 == false ? 1 : -1];
6547 char h[sizeof (_Bool)];
6553 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 (eval $ac_compile) 2>&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_header_stdbool_h=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_cv_header_stdbool_h=no
6577 rm -f conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6580 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6581 echo "$as_me:$LINENO: checking for _Bool" >&5
6582 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6583 if test "${ac_cv_type__Bool+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_type__Bool=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f conftest.$ac_objext conftest.$ac_ext
6626 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6627 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6628 if test $ac_cv_type__Bool = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define HAVE__BOOL 1
6637 if test $ac_cv_header_stdbool_h = yes; then
6639 cat >>confdefs.h <<\_ACEOF
6640 #define HAVE_STDBOOL_H 1
6645 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6646 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6647 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 cat >conftest.$ac_ext <<_ACEOF
6651 #line $LINENO "configure"
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <sys/types.h>
6658 #include <sys/wait.h>
6660 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6663 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6671 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_header_sys_wait_h=yes
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_cv_header_sys_wait_h=no
6695 rm -f conftest.$ac_objext conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6698 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6699 if test $ac_cv_header_sys_wait_h = yes; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_SYS_WAIT_H 1
6707 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6708 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6709 if test "${ac_cv_header_time+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #include <sys/types.h>
6720 #include <sys/time.h>
6726 if ((struct tm *) 0)
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -s conftest.$ac_objext'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 ac_cv_header_time=yes
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_header_time=no
6751 rm -f conftest.$ac_objext conftest.$ac_ext
6753 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6
6755 if test $ac_cv_header_time = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6769 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6770 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6772 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <sys/types.h>
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 eval "$as_ac_Header=yes"
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 eval "$as_ac_Header=no"
6814 rm -f conftest.$ac_objext conftest.$ac_ext
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6823 ac_header_dirent=$ac_hdr; break
6827 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6828 if test $ac_header_dirent = dirent.h; then
6829 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6831 if test "${ac_cv_search_opendir+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_func_search_save_LIBS=$LIBS
6835 ac_cv_search_opendir=no
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6844 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861 (eval $ac_link) 2>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -s conftest$ac_exeext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_cv_search_opendir="none required"
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 if test "$ac_cv_search_opendir" = no; then
6879 for ac_lib in dir; do
6880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6889 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906 (eval $ac_link) 2>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -s conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_cv_search_opendir="-l$ac_lib"
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6926 LIBS=$ac_func_search_save_LIBS
6928 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6929 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6930 if test "$ac_cv_search_opendir" != no; then
6931 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6936 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6938 if test "${ac_cv_search_opendir+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_func_search_save_LIBS=$LIBS
6942 ac_cv_search_opendir=no
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_search_opendir="none required"
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 if test "$ac_cv_search_opendir" = no; then
6987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6996 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_search_opendir="-l$ac_lib"
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_func_search_save_LIBS
7035 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7036 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7037 if test "$ac_cv_search_opendir" != no; then
7038 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7121 X11/extensions/XShm.h \
7124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7126 echo "$as_me:$LINENO: checking for $ac_header" >&5
7127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7134 # Is the header compilable?
7135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 #include <$ac_header>
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 ac_header_compiler=yes
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_header_compiler=no
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7168 echo "${ECHO_T}$ac_header_compiler" >&6
7170 # Is the header present?
7171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1 >conftest.err
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev/null; then
7190 if test -s conftest.err; then
7191 ac_cpp_err=$ac_c_preproc_warn_flag
7198 if test -z "$ac_cpp_err"; then
7199 ac_header_preproc=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_header_preproc=no
7206 rm -f conftest.err conftest.$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7208 echo "${ECHO_T}$ac_header_preproc" >&6
7210 # So? What about this header?
7211 case $ac_header_compiler:$ac_header_preproc in
7213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7219 ## ------------------------------------ ##
7220 ## Report this to bug-autoconf@gnu.org. ##
7221 ## ------------------------------------ ##
7224 sed "s/^/$as_me: WARNING: /" >&2
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7235 ## ------------------------------------ ##
7236 ## Report this to bug-autoconf@gnu.org. ##
7237 ## ------------------------------------ ##
7240 sed "s/^/$as_me: WARNING: /" >&2
7243 echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 eval "$as_ac_Header=$ac_header_preproc"
7250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7255 cat >>confdefs.h <<_ACEOF
7256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7263 if test "${ac_cv_header_string_h+set}" = set; then
7264 echo "$as_me:$LINENO: checking for string.h" >&5
7265 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7266 if test "${ac_cv_header_string_h+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7270 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7272 # Is the header compilable?
7273 echo "$as_me:$LINENO: checking string.h usability" >&5
7274 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 $ac_includes_default
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_header_compiler=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 ac_header_compiler=no
7304 rm -f conftest.$ac_objext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7306 echo "${ECHO_T}$ac_header_compiler" >&6
7308 # Is the header present?
7309 echo "$as_me:$LINENO: checking string.h presence" >&5
7310 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7323 grep -v '^ *+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } >/dev/null; then
7328 if test -s conftest.err; then
7329 ac_cpp_err=$ac_c_preproc_warn_flag
7336 if test -z "$ac_cpp_err"; then
7337 ac_header_preproc=yes
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_header_preproc=no
7344 rm -f conftest.err conftest.$ac_ext
7345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7346 echo "${ECHO_T}$ac_header_preproc" >&6
7348 # So? What about this header?
7349 case $ac_header_compiler:$ac_header_preproc in
7351 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7352 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7357 ## ------------------------------------ ##
7358 ## Report this to bug-autoconf@gnu.org. ##
7359 ## ------------------------------------ ##
7362 sed "s/^/$as_me: WARNING: /" >&2
7365 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7366 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7367 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7368 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7369 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7370 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7373 ## ------------------------------------ ##
7374 ## Report this to bug-autoconf@gnu.org. ##
7375 ## ------------------------------------ ##
7378 sed "s/^/$as_me: WARNING: /" >&2
7381 echo "$as_me:$LINENO: checking for string.h" >&5
7382 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7383 if test "${ac_cv_header_string_h+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_header_string_h=$ac_header_preproc
7388 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7389 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7392 if test $ac_cv_header_string_h = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define NO_STRING_H 1
7404 # Checks for typedefs, structures, and compiler characteristics.
7405 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7406 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7407 if test "${ac_cv_c_bigendian+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 # See if sys/param.h defines the BYTE_ORDER macro.
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7418 #include <sys/types.h>
7419 #include <sys/param.h>
7424 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 # It does; now see whether it defined to BIG_ENDIAN or not.
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #include <sys/types.h>
7453 #include <sys/param.h>
7458 #if BYTE_ORDER != BIG_ENDIAN
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_c_bigendian=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 ac_cv_c_bigendian=no
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 # It does not; compile a test program.
7491 if test "$cross_compiling" = yes; then
7492 # try to guess the endianness by grepping values into an object file
7493 ac_cv_c_bigendian=unknown
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7502 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7503 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7504 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7505 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7506 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7510 _ascii (); _ebcdic ();
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517 (eval $ac_compile) 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7528 ac_cv_c_bigendian=yes
7530 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7531 if test "$ac_cv_c_bigendian" = unknown; then
7532 ac_cv_c_bigendian=no
7534 # finding both strings is unlikely to happen, but who knows?
7535 ac_cv_c_bigendian=unknown
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7543 rm -f conftest.$ac_objext conftest.$ac_ext
7545 cat >conftest.$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7555 /* Are we little or big endian? From Harbison&Steele. */
7559 char c[sizeof (long)];
7562 exit (u.c[sizeof (long) - 1] == 1);
7565 rm -f conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_c_bigendian=no
7578 echo "$as_me: program exited with status $ac_status" >&5
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7583 ac_cv_c_bigendian=yes
7585 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7588 rm -f conftest.$ac_objext conftest.$ac_ext
7590 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7591 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7592 case $ac_cv_c_bigendian in
7595 cat >>confdefs.h <<\_ACEOF
7596 #define WORDS_BIGENDIAN 1
7602 { { echo "$as_me:$LINENO: error: unknown endianness
7603 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7604 echo "$as_me: error: unknown endianness
7605 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7606 { (exit 1); exit 1; }; } ;;
7610 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7611 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7612 if test "${ac_cv_c_char_unsigned+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 cat >conftest.$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7626 static int test_array [1 - 2 * !(((char) -1) < 0)];
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -s conftest.$ac_objext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_c_char_unsigned=no
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_c_char_unsigned=yes
7652 rm -f conftest.$ac_objext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7655 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7656 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7657 cat >>confdefs.h <<\_ACEOF
7658 #define __CHAR_UNSIGNED__ 1
7663 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7664 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7665 if test "${ac_cv_c_const+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7679 /* FIXME: Include the comments suggested by Paul. */
7681 /* Ultrix mips cc rejects this. */
7682 typedef int charset[2];
7684 /* SunOS 4.1.1 cc rejects this. */
7685 char const *const *ccp;
7687 /* NEC SVR4.0.2 mips cc rejects this. */
7688 struct point {int x, y;};
7689 static struct point const zero = {0,0};
7690 /* AIX XL C 1.02.0.0 rejects this.
7691 It does not let you subtract one const X* pointer from another in
7692 an arm of an if-expression whose if-part is not a constant
7694 const char *g = "string";
7695 ccp = &g + (g ? g-g : 0);
7696 /* HPUX 7.0 cc rejects these. */
7699 ccp = (char const *const *) p;
7700 { /* SCO 3.2v4 cc rejects this. */
7702 char const *s = 0 ? (char *) 0 : (char const *) 0;
7706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7708 const int *foo = &x[0];
7711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7712 typedef const int *iptr;
7716 { /* AIX XL C 1.02.0.0 rejects this saying
7717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7718 struct s { int j; const int *ap[3]; };
7719 struct s *b; b->j = 5;
7721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7752 echo "${ECHO_T}$ac_cv_c_const" >&6
7753 if test $ac_cv_c_const = no; then
7755 cat >>confdefs.h <<\_ACEOF
7761 echo "$as_me:$LINENO: checking for inline" >&5
7762 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7763 if test "${ac_cv_c_inline+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 for ac_kw in inline __inline__ __inline; do
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7777 static $ac_kw foo_t static_foo () {return 0; }
7778 $ac_kw foo_t foo () {return 0; }
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_c_inline=$ac_kw; break
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7800 rm -f conftest.$ac_objext conftest.$ac_ext
7804 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7805 echo "${ECHO_T}$ac_cv_c_inline" >&6
7806 case $ac_cv_c_inline in
7809 cat >>confdefs.h <<\_ACEOF
7813 *) cat >>confdefs.h <<_ACEOF
7814 #define inline $ac_cv_c_inline
7819 echo "$as_me:$LINENO: checking for working volatile" >&5
7820 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7821 if test "${ac_cv_c_volatile+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try='test -s conftest.$ac_objext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_cv_c_volatile=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7861 rm -f conftest.$ac_objext conftest.$ac_ext
7863 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7864 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7865 if test $ac_cv_c_volatile = no; then
7867 cat >>confdefs.h <<\_ACEOF
7873 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7874 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7875 if test "${ac_cv_c_stringize+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7887 char *s = x(teststring);
7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890 $EGREP "#teststring" >/dev/null 2>&1; then
7891 ac_cv_c_stringize=no
7893 ac_cv_c_stringize=yes
7898 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7899 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7900 if test $ac_cv_c_stringize = yes; then
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_STRINGIZE 1
7908 echo "$as_me:$LINENO: checking for function prototypes" >&5
7909 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7910 if test "$ac_cv_prog_cc_stdc" != no; then
7911 echo "$as_me:$LINENO: result: yes" >&5
7912 echo "${ECHO_T}yes" >&6
7914 cat >>confdefs.h <<\_ACEOF
7915 #define PROTOTYPES 1
7919 cat >>confdefs.h <<\_ACEOF
7920 #define __PROTOTYPES 1
7924 echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7928 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7929 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7930 if test "${ac_cv_struct_tm+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 #include <sys/types.h>
7946 struct tm *tp; tp->tm_sec;
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -s conftest.$ac_objext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 ac_cv_struct_tm=time.h
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_struct_tm=sys/time.h
7970 rm -f conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7973 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7974 if test $ac_cv_struct_tm = sys/time.h; then
7976 cat >>confdefs.h <<\_ACEOF
7977 #define TM_IN_SYS_TIME 1
7982 echo "$as_me:$LINENO: checking for size_t" >&5
7983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7984 if test "${ac_cv_type_size_t+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 $ac_includes_default
8000 if (sizeof (size_t))
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_type_size_t=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_type_size_t=no
8025 rm -f conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8029 if test $ac_cv_type_size_t = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define size_t unsigned
8039 echo "$as_me:$LINENO: checking for off_t" >&5
8040 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8041 if test "${ac_cv_type_off_t+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065 (eval $ac_compile) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_type_off_t=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8085 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8086 if test $ac_cv_type_off_t = yes; then
8090 cat >>confdefs.h <<_ACEOF
8096 echo "$as_me:$LINENO: checking for pid_t" >&5
8097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8098 if test "${ac_cv_type_pid_t+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 $ac_includes_default
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_type_pid_t=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8139 rm -f conftest.$ac_objext conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8143 if test $ac_cv_type_pid_t = yes; then
8147 cat >>confdefs.h <<_ACEOF
8154 echo "$as_me:$LINENO: checking volatile declaration" >&5
8155 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8156 if test "${timidity_cv_type_volatile+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 (eval $ac_compile) 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -s conftest.$ac_objext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 timidity_cv_type_volatile=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 timidity_cv_type_volatile=no
8194 rm -f conftest.$ac_objext conftest.$ac_ext
8196 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8197 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8198 if test $timidity_cv_type_volatile = no; then
8200 cat >>confdefs.h <<\_ACEOF
8201 #define NO_VOLATILE 1
8206 echo "$as_me:$LINENO: checking union semun declaration" >&5
8207 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8208 if test "${timidity_cv_type_union_semun+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8219 #include <sys/types.h>
8220 #include <sys/ipc.h>
8221 #include <sys/sem.h>
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 timidity_cv_type_union_semun=yes
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 timidity_cv_type_union_semun=no
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8253 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8254 if test $timidity_cv_type_union_semun = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_UNION_SEMUN 1
8262 if test "x$CYGNUS" = xyes; then
8263 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8264 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8265 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 #include <windows.h>
8277 #include <mmsystem.h>
8282 return WOM_OPEN != 0x3BB
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 timidity_cv_header_new_mmsystem=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 timidity_cv_header_new_mmsystem=no
8306 rm -f conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8309 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8310 if test $timidity_cv_header_new_mmsystem = yes; then
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_NEW_MMSYSTEM 1
8319 if test "x$MINGW" = xyes; then
8320 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8321 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8322 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 #include <windows.h>
8334 #include <mmsystem.h>
8339 return WOM_OPEN != 0x3BB
8344 rm -f conftest.$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 timidity_cv_header_new_mmsystem=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 timidity_cv_header_new_mmsystem=no
8363 rm -f conftest.$ac_objext conftest.$ac_ext
8365 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8366 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8367 if test $timidity_cv_header_new_mmsystem = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_NEW_MMSYSTEM 1
8376 # Checks for library functions.
8377 echo "$as_me:$LINENO: checking for error_at_line" >&5
8378 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8379 if test "${ac_cv_lib_error_at_line+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8393 error_at_line (0, 0, "", 0, "");
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_lib_error_at_line=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_lib_error_at_line=no
8417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8420 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8421 if test $ac_cv_lib_error_at_line = no; then
8422 LIBOBJS="$LIBOBJS error.$ac_objext"
8427 for ac_header in unistd.h vfork.h
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439 # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #include <$ac_header>
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_header_compiler=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_header_compiler=no
8471 rm -f conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line $LINENO "configure"
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <$ac_header>
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } >/dev/null; then
8495 if test -s conftest.err; then
8496 ac_cpp_err=$ac_c_preproc_warn_flag
8503 if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_preproc=no
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc in
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8524 ## ------------------------------------ ##
8525 ## Report this to bug-autoconf@gnu.org. ##
8526 ## ------------------------------------ ##
8529 sed "s/^/$as_me: WARNING: /" >&2
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8545 sed "s/^/$as_me: WARNING: /" >&2
8548 echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 eval "$as_ac_Header=$ac_header_preproc"
8555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560 cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 for ac_func in fork vfork
8572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8573 echo "$as_me:$LINENO: checking for $ac_func" >&5
8574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8575 if eval "test \"\${$as_ac_var+set}\" = set"; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 /* System header to define __stub macros and hopefully few prototypes,
8586 which can conflict with char $ac_func (); below.
8587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8588 <limits.h> exists even on freestanding compilers. */
8590 # include <limits.h>
8592 # include <assert.h>
8594 /* Override any gcc2 internal prototype to avoid an error. */
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8602 /* The GNU C library defines this for functions which it implements
8603 to always fail with ENOSYS. Some functions are actually named
8604 something starting with __ and the normal name is an alias. */
8605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8608 char (*f) () = $ac_func;
8617 return f != $ac_func;
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 eval "$as_ac_var=yes"
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 eval "$as_ac_var=no"
8641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8645 if test `eval echo '${'$as_ac_var'}'` = yes; then
8646 cat >>confdefs.h <<_ACEOF
8647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8653 if test "x$ac_cv_func_fork" = xyes; then
8654 echo "$as_me:$LINENO: checking for working fork" >&5
8655 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8656 if test "${ac_cv_func_fork_works+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 if test "$cross_compiling" = yes; then
8660 ac_cv_func_fork_works=cross
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* By Ruediger Kuhlmann. */
8664 #include <sys/types.h>
8666 # include <unistd.h>
8668 /* Some systems only have a dummy stub for fork() */
8676 rm -f conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_cv_func_fork_works=yes
8689 echo "$as_me: program exited with status $ac_status" >&5
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8694 ac_cv_func_fork_works=no
8696 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8700 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8703 ac_cv_func_fork_works=$ac_cv_func_fork
8705 if test "x$ac_cv_func_fork_works" = xcross; then
8707 *-*-amigaos* | *-*-msdosdjgpp*)
8708 # Override, as these systems have only a dummy fork() stub
8709 ac_cv_func_fork_works=no
8712 ac_cv_func_fork_works=yes
8715 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8716 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8718 ac_cv_func_vfork_works=$ac_cv_func_vfork
8719 if test "x$ac_cv_func_vfork" = xyes; then
8720 echo "$as_me:$LINENO: checking for working vfork" >&5
8721 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8722 if test "${ac_cv_func_vfork_works+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 if test "$cross_compiling" = yes; then
8726 ac_cv_func_vfork_works=cross
8728 cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 /* Thanks to Paul Eggert for this test. */
8738 #include <sys/types.h>
8739 #include <sys/stat.h>
8740 #include <sys/wait.h>
8742 # include <unistd.h>
8747 /* On some sparc systems, changes by the child to local and incoming
8748 argument registers are propagated back to the parent. The compiler
8749 is told about this with #include <vfork.h>, but some compilers
8750 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8751 static variable whose address is put into a register that is
8752 clobbered by the vfork. */
8755 sparc_address_test (int arg)
8757 sparc_address_test (arg) int arg;
8778 pid_t parent = getpid ();
8781 sparc_address_test (0);
8786 /* Here is another test for sparc vfork register problems. This
8787 test uses lots of local variables, at least as many local
8788 variables as main has allocated so far including compiler
8789 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8790 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8791 reuse the register of parent for one of the local variables,
8792 since it will think that parent can't possibly be used any more
8793 in this routine. Assigning to the local variable will thus
8794 munge parent in the parent process. */
8796 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8797 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8798 /* Convince the compiler that p..p7 are live; otherwise, it might
8799 use the same hardware register for all 8 local variables. */
8800 if (p != p1 || p != p2 || p != p3 || p != p4
8801 || p != p5 || p != p6 || p != p7)
8804 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8805 from child file descriptors. If the child closes a descriptor
8806 before it execs or exits, this munges the parent's descriptor
8807 as well. Test for this by closing stdout in the child. */
8808 _exit(close(fileno(stdout)) != 0);
8813 while (wait(&status) != child)
8816 /* Was there some problem with vforking? */
8819 /* Did the child fail? (This shouldn't happen.) */
8822 /* Did the vfork/compiler bug occur? */
8823 || parent != getpid()
8825 /* Did the file descriptor bug occur? */
8826 || fstat(fileno(stdout), &st) != 0
8831 rm -f conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833 (eval $ac_link) 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_cv_func_vfork_works=yes
8844 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_func_vfork_works=no
8851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8855 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8858 if test "x$ac_cv_func_fork_works" = xcross; then
8859 ac_cv_func_vfork_works=ac_cv_func_vfork
8860 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8861 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8864 if test "x$ac_cv_func_vfork_works" = xyes; then
8866 cat >>confdefs.h <<\_ACEOF
8867 #define HAVE_WORKING_VFORK 1
8872 cat >>confdefs.h <<\_ACEOF
8877 if test "x$ac_cv_func_fork_works" = xyes; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_WORKING_FORK 1
8885 echo "$as_me:$LINENO: checking for working memcmp" >&5
8886 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8887 if test "${ac_cv_func_memcmp_working+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 if test "$cross_compiling" = yes; then
8891 ac_cv_func_memcmp_working=no
8893 cat >conftest.$ac_ext <<_ACEOF
8894 #line $LINENO "configure"
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8905 /* Some versions of memcmp are not 8-bit clean. */
8906 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8907 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8910 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8911 or more and with at least one buffer not starting on a 4-byte boundary.
8912 William Lewis provided this test program. */
8917 for (i = 0; i < 4; i++)
8921 strcpy (a, "--------01111111");
8922 strcpy (b, "--------10000000");
8923 if (memcmp (a, b, 16) >= 0)
8933 rm -f conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_func_memcmp_working=yes
8946 echo "$as_me: program exited with status $ac_status" >&5
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_func_memcmp_working=no
8953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8956 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8957 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8958 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8962 for ac_header in stdlib.h unistd.h
8964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966 echo "$as_me:$LINENO: checking for $ac_header" >&5
8967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8974 # Is the header compilable?
8975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 $ac_includes_default
8985 #include <$ac_header>
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989 (eval $ac_compile) 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_header_compiler=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_header_compiler=no
9006 rm -f conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9008 echo "${ECHO_T}$ac_header_compiler" >&6
9010 # Is the header present?
9011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020 #include <$ac_header>
9022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9025 grep -v '^ *+' conftest.er1 >conftest.err
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } >/dev/null; then
9030 if test -s conftest.err; then
9031 ac_cpp_err=$ac_c_preproc_warn_flag
9038 if test -z "$ac_cpp_err"; then
9039 ac_header_preproc=yes
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 ac_header_preproc=no
9046 rm -f conftest.err conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9048 echo "${ECHO_T}$ac_header_preproc" >&6
9050 # So? What about this header?
9051 case $ac_header_compiler:$ac_header_preproc in
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9059 ## ------------------------------------ ##
9060 ## Report this to bug-autoconf@gnu.org. ##
9061 ## ------------------------------------ ##
9064 sed "s/^/$as_me: WARNING: /" >&2
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9075 ## ------------------------------------ ##
9076 ## Report this to bug-autoconf@gnu.org. ##
9077 ## ------------------------------------ ##
9080 sed "s/^/$as_me: WARNING: /" >&2
9083 echo "$as_me:$LINENO: checking for $ac_header" >&5
9084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 eval "$as_ac_Header=$ac_header_preproc"
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9095 cat >>confdefs.h <<_ACEOF
9096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9104 for ac_func in getpagesize
9106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9107 echo "$as_me:$LINENO: checking for $ac_func" >&5
9108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9109 if eval "test \"\${$as_ac_var+set}\" = set"; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 /* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9124 # include <limits.h>
9126 # include <assert.h>
9128 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9136 /* The GNU C library defines this for functions which it implements
9137 to always fail with ENOSYS. Some functions are actually named
9138 something starting with __ and the normal name is an alias. */
9139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9142 char (*f) () = $ac_func;
9151 return f != $ac_func;
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 eval "$as_ac_var=yes"
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 eval "$as_ac_var=no"
9175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9179 if test `eval echo '${'$as_ac_var'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9187 echo "$as_me:$LINENO: checking for working mmap" >&5
9188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 if test "$cross_compiling" = yes; then
9193 ac_cv_func_mmap_fixed_mapped=no
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 /* malloc might have been renamed as rpl_malloc. */
9206 /* Thanks to Mike Haertel and Jim Avera for this test.
9207 Here is a matrix of mmap possibilities:
9208 mmap private not fixed
9209 mmap private fixed at somewhere currently unmapped
9210 mmap private fixed at somewhere already mapped
9211 mmap shared not fixed
9212 mmap shared fixed at somewhere currently unmapped
9213 mmap shared fixed at somewhere already mapped
9214 For private mappings, we should verify that changes cannot be read()
9215 back from the file, nor mmap's back from the file at a different
9216 address. (There have been systems where private was not correctly
9217 implemented like the infamous i386 svr4.0, and systems where the
9218 VM page cache was not coherent with the file system buffer cache
9219 like early versions of FreeBSD and possibly contemporary NetBSD.)
9220 For shared mappings, we should conversely verify that changes get
9221 propagated back to all the places they're supposed to be.
9223 Grep wants private fixed already mapped.
9224 The main things grep needs to know about mmap are:
9225 * does it exist and is it safe to write into the mmap'd area
9226 * how to use it (BSD variants) */
9229 #include <sys/mman.h>
9231 #if !STDC_HEADERS && !HAVE_STDLIB_H
9235 /* This mess was copied from the GNU getpagesize.h. */
9236 #if !HAVE_GETPAGESIZE
9237 /* Assume that all systems that can run configure have sys/param.h. */
9238 # if !HAVE_SYS_PARAM_H
9239 # define HAVE_SYS_PARAM_H 1
9242 # ifdef _SC_PAGESIZE
9243 # define getpagesize() sysconf(_SC_PAGESIZE)
9244 # else /* no _SC_PAGESIZE */
9245 # if HAVE_SYS_PARAM_H
9246 # include <sys/param.h>
9247 # ifdef EXEC_PAGESIZE
9248 # define getpagesize() EXEC_PAGESIZE
9249 # else /* no EXEC_PAGESIZE */
9251 # define getpagesize() NBPG * CLSIZE
9254 # endif /* no CLSIZE */
9255 # else /* no NBPG */
9257 # define getpagesize() NBPC
9258 # else /* no NBPC */
9260 # define getpagesize() PAGESIZE
9261 # endif /* PAGESIZE */
9262 # endif /* no NBPC */
9263 # endif /* no NBPG */
9264 # endif /* no EXEC_PAGESIZE */
9265 # else /* no HAVE_SYS_PARAM_H */
9266 # define getpagesize() 8192 /* punt totally */
9267 # endif /* no HAVE_SYS_PARAM_H */
9268 # endif /* no _SC_PAGESIZE */
9270 #endif /* no HAVE_GETPAGESIZE */
9275 char *data, *data2, *data3;
9279 pagesize = getpagesize ();
9281 /* First, make a file with some known garbage in it. */
9282 data = (char *) malloc (pagesize);
9285 for (i = 0; i < pagesize; ++i)
9286 *(data + i) = rand ();
9288 fd = creat ("conftest.mmap", 0600);
9291 if (write (fd, data, pagesize) != pagesize)
9295 /* Next, try to mmap the file at a fixed address which already has
9296 something else allocated at it. If we can, also make sure that
9297 we see the same garbage. */
9298 fd = open ("conftest.mmap", O_RDWR);
9301 data2 = (char *) malloc (2 * pagesize);
9304 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9305 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9308 for (i = 0; i < pagesize; ++i)
9309 if (*(data + i) != *(data2 + i))
9312 /* Finally, make sure that changes to the mapped area do not
9313 percolate back to the file as seen by read(). (This is a bug on
9314 some variants of i386 svr4.0.) */
9315 for (i = 0; i < pagesize; ++i)
9316 *(data2 + i) = *(data2 + i) + 1;
9317 data3 = (char *) malloc (pagesize);
9320 if (read (fd, data3, pagesize) != pagesize)
9322 for (i = 0; i < pagesize; ++i)
9323 if (*(data + i) != *(data3 + i))
9329 rm -f conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_func_mmap_fixed_mapped=yes
9342 echo "$as_me: program exited with status $ac_status" >&5
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_cv_func_mmap_fixed_mapped=no
9349 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9353 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9356 cat >>confdefs.h <<\_ACEOF
9363 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9364 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9365 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 ac_cv_func_setvbuf_reversed=no
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9378 int (setvbuf) (FILE *, int, char *, size_t);
9383 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9409 int (setvbuf) (FILE *, int, char *, size_t);
9414 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 # It compiles and links either way, so it must not be declared
9432 # with a prototype and most likely this is a K&R C compiler.
9434 if test "$cross_compiling" = yes; then
9435 : # Assume setvbuf is not reversed when cross-compiling.
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9448 /* This call has the arguments reversed.
9449 A reversed system may check and see that the address of buf
9450 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
9452 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9455 exit (0); /* Non-reversed systems SEGV here. */
9460 rm -f conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_func_setvbuf_reversed=yes
9473 echo "$as_me: program exited with status $ac_status" >&5
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9478 rm -f core core.* *.core
9480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 ac_cv_func_setvbuf_reversed=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9497 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9498 if test $ac_cv_func_setvbuf_reversed = yes; then
9500 cat >>confdefs.h <<\_ACEOF
9501 #define SETVBUF_REVERSED 1
9506 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9507 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9508 if test "${ac_cv_type_signal+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 #include <sys/types.h>
9524 extern "C" void (*signal (int, void (*)(int)))(int);
9526 void (*signal ()) ();
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_type_signal=void
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_cv_type_signal=int
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9559 echo "${ECHO_T}$ac_cv_type_signal" >&6
9561 cat >>confdefs.h <<_ACEOF
9562 #define RETSIGTYPE $ac_cv_type_signal
9567 for ac_func in vprintf
9569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570 echo "$as_me:$LINENO: checking for $ac_func" >&5
9571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9572 if eval "test \"\${$as_ac_var+set}\" = set"; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9576 #line $LINENO "configure"
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char $ac_func (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9587 # include <limits.h>
9589 # include <assert.h>
9591 /* Override any gcc2 internal prototype to avoid an error. */
9596 /* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9599 /* The GNU C library defines this for functions which it implements
9600 to always fail with ENOSYS. Some functions are actually named
9601 something starting with __ and the normal name is an alias. */
9602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9605 char (*f) () = $ac_func;
9614 return f != $ac_func;
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 eval "$as_ac_var=yes"
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 eval "$as_ac_var=no"
9638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9642 if test `eval echo '${'$as_ac_var'}'` = yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9647 echo "$as_me:$LINENO: checking for _doprnt" >&5
9648 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9649 if test "${ac_cv_func__doprnt+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char _doprnt (); below.
9661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662 <limits.h> exists even on freestanding compilers. */
9664 # include <limits.h>
9666 # include <assert.h>
9668 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9676 /* The GNU C library defines this for functions which it implements
9677 to always fail with ENOSYS. Some functions are actually named
9678 something starting with __ and the normal name is an alias. */
9679 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9682 char (*f) () = _doprnt;
9691 return f != _doprnt;
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_cv_func__doprnt=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_cv_func__doprnt=no
9715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9717 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9718 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9719 if test $ac_cv_func__doprnt = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_DOPRNT 1
9801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_func" >&5
9803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_var+set}\" = set"; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9808 #line $LINENO "configure"
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char $ac_func (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9823 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9837 char (*f) () = $ac_func;
9846 return f != $ac_func;
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 eval "$as_ac_var=yes"
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 eval "$as_ac_var=no"
9870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9874 if test `eval echo '${'$as_ac_var'}'` = yes; then
9875 cat >>confdefs.h <<_ACEOF
9876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9884 if test "x$CYGNUS" = xyes; then
9885 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
9887 echo "$as_me:$LINENO: checking for opendir" >&5
9888 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9889 if test "${ac_cv_func_opendir+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char opendir (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9904 # include <limits.h>
9906 # include <assert.h>
9908 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_opendir) || defined (__stub___opendir)
9922 char (*f) () = opendir;
9931 return f != opendir;
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_func_opendir=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_func_opendir=no
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
9958 echo "${ECHO_T}$ac_cv_func_opendir" >&6
9959 if test $ac_cv_func_opendir = yes; then
9962 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9967 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9971 if test "x$enable_network" = "xyes"; then
9972 echo "$as_me:$LINENO: checking for socket" >&5
9973 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9974 if test "${ac_cv_func_socket+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char socket (); below.
9986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987 <limits.h> exists even on freestanding compilers. */
9989 # include <limits.h>
9991 # include <assert.h>
9993 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined (__stub_socket) || defined (__stub___socket)
10007 char (*f) () = socket;
10016 return f != socket;
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_func_socket=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_func_socket=no
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10043 echo "${ECHO_T}$ac_cv_func_socket" >&6
10044 if test $ac_cv_func_socket = yes; then
10047 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10048 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10049 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10050 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 ac_save_LIBS="$LIBS"
10054 LIBS="-lwsock32 $LIBS"
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line $LINENO "configure"
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <windows.h>
10063 #include <winsock.h>
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 eval "wapi_cv_lib_$ac_lib_var=yes"
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 eval "wapi_cv_lib_$ac_lib_var=no"
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093 LIBS="$ac_save_LIBS"
10096 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098 echo "${ECHO_T}yes" >&6
10099 EXTRALIBS="$EXTRALIBS -lwsock32"
10100 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10102 echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10112 if test "x$CYGWIN" = xyes; then
10113 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
10115 echo "$as_me:$LINENO: checking for opendir" >&5
10116 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10117 if test "${ac_cv_func_opendir+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 /* System header to define __stub macros and hopefully few prototypes,
10128 which can conflict with char opendir (); below.
10129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130 <limits.h> exists even on freestanding compilers. */
10132 # include <limits.h>
10134 # include <assert.h>
10136 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10144 /* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147 #if defined (__stub_opendir) || defined (__stub___opendir)
10150 char (*f) () = opendir;
10159 return f != opendir;
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_func_opendir=yes
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_func_opendir=no
10183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10185 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10186 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10187 if test $ac_cv_func_opendir = yes; then
10190 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10195 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10199 if test "x$enable_network" = "xyes"; then
10200 echo "$as_me:$LINENO: checking for socket" >&5
10201 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10202 if test "${ac_cv_func_socket+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char socket (); below.
10214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10215 <limits.h> exists even on freestanding compilers. */
10217 # include <limits.h>
10219 # include <assert.h>
10221 /* Override any gcc2 internal prototype to avoid an error. */
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10229 /* The GNU C library defines this for functions which it implements
10230 to always fail with ENOSYS. Some functions are actually named
10231 something starting with __ and the normal name is an alias. */
10232 #if defined (__stub_socket) || defined (__stub___socket)
10235 char (*f) () = socket;
10244 return f != socket;
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_func_socket=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_func_socket=no
10268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10271 echo "${ECHO_T}$ac_cv_func_socket" >&6
10272 if test $ac_cv_func_socket = yes; then
10275 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10276 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10277 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10278 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 ac_save_LIBS="$LIBS"
10282 LIBS="-lwsock32 $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <windows.h>
10291 #include <winsock.h>
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 eval "wapi_cv_lib_$ac_lib_var=yes"
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 eval "wapi_cv_lib_$ac_lib_var=no"
10320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10321 LIBS="$ac_save_LIBS"
10324 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10325 echo "$as_me:$LINENO: result: yes" >&5
10326 echo "${ECHO_T}yes" >&6
10327 EXTRALIBS="$EXTRALIBS -lwsock32"
10328 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10330 echo "$as_me:$LINENO: result: no" >&5
10331 echo "${ECHO_T}no" >&6
10339 # Checks on extra paths
10342 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10343 if test "${with_tcl_includes+set}" = set; then
10344 withval="$with_tcl_includes"
10345 if test ! -d $withval; then
10346 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10347 echo "$as_me: WARNING: $withval is not found." >&2;}
10349 tcl_include_dir="-I$withval"
10353 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10354 if test "${with_tcl_libs+set}" = set; then
10355 withval="$with_tcl_libs"
10356 if test ! -d $withval; then
10357 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10358 echo "$as_me: WARNING: $withval is not found." >&2;}
10360 tcl_libdir="-L$withval"
10363 # Check whether --with-tk-includes or --without-tk-includes was given.
10364 if test "${with_tk_includes+set}" = set; then
10365 withval="$with_tk_includes"
10366 if test ! -d $withval; then
10367 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10368 echo "$as_me: WARNING: $withval is not found." >&2;}
10370 tk_includes="-I$withval"
10373 # Check whether --with-tk-libs or --without-tk-libs was given.
10374 if test "${with_tk_libs+set}" = set; then
10375 withval="$with_tk_libs"
10376 if test ! -d $withval; then
10377 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10378 echo "$as_me: WARNING: $withval is not found." >&2;}
10380 tk_libdir="-L$withval"
10384 # Check whether --with-offix-includes or --without-offix-includes was given.
10385 if test "${with_offix_includes+set}" = set; then
10386 withval="$with_offix_includes"
10387 if test ! -d $withval; then
10388 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10389 echo "$as_me: WARNING: $withval is not found." >&2;}
10391 offix_include_dir="-I$withval"
10394 # Check whether --with-offix-libs or --without-offix-libs was given.
10395 if test "${with_offix_libs+set}" = set; then
10396 withval="$with_offix_libs"
10397 if test ! -d $withval; then
10398 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10399 echo "$as_me: WARNING: $withval is not found." >&2;}
10401 offix_lib_dir="-L$withval"
10409 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo'
10412 # Check whether --with-nas-library or --without-nas-library was given.
10413 if test "${with_nas_library+set}" = set; then
10414 withval="$with_nas_library"
10418 # Check whether --with-nas-includes or --without-nas-includes was given.
10419 if test "${with_nas_includes+set}" = set; then
10420 withval="$with_nas_includes"
10425 # Check whether --enable-audio or --disable-audio was given.
10426 if test "${enable_audio+set}" = set; then
10427 enableval="$enable_audio"
10428 enable_audio=$enableval
10435 test "x$enable_audio" = xyes && enable_audio=default
10437 if test "x$enable_audio" != xno; then
10438 for i in `echo $enable_audio | sed 's/,/ /g'`; do
10439 eval "au_enable_$i=yes"
10445 # Check whether --with-default-output or --without-default-output was given.
10446 if test "${with_default_output+set}" = set; then
10447 withval="$with_default_output"
10448 if test "$enable_audio" != no; then
10449 DEFAULT_PLAYMODE=$withval
10450 eval "au_enable_$DEFAULT_PLAYMODE=yes"
10452 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10453 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10458 if test "x$au_enable_default" = xyes; then
10460 *-*-linux*|*-*-freebsd*)
10464 au_enable_sb_dsp=yes
10466 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10494 au_enable_darwin=yes
10497 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10498 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10504 # Each audio mode's configurations
10505 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10506 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10507 if test "x$au_enable_oss" = xyes; then
10508 EXTRADEFS="$EXTRADEFS -DAU_OSS"
10509 SYSEXTRAS="$SYSEXTRAS oss_a.c"
10510 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10511 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10512 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10516 echo "$as_me:$LINENO: result: yes" >&5
10517 echo "${ECHO_T}yes" >&6
10520 if test "x$ac_cv_header_soundcard_h" = xyes; then
10521 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10522 echo "${ECHO_T}yes - <soundcard.h>" >&6
10524 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10525 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10531 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10532 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10533 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lossaudio $LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10546 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_lib_ossaudio_open=yes
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_ossaudio_open=no
10580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10584 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10585 if test $ac_cv_lib_ossaudio_open = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_LIBOSSAUDIO 1
10590 LIBS="-lossaudio $LIBS"
10597 if test ! -e "/dev/dsp"; then
10598 oss_device=/dev/audio
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10607 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10608 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10609 if test "x$au_enable_sun" = xyes; then
10612 if test -f /usr/demo/SOUND/libaudio.a; then
10613 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10614 echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6
10617 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10618 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10622 if test -f /usr/demo/SOUND/lib/libaudio.a; then
10623 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10624 echo "$as_me:$LINENO: result: yes" >&5
10625 echo "${ECHO_T}yes" >&6
10627 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10628 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10631 *) echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6
10635 EXTRADEFS="$EXTRADEFS -DAU_SUN"
10636 SYSEXTRAS="$SYSEXTRAS sun_a.c"
10638 echo "$as_me:$LINENO: result: no" >&5
10639 echo "${ECHO_T}no" >&6
10642 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10643 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10644 if test "x$au_enable_hpux" = xyes; then
10646 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10647 echo "${ECHO_T}yes" >&6 ;;
10648 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10649 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10651 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10652 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10658 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10659 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10660 if test "x$au_enable_irix" = xyes; then
10662 *-sgi-irix5*|*-sgi-irix6.2)
10663 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10664 echo "$as_me:$LINENO: result: yes" >&5
10665 echo "${ECHO_T}yes" >&6
10668 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10669 echo "$as_me:$LINENO: result: yes" >&5
10670 echo "${ECHO_T}yes" >&6
10672 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10673 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10675 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10676 EXTRALIBS="$EXTRASLIBS -laudio"
10678 echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6
10682 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10683 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10684 if test "x$au_enable_mme" = xyes; then
10686 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10687 echo "${ECHO_T}yes" >&6 ;;
10688 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10689 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10691 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10692 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10693 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10694 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10696 echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10700 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10701 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10702 if test "x$au_enable_sb_dsp" = xyes; then
10704 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10705 echo "${ECHO_T}yes" >&6 ;;
10706 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10707 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10709 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10710 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10712 echo "$as_me:$LINENO: result: no" >&5
10713 echo "${ECHO_T}no" >&6
10716 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10717 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10718 if test "x$au_enable_w32" = xyes; then
10721 echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10725 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10726 echo "$as_me: WARNING: may not work on $target" >&2;}
10729 SYSEXTRAS="$SYSEXTRAS w32_a.c"
10730 EXTRALIBS="$EXTRALIBS -lwinmm"
10731 EXTRADEFS="$EXTRADEFS -DAU_W32"
10733 echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6
10737 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10738 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10739 if test "x$au_enable_darwin" = xyes; then
10740 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10741 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10742 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10745 echo "$as_me:$LINENO: result: yes" >&5
10746 echo "${ECHO_T}yes" >&6;;
10748 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10749 echo "$as_me: WARNING: may not work on $target" >&2;}
10753 echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10758 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10759 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10760 if test "x$au_enable_alsa" = xyes; then
10761 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10762 echo "${ECHO_T}yes, configuring alsa" >&6
10765 KEEPLDFLAGS=$LDFLAGS
10766 alsa_save_CFLAGS="$CFLAGS"
10767 alsa_save_LDFLAGS="$LDFLAGS"
10768 alsa_save_LIBS="$LIBS"
10772 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10773 if test "${with_alsa_prefix+set}" = set; then
10774 withval="$with_alsa_prefix"
10775 alsa_prefix="$withval"
10781 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10782 if test "${with_alsa_inc_prefix+set}" = set; then
10783 withval="$with_alsa_inc_prefix"
10784 alsa_inc_prefix="$withval"
10789 # Check whether --enable-alsatest or --disable-alsatest was given.
10790 if test "${enable_alsatest+set}" = set; then
10791 enableval="$enable_alsatest"
10794 enable_alsatest=yes
10797 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10798 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10799 if test "$alsa_inc_prefix" != "" ; then
10800 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10801 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10803 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10804 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10806 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10807 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10808 if test "$alsa_prefix" != "" ; then
10809 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10810 LDFLAGS="$LDFLAGS $ALSA_LIBS"
10813 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10814 LIBS=`echo $LIBS | sed 's/-lm//'`
10815 LIBS=`echo $LIBS | sed 's/-ldl//'`
10816 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10817 LIBS=`echo $LIBS | sed 's/ //'`
10818 LIBS="$ALSA_LIBS $LIBS"
10819 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10820 echo "${ECHO_T}$ALSA_LIBS" >&6
10822 min_alsa_version=0.1.1
10823 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10824 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10826 alsa_min_major_version=`echo $min_alsa_version | \
10827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10828 alsa_min_minor_version=`echo $min_alsa_version | \
10829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10830 alsa_min_micro_version=`echo $min_alsa_version | \
10831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10837 ac_cpp='$CPP $CPPFLAGS'
10838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 #include <alsa/asoundlib.h>
10856 /* ensure backward compatibility */
10857 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10858 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10860 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10861 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10863 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10864 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10867 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10870 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10871 # error not present
10874 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10877 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10878 # error not present
10881 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10882 # error not present
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 echo "$as_me:$LINENO: result: found." >&5
10905 echo "${ECHO_T}found." >&6
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10918 #include <sys/asoundlib.h>
10924 /* ensure backward compatibility */
10925 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10926 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10928 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10929 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10931 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10932 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10935 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10938 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10939 # error not present
10942 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10945 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10946 # error not present
10949 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10950 # error not present
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 echo "$as_me:$LINENO: result: found." >&5
10973 echo "${ECHO_T}found." >&6
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 echo "$as_me:$LINENO: result: not present." >&5
10979 echo "${ECHO_T}not present." >&6
10980 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
10981 echo "${ECHO_T}libasound was not found anywhere." >&6
10984 rm -f conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
10986 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
10989 rm -f conftest.$ac_objext conftest.$ac_ext
10991 ac_cpp='$CPP $CPPFLAGS'
10992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
10999 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11000 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-lasound $LIBS"
11005 cat >conftest.$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any gcc2 internal prototype to avoid an error. */
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11019 char snd_ctl_open ();
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_lib_asound_snd_ctl_open=yes
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_cv_lib_asound_snd_ctl_open=no
11047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11051 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11052 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_LIBASOUND 1
11057 LIBS="-lasound $LIBS"
11060 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11061 echo "${ECHO_T}No linkable libasound was found." >&6
11067 if test "x$alsa_found" = "xyes" ; then
11069 LIBS=`echo $LIBS | sed 's/-lasound//g'`
11070 LIBS=`echo $LIBS | sed 's/ //'`
11071 LIBS="-lasound $LIBS"
11074 CFLAGS="$alsa_save_CFLAGS"
11075 LDFLAGS="$alsa_save_LDFLAGS"
11076 LIBS="$alsa_save_LIBS"
11084 if test "x$alsa_found" = "xyes" ; then
11085 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11086 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11087 for f in $ALSA_CFLAGS; do
11089 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11090 *) CFLAGS="$CPPFLAGS $f" ;;
11094 LIBS="$KEEPLIBS $ALSA_LIBS"
11096 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11097 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11100 LDFLAGS=$KEEPLDFLAGS
11103 echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6
11107 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11108 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11109 if test "x$au_enable_alib" = xyes; then
11111 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11112 echo "${ECHO_T}yes" >&6 ;;
11113 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11114 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11116 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11117 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11118 if test -d /opt/audio/include; then
11119 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11121 if test -d /opt/audio/lib; then
11122 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11124 EXTRALIBS="$EXTRALIBS -lAlib"
11126 echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11130 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11131 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11132 if test "x$au_enable_nas" = xyes; then
11133 if test "x$with_x" != xyes; then
11134 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11135 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11136 { (exit 1); exit 1; }; }
11138 EXTRADEFS="$EXTRADEFS -DAU_NAS"
11139 SYSEXTRAS="$SYSEXTRAS nas_a.c"
11142 if test "x$with_nas_library" != x; then
11143 echo "$as_me:$LINENO: result: $with_nas_library" >&5
11144 echo "${ECHO_T}$with_nas_library" >&6;
11145 EXTRALIBS="$EXTRALIBS $with_nas_library"
11147 echo "$as_me:$LINENO: result: " >&5
11148 echo "${ECHO_T}" >&6
11149 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11150 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11151 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 ac_func_search_save_LIBS="$LIBS"
11155 timidity_cv_search_AuOpenServer="no"
11156 for i in $x_libraries/libaudio.a \
11157 /usr/lib/libaudio.so \
11158 /usr/lib/libaudio.a ; do
11159 LIBS="$i $ac_func_search_save_LIBS"
11160 cat >conftest.$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11168 /* Override any gcc2 internal prototype to avoid an error. */
11172 /* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11174 char AuOpenServer ();
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 timidity_cv_search_AuOpenServer="$i"; break
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203 LIBS="$ac_func_search_save_LIBS"
11205 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11206 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11207 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11208 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11209 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11210 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11212 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11213 echo "$as_me: WARNING: NAS library is not found." >&2;}
11216 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11218 if test "x$have_xext" = xyes; then
11219 lib_xext_opt=-lXext
11221 if test "x$have_xprelibs" = xyes; then
11222 lib_xprelibs_opt='-lSM -lICE'
11225 echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6
11229 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11230 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11231 if test "x$au_enable_arts" = xyes; then
11232 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11233 echo "${ECHO_T}yes, configuring aRts" >&6
11236 KEEPLDFLAGS=$LDFLAGS
11238 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11239 if test "${with_arts_prefix+set}" = set; then
11240 withval="$with_arts_prefix"
11241 arts_prefix="$withval"
11245 # Check whether --enable-artstest or --disable-artstest was given.
11246 if test "${enable_artstest+set}" = set; then
11247 enableval="$enable_artstest"
11250 enable_artstest=yes
11253 if test x$arts_prefix != x ; then
11254 arts_args="$arts_args --prefix=$arts_prefix"
11255 if test x${ARTS_CONFIG+set} != xset ; then
11256 ARTS_CONFIG=$arts_prefix/bin/artsc-config
11260 # Extract the first word of "artsc-config", so it can be a program name with args.
11261 set dummy artsc-config; ac_word=$2
11262 echo "$as_me:$LINENO: checking for $ac_word" >&5
11263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11264 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 case $ARTS_CONFIG in
11269 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11290 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11292 if test -n "$ARTS_CONFIG"; then
11293 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11294 echo "${ECHO_T}$ARTS_CONFIG" >&6
11296 echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6
11300 min_arts_version=0.9.5
11301 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11302 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11304 if test "$ARTS_CONFIG" = "no" ; then
11307 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11308 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11310 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11312 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11314 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11316 if test "x$enable_artstest" = "xyes" ; then
11317 ac_save_CFLAGS="$CFLAGS"
11318 ac_save_LIBS="$LIBS"
11319 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11320 LIBS="$LIBS $ARTS_LIBS"
11321 rm -f conf.artstest
11322 if test "$cross_compiling" = yes; then
11323 echo $ac_n "cross compiling; assumed OK... $ac_c"
11325 cat >conftest.$ac_ext <<_ACEOF
11326 #line $LINENO "configure"
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11334 #include <stdlib.h>
11335 #include <string.h>
11339 my_strdup (char *str)
11345 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11346 strcpy (new_str, str);
11356 int major, minor, micro;
11359 system ("touch conf.artstest");
11361 /* HP/UX 9 (%@#!) writes to sscanf strings */
11362 tmp_version = my_strdup("$min_arts_version");
11363 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11364 printf("%s, bad version string\n", "$min_arts_version");
11368 if (($arts_major_version > major) ||
11369 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11370 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11376 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11377 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11378 printf("*** best to upgrade to the required version.\n");
11379 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11380 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11381 printf("*** config.cache before re-running configure\n");
11388 rm -f conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11401 echo "$as_me: program exited with status $ac_status" >&5
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ( exit $ac_status )
11408 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11410 CFLAGS="$ac_save_CFLAGS"
11411 LIBS="$ac_save_LIBS"
11414 if test "x$no_arts" = x ; then
11415 echo "$as_me:$LINENO: result: yes" >&5
11416 echo "${ECHO_T}yes" >&6
11419 echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11421 if test "$ARTS_CONFIG" = "no" ; then
11422 echo "*** The artsc-config script installed by ARTS could not be found"
11423 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11424 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11425 echo "*** full path to artsc-config."
11427 if test -f conf.artstest ; then
11430 echo "*** Could not run ARTS test program, checking why..."
11431 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11432 LIBS="$LIBS $ARTS_LIBS"
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454 (eval $ac_link) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 echo "*** The test program compiled, but did not run. This usually means"
11465 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11466 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11467 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11468 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11469 echo "*** is required on your system"
11471 echo "*** If you have an old version installed, it is best to remove it, although"
11472 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 echo "*** The test program failed to compile or link. See the file config.log for the"
11478 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11479 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11480 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11483 CFLAGS="$ac_save_CFLAGS"
11484 LIBS="$ac_save_LIBS"
11493 rm -f conf.artstest
11497 LDFLAGS=$KEEPLDFLAGS
11498 if test "x$no_arts" = x; then
11499 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11500 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11501 for f in $ARTS_CFLAGS; do
11503 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11504 *) CFLAGS="$CPPFLAGS $f" ;;
11508 LIBS="$LIBS $ARTS_LIBS"
11510 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11511 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11514 echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6
11518 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11519 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11520 if test "x$au_enable_esd" = xyes; then
11521 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11522 echo "${ECHO_T}yes, configuring esd" >&6
11525 KEEPLDFLAGS=$LDFLAGS
11527 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11528 if test "${with_esd_prefix+set}" = set; then
11529 withval="$with_esd_prefix"
11530 esd_prefix="$withval"
11535 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11536 if test "${with_esd_exec_prefix+set}" = set; then
11537 withval="$with_esd_exec_prefix"
11538 esd_exec_prefix="$withval"
11542 # Check whether --enable-esdtest or --disable-esdtest was given.
11543 if test "${enable_esdtest+set}" = set; then
11544 enableval="$enable_esdtest"
11550 if test x$esd_exec_prefix != x ; then
11551 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11552 if test x${ESD_CONFIG+set} != xset ; then
11553 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11556 if test x$esd_prefix != x ; then
11557 esd_args="$esd_args --prefix=$esd_prefix"
11558 if test x${ESD_CONFIG+set} != xset ; then
11559 ESD_CONFIG=$esd_prefix/bin/esd-config
11563 # Extract the first word of "esd-config", so it can be a program name with args.
11564 set dummy esd-config; ac_word=$2
11565 echo "$as_me:$LINENO: checking for $ac_word" >&5
11566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11567 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 case $ESD_CONFIG in
11572 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11593 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11595 if test -n "$ESD_CONFIG"; then
11596 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11597 echo "${ECHO_T}$ESD_CONFIG" >&6
11599 echo "$as_me:$LINENO: result: no" >&5
11600 echo "${ECHO_T}no" >&6
11603 min_esd_version=0.2.7
11604 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11605 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11607 if test "$ESD_CONFIG" = "no" ; then
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11619 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11621 esd_major_version=`$ESD_CONFIG $esd_args --version | \
11622 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11623 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11624 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11625 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11626 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11627 if test "x$enable_esdtest" = "xyes" ; then
11628 ac_save_CFLAGS="$CFLAGS"
11629 ac_save_LIBS="$LIBS"
11630 CFLAGS="$CFLAGS $ESD_CFLAGS"
11631 LIBS="$LIBS $ESD_LIBS"
11633 if test "$cross_compiling" = yes; then
11634 echo $ac_n "cross compiling; assumed OK... $ac_c"
11636 cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11645 #include <stdlib.h>
11646 #include <string.h>
11650 my_strdup (char *str)
11656 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11657 strcpy (new_str, str);
11667 int major, minor, micro;
11670 system ("touch conf.esdtest");
11672 /* HP/UX 9 (%@#!) writes to sscanf strings */
11673 tmp_version = my_strdup("$min_esd_version");
11674 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11675 printf("%s, bad version string\n", "$min_esd_version");
11679 if (($esd_major_version > major) ||
11680 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11681 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11687 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11688 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11689 printf("*** best to upgrade to the required version.\n");
11690 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11691 printf("*** to point to the correct copy of esd-config, and remove the file\n");
11692 printf("*** config.cache before re-running configure\n");
11699 rm -f conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11712 echo "$as_me: program exited with status $ac_status" >&5
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 ( exit $ac_status )
11719 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11721 CFLAGS="$ac_save_CFLAGS"
11722 LIBS="$ac_save_LIBS"
11724 ac_cpp='$CPP $CPPFLAGS'
11725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11731 if test "x$no_esd" = x ; then
11732 echo "$as_me:$LINENO: result: yes" >&5
11733 echo "${ECHO_T}yes" >&6
11736 echo "$as_me:$LINENO: result: no" >&5
11737 echo "${ECHO_T}no" >&6
11738 if test "$ESD_CONFIG" = "no" ; then
11739 echo "*** The esd-config script installed by ESD could not be found"
11740 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11741 echo "*** your path, or set the ESD_CONFIG environment variable to the"
11742 echo "*** full path to esd-config."
11744 if test -f conf.esdtest ; then
11747 echo "*** Could not run ESD test program, checking why..."
11748 CFLAGS="$CFLAGS $ESD_CFLAGS"
11749 LIBS="$LIBS $ESD_LIBS"
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 echo "*** The test program compiled, but did not run. This usually means"
11790 echo "*** that the run-time linker is not finding ESD or finding the wrong"
11791 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11792 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11793 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11794 echo "*** is required on your system"
11796 echo "*** If you have an old version installed, it is best to remove it, although"
11797 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 echo "*** The test program failed to compile or link. See the file config.log for the"
11803 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11804 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11805 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11808 CFLAGS="$ac_save_CFLAGS"
11809 LIBS="$ac_save_LIBS"
11811 ac_cpp='$CPP $CPPFLAGS'
11812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828 LDFLAGS=$KEEPLDFLAGS
11829 if test "x$no_esd" = x; then
11830 EXTRADEFS="$EXTRADEFS -DAU_ESD"
11831 SYSEXTRAS="$SYSEXTRAS esd_a.c"
11832 for f in $ESD_CFLAGS; do
11834 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11835 *) CFLAGS="$CPPFLAGS $f" ;;
11839 LIBS="$LIBS $ESD_LIBS"
11841 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
11842 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
11845 echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11849 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
11850 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
11851 if test "x$au_enable_vorbis" = xyes; then
11852 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
11853 echo "${ECHO_T}yes, configuring vorbis" >&6
11855 # Check whether --with-ogg or --without-ogg was given.
11856 if test "${with_ogg+set}" = set; then
11857 withval="$with_ogg"
11858 ogg_prefix="$withval"
11863 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
11864 if test "${with_ogg_libraries+set}" = set; then
11865 withval="$with_ogg_libraries"
11866 ogg_libraries="$withval"
11871 # Check whether --with-ogg-includes or --without-ogg-includes was given.
11872 if test "${with_ogg_includes+set}" = set; then
11873 withval="$with_ogg_includes"
11874 ogg_includes="$withval"
11878 # Check whether --enable-oggtest or --disable-oggtest was given.
11879 if test "${enable_oggtest+set}" = set; then
11880 enableval="$enable_oggtest"
11886 if test "x$ogg_libraries" != "x" ; then
11887 OGG_LIBS="-L$ogg_libraries"
11888 elif test "x$ogg_prefix" != "x" ; then
11889 OGG_LIBS="-L$ogg_prefix/lib"
11890 elif test "x$prefix" != "xNONE" ; then
11891 OGG_LIBS="-L$prefix/lib"
11894 OGG_LIBS="$OGG_LIBS -logg"
11896 if test "x$ogg_includes" != "x" ; then
11897 OGG_CFLAGS="-I$ogg_includes"
11898 elif test "x$ogg_prefix" != "x" ; then
11899 OGG_CFLAGS="-I$ogg_prefix/include"
11900 elif test "x$prefix" != "xNONE"; then
11901 OGG_CFLAGS="-I$prefix/include"
11904 echo "$as_me:$LINENO: checking for Ogg" >&5
11905 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
11909 if test "x$enable_oggtest" = "xyes" ; then
11910 ac_save_CFLAGS="$CFLAGS"
11911 ac_save_LIBS="$LIBS"
11912 CFLAGS="$CFLAGS $OGG_CFLAGS"
11913 LIBS="$LIBS $OGG_LIBS"
11915 if test "$cross_compiling" = yes; then
11916 echo $ac_n "cross compiling; assumed OK... $ac_c"
11918 cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11927 #include <stdlib.h>
11928 #include <string.h>
11929 #include <ogg/ogg.h>
11933 system("touch conf.oggtest");
11939 rm -f conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11952 echo "$as_me: program exited with status $ac_status" >&5
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ( exit $ac_status )
11959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11961 CFLAGS="$ac_save_CFLAGS"
11962 LIBS="$ac_save_LIBS"
11965 if test "x$no_ogg" = "x" ; then
11966 echo "$as_me:$LINENO: result: yes" >&5
11967 echo "${ECHO_T}yes" >&6
11970 # Check whether --with-vorbis or --without-vorbis was given.
11971 if test "${with_vorbis+set}" = set; then
11972 withval="$with_vorbis"
11973 vorbis_prefix="$withval"
11978 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
11979 if test "${with_vorbis_libraries+set}" = set; then
11980 withval="$with_vorbis_libraries"
11981 vorbis_libraries="$withval"
11983 vorbis_libraries=""
11986 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
11987 if test "${with_vorbis_includes+set}" = set; then
11988 withval="$with_vorbis_includes"
11989 vorbis_includes="$withval"
11993 # Check whether --enable-vorbistest or --disable-vorbistest was given.
11994 if test "${enable_vorbistest+set}" = set; then
11995 enableval="$enable_vorbistest"
11998 enable_vorbistest=yes
12001 if test "x$vorbis_libraries" != "x" ; then
12002 VORBIS_LIBS="-L$vorbis_libraries"
12003 elif test "x$vorbis_prefix" != "x" ; then
12004 VORBIS_LIBS="-L$vorbis_prefix/lib"
12005 elif test "x$prefix" != "xNONE"; then
12006 VORBIS_LIBS="-L$prefix/lib"
12009 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12010 VORBISFILE_LIBS="-lvorbisfile"
12011 VORBISENC_LIBS="-lvorbisenc"
12013 if test "x$vorbis_includes" != "x" ; then
12014 VORBIS_CFLAGS="-I$vorbis_includes"
12015 elif test "x$vorbis_prefix" != "x" ; then
12016 VORBIS_CFLAGS="-I$vorbis_prefix/include"
12017 elif test "x$prefix" != "xNONE"; then
12018 VORBIS_CFLAGS="-I$prefix/include"
12022 echo "$as_me:$LINENO: checking for Vorbis" >&5
12023 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12027 if test "x$enable_vorbistest" = "xyes" ; then
12028 ac_save_CFLAGS="$CFLAGS"
12029 ac_save_LIBS="$LIBS"
12030 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12031 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12032 rm -f conf.vorbistest
12033 if test "$cross_compiling" = yes; then
12034 echo $ac_n "cross compiling; assumed OK... $ac_c"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12045 #include <stdlib.h>
12046 #include <string.h>
12047 #include <vorbis/codec.h>
12051 system("touch conf.vorbistest");
12057 rm -f conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12070 echo "$as_me: program exited with status $ac_status" >&5
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ( exit $ac_status )
12077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12079 CFLAGS="$ac_save_CFLAGS"
12080 LIBS="$ac_save_LIBS"
12083 if test "x$no_vorbis" = "x" ; then
12084 echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6
12088 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12089 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12090 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12091 if test "x$CYGNUS" = "xyes"; then
12092 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12093 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12095 if test "x$MINGW" = "xyes"; then
12096 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12097 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12101 echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12103 if test -f conf.vorbistest ; then
12106 echo "*** Could not run Vorbis test program, checking why..."
12107 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12108 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12118 #include <vorbis/codec.h>
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130 (eval $ac_link) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 echo "*** The test program compiled, but did not run. This usually means"
12141 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12142 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12143 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12144 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12145 echo "*** is required on your system"
12147 echo "*** If you have an old version installed, it is best to remove it, although"
12148 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 echo "*** The test program failed to compile or link. See the file config.log for the"
12154 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12155 echo "*** or that you have moved Vorbis since it was installed."
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158 CFLAGS="$ac_save_CFLAGS"
12159 LIBS="$ac_save_LIBS"
12166 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12167 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12174 rm -f conf.vorbistest
12178 echo "$as_me:$LINENO: result: no" >&5
12179 echo "${ECHO_T}no" >&6
12180 if test -f conf.oggtest ; then
12183 echo "*** Could not run Ogg test program, checking why..."
12184 CFLAGS="$CFLAGS $OGG_CFLAGS"
12185 LIBS="$LIBS $OGG_LIBS"
12186 cat >conftest.$ac_ext <<_ACEOF
12187 #line $LINENO "configure"
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12195 #include <ogg/ogg.h>
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 echo "*** The test program compiled, but did not run. This usually means"
12218 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12219 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12220 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12221 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12222 echo "*** is required on your system"
12224 echo "*** If you have an old version installed, it is best to remove it, although"
12225 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 echo "*** The test program failed to compile or link. See the file config.log for the"
12231 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12232 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12233 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12236 CFLAGS="$ac_save_CFLAGS"
12237 LIBS="$ac_save_LIBS"
12242 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12243 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12252 echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12256 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12257 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12258 if test "x$au_enable_gogo" = xyes; then
12259 if test "x$CYGNUS" = "xyes"; then
12260 echo "$as_me:$LINENO: result: yes" >&5
12261 echo "${ECHO_T}yes" >&6
12263 if test "x$MINGW" = "xyes"; then
12264 echo "$as_me:$LINENO: result: yes" >&5
12265 echo "${ECHO_T}yes" >&6
12267 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
12268 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
12272 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12273 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12274 EXTRALIBS="$EXTRALIBS -lgogo"
12276 echo "$as_me:$LINENO: result: no" >&5
12277 echo "${ECHO_T}no" >&6
12280 if test "x$au_enable_none" = xyes; then
12281 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12282 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12284 echo "$as_me:$LINENO: checking default output mode" >&5
12285 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12286 if test "x$DEFAULT_PLAYMODE" = x; then
12287 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12289 case ".$DEFAULT_PLAYMODE" in
12290 .default) TIMIDITY_OUTPUT_ID=d ;;
12291 .oss) TIMIDITY_OUTPUT_ID=d ;;
12292 .alsa) TIMIDITY_OUTPUT_ID=s ;;
12293 .sun) TIMIDITY_OUTPUT_ID=d ;;
12294 .hpux) TIMIDITY_OUTPUT_ID=d ;;
12295 .irix) TIMIDITY_OUTPUT_ID=d ;;
12296 .mme) TIMIDITY_OUTPUT_ID=d ;;
12297 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
12298 .darwin) TIMIDITY_OUTPUT_ID=d ;;
12299 .w32) TIMIDITY_OUTPUT_ID=d ;;
12300 .alib) TIMIDITY_OUTPUT_ID=A ;;
12301 .nas) TIMIDITY_OUTPUT_ID=n ;;
12302 .arts) TIMIDITY_OUTPUT_ID=R ;;
12303 .esd) TIMIDITY_OUTPUT_ID=e ;;
12304 .wav) TIMIDITY_OUTPUT_ID=w ;;
12305 .au) TIMIDITY_OUTPUT_ID=u ;;
12306 .aiff) TIMIDITY_OUTPUT_ID=a ;;
12307 .list) TIMIDITY_OUTPUT_ID=l ;;
12308 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
12309 .gogo) TIMIDITY_OUTPUT_ID=g ;;
12310 *) TIMIDITY_OUTPUT_ID= ;;
12312 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12313 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12316 # Interface Section
12319 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn'
12321 # Check whether --enable-interface or --disable-interface was given.
12322 if test "${enable_interface+set}" = set; then
12323 enableval="$enable_interface"
12324 for i in `echo $enableval | sed 's/,/ /g'`; do
12325 eval "enable_$i=yes"
12329 # Dynamic link configuration
12330 # Check whether --enable-dynamic or --disable-dynamic was given.
12331 if test "${enable_dynamic+set}" = set; then
12332 enableval="$enable_dynamic"
12333 if test "x$enable_dynamic" = xyes; then
12334 enable_dynamic=dynamic
12335 elif test "x$enable_dynamic" != xno; then
12336 for i in `echo $enableval | sed 's/,/ /g'`; do
12337 eval "enable_$i=dynamic"
12343 for i in $interface_targets; do
12344 eval "join_targets=$join_targets\$enable_$i"
12347 case ".$join_targets" in
12348 .*dynamic*) NEEDDLOPEN=yes;;
12352 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12353 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12355 if test "$NEEDDLOPEN" = "yes"; then
12358 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12359 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12360 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 cat >conftest.$ac_ext <<_ACEOF
12364 #line $LINENO "configure"
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #include <windows.h>
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 wapi_cv_func_LoadLibrary=yes
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 wapi_cv_func_LoadLibrary=no
12400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12403 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12404 echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12408 echo "$as_me:$LINENO: result: no" >&5
12409 echo "${ECHO_T}no" >&6
12412 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12414 if test "$have_dl" = "no"; then
12415 echo "$as_me:$LINENO: checking for shl_load" >&5
12416 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12417 if test "${ac_cv_func_shl_load+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char shl_load (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12432 # include <limits.h>
12434 # include <assert.h>
12436 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12444 /* The GNU C library defines this for functions which it implements
12445 to always fail with ENOSYS. Some functions are actually named
12446 something starting with __ and the normal name is an alias. */
12447 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12450 char (*f) () = shl_load;
12459 return f != shl_load;
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_func_shl_load=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 ac_cv_func_shl_load=no
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12486 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12487 if test $ac_cv_func_shl_load = yes; then
12492 if test "$have_dl" = "no"; then
12493 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12494 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12495 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 /* System header to define __stub macros and hopefully few prototypes,
12506 which can conflict with char NSLinkModule (); below.
12507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508 <limits.h> exists even on freestanding compilers. */
12510 # include <limits.h>
12512 # include <assert.h>
12514 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char NSLinkModule ();
12522 /* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12528 char (*f) () = NSLinkModule;
12537 return f != NSLinkModule;
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest$ac_exeext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_cv_func_NSLinkModule=yes
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_cv_func_NSLinkModule=no
12561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12564 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12565 if test $ac_cv_func_NSLinkModule = yes; then
12570 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12573 if test "$have_dl" = "no"; then
12574 echo "$as_me:$LINENO: checking for dlopen" >&5
12575 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12576 if test "${ac_cv_func_dlopen+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 cat >conftest.$ac_ext <<_ACEOF
12580 #line $LINENO "configure"
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 /* System header to define __stub macros and hopefully few prototypes,
12587 which can conflict with char dlopen (); below.
12588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589 <limits.h> exists even on freestanding compilers. */
12591 # include <limits.h>
12593 # include <assert.h>
12595 /* Override any gcc2 internal prototype to avoid an error. */
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12603 /* The GNU C library defines this for functions which it implements
12604 to always fail with ENOSYS. Some functions are actually named
12605 something starting with __ and the normal name is an alias. */
12606 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12609 char (*f) () = dlopen;
12618 return f != dlopen;
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -s conftest$ac_exeext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 ac_cv_func_dlopen=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_cv_func_dlopen=no
12642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12644 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12645 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12646 if test $ac_cv_func_dlopen = yes; then
12651 if test "$have_dl" = "no"; then
12652 echo "$as_me:$LINENO: checking for dld_init" >&5
12653 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12654 if test "${ac_cv_func_dld_init+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char dld_init (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12669 # include <limits.h>
12671 # include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12687 char (*f) () = dld_init;
12696 return f != dld_init;
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_func_dld_init=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_func_dld_init=no
12720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12723 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12724 if test $ac_cv_func_dld_init = yes; then
12729 if test "$have_dl" = "no"; then
12730 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12731 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12732 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12745 /* Override any gcc2 internal prototype to avoid an error. */
12749 /* We use char because int might match the return type of a gcc2
12750 builtin and then its argument prototype would still apply. */
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762 (eval $ac_link) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -s conftest$ac_exeext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_lib_dld_dld_init=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_cv_lib_dld_dld_init=no
12779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12782 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12783 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12784 if test $ac_cv_lib_dld_dld_init = yes; then
12785 have_dl=dld;lib_dl_opt=-ldld
12790 echo "$as_me:$LINENO: checking dynamic link method" >&5
12791 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
12794 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
12795 echo "${ECHO_T}use dl_dlopen.c" >&6
12796 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
12797 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
12798 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
12799 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 case "$ac_cv_header_dlfcn_h" in
12803 yes) i_dlfcn=define;;
12814 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
12816 #include <sys/types.h>
12821 extern int fred() ;
12830 int mode = RTLD_LAZY ;
12832 handle = dlopen("./dyna.$so", mode) ;
12833 if (handle == NULL) {
12838 symbol = dlsym(handle, "fred") ;
12839 if (symbol == NULL) {
12840 /* try putting a leading underscore */
12841 symbol = dlsym(handle, "_fred") ;
12842 if (symbol == NULL) {
12855 : Call the object file tmp-dyna.o in case dlext=o.
12856 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
12857 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
12858 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
12859 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
12862 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
12863 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
12865 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
12866 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
12868 3) timidity_cv_func_dlsym_underscore=yes
12870 4) timidity_cv_func_dlsym_underscore=no
12874 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
12875 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
12877 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
12881 case "x$timidity_cv_func_dlsym_underscore" in
12883 cat >>confdefs.h <<\_ACEOF
12884 #define DLSYM_NEEDS_UNDERSCORE 1
12887 echo "$as_me:$LINENO: result: yes" >&5
12888 echo "${ECHO_T}yes" >&6
12891 echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6
12898 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
12899 echo "${ECHO_T}use dl_dld.c" >&6
12900 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
12903 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
12904 echo "${ECHO_T}use dl_hpux.c" >&6
12905 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
12906 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
12909 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
12910 echo "${ECHO_T}use dl_w32.c" >&6
12911 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
12914 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
12915 echo "${ECHO_T}use dl_dyld.c" >&6
12916 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
12920 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
12921 echo "$as_me: WARNING: no method to open a shared object" >&2;}
12926 if test "$NEEDDLOPEN" = "yes"; then
12927 cat >> confdefs.h <<EOF
12928 #define IA_DYNAMIC 1
12932 cat >>confdefs.h <<_ACEOF
12933 #define SHARED_LIB_EXT ".$so"
12936 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
12941 if test "$NEEDDLOPEN" = "yes"; then
12943 NEEDDLOPEN_FALSE='#'
12945 NEEDDLOPEN_TRUE='#'
12954 ENABLE_NCURSES_TRUE=
12955 ENABLE_NCURSES_FALSE='#'
12957 ENABLE_NCURSES_TRUE='#'
12958 ENABLE_NCURSES_FALSE=
12961 # Check whether --enable-ncurses or --disable-ncurses was given.
12962 if test "${enable_ncurses+set}" = set; then
12963 enableval="$enable_ncurses"
12964 case "x$enable_ncurses" in xyes|xdynamic)
12967 for ac_header in ncurses.h ncurses/curses.h curses.h
12969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12971 echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12979 # Is the header compilable?
12980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 #include <$ac_header>
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_header_compiler=yes
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_header_compiler=no
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013 echo "${ECHO_T}$ac_header_compiler" >&6
13015 # Is the header present?
13016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13019 #line $LINENO "configure"
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 #include <$ac_header>
13027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } >/dev/null; then
13035 if test -s conftest.err; then
13036 ac_cpp_err=$ac_c_preproc_warn_flag
13043 if test -z "$ac_cpp_err"; then
13044 ac_header_preproc=yes
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_header_preproc=no
13051 rm -f conftest.err conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053 echo "${ECHO_T}$ac_header_preproc" >&6
13055 # So? What about this header?
13056 case $ac_header_compiler:$ac_header_preproc in
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13064 ## ------------------------------------ ##
13065 ## Report this to bug-autoconf@gnu.org. ##
13066 ## ------------------------------------ ##
13069 sed "s/^/$as_me: WARNING: /" >&2
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13080 ## ------------------------------------ ##
13081 ## Report this to bug-autoconf@gnu.org. ##
13082 ## ------------------------------------ ##
13085 sed "s/^/$as_me: WARNING: /" >&2
13088 echo "$as_me:$LINENO: checking for $ac_header" >&5
13089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 eval "$as_ac_Header=$ac_header_preproc"
13095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13100 cat >>confdefs.h <<_ACEOF
13101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13110 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13112 *) for i in /usr/include /usr/local/include; do
13113 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13114 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
13115 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
13116 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13123 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13124 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13125 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lncurses $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13138 /* Override any gcc2 internal prototype to avoid an error. */
13142 /* We use char because int might match the return type of a gcc2
13143 builtin and then its argument prototype would still apply. */
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155 (eval $ac_link) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_lib_ncurses_initscr=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_cv_lib_ncurses_initscr=no
13172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13175 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13176 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13177 if test $ac_cv_lib_ncurses_initscr = yes; then
13178 lib_curses_opt=-lncurses
13180 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13181 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13182 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lcurses $lib_user32_test $LIBS"
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any gcc2 internal prototype to avoid an error. */
13199 /* We use char because int might match the return type of a gcc2
13200 builtin and then its argument prototype would still apply. */
13201 char PDC_set_ctrl_break ();
13205 PDC_set_ctrl_break ();
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_curses_PDC_set_ctrl_break=yes
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 ac_cv_lib_curses_PDC_set_ctrl_break=no
13229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13233 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13234 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13235 lib_curses_opt=-lcurses
13237 cat >>confdefs.h <<\_ACEOF
13238 #define USE_PDCURSES 1
13241 lib_user32_opt="$lib_user32_test"
13244 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13245 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13246 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lpdcurses $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13259 /* Override any gcc2 internal prototype to avoid an error. */
13263 /* We use char because int might match the return type of a gcc2
13264 builtin and then its argument prototype would still apply. */
13265 char PDC_set_ctrl_break ();
13269 PDC_set_ctrl_break ();
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -s conftest$ac_exeext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13297 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13298 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13299 lib_curses_opt=-lpdcurses
13301 cat >>confdefs.h <<\_ACEOF
13302 #define USE_PDCURSES 1
13305 lib_user32_opt="$lib_user32_test"
13310 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13311 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13312 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-lcurses $LIBS"
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13325 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_lib_curses_initscr=yes
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_cv_lib_curses_initscr=no
13359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13362 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13363 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13364 if test $ac_cv_lib_curses_initscr = yes; then
13365 lib_curses_opt=-lcurses
13367 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13368 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13375 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13390 case "x$enable_ncurses" in
13392 cat >> confdefs.h <<EOF
13393 #define IA_NCURSES 1
13399 ENABLE_NCURSES_TRUE=
13400 ENABLE_NCURSES_FALSE='#'
13402 ENABLE_NCURSES_TRUE='#'
13403 ENABLE_NCURSES_FALSE=
13406 LIBS="$LIBS $lib_curses_opt"
13409 EXTRALIBS="$EXTRALIBS -lmytinfo"
13412 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13416 dynamic_targets="$dynamic_targets interface_n.\$(so)"
13417 n_so_libs="$lib_curses_opt"
13420 EXTRALIBS="$EXTRALIBS -lmytinfo"
13435 ENABLE_SLANG_FALSE='#'
13437 ENABLE_SLANG_TRUE='#'
13438 ENABLE_SLANG_FALSE=
13441 # Check whether --enable-slang or --disable-slang was given.
13442 if test "${enable_slang+set}" = set; then
13443 enableval="$enable_slang"
13444 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13445 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13446 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 ac_check_lib_save_LIBS=$LIBS
13450 LIBS="-lslang $LIBS"
13451 cat >conftest.$ac_ext <<_ACEOF
13452 #line $LINENO "configure"
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13459 /* Override any gcc2 internal prototype to avoid an error. */
13463 /* We use char because int might match the return type of a gcc2
13464 builtin and then its argument prototype would still apply. */
13465 char SLang_init_tty ();
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -s conftest$ac_exeext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_lib_slang_SLang_init_tty=yes
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13491 ac_cv_lib_slang_SLang_init_tty=no
13493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13496 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13497 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13498 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13502 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13503 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13509 for ac_header in slang/slang.h slang.h
13511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13521 # Is the header compilable?
13522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13525 #line $LINENO "configure"
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13532 #include <$ac_header>
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13553 rm -f conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <$ac_header>
13569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } >/dev/null; then
13577 if test -s conftest.err; then
13578 ac_cpp_err=$ac_c_preproc_warn_flag
13585 if test -z "$ac_cpp_err"; then
13586 ac_header_preproc=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc in
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13606 ## ------------------------------------ ##
13607 ## Report this to bug-autoconf@gnu.org. ##
13608 ## ------------------------------------ ##
13611 sed "s/^/$as_me: WARNING: /" >&2
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13622 ## ------------------------------------ ##
13623 ## Report this to bug-autoconf@gnu.org. ##
13624 ## ------------------------------------ ##
13627 sed "s/^/$as_me: WARNING: /" >&2
13630 echo "$as_me:$LINENO: checking for $ac_header" >&5
13631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 eval "$as_ac_Header=$ac_header_preproc"
13637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652 case "x$enable_slang" in
13654 cat >> confdefs.h <<EOF
13662 ENABLE_SLANG_FALSE='#'
13664 ENABLE_SLANG_TRUE='#'
13665 ENABLE_SLANG_FALSE=
13668 LIBS="$LIBS -lslang"
13669 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13673 dynamic_targets="$dynamic_targets interface_s.\$(so)"
13674 s_so_libs="-lslang"
13675 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13676 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13677 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-ltermcap $LIBS"
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13690 /* Override any gcc2 internal prototype to avoid an error. */
13694 /* We use char because int might match the return type of a gcc2
13695 builtin and then its argument prototype would still apply. */
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_lib_termcap_initscr=yes
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 ac_cv_lib_termcap_initscr=no
13724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13727 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13728 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13729 if test $ac_cv_lib_termcap_initscr = yes; then
13730 s_so_libs="$s_so_libs -ltermcap"
13746 ENABLE_MOTIF_FALSE='#'
13748 ENABLE_MOTIF_TRUE='#'
13749 ENABLE_MOTIF_FALSE=
13752 # Check whether --enable-motif or --disable-motif was given.
13753 if test "${enable_motif+set}" = set; then
13754 enableval="$enable_motif"
13755 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
13756 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13757 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13758 { (exit 1); exit 1; }; }
13760 if test "x$have_xm" != xyes; then
13761 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13762 echo "$as_me: WARNING: Motif library is not found." >&2;}
13767 case "x$enable_motif" in
13769 cat >> confdefs.h <<EOF
13777 ENABLE_MOTIF_FALSE='#'
13779 ENABLE_MOTIF_TRUE='#'
13780 ENABLE_MOTIF_FALSE=
13785 lib_xext_opt=-lXext
13786 if test "x$have_xprelibs" = xyes; then
13787 lib_xprelibs_opt='-lSM -lICE'
13789 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
13793 dynamic_targets="$dynamic_targets interface_m.\$(so)"
13794 if test x$have_xprelibs = xyes; then
13795 m_so_libs="-lXext -lSM -lICE"
13797 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
13811 ENABLE_TCLTK_FALSE='#'
13813 ENABLE_TCLTK_TRUE='#'
13814 ENABLE_TCLTK_FALSE=
13817 # Check whether --enable-tcltk or --disable-tcltk was given.
13818 if test "${enable_tcltk+set}" = set; then
13819 enableval="$enable_tcltk"
13820 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
13821 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
13822 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
13823 { (exit 1); exit 1; }; }
13826 KEEPCPPFLAGS=$CPPFLAGS
13827 KEEPLDFLAGS=$LDFLAGS
13830 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
13831 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
13832 LIBS="$LIBS $lib_dl_opt"
13836 for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
13837 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
13838 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
13839 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
13840 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 ac_check_lib_save_LIBS=$LIBS
13845 cat >conftest.$ac_ext <<_ACEOF
13846 #line $LINENO "configure"
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 /* Override any gcc2 internal prototype to avoid an error. */
13857 /* We use char because int might match the return type of a gcc2
13858 builtin and then its argument prototype would still apply. */
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 eval "$as_ac_Lib=yes"
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 eval "$as_ac_Lib=no"
13887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13891 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13892 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13897 LIBS="$LIBS $tcl_lib"
13898 for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
13899 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
13900 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
13901 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
13902 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_check_lib_save_LIBS=$LIBS
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any gcc2 internal prototype to avoid an error. */
13919 /* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest$ac_exeext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 eval "$as_ac_Lib=yes"
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 eval "$as_ac_Lib=no"
13949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13953 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13954 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13961 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
13962 CPPFLAGS=$KEEPCPPFLAGS
13963 LDFLAGS=$KEEPLDFLAGS
13965 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
13966 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
13968 tcltk_dep='tclIndex'
13972 case "x$enable_tcltk" in
13974 cat >> confdefs.h <<EOF
13982 ENABLE_TCLTK_FALSE='#'
13984 ENABLE_TCLTK_TRUE='#'
13985 ENABLE_TCLTK_FALSE=
13988 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
13991 EXTRALIBS="$EXTRALIBS -lipc"
13994 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
13998 dynamic_targets="$dynamic_targets interface_k.\$(so)"
13999 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14002 k_so_libs="$k_so_libs -lipc"
14005 k_so_libs="$k_so_libs -lX11 -lm"
14016 if test "x$enable_tcltk" = "xdynamic"; then
14017 ENABLE_DYNAMIC_TCLTK_TRUE=
14018 ENABLE_DYNAMIC_TCLTK_FALSE='#'
14020 ENABLE_DYNAMIC_TCLTK_TRUE='#'
14021 ENABLE_DYNAMIC_TCLTK_FALSE=
14029 ENABLE_EMACS_FALSE='#'
14031 ENABLE_EMACS_TRUE='#'
14032 ENABLE_EMACS_FALSE=
14035 # Check whether --enable-emacs or --disable-emacs was given.
14036 if test "${enable_emacs+set}" = set; then
14037 enableval="$enable_emacs"
14038 case "x$enable_emacs" in xyes|xdynamic) ;; esac
14040 case "x$enable_emacs" in
14042 cat >> confdefs.h <<EOF
14050 ENABLE_EMACS_FALSE='#'
14052 ENABLE_EMACS_TRUE='#'
14053 ENABLE_EMACS_FALSE=
14056 ELFILES="$ELFILES timidity.el"
14057 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14061 dynamic_targets="$dynamic_targets interface_e.\$(so)"
14062 ELFILES="$ELFILES timidity.el"
14075 ENABLE_VT100_FALSE='#'
14077 ENABLE_VT100_TRUE='#'
14078 ENABLE_VT100_FALSE=
14081 # Check whether --enable-vt100 or --disable-vt100 was given.
14082 if test "${enable_vt100+set}" = set; then
14083 enableval="$enable_vt100"
14084 case "x$enable_vt100" in xyes|xdynamic) ;; esac
14086 case "x$enable_vt100" in
14088 cat >> confdefs.h <<EOF
14096 ENABLE_VT100_FALSE='#'
14098 ENABLE_VT100_TRUE='#'
14099 ENABLE_VT100_FALSE=
14102 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14105 dynamic_targets="$dynamic_targets interface_T.\$(so)"
14119 ENABLE_XAW_FALSE='#'
14121 ENABLE_XAW_TRUE='#'
14125 # Check whether --enable-xaw or --disable-xaw was given.
14126 if test "${enable_xaw+set}" = set; then
14127 enableval="$enable_xaw"
14128 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
14129 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14130 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14131 { (exit 1); exit 1; }; }
14133 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14134 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14135 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14139 case "x$enable_xaw" in
14141 cat >> confdefs.h <<EOF
14149 ENABLE_XAW_FALSE='#'
14151 ENABLE_XAW_TRUE='#'
14155 if test "x$have_xext" = xyes; then
14156 lib_xext_opt=-lXext
14158 if test "x$have_xprelibs" = xyes; then
14159 lib_xprelibs_opt='-lSM -lICE'
14163 if test "x$have_xaw" = x3d; then
14165 cat >>confdefs.h <<\_ACEOF
14169 lib_xaw_opt=-lXaw3d
14173 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14177 dynamic_targets="$dynamic_targets interface_a.\$(so)"
14178 if test "x$have_xext" = xyes; then
14179 a_so_libs="-lXext -lX11"
14185 a_so_libs="$a_so_libs -lcc_dynamic"
14188 if test "x$have_xprelibs" = xyes; then
14189 a_so_libs="-lSM -lICE $a_so_libs"
14191 if test "x$have_xaw" = xyes; then
14192 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14193 elif test "x$have_xaw" = x3d; then
14195 cat >>confdefs.h <<\_ACEOF
14199 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14201 a_so_libs="$ldflags_x_opt $a_so_libs"
14212 if test "x$enable_xaw" = "xdynamic"; then
14213 ENABLE_DYNAMIC_XAW_TRUE=
14214 ENABLE_DYNAMIC_XAW_FALSE='#'
14216 ENABLE_DYNAMIC_XAW_TRUE='#'
14217 ENABLE_DYNAMIC_XAW_FALSE=
14225 ENABLE_XSKIN_FALSE='#'
14227 ENABLE_XSKIN_TRUE='#'
14228 ENABLE_XSKIN_FALSE=
14231 # Check whether --enable-xskin or --disable-xskin was given.
14232 if test "${enable_xskin+set}" = set; then
14233 enableval="$enable_xskin"
14234 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
14235 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14236 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14237 { (exit 1); exit 1; }; }
14241 case "x$enable_xskin" in
14243 cat >> confdefs.h <<EOF
14251 ENABLE_XSKIN_FALSE='#'
14253 ENABLE_XSKIN_TRUE='#'
14254 ENABLE_XSKIN_FALSE=
14257 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14260 dynamic_targets="$dynamic_targets interface_i.\$(so)"
14261 i_so_libs="$ldflags_x_opt -lX11"
14274 ENABLE_GTK_FALSE='#'
14276 ENABLE_GTK_TRUE='#'
14280 # Check whether --enable-gtk or --disable-gtk was given.
14281 if test "${enable_gtk+set}" = set; then
14282 enableval="$enable_gtk"
14283 case "x$enable_gtk" in xyes|xdynamic)
14284 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14285 if test "${with_gtk_prefix+set}" = set; then
14286 withval="$with_gtk_prefix"
14287 gtk_config_prefix="$withval"
14289 gtk_config_prefix=""
14292 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14293 if test "${with_gtk_exec_prefix+set}" = set; then
14294 withval="$with_gtk_exec_prefix"
14295 gtk_config_exec_prefix="$withval"
14297 gtk_config_exec_prefix=""
14299 # Check whether --enable-gtktest or --disable-gtktest was given.
14300 if test "${enable_gtktest+set}" = set; then
14301 enableval="$enable_gtktest"
14311 gtk_config_args="$gtk_config_args gthread"
14316 if test x$gtk_config_exec_prefix != x ; then
14317 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14318 if test x${GTK_CONFIG+set} != xset ; then
14319 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14322 if test x$gtk_config_prefix != x ; then
14323 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14324 if test x${GTK_CONFIG+set} != xset ; then
14325 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14329 # Extract the first word of "gtk-config", so it can be a program name with args.
14330 set dummy gtk-config; ac_word=$2
14331 echo "$as_me:$LINENO: checking for $ac_word" >&5
14332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14333 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 case $GTK_CONFIG in
14338 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14348 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14355 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14359 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14361 if test -n "$GTK_CONFIG"; then
14362 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14363 echo "${ECHO_T}$GTK_CONFIG" >&6
14365 echo "$as_me:$LINENO: result: no" >&5
14366 echo "${ECHO_T}no" >&6
14369 min_gtk_version=1.1.3
14370 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14371 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14373 if test "$GTK_CONFIG" = "no" ; then
14376 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14377 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14378 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14380 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14382 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14384 if test "x$enable_gtktest" = "xyes" ; then
14385 ac_save_CFLAGS="$CFLAGS"
14386 ac_save_LIBS="$LIBS"
14387 CFLAGS="$CFLAGS $GTK_CFLAGS"
14388 LIBS="$GTK_LIBS $LIBS"
14390 if test "$cross_compiling" = yes; then
14391 echo $ac_n "cross compiling; assumed OK... $ac_c"
14393 cat >conftest.$ac_ext <<_ACEOF
14394 #line $LINENO "configure"
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14401 #include <gtk/gtk.h>
14403 #include <stdlib.h>
14408 int major, minor, micro;
14411 system ("touch conf.gtktest");
14413 /* HP/UX 9 (%@#!) writes to sscanf strings */
14414 tmp_version = g_strdup("$min_gtk_version");
14415 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14416 printf("%s, bad version string\n", "$min_gtk_version");
14420 if ((gtk_major_version != $gtk_config_major_version) ||
14421 (gtk_minor_version != $gtk_config_minor_version) ||
14422 (gtk_micro_version != $gtk_config_micro_version))
14424 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14425 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14426 gtk_major_version, gtk_minor_version, gtk_micro_version);
14427 printf ("*** was found! If gtk-config was correct, then it is best\n");
14428 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14429 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14430 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14431 printf("*** required on your system.\n");
14432 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14433 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14434 printf("*** before re-running configure\n");
14436 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14437 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14438 (gtk_minor_version != GTK_MINOR_VERSION) ||
14439 (gtk_micro_version != GTK_MICRO_VERSION))
14441 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14442 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14443 printf("*** library (version %d.%d.%d)\n",
14444 gtk_major_version, gtk_minor_version, gtk_micro_version);
14446 #endif /* defined (GTK_MAJOR_VERSION) ... */
14449 if ((gtk_major_version > major) ||
14450 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14451 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14457 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14458 gtk_major_version, gtk_minor_version, gtk_micro_version);
14459 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14460 major, minor, micro);
14461 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14463 printf("*** If you have already installed a sufficiently new version, this error\n");
14464 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14465 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14466 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14467 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14468 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14469 printf("*** so that the correct libraries are found at run-time))\n");
14476 rm -f conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14489 echo "$as_me: program exited with status $ac_status" >&5
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ( exit $ac_status )
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14498 CFLAGS="$ac_save_CFLAGS"
14499 LIBS="$ac_save_LIBS"
14502 if test "x$no_gtk" = x ; then
14503 echo "$as_me:$LINENO: result: yes" >&5
14504 echo "${ECHO_T}yes" >&6
14507 echo "$as_me:$LINENO: result: no" >&5
14508 echo "${ECHO_T}no" >&6
14509 if test "$GTK_CONFIG" = "no" ; then
14510 echo "*** The gtk-config script installed by GTK could not be found"
14511 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14512 echo "*** your path, or set the GTK_CONFIG environment variable to the"
14513 echo "*** full path to gtk-config."
14515 if test -f conf.gtktest ; then
14518 echo "*** Could not run GTK test program, checking why..."
14519 CFLAGS="$CFLAGS $GTK_CFLAGS"
14520 LIBS="$LIBS $GTK_LIBS"
14521 cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14529 #include <gtk/gtk.h>
14535 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 echo "*** The test program compiled, but did not run. This usually means"
14553 echo "*** that the run-time linker is not finding GTK or finding the wrong"
14554 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14555 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14556 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14557 echo "*** is required on your system"
14559 echo "*** If you have an old version installed, it is best to remove it, although"
14560 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14562 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14563 echo "*** came with the system with the command"
14565 echo "*** rpm --erase --nodeps gtk gtk-devel"
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 echo "*** The test program failed to compile or link. See the file config.log for the"
14571 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14572 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14573 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14576 CFLAGS="$ac_save_CFLAGS"
14577 LIBS="$ac_save_LIBS"
14589 case "x$enable_gtk" in
14591 cat >> confdefs.h <<EOF
14599 ENABLE_GTK_FALSE='#'
14601 ENABLE_GTK_TRUE='#'
14605 LIBS="$LIBS $GTK_LIBS"
14606 for f in $GTK_CFLAGS; do
14608 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14609 *) CFLAGS="$CPPFLAGS $f" ;;
14613 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14617 dynamic_targets="$dynamic_targets interface_g.\$(so)"
14618 if test "x$GCC" = xyes; then
14619 for i in $GTK_LIBS; do
14622 *) g_so_libs="$g_so_libs $i" ;;
14626 g_so_libs="$GTK_LIBS"
14628 for f in $GTK_CFLAGS; do
14630 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14631 *) CFLAGS="$CPPFLAGS $f" ;;
14646 ENABLE_SERVER_TRUE=
14647 ENABLE_SERVER_FALSE='#'
14649 ENABLE_SERVER_TRUE='#'
14650 ENABLE_SERVER_FALSE=
14653 # Check whether --enable-server or --disable-server was given.
14654 if test "${enable_server+set}" = set; then
14655 enableval="$enable_server"
14656 case "x$enable_server" in xyes|xdynamic) ;; esac
14658 case "x$enable_server" in
14660 cat >> confdefs.h <<EOF
14661 #define IA_SERVER 1
14667 ENABLE_SERVER_TRUE=
14668 ENABLE_SERVER_FALSE='#'
14670 ENABLE_SERVER_TRUE='#'
14671 ENABLE_SERVER_FALSE=
14674 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14676 for ac_header in sys/soundcard.h
14678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14680 echo "$as_me:$LINENO: checking for $ac_header" >&5
14681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14688 # Is the header compilable?
14689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <$ac_header>
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_header_compiler=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_header_compiler=no
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14722 echo "${ECHO_T}$ac_header_compiler" >&6
14724 # Is the header present?
14725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <$ac_header>
14736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14737 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14744 if test -s conftest.err; then
14745 ac_cpp_err=$ac_c_preproc_warn_flag
14752 if test -z "$ac_cpp_err"; then
14753 ac_header_preproc=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_header_preproc=no
14760 rm -f conftest.err conftest.$ac_ext
14761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6
14764 # So? What about this header?
14765 case $ac_header_compiler:$ac_header_preproc in
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14773 ## ------------------------------------ ##
14774 ## Report this to bug-autoconf@gnu.org. ##
14775 ## ------------------------------------ ##
14778 sed "s/^/$as_me: WARNING: /" >&2
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14789 ## ------------------------------------ ##
14790 ## Report this to bug-autoconf@gnu.org. ##
14791 ## ------------------------------------ ##
14794 sed "s/^/$as_me: WARNING: /" >&2
14797 echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 eval "$as_ac_Header=$ac_header_preproc"
14804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14809 cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 dynamic_targets="$dynamic_targets interface_r.\$(so)"
14833 ENABLE_ALSASEQ_TRUE=
14834 ENABLE_ALSASEQ_FALSE='#'
14836 ENABLE_ALSASEQ_TRUE='#'
14837 ENABLE_ALSASEQ_FALSE=
14840 # Check whether --enable-alsaseq or --disable-alsaseq was given.
14841 if test "${enable_alsaseq+set}" = set; then
14842 enableval="$enable_alsaseq"
14843 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
14845 case "x$enable_alsaseq" in
14847 cat >> confdefs.h <<EOF
14848 #define IA_ALSASEQ 1
14854 ENABLE_ALSASEQ_TRUE=
14855 ENABLE_ALSASEQ_FALSE='#'
14857 ENABLE_ALSASEQ_TRUE='#'
14858 ENABLE_ALSASEQ_FALSE=
14861 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
14863 for ac_header in sys/asoundlib.h
14865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14867 echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14875 # Is the header compilable?
14876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14878 cat >conftest.$ac_ext <<_ACEOF
14879 #line $LINENO "configure"
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 #include <$ac_header>
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_header_compiler=yes
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_compiler=no
14907 rm -f conftest.$ac_objext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 echo "${ECHO_T}$ac_header_compiler" >&6
14911 # Is the header present?
14912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <$ac_header>
14923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } >/dev/null; then
14931 if test -s conftest.err; then
14932 ac_cpp_err=$ac_c_preproc_warn_flag
14939 if test -z "$ac_cpp_err"; then
14940 ac_header_preproc=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14947 rm -f conftest.err conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14949 echo "${ECHO_T}$ac_header_preproc" >&6
14951 # So? What about this header?
14952 case $ac_header_compiler:$ac_header_preproc in
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14960 ## ------------------------------------ ##
14961 ## Report this to bug-autoconf@gnu.org. ##
14962 ## ------------------------------------ ##
14965 sed "s/^/$as_me: WARNING: /" >&2
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14976 ## ------------------------------------ ##
14977 ## Report this to bug-autoconf@gnu.org. ##
14978 ## ------------------------------------ ##
14981 sed "s/^/$as_me: WARNING: /" >&2
14984 echo "$as_me:$LINENO: checking for $ac_header" >&5
14985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 eval "$as_ac_Header=$ac_header_preproc"
14991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14996 cat >>confdefs.h <<_ACEOF
14997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007 dynamic_targets="$dynamic_targets interface_A.\$(so)"
15020 ENABLE_WINSYN_TRUE=
15021 ENABLE_WINSYN_FALSE='#'
15023 ENABLE_WINSYN_TRUE='#'
15024 ENABLE_WINSYN_FALSE=
15027 # Check whether --enable-winsyn or --disable-winsyn was given.
15028 if test "${enable_winsyn+set}" = set; then
15029 enableval="$enable_winsyn"
15030 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
15032 case "x$enable_winsyn" in
15034 cat >> confdefs.h <<EOF
15035 #define IA_WINSYN 1
15041 ENABLE_WINSYN_TRUE=
15042 ENABLE_WINSYN_FALSE='#'
15044 ENABLE_WINSYN_TRUE='#'
15045 ENABLE_WINSYN_FALSE=
15048 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c"
15051 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15065 ENABLE_W32GUI_TRUE=
15066 ENABLE_W32GUI_FALSE='#'
15068 ENABLE_W32GUI_TRUE='#'
15069 ENABLE_W32GUI_FALSE=
15072 # Check whether --enable-w32gui or --disable-w32gui was given.
15073 if test "${enable_w32gui+set}" = set; then
15074 enableval="$enable_w32gui"
15075 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
15077 case "x$enable_w32gui" in
15079 cat >> confdefs.h <<EOF
15080 #define IA_W32GUI 1
15086 ENABLE_W32GUI_TRUE=
15087 ENABLE_W32GUI_FALSE='#'
15089 ENABLE_W32GUI_TRUE='#'
15090 ENABLE_W32GUI_FALSE=
15093 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15094 lib_user32_opt='-luser32'
15095 LDFLAGS="-mwindows $LDFLAGS"
15096 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_ut2.c"
15100 dynamic_targets="$dynamic_targets interface_w.\$(so)"
15113 ENABLE_PLUGIN_TRUE=
15114 ENABLE_PLUGIN_FALSE='#'
15116 ENABLE_PLUGIN_TRUE='#'
15117 ENABLE_PLUGIN_FALSE=
15120 # Check whether --enable-ump or --disable-ump was given.
15121 if test "${enable_ump+set}" = set; then
15122 enableval="$enable_ump"
15123 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
15124 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
15125 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
15126 { (exit 1); exit 1; }; }
15128 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15129 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15130 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15131 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15135 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15137 # Is the header compilable?
15138 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15139 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 #line $LINENO "configure"
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 $ac_includes_default
15148 #include <X11/xpm.h>
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_header_compiler=yes
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_header_compiler=no
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15171 echo "${ECHO_T}$ac_header_compiler" >&6
15173 # Is the header present?
15174 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15175 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <X11/xpm.h>
15185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } >/dev/null; then
15193 if test -s conftest.err; then
15194 ac_cpp_err=$ac_c_preproc_warn_flag
15201 if test -z "$ac_cpp_err"; then
15202 ac_header_preproc=yes
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 ac_header_preproc=no
15209 rm -f conftest.err conftest.$ac_ext
15210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211 echo "${ECHO_T}$ac_header_preproc" >&6
15213 # So? What about this header?
15214 case $ac_header_compiler:$ac_header_preproc in
15216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15217 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15222 ## ------------------------------------ ##
15223 ## Report this to bug-autoconf@gnu.org. ##
15224 ## ------------------------------------ ##
15227 sed "s/^/$as_me: WARNING: /" >&2
15230 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15231 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15233 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15235 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15238 ## ------------------------------------ ##
15239 ## Report this to bug-autoconf@gnu.org. ##
15240 ## ------------------------------------ ##
15243 sed "s/^/$as_me: WARNING: /" >&2
15246 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15247 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15248 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 ac_cv_header_X11_xpm_h=$ac_header_preproc
15253 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15254 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15257 if test $ac_cv_header_X11_xpm_h = yes; then
15260 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15261 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15262 { (exit 1); exit 1; }; }
15266 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15267 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15268 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 ac_check_lib_save_LIBS=$LIBS
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 /* Override any gcc2 internal prototype to avoid an error. */
15285 /* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15287 char XpmCreatePixmapFromData ();
15291 XpmCreatePixmapFromData ();
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15298 (eval $ac_link) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15316 LIBS=$ac_check_lib_save_LIBS
15318 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15319 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15320 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15323 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15324 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15325 { (exit 1); exit 1; }; }
15328 if test "x$have_xext" = xyes; then
15329 lib_xext_opt=-lXext
15331 if test "x$have_xprelibs" = xyes; then
15332 lib_xprelibs_opt='-lSM -lICE'
15338 case "x$enable_ump" in
15340 cat >> confdefs.h <<EOF
15341 #define IA_PLUGIN 1
15347 ENABLE_PLUGIN_TRUE=
15348 ENABLE_PLUGIN_FALSE='#'
15350 ENABLE_PLUGIN_TRUE='#'
15351 ENABLE_PLUGIN_FALSE=
15357 dynamic_targets="$dynamic_targets interface_p.\$(so)"
15368 # Check whether --enable-offix or --disable-offix was given.
15369 if test "${enable_offix+set}" = set; then
15370 enableval="$enable_offix"
15371 if test "$enableval" = "yes"; then
15372 KEEPCPPFLAGS=$CPPFLAGS
15374 KEEPLDFLAGS=$LDFLAGS
15375 CPPFLAGS="$CPPFLAGS $offix_include_dir"
15376 LDFLAGS="$LDFLAGS $offix_lib_dir"
15377 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15378 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15379 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15380 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 ac_check_lib_save_LIBS=$LIBS
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any gcc2 internal prototype to avoid an error. */
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char DndInitialize ();
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_lib_Dnd_DndInitialize=yes
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_lib_Dnd_DndInitialize=no
15427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15431 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15432 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15435 lib_offix_opt="-lDnd"
15437 cat >>confdefs.h <<\_ACEOF
15443 LDFLAGS=$KEEPLDFLAGS
15444 CPPFLAGS=$KEEPCPPFLAGS
15453 # Check whether --enable-network or --disable-network was given.
15454 if test "${enable_network+set}" = set; then
15455 enableval="$enable_network"
15456 if test "$enableval" = "yes"; then
15458 cat >>confdefs.h <<\_ACEOF
15459 #define SUPPORT_SOCKET 1
15466 if test "x$enable_network" = "xyes"; then
15467 ENABLE_NETWORK_TRUE=
15468 ENABLE_NETWORK_FALSE='#'
15470 ENABLE_NETWORK_TRUE='#'
15471 ENABLE_NETWORK_FALSE=
15475 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15476 if test "${enable_spectrogram+set}" = set; then
15477 enableval="$enable_spectrogram"
15478 if test "$enableval" = "yes"; then
15479 if test "x$with_x" != xyes; then
15480 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15481 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15482 { (exit 1); exit 1; }; }
15485 cat >>confdefs.h <<\_ACEOF
15486 #define SUPPORT_SOUNDSPEC 1
15493 if test "x$enable_spectrogram" = "xyes"; then
15494 ENABLE_SOUND_SPEC_TRUE=
15495 ENABLE_SOUND_SPEC_FALSE='#'
15497 ENABLE_SOUND_SPEC_TRUE='#'
15498 ENABLE_SOUND_SPEC_FALSE=
15502 # Check whether --enable-spline or --disable-spline was given.
15503 if test "${enable_spline+set}" = set; then
15504 enableval="$enable_spline"
15505 case "x$enableval" in
15508 cat >>confdefs.h <<\_ACEOF
15509 #define LINEAR_INTERPOLATION 1
15515 cat >>confdefs.h <<\_ACEOF
15516 #define CSPLINE_INTERPOLATION 1
15522 cat >>confdefs.h <<\_ACEOF
15523 #define LAGRANGE_INTERPOLATION 1
15529 cat >>confdefs.h <<\_ACEOF
15530 #define NEWTON_INTERPOLATION 1
15536 cat >>confdefs.h <<\_ACEOF
15537 #define GAUSS_INTERPOLATION 1
15543 cat >>confdefs.h <<\_ACEOF
15544 #define NO_INTERPOLATION 1
15549 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15550 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15551 { (exit 1); exit 1; }; }
15556 # Check whether --enable-wrd or --disable-wrd was given.
15557 if test "${enable_wrd+set}" = set; then
15558 enableval="$enable_wrd"
15559 if test "$enableval" = "yes"; then
15560 if test "x$with_x" != xyes; then
15561 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15562 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15563 { (exit 1); exit 1; }; }
15566 cat >>confdefs.h <<\_ACEOF
15570 enable_sherry_wrd=yes
15571 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15572 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15573 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 ac_check_lib_save_LIBS=$LIBS
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592 char zlibVersion ();
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest$ac_exeext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_lib_z_zlibVersion=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_lib_z_zlibVersion=no
15620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15621 LIBS=$ac_check_lib_save_LIBS
15623 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15624 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15625 if test $ac_cv_lib_z_zlibVersion = yes; then
15628 enable_sherry_wrd=no
15631 if test "${ac_cv_header_png_h+set}" = set; then
15632 echo "$as_me:$LINENO: checking for png.h" >&5
15633 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15634 if test "${ac_cv_header_png_h+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15638 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15640 # Is the header compilable?
15641 echo "$as_me:$LINENO: checking png.h usability" >&5
15642 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line $LINENO "configure"
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 $ac_includes_default
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -s conftest.$ac_objext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_header_compiler=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_compiler=no
15672 rm -f conftest.$ac_objext conftest.$ac_ext
15673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15674 echo "${ECHO_T}$ac_header_compiler" >&6
15676 # Is the header present?
15677 echo "$as_me:$LINENO: checking png.h presence" >&5
15678 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15680 #line $LINENO "configure"
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } >/dev/null; then
15696 if test -s conftest.err; then
15697 ac_cpp_err=$ac_c_preproc_warn_flag
15704 if test -z "$ac_cpp_err"; then
15705 ac_header_preproc=yes
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 ac_header_preproc=no
15712 rm -f conftest.err conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6
15716 # So? What about this header?
15717 case $ac_header_compiler:$ac_header_preproc in
15719 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15720 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15725 ## ------------------------------------ ##
15726 ## Report this to bug-autoconf@gnu.org. ##
15727 ## ------------------------------------ ##
15730 sed "s/^/$as_me: WARNING: /" >&2
15733 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15734 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15736 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15741 ## ------------------------------------ ##
15742 ## Report this to bug-autoconf@gnu.org. ##
15743 ## ------------------------------------ ##
15746 sed "s/^/$as_me: WARNING: /" >&2
15749 echo "$as_me:$LINENO: checking for png.h" >&5
15750 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15751 if test "${ac_cv_header_png_h+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 ac_cv_header_png_h=$ac_header_preproc
15756 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15757 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15760 if test $ac_cv_header_png_h = yes; then
15763 enable_sherry_wrd=no
15767 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
15768 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
15769 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lpng -lz $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
15775 #line $LINENO "configure"
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15782 /* Override any gcc2 internal prototype to avoid an error. */
15786 /* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788 char png_init_io ();
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_lib_png_png_init_io=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_cv_lib_png_png_init_io=no
15816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15817 LIBS=$ac_check_lib_save_LIBS
15819 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
15820 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
15821 if test $ac_cv_lib_png_png_init_io = yes; then
15824 enable_sherry_wrd=no
15827 if test "$enable_sherry_wrd" = yes; then
15829 cat >>confdefs.h <<\_ACEOF
15830 #define ENABLE_SHERRY 1
15836 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
15837 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
15839 if test "x$have_xext" = xyes; then
15840 lib_xext_opt=-lXext
15853 if test "x$enable_wrd" = "xyes"; then
15855 ENABLE_WRD_FALSE='#'
15857 ENABLE_WRD_TRUE='#'
15864 if test "x$CYGNUS" = xyes; then
15874 if test "x$MINGW" = xyes; then
15884 if test "x$W32READDIR" = "xyes"; then
15886 W32READDIR_FALSE='#'
15888 W32READDIR_TRUE='#'
15893 rm -f wordtmp >/dev/null 2>&1
15895 for f in $LDFLAGS; do
15896 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15899 echo $f >>wordtmp; val="$val $f"
15904 rm -f wordtmp >/dev/null 2>&1
15906 rm -f wordtmp >/dev/null 2>&1
15908 for f in $SHLDFLAGS; do
15909 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15912 echo $f >>wordtmp; val="$val $f"
15917 rm -f wordtmp >/dev/null 2>&1
15919 rm -f wordtmp >/dev/null 2>&1
15921 for f in $EXTRACFLAGS $CFLAGS; do
15922 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15925 echo $f >>wordtmp; val="$val $f"
15930 rm -f wordtmp >/dev/null 2>&1
15932 rm -f wordtmp >/dev/null 2>&1
15934 for f in $CPPFLAGS $EXTRADEFS; do
15935 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15938 echo $f >>wordtmp; val="$val $f"
15943 rm -f wordtmp >/dev/null 2>&1
15946 if test "x$oss_device" != x; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define OSS_DEVICE "$oss_device"
15954 if test "x$TIMIDITY_OUTPUT_ID" != x; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
15962 if test "x$with_x" = xyes; then
15963 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/"`
15965 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
15966 SHLD="$SHLD $SHLDFLAGS"
15986 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"
15988 cat >confcache <<\_ACEOF
15989 # This file is a shell script that caches the results of configure
15990 # tests run on this system so they can be shared between configure
15991 # scripts and configure runs, see configure's option --config-cache.
15992 # It is not useful on other systems. If it contains results you don't
15993 # want to keep, you may remove or edit it.
15995 # config.status only pays attention to the cache file if you give it
15996 # the --recheck option to rerun configure.
15998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16000 # following values.
16004 # The following way of writing the cache mishandles newlines in values,
16005 # but we know of no workaround that is simple, portable, and efficient.
16006 # So, don't put newlines in cache variables' values.
16007 # Ultrix sh set writes to stderr and can't be redirected directly,
16008 # and sets the high bit in the cache file unless we assign to the vars.
16011 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16013 # `set' does not quote correctly, so add quotes (double-quote
16014 # substitution turns \\\\ into \\, and sed turns \\ into \).
16017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16020 # `set' quotes correctly as required by POSIX, so do not add quotes.
16022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16031 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16034 if test -w $cache_file; then
16035 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16036 cat confcache >$cache_file
16038 echo "not updating unwritable cache $cache_file"
16043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16044 # Let make expand exec_prefix.
16045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16049 # trailing colons and then remove the whole line if VPATH becomes empty
16050 # (actually we leave an empty line to preserve line numbers).
16051 if test "x$srcdir" = x.; then
16052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16053 s/:*\$(srcdir):*/:/;
16054 s/:*\${srcdir}:*/:/;
16056 s/^\([^=]*=[ ]*\):*/\1/;
16062 DEFS=-DHAVE_CONFIG_H
16066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16067 # 1. Remove the extension, and $U if already installed.
16068 ac_i=`echo "$ac_i" |
16069 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16071 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16072 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16074 LIBOBJS=$ac_libobjs
16076 LTLIBOBJS=$ac_ltlibobjs
16079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16080 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16081 Usually this means the macro was only invoked conditionally." >&5
16082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16083 Usually this means the macro was only invoked conditionally." >&2;}
16084 { (exit 1); exit 1; }; }
16086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16087 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16088 Usually this means the macro was only invoked conditionally." >&5
16089 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16090 Usually this means the macro was only invoked conditionally." >&2;}
16091 { (exit 1); exit 1; }; }
16093 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16094 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16095 Usually this means the macro was only invoked conditionally." >&5
16096 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16097 Usually this means the macro was only invoked conditionally." >&2;}
16098 { (exit 1); exit 1; }; }
16100 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16101 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16102 Usually this means the macro was only invoked conditionally." >&5
16103 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16104 Usually this means the macro was only invoked conditionally." >&2;}
16105 { (exit 1); exit 1; }; }
16107 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16108 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16109 Usually this means the macro was only invoked conditionally." >&5
16110 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16111 Usually this means the macro was only invoked conditionally." >&2;}
16112 { (exit 1); exit 1; }; }
16114 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16115 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16116 Usually this means the macro was only invoked conditionally." >&5
16117 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16118 Usually this means the macro was only invoked conditionally." >&2;}
16119 { (exit 1); exit 1; }; }
16121 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16122 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16123 Usually this means the macro was only invoked conditionally." >&5
16124 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16125 Usually this means the macro was only invoked conditionally." >&2;}
16126 { (exit 1); exit 1; }; }
16128 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16129 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16130 Usually this means the macro was only invoked conditionally." >&5
16131 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16132 Usually this means the macro was only invoked conditionally." >&2;}
16133 { (exit 1); exit 1; }; }
16135 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16136 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16137 Usually this means the macro was only invoked conditionally." >&5
16138 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16139 Usually this means the macro was only invoked conditionally." >&2;}
16140 { (exit 1); exit 1; }; }
16142 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16143 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16144 Usually this means the macro was only invoked conditionally." >&5
16145 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16146 Usually this means the macro was only invoked conditionally." >&2;}
16147 { (exit 1); exit 1; }; }
16149 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16150 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16151 Usually this means the macro was only invoked conditionally." >&5
16152 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16153 Usually this means the macro was only invoked conditionally." >&2;}
16154 { (exit 1); exit 1; }; }
16156 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16157 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16158 Usually this means the macro was only invoked conditionally." >&5
16159 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16160 Usually this means the macro was only invoked conditionally." >&2;}
16161 { (exit 1); exit 1; }; }
16163 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16164 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16165 Usually this means the macro was only invoked conditionally." >&5
16166 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16167 Usually this means the macro was only invoked conditionally." >&2;}
16168 { (exit 1); exit 1; }; }
16170 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16171 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16172 Usually this means the macro was only invoked conditionally." >&5
16173 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16174 Usually this means the macro was only invoked conditionally." >&2;}
16175 { (exit 1); exit 1; }; }
16177 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16178 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16179 Usually this means the macro was only invoked conditionally." >&5
16180 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16181 Usually this means the macro was only invoked conditionally." >&2;}
16182 { (exit 1); exit 1; }; }
16184 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16185 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16186 Usually this means the macro was only invoked conditionally." >&5
16187 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16188 Usually this means the macro was only invoked conditionally." >&2;}
16189 { (exit 1); exit 1; }; }
16191 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16192 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16193 Usually this means the macro was only invoked conditionally." >&5
16194 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16195 Usually this means the macro was only invoked conditionally." >&2;}
16196 { (exit 1); exit 1; }; }
16198 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16199 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16200 Usually this means the macro was only invoked conditionally." >&5
16201 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16202 Usually this means the macro was only invoked conditionally." >&2;}
16203 { (exit 1); exit 1; }; }
16205 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16206 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16207 Usually this means the macro was only invoked conditionally." >&5
16208 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16209 Usually this means the macro was only invoked conditionally." >&2;}
16210 { (exit 1); exit 1; }; }
16212 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16213 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16214 Usually this means the macro was only invoked conditionally." >&5
16215 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16216 Usually this means the macro was only invoked conditionally." >&2;}
16217 { (exit 1); exit 1; }; }
16219 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16220 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16221 Usually this means the macro was only invoked conditionally." >&5
16222 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16223 Usually this means the macro was only invoked conditionally." >&2;}
16224 { (exit 1); exit 1; }; }
16226 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16227 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16228 Usually this means the macro was only invoked conditionally." >&5
16229 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16230 Usually this means the macro was only invoked conditionally." >&2;}
16231 { (exit 1); exit 1; }; }
16233 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16234 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16235 Usually this means the macro was only invoked conditionally." >&5
16236 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16237 Usually this means the macro was only invoked conditionally." >&2;}
16238 { (exit 1); exit 1; }; }
16240 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16241 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16242 Usually this means the macro was only invoked conditionally." >&5
16243 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16244 Usually this means the macro was only invoked conditionally." >&2;}
16245 { (exit 1); exit 1; }; }
16247 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16248 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16249 Usually this means the macro was only invoked conditionally." >&5
16250 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16251 Usually this means the macro was only invoked conditionally." >&2;}
16252 { (exit 1); exit 1; }; }
16254 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16255 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16256 Usually this means the macro was only invoked conditionally." >&5
16257 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16258 Usually this means the macro was only invoked conditionally." >&2;}
16259 { (exit 1); exit 1; }; }
16261 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16262 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16263 Usually this means the macro was only invoked conditionally." >&5
16264 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16265 Usually this means the macro was only invoked conditionally." >&2;}
16266 { (exit 1); exit 1; }; }
16268 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16269 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16270 Usually this means the macro was only invoked conditionally." >&5
16271 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16272 Usually this means the macro was only invoked conditionally." >&2;}
16273 { (exit 1); exit 1; }; }
16275 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16276 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16277 Usually this means the macro was only invoked conditionally." >&5
16278 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16279 Usually this means the macro was only invoked conditionally." >&2;}
16280 { (exit 1); exit 1; }; }
16282 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16283 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16284 Usually this means the macro was only invoked conditionally." >&5
16285 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16286 Usually this means the macro was only invoked conditionally." >&2;}
16287 { (exit 1); exit 1; }; }
16289 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16290 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16291 Usually this means the macro was only invoked conditionally." >&5
16292 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16293 Usually this means the macro was only invoked conditionally." >&2;}
16294 { (exit 1); exit 1; }; }
16296 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16297 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16298 Usually this means the macro was only invoked conditionally." >&5
16299 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16300 Usually this means the macro was only invoked conditionally." >&2;}
16301 { (exit 1); exit 1; }; }
16303 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16304 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16305 Usually this means the macro was only invoked conditionally." >&5
16306 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16307 Usually this means the macro was only invoked conditionally." >&2;}
16308 { (exit 1); exit 1; }; }
16310 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16311 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16312 Usually this means the macro was only invoked conditionally." >&5
16313 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16314 Usually this means the macro was only invoked conditionally." >&2;}
16315 { (exit 1); exit 1; }; }
16317 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16318 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16319 Usually this means the macro was only invoked conditionally." >&5
16320 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16321 Usually this means the macro was only invoked conditionally." >&2;}
16322 { (exit 1); exit 1; }; }
16324 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16325 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16326 Usually this means the macro was only invoked conditionally." >&5
16327 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16328 Usually this means the macro was only invoked conditionally." >&2;}
16329 { (exit 1); exit 1; }; }
16331 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16332 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16333 Usually this means the macro was only invoked conditionally." >&5
16334 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16335 Usually this means the macro was only invoked conditionally." >&2;}
16336 { (exit 1); exit 1; }; }
16338 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16339 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16340 Usually this means the macro was only invoked conditionally." >&5
16341 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16342 Usually this means the macro was only invoked conditionally." >&2;}
16343 { (exit 1); exit 1; }; }
16345 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16346 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16347 Usually this means the macro was only invoked conditionally." >&5
16348 echo "$as_me: error: conditional \"MINGW\" was never defined.
16349 Usually this means the macro was only invoked conditionally." >&2;}
16350 { (exit 1); exit 1; }; }
16352 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16353 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16354 Usually this means the macro was only invoked conditionally." >&5
16355 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16356 Usually this means the macro was only invoked conditionally." >&2;}
16357 { (exit 1); exit 1; }; }
16360 : ${CONFIG_STATUS=./config.status}
16361 ac_clean_files_save=$ac_clean_files
16362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16365 cat >$CONFIG_STATUS <<_ACEOF
16367 # Generated by $as_me.
16368 # Run this file to recreate the current configuration.
16369 # Compiler output produced by configure, useful for debugging
16370 # configure, is in config.log if it exists.
16373 ac_cs_recheck=false
16375 SHELL=\${CONFIG_SHELL-$SHELL}
16378 cat >>$CONFIG_STATUS <<\_ACEOF
16379 ## --------------------- ##
16380 ## M4sh Initialization. ##
16381 ## --------------------- ##
16383 # Be Bourne compatible
16384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16388 # is contrary to our usage. Disable this feature.
16389 alias -g '${1+"$@"}'='"$@"'
16390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16394 # Support unset when possible.
16395 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16402 # Work around bugs in pre-3.0 UWIN ksh.
16403 $as_unset ENV MAIL MAILPATH
16410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16412 LC_TELEPHONE LC_TIME
16414 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16415 eval $as_var=C; export $as_var
16421 # Required to use basename.
16422 if expr a : '\(a\)' >/dev/null 2>&1; then
16428 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16429 as_basename=basename
16435 # Name of the executable.
16436 as_me=`$as_basename "$0" ||
16437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16438 X"$0" : 'X\(//\)$' \| \
16439 X"$0" : 'X\(/\)$' \| \
16440 . : '\(.\)' 2>/dev/null ||
16442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16443 /^X\/\(\/\/\)$/{ s//\1/; q; }
16444 /^X\/\(\/\).*/{ s//\1/; q; }
16448 # PATH needs CR, and LINENO needs CR and PATH.
16449 # Avoid depending upon Character Ranges.
16450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16453 as_cr_digits='0123456789'
16454 as_cr_alnum=$as_cr_Letters$as_cr_digits
16456 # The user is always right.
16457 if test "${PATH_SEPARATOR+set}" != set; then
16458 echo "#! /bin/sh" >conf$$.sh
16459 echo "exit 0" >>conf$$.sh
16461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16470 as_lineno_1=$LINENO
16471 as_lineno_2=$LINENO
16472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16473 test "x$as_lineno_1" != "x$as_lineno_2" &&
16474 test "x$as_lineno_3" = "x$as_lineno_2" || {
16475 # Find who we are. Look in the path if we contain no path at all
16478 *[\\/]* ) as_myself=$0 ;;
16479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16480 for as_dir in $PATH
16483 test -z "$as_dir" && as_dir=.
16484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16489 # We did not find ourselves, most probably we were run as `sh COMMAND'
16490 # in which case we are not to be found in the path.
16491 if test "x$as_myself" = x; then
16494 if test ! -f "$as_myself"; then
16495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16497 { (exit 1); exit 1; }; }
16499 case $CONFIG_SHELL in
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16505 test -z "$as_dir" && as_dir=.
16506 for as_base in sh bash ksh sh5; do
16509 if ("$as_dir/$as_base" -c '
16510 as_lineno_1=$LINENO
16511 as_lineno_2=$LINENO
16512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16513 test "x$as_lineno_1" != "x$as_lineno_2" &&
16514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16515 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16516 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16517 CONFIG_SHELL=$as_dir/$as_base
16518 export CONFIG_SHELL
16519 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16528 # uniformly replaced by the line number. The first 'sed' inserts a
16529 # line-number line before each line; the second 'sed' does the real
16530 # work. The second script uses 'N' to pair each line-number line
16531 # with the numbered line, and appends trailing '-' during
16532 # substitution so that $LINENO is not a special case at line end.
16533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16534 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16535 sed '=' <$as_myself |
16540 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16543 s,^['$as_cr_digits']*\n,,
16544 ' >$as_me.lineno &&
16545 chmod +x $as_me.lineno ||
16546 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16547 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16548 { (exit 1); exit 1; }; }
16550 # Don't try to exec as it changes $[0], causing all sort of problems
16551 # (the dirname of $[0] is not the place where we might find the
16552 # original and so on. Autoconf is especially sensible to this).
16554 # Exit status is that of the last command.
16559 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16560 *c*,-n*) ECHO_N= ECHO_C='
16562 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16563 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16566 if expr a : '\(a\)' >/dev/null 2>&1; then
16572 rm -f conf$$ conf$$.exe conf$$.file
16574 if ln -s conf$$.file conf$$ 2>/dev/null; then
16575 # We could just check for DJGPP; but this test a) works b) is more generic
16576 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16577 if test -f conf$$.exe; then
16578 # Don't use ln at all; we don't have any links
16583 elif ln conf$$.file conf$$ 2>/dev/null; then
16588 rm -f conf$$ conf$$.exe conf$$.file
16590 if mkdir -p . 2>/dev/null; then
16596 as_executable_p="test -f"
16598 # Sed expression to map a string onto a valid CPP name.
16599 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16601 # Sed expression to map a string onto a valid variable name.
16602 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16606 # We need space, tab and new line, in precisely that order.
16616 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16617 # report actual input values of CONFIG_FILES etc. instead of their
16618 # values after options handling. Logging --version etc. is OK.
16622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16623 ## Running $as_me. ##
16628 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16629 generated by GNU Autoconf 2.57. Invocation command line was
16631 CONFIG_FILES = $CONFIG_FILES
16632 CONFIG_HEADERS = $CONFIG_HEADERS
16633 CONFIG_LINKS = $CONFIG_LINKS
16634 CONFIG_COMMANDS = $CONFIG_COMMANDS
16638 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16642 # Files that config.status was made for.
16643 if test -n "$ac_config_files"; then
16644 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16647 if test -n "$ac_config_headers"; then
16648 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16651 if test -n "$ac_config_links"; then
16652 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16655 if test -n "$ac_config_commands"; then
16656 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16659 cat >>$CONFIG_STATUS <<\_ACEOF
16662 \`$as_me' instantiates files from templates according to the
16663 current configuration.
16665 Usage: $0 [OPTIONS] [FILE]...
16667 -h, --help print this help, then exit
16668 -V, --version print version number, then exit
16669 -q, --quiet do not print progress messages
16670 -d, --debug don't remove temporary files
16671 --recheck update $as_me by reconfiguring in the same conditions
16672 --file=FILE[:TEMPLATE]
16673 instantiate the configuration file FILE
16674 --header=FILE[:TEMPLATE]
16675 instantiate the configuration header FILE
16677 Configuration files:
16680 Configuration headers:
16683 Configuration commands:
16686 Report bugs to <bug-autoconf@gnu.org>."
16689 cat >>$CONFIG_STATUS <<_ACEOF
16691 TiMidity++ config.status 2.12.0-pre1b
16692 configured by $0, generated by GNU Autoconf 2.57,
16693 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16695 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16696 Free Software Foundation, Inc.
16697 This config.status script is free software; the Free Software Foundation
16698 gives unlimited permission to copy, distribute and modify it."
16703 cat >>$CONFIG_STATUS <<\_ACEOF
16704 # If no file are specified by the user, then we need to provide default
16705 # value. By we need to know if files were specified by the user.
16711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16720 *) # This is not an option, so the user has probably given explicit
16723 ac_need_defaults=false;;
16727 # Handling of the options.
16729 cat >>$CONFIG_STATUS <<\_ACEOF
16730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16732 --version | --vers* | -V )
16733 echo "$ac_cs_version"; exit 0 ;;
16735 # Conflict between --help and --header
16736 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16737 Try \`$0 --help' for more information." >&5
16738 echo "$as_me: error: ambiguous option: $1
16739 Try \`$0 --help' for more information." >&2;}
16740 { (exit 1); exit 1; }; };;
16741 --help | --hel | -h )
16742 echo "$ac_cs_usage"; exit 0 ;;
16743 --debug | --d* | -d )
16745 --file | --fil | --fi | --f )
16747 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16748 ac_need_defaults=false;;
16749 --header | --heade | --head | --hea )
16751 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16752 ac_need_defaults=false;;
16753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16757 # This is an error.
16758 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16759 Try \`$0 --help' for more information." >&5
16760 echo "$as_me: error: unrecognized option: $1
16761 Try \`$0 --help' for more information." >&2;}
16762 { (exit 1); exit 1; }; } ;;
16764 *) ac_config_targets="$ac_config_targets $1" ;;
16770 ac_configure_extra_args=
16772 if $ac_cs_silent; then
16774 ac_configure_extra_args="$ac_configure_extra_args --silent"
16778 cat >>$CONFIG_STATUS <<_ACEOF
16779 if \$ac_cs_recheck; then
16780 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16781 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16786 cat >>$CONFIG_STATUS <<_ACEOF
16788 # INIT-COMMANDS section.
16791 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16797 cat >>$CONFIG_STATUS <<\_ACEOF
16798 for ac_config_target in $ac_config_targets
16800 case "$ac_config_target" in
16801 # Handling of arguments.
16802 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16803 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
16804 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
16805 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
16806 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16807 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
16808 "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
16809 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
16810 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
16811 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
16812 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
16813 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
16814 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
16815 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
16816 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16817 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
16818 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16819 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16820 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
16821 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16822 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16823 { (exit 1); exit 1; }; };;
16827 # If the user did not use the arguments to specify the items to instantiate,
16828 # then the envvar interface is used. Set only those that are not.
16829 # We use the long form for the default assignment because of an extremely
16830 # bizarre bug on SunOS 4.1.3.
16831 if $ac_need_defaults; then
16832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16834 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16837 # Have a temporary directory for convenience. Make it in the build tree
16838 # simply because there is no reason to put it here, and in addition,
16839 # creating and moving files from /tmp can sometimes cause problems.
16840 # Create a temporary directory, and hook for its removal unless debugging.
16843 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16844 trap '{ (exit 1); exit 1; }' 1 2 13 15
16847 # Create a (secure) tmp directory for tmp files.
16850 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16851 test -n "$tmp" && test -d "$tmp"
16854 tmp=./confstat$$-$RANDOM
16855 (umask 077 && mkdir $tmp)
16858 echo "$me: cannot create a temporary directory in ." >&2
16859 { (exit 1); exit 1; }
16864 cat >>$CONFIG_STATUS <<_ACEOF
16867 # CONFIG_FILES section.
16870 # No need to generate the scripts if there are no CONFIG_FILES.
16871 # This happens for instance when ./config.status config.h
16872 if test -n "\$CONFIG_FILES"; then
16873 # Protect against being on the right side of a sed subst in config.status.
16874 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16875 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16876 s,@SHELL@,$SHELL,;t t
16877 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16878 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16879 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16880 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16881 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16882 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16883 s,@exec_prefix@,$exec_prefix,;t t
16884 s,@prefix@,$prefix,;t t
16885 s,@program_transform_name@,$program_transform_name,;t t
16886 s,@bindir@,$bindir,;t t
16887 s,@sbindir@,$sbindir,;t t
16888 s,@libexecdir@,$libexecdir,;t t
16889 s,@datadir@,$datadir,;t t
16890 s,@sysconfdir@,$sysconfdir,;t t
16891 s,@sharedstatedir@,$sharedstatedir,;t t
16892 s,@localstatedir@,$localstatedir,;t t
16893 s,@libdir@,$libdir,;t t
16894 s,@includedir@,$includedir,;t t
16895 s,@oldincludedir@,$oldincludedir,;t t
16896 s,@infodir@,$infodir,;t t
16897 s,@mandir@,$mandir,;t t
16898 s,@build_alias@,$build_alias,;t t
16899 s,@host_alias@,$host_alias,;t t
16900 s,@target_alias@,$target_alias,;t t
16901 s,@DEFS@,$DEFS,;t t
16902 s,@ECHO_C@,$ECHO_C,;t t
16903 s,@ECHO_N@,$ECHO_N,;t t
16904 s,@ECHO_T@,$ECHO_T,;t t
16905 s,@LIBS@,$LIBS,;t t
16906 s,@build@,$build,;t t
16907 s,@build_cpu@,$build_cpu,;t t
16908 s,@build_vendor@,$build_vendor,;t t
16909 s,@build_os@,$build_os,;t t
16910 s,@host@,$host,;t t
16911 s,@host_cpu@,$host_cpu,;t t
16912 s,@host_vendor@,$host_vendor,;t t
16913 s,@host_os@,$host_os,;t t
16914 s,@target@,$target,;t t
16915 s,@target_cpu@,$target_cpu,;t t
16916 s,@target_vendor@,$target_vendor,;t t
16917 s,@target_os@,$target_os,;t t
16918 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16919 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16920 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16921 s,@CYGPATH_W@,$CYGPATH_W,;t t
16922 s,@PACKAGE@,$PACKAGE,;t t
16923 s,@VERSION@,$VERSION,;t t
16924 s,@ACLOCAL@,$ACLOCAL,;t t
16925 s,@AUTOCONF@,$AUTOCONF,;t t
16926 s,@AUTOMAKE@,$AUTOMAKE,;t t
16927 s,@AUTOHEADER@,$AUTOHEADER,;t t
16928 s,@MAKEINFO@,$MAKEINFO,;t t
16929 s,@AMTAR@,$AMTAR,;t t
16930 s,@install_sh@,$install_sh,;t t
16931 s,@STRIP@,$STRIP,;t t
16932 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16933 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16935 s,@SET_MAKE@,$SET_MAKE,;t t
16936 s,@am__leading_dot@,$am__leading_dot,;t t
16937 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16938 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16939 s,@MAINT@,$MAINT,;t t
16940 s,@EMACS@,$EMACS,;t t
16941 s,@lispdir@,$lispdir,;t t
16943 s,@CFLAGS@,$CFLAGS,;t t
16944 s,@LDFLAGS@,$LDFLAGS,;t t
16945 s,@CPPFLAGS@,$CPPFLAGS,;t t
16946 s,@ac_ct_CC@,$ac_ct_CC,;t t
16947 s,@EXEEXT@,$EXEEXT,;t t
16948 s,@OBJEXT@,$OBJEXT,;t t
16949 s,@DEPDIR@,$DEPDIR,;t t
16950 s,@am__include@,$am__include,;t t
16951 s,@am__quote@,$am__quote,;t t
16952 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16953 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16954 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16955 s,@CCDEPMODE@,$CCDEPMODE,;t t
16956 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16957 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16959 s,@EGREP@,$EGREP,;t t
16960 s,@RANLIB@,$RANLIB,;t t
16961 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16962 s,@LN_S@,$LN_S,;t t
16963 s,@X_CFLAGS@,$X_CFLAGS,;t t
16964 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16965 s,@X_LIBS@,$X_LIBS,;t t
16966 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16967 s,@LIBOBJS@,$LIBOBJS,;t t
16968 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
16969 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
16970 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
16971 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
16972 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
16973 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
16974 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
16975 s,@ESD_LIBS@,$ESD_LIBS,;t t
16976 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
16977 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
16978 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
16979 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
16980 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
16981 s,@OGG_LIBS@,$OGG_LIBS,;t t
16982 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
16983 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
16984 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
16985 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
16986 s,@n_so_libs@,$n_so_libs,;t t
16987 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
16988 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
16989 s,@s_so_libs@,$s_so_libs,;t t
16990 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
16991 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
16992 s,@m_so_libs@,$m_so_libs,;t t
16993 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
16994 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
16995 s,@k_so_libs@,$k_so_libs,;t t
16996 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
16997 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
16998 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
16999 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17000 s,@e_so_libs@,$e_so_libs,;t t
17001 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17002 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17003 s,@T_so_libs@,$T_so_libs,;t t
17004 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17005 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17006 s,@a_so_libs@,$a_so_libs,;t t
17007 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17008 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17009 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17010 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17011 s,@i_so_libs@,$i_so_libs,;t t
17012 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17013 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17014 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17015 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17016 s,@GTK_LIBS@,$GTK_LIBS,;t t
17017 s,@g_so_libs@,$g_so_libs,;t t
17018 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17019 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17020 s,@r_so_libs@,$r_so_libs,;t t
17021 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17022 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17023 s,@A_so_libs@,$A_so_libs,;t t
17024 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17025 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17026 s,@W_so_libs@,$W_so_libs,;t t
17027 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17028 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17029 s,@w_so_libs@,$w_so_libs,;t t
17030 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17031 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17032 s,@p_so_libs@,$p_so_libs,;t t
17033 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17034 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17035 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17036 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17037 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17038 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17039 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17040 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17041 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17042 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17043 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17044 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17045 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17046 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17047 s,@EXTRALIBS@,$EXTRALIBS,;t t
17048 s,@NETSRCS@,$NETSRCS,;t t
17049 s,@ELFILES@,$ELFILES,;t t
17050 s,@SHLD@,$SHLD,;t t
17051 s,@SHCFLAGS@,$SHCFLAGS,;t t
17052 s,@dynamic_targets@,$dynamic_targets,;t t
17054 s,@WISH@,$WISH,;t t
17055 s,@tcltk_dep@,$tcltk_dep,;t t
17056 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17057 s,@pkgdatadir@,$pkgdatadir,;t t
17058 s,@pkglibdir@,$pkglibdir,;t t
17059 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17064 cat >>$CONFIG_STATUS <<\_ACEOF
17065 # Split the substitutions into bite-sized pieces for seds with
17066 # small command number limits, like on Digital OSF/1 and HP-UX.
17067 ac_max_sed_lines=48
17068 ac_sed_frag=1 # Number of current file.
17069 ac_beg=1 # First line for current file.
17070 ac_end=$ac_max_sed_lines # Line after last line for current file.
17073 while $ac_more_lines; do
17074 if test $ac_beg -gt 1; then
17075 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17077 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17079 if test ! -s $tmp/subs.frag; then
17080 ac_more_lines=false
17082 # The purpose of the label and of the branching condition is to
17083 # speed up the sed processing (if there are no `@' at all, there
17084 # is no need to browse any of the substitutions).
17085 # These are the two extra sed commands mentioned above.
17087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17088 if test -z "$ac_sed_cmds"; then
17089 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17091 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17093 ac_sed_frag=`expr $ac_sed_frag + 1`
17095 ac_end=`expr $ac_end + $ac_max_sed_lines`
17098 if test -z "$ac_sed_cmds"; then
17101 fi # test -n "$CONFIG_FILES"
17104 cat >>$CONFIG_STATUS <<\_ACEOF
17105 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17108 - | *:- | *:-:* ) # input from stdin
17110 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17112 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17114 * ) ac_file_in=$ac_file.in ;;
17117 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17118 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$ac_file" : 'X\(//\)[^/]' \| \
17121 X"$ac_file" : 'X\(//\)$' \| \
17122 X"$ac_file" : 'X\(/\)' \| \
17123 . : '\(.\)' 2>/dev/null ||
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17127 /^X\(\/\/\)$/{ s//\1/; q; }
17128 /^X\(\/\).*/{ s//\1/; q; }
17130 { if $as_mkdir_p; then
17135 while test ! -d "$as_dir"; do
17136 as_dirs="$as_dir $as_dirs"
17137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139 X"$as_dir" : 'X\(//\)[^/]' \| \
17140 X"$as_dir" : 'X\(//\)$' \| \
17141 X"$as_dir" : 'X\(/\)' \| \
17142 . : '\(.\)' 2>/dev/null ||
17144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17146 /^X\(\/\/\)$/{ s//\1/; q; }
17147 /^X\(\/\).*/{ s//\1/; q; }
17150 test ! -n "$as_dirs" || mkdir $as_dirs
17151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17152 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17153 { (exit 1); exit 1; }; }; }
17157 if test "$ac_dir" != .; then
17158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17159 # A "../" for each directory in $ac_dir_suffix.
17160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17162 ac_dir_suffix= ac_top_builddir=
17166 .) # No --srcdir option. We are building in place.
17168 if test -z "$ac_top_builddir"; then
17171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17173 [\\/]* | ?:[\\/]* ) # Absolute path.
17174 ac_srcdir=$srcdir$ac_dir_suffix;
17175 ac_top_srcdir=$srcdir ;;
17176 *) # Relative path.
17177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17180 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17182 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17183 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17184 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17185 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17190 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17193 if test x"$ac_file" != x-; then
17194 { echo "$as_me:$LINENO: creating $ac_file" >&5
17195 echo "$as_me: creating $ac_file" >&6;}
17198 # Let's still pretend it is `configure' which instantiates (i.e., don't
17199 # use $as_me), people would be surprised to read:
17200 # /* config.h. Generated by config.status. */
17201 if test x"$ac_file" = x-; then
17204 configure_input="$ac_file. "
17206 configure_input=$configure_input"Generated from `echo $ac_file_in |
17207 sed 's,.*/,,'` by configure."
17209 # First look for the input files in the build tree, otherwise in the
17211 ac_file_inputs=`IFS=:
17212 for f in $ac_file_in; do
17214 -) echo $tmp/stdin ;;
17216 # Absolute (can't be DOS-style, as IFS=:)
17217 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17218 echo "$as_me: error: cannot find input file: $f" >&2;}
17219 { (exit 1); exit 1; }; }
17222 if test -f "$f"; then
17225 elif test -f "$srcdir/$f"; then
17230 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17231 echo "$as_me: error: cannot find input file: $f" >&2;}
17232 { (exit 1); exit 1; }; }
17235 done` || { (exit 1); exit 1; }
17237 cat >>$CONFIG_STATUS <<_ACEOF
17241 cat >>$CONFIG_STATUS <<\_ACEOF
17243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17244 s,@configure_input@,$configure_input,;t t
17245 s,@srcdir@,$ac_srcdir,;t t
17246 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17247 s,@top_srcdir@,$ac_top_srcdir,;t t
17248 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17249 s,@builddir@,$ac_builddir,;t t
17250 s,@abs_builddir@,$ac_abs_builddir,;t t
17251 s,@top_builddir@,$ac_top_builddir,;t t
17252 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17253 s,@INSTALL@,$ac_INSTALL,;t t
17254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17256 if test x"$ac_file" != x-; then
17257 mv $tmp/out $ac_file
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17268 # CONFIG_HEADER section.
17271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17274 # ac_d sets the value in "#define NAME VALUE" lines.
17275 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17276 ac_dB='[ ].*$,\1#\2'
17279 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17280 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17281 ac_uB='$,\1#\2define\3'
17285 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17286 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17288 - | *:- | *:-:* ) # input from stdin
17290 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17292 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17294 * ) ac_file_in=$ac_file.in ;;
17297 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17298 echo "$as_me: creating $ac_file" >&6;}
17300 # First look for the input files in the build tree, otherwise in the
17302 ac_file_inputs=`IFS=:
17303 for f in $ac_file_in; do
17305 -) echo $tmp/stdin ;;
17307 # Absolute (can't be DOS-style, as IFS=:)
17308 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17309 echo "$as_me: error: cannot find input file: $f" >&2;}
17310 { (exit 1); exit 1; }; }
17313 if test -f "$f"; then
17316 elif test -f "$srcdir/$f"; then
17321 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17322 echo "$as_me: error: cannot find input file: $f" >&2;}
17323 { (exit 1); exit 1; }; }
17326 done` || { (exit 1); exit 1; }
17327 # Remove the trailing spaces.
17328 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17332 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17333 # `conftest.undefs', that substitutes the proper values into
17334 # config.h.in to produce config.h. The first handles `#define'
17335 # templates, and the second `#undef' templates.
17336 # And first: Protect against being on the right side of a sed subst in
17337 # config.status. Protect against being in an unquoted here document
17338 # in config.status.
17339 rm -f conftest.defines conftest.undefs
17340 # Using a here document instead of a string reduces the quoting nightmare.
17341 # Putting comments in sed scripts is not portable.
17343 # `end' is used to avoid that the second main sed command (meant for
17344 # 0-ary CPP macros) applies to n-ary macro definitions.
17345 # See the Autoconf documentation for `clear'.
17346 cat >confdef2sed.sed <<\_ACEOF
17351 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17353 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17356 # If some macros were called several times there might be several times
17357 # the same #defines, which is useless. Nevertheless, we may not want to
17358 # sort them, since we want the *last* AC-DEFINE to be honored.
17359 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17360 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17361 rm -f confdef2sed.sed
17363 # This sed command replaces #undef with comments. This is necessary, for
17364 # example, in the case of _POSIX_SOURCE, which is predefined and required
17365 # on some systems where configure will not decide to define it.
17366 cat >>conftest.undefs <<\_ACEOF
17367 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17370 # Break up conftest.defines because some shells have a limit on the size
17371 # of here documents, and old seds have small limits too (100 cmds).
17372 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17373 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17374 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17375 echo ' :' >>$CONFIG_STATUS
17376 rm -f conftest.tail
17377 while grep . conftest.defines >/dev/null
17379 # Write a limited-size here document to $tmp/defines.sed.
17380 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17381 # Speed up: don't consider the non `#define' lines.
17382 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17383 # Work around the forget-to-reset-the-flag bug.
17384 echo 't clr' >>$CONFIG_STATUS
17385 echo ': clr' >>$CONFIG_STATUS
17386 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17388 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17390 mv $tmp/out $tmp/in
17392 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17393 rm -f conftest.defines
17394 mv conftest.tail conftest.defines
17396 rm -f conftest.defines
17397 echo ' fi # grep' >>$CONFIG_STATUS
17398 echo >>$CONFIG_STATUS
17400 # Break up conftest.undefs because some shells have a limit on the size
17401 # of here documents, and old seds have small limits too (100 cmds).
17402 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17403 rm -f conftest.tail
17404 while grep . conftest.undefs >/dev/null
17406 # Write a limited-size here document to $tmp/undefs.sed.
17407 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17408 # Speed up: don't consider the non `#undef'
17409 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17410 # Work around the forget-to-reset-the-flag bug.
17411 echo 't clr' >>$CONFIG_STATUS
17412 echo ': clr' >>$CONFIG_STATUS
17413 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17415 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17417 mv $tmp/out $tmp/in
17419 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17420 rm -f conftest.undefs
17421 mv conftest.tail conftest.undefs
17423 rm -f conftest.undefs
17425 cat >>$CONFIG_STATUS <<\_ACEOF
17426 # Let's still pretend it is `configure' which instantiates (i.e., don't
17427 # use $as_me), people would be surprised to read:
17428 # /* config.h. Generated by config.status. */
17429 if test x"$ac_file" = x-; then
17430 echo "/* Generated by configure. */" >$tmp/config.h
17432 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17434 cat $tmp/in >>$tmp/config.h
17436 if test x"$ac_file" != x-; then
17437 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17438 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17439 echo "$as_me: $ac_file is unchanged" >&6;}
17441 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443 X"$ac_file" : 'X\(//\)[^/]' \| \
17444 X"$ac_file" : 'X\(//\)$' \| \
17445 X"$ac_file" : 'X\(/\)' \| \
17446 . : '\(.\)' 2>/dev/null ||
17448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17450 /^X\(\/\/\)$/{ s//\1/; q; }
17451 /^X\(\/\).*/{ s//\1/; q; }
17453 { if $as_mkdir_p; then
17458 while test ! -d "$as_dir"; do
17459 as_dirs="$as_dir $as_dirs"
17460 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17462 X"$as_dir" : 'X\(//\)[^/]' \| \
17463 X"$as_dir" : 'X\(//\)$' \| \
17464 X"$as_dir" : 'X\(/\)' \| \
17465 . : '\(.\)' 2>/dev/null ||
17467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17469 /^X\(\/\/\)$/{ s//\1/; q; }
17470 /^X\(\/\).*/{ s//\1/; q; }
17473 test ! -n "$as_dirs" || mkdir $as_dirs
17474 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17475 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17476 { (exit 1); exit 1; }; }; }
17479 mv $tmp/config.h $ac_file
17483 rm -f $tmp/config.h
17485 # Compute $ac_file's index in $config_headers.
17487 for _am_header in $config_headers :; do
17488 case $_am_header in
17489 $ac_file | $ac_file:* )
17492 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17495 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17496 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17497 X$ac_file : 'X\(//\)[^/]' \| \
17498 X$ac_file : 'X\(//\)$' \| \
17499 X$ac_file : 'X\(/\)' \| \
17500 . : '\(.\)' 2>/dev/null ||
17502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17504 /^X\(\/\/\)$/{ s//\1/; q; }
17505 /^X\(\/\).*/{ s//\1/; q; }
17506 s/.*/./; q'`/stamp-h$_am_stamp_count
17509 cat >>$CONFIG_STATUS <<\_ACEOF
17512 # CONFIG_COMMANDS section.
17514 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17515 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17516 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17517 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17518 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17519 X"$ac_dest" : 'X\(//\)[^/]' \| \
17520 X"$ac_dest" : 'X\(//\)$' \| \
17521 X"$ac_dest" : 'X\(/\)' \| \
17522 . : '\(.\)' 2>/dev/null ||
17524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17526 /^X\(\/\/\)$/{ s//\1/; q; }
17527 /^X\(\/\).*/{ s//\1/; q; }
17531 if test "$ac_dir" != .; then
17532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17533 # A "../" for each directory in $ac_dir_suffix.
17534 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17536 ac_dir_suffix= ac_top_builddir=
17540 .) # No --srcdir option. We are building in place.
17542 if test -z "$ac_top_builddir"; then
17545 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17547 [\\/]* | ?:[\\/]* ) # Absolute path.
17548 ac_srcdir=$srcdir$ac_dir_suffix;
17549 ac_top_srcdir=$srcdir ;;
17550 *) # Relative path.
17551 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17552 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17554 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17556 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17557 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17558 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17559 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17562 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17563 echo "$as_me: executing $ac_dest commands" >&6;}
17565 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17566 # Strip MF so we end up with the name of the file.
17567 mf=`echo "$mf" | sed -e 's/:.*$//'`
17568 # Check whether this is an Automake generated Makefile or not.
17569 # We used to match only the files named `Makefile.in', but
17570 # some people rename them; so instead we look at the file content.
17571 # Grep'ing the first line is not enough: some people post-process
17572 # each Makefile.in and add a new line on top of each file to say so.
17573 # So let's grep whole file.
17574 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17575 dirpart=`(dirname "$mf") 2>/dev/null ||
17576 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577 X"$mf" : 'X\(//\)[^/]' \| \
17578 X"$mf" : 'X\(//\)$' \| \
17579 X"$mf" : 'X\(/\)' \| \
17580 . : '\(.\)' 2>/dev/null ||
17582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17584 /^X\(\/\/\)$/{ s//\1/; q; }
17585 /^X\(\/\).*/{ s//\1/; q; }
17590 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17591 # Extract the definition of DEP_FILES from the Makefile without
17593 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17594 test -z "$DEPDIR" && continue
17595 # When using ansi2knr, U may be empty or an underscore; expand it
17596 U=`sed -n -e '/^U = / s///p' < "$mf"`
17597 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17598 # We invoke sed twice because it is the simplest approach to
17599 # changing $(DEPDIR) to its actual value in the expansion.
17600 for file in `sed -n -e '
17601 /^DEP_FILES = .*\\\\$/ {
17610 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17611 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17612 # Make sure the directory exists.
17613 test -f "$dirpart/$file" && continue
17614 fdir=`(dirname "$file") 2>/dev/null ||
17615 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$file" : 'X\(//\)[^/]' \| \
17617 X"$file" : 'X\(//\)$' \| \
17618 X"$file" : 'X\(/\)' \| \
17619 . : '\(.\)' 2>/dev/null ||
17621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17623 /^X\(\/\/\)$/{ s//\1/; q; }
17624 /^X\(\/\).*/{ s//\1/; q; }
17626 { if $as_mkdir_p; then
17627 mkdir -p $dirpart/$fdir
17629 as_dir=$dirpart/$fdir
17631 while test ! -d "$as_dir"; do
17632 as_dirs="$as_dir $as_dirs"
17633 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$as_dir" : 'X\(//\)[^/]' \| \
17636 X"$as_dir" : 'X\(//\)$' \| \
17637 X"$as_dir" : 'X\(/\)' \| \
17638 . : '\(.\)' 2>/dev/null ||
17640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17642 /^X\(\/\/\)$/{ s//\1/; q; }
17643 /^X\(\/\).*/{ s//\1/; q; }
17646 test ! -n "$as_dirs" || mkdir $as_dirs
17647 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17648 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17649 { (exit 1); exit 1; }; }; }
17651 # echo "creating $dirpart/$file"
17652 echo '# dummy' > "$dirpart/$file"
17660 cat >>$CONFIG_STATUS <<\_ACEOF
17662 { (exit 0); exit 0; }
17664 chmod +x $CONFIG_STATUS
17665 ac_clean_files=$ac_clean_files_save
17668 # configure is writing to config.log, and then calls config.status.
17669 # config.status does its own redirection, appending to config.log.
17670 # Unfortunately, on DOS this fails, as config.log is still kept open
17671 # by configure, so config.status won't be able to write to it; its
17672 # output is simply discarded. So we exec the FD to /dev/null,
17673 # effectively closing config.log, so it can be properly (re)opened and
17674 # appended to by config.status. When coming back to configure, we
17675 # need to make the FD available again.
17676 if test "$no_create" != yes; then
17678 ac_config_status_args=
17679 test "$silent" = yes &&
17680 ac_config_status_args="$ac_config_status_args --quiet"
17682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17685 # would make configure fail if this is the last instruction.
17686 $ac_cs_success || { (exit 1); exit 1; }