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 NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
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
883 gogo: MP3 GOGO (Only Windows is supported)
884 --disable-alsatest Do not try to compile and run a test Alsa program
885 --disable-artstest Do not try to compile and run a test ARTS program
886 --disable-esdtest Do not try to compile and run a test ESD program
887 --disable-oggtest Do not try to compile and run a test Ogg program
888 --disable-vorbistest Do not try to compile and run a test Vorbis program
889 --enable-interface=interface_list
890 Comma separated interface list
891 --enable-dynamic Enable dynamic link interface (default is no)
892 --enable-dynamic=dynamic_list
893 Comma separated dynamic interface list
894 --enable-ncurses Enable ncurses interface (default is no)
895 --enable-slang Enable slang interface (default is no)
896 --enable-motif Enable motif interface (default is no)
897 --enable-tcltk Enable tcltk interface (default is no)
898 --enable-emacs Enable emacs interface (default is no)
899 --enable-vt100 Enable VT100 interface (default is no)
900 --enable-xaw Enable athena interface (default is no)
901 --enable-xskin Enable X skin interface (default is no)
902 --enable-gtk Enable GTK+ interface (default is no)
903 --disable-gtktest Do not try to compile and run a test GTK program
904 --enable-server Enable server interface (default is no)
905 --enable-alsaseq Enable ALSA sequencer server interface
907 --enable-winsyn Enable Windows Synthesizer interface
909 --enable-portmidisyn Enable PortMIDI Synthesizer interface
911 --enable-winsyng Enable Windows GUI Synthesizer interface
913 --enable-w32gui Enable Windows GUI interface (default is no)
914 --enable-ump UMP configuration (default is no)
915 --enable-offix Enable offix support (default is no)
916 --enable-network Enable network support (default is no)
917 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
918 --enable-spline=method Specify spline method.
919 one of no,linear,cubic,lagrange,newton,gauss
921 --enable-wrd Enable WRD interface for X (default is no)
924 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
925 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
926 --with-includes=DIR Specify include directories (colon separated)
927 --with-libraries=DIR Specify library directories (colon separated)
928 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
929 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
930 --with-lispdir Override the default lisp directory
931 --with-elf create ELF shared object instead of AOUT
932 --with-simd create SIMD friendly binary (default is no)
933 --with-x use the X Window System
934 --with-tcl-includes=DIR Tcl include file path
935 --with-tcl-libs=DIR Tcl library file path
936 --with-tk-includes=DIR Tk include file path
937 --with-tk-libs=DIR Tk library file path
938 --with-offix-includes=DIR Offix include file path
939 --with-offix-libs=DIR Offix include file path
940 --with-nas-library=library NAS absolute library path(Don't use -laudio)
941 --with-nas-includes=DIR NAS include files are in dir
942 --with-default-output=<mode> Specify default output mode (optional):
943 (default|alsa|alib|arts|nas|
944 esd|wav|au|aiff|list|vorbis|
946 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
947 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
948 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
949 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
950 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
951 --with-ogg=PFX Prefix where libogg is installed (optional)
952 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
953 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
954 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
955 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
956 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
957 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
958 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
960 Some influential environment variables:
961 CC C compiler command
962 CFLAGS C compiler flags
963 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
964 nonstandard directory <lib dir>
965 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
966 headers in a nonstandard directory <include dir>
969 Use these variables to override the choices made by `configure' or to help
970 it to find libraries and programs with nonstandard names/locations.
972 Report bugs to <root@mput.dip.jp>.
976 if test "$ac_init_help" = "recursive"; then
977 # If there are subdirs, report their specific --help.
979 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
980 test -d $ac_dir || continue
983 if test "$ac_dir" != .; then
984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
985 # A "../" for each directory in $ac_dir_suffix.
986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
988 ac_dir_suffix= ac_top_builddir=
992 .) # No --srcdir option. We are building in place.
994 if test -z "$ac_top_builddir"; then
997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
999 [\\/]* | ?:[\\/]* ) # Absolute path.
1000 ac_srcdir=$srcdir$ac_dir_suffix;
1001 ac_top_srcdir=$srcdir ;;
1003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1006 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1008 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1009 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1010 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1011 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1014 # Check for guested configure; otherwise get Cygnus style configure.
1015 if test -f $ac_srcdir/configure.gnu; then
1017 $SHELL $ac_srcdir/configure.gnu --help=recursive
1018 elif test -f $ac_srcdir/configure; then
1020 $SHELL $ac_srcdir/configure --help=recursive
1021 elif test -f $ac_srcdir/configure.ac ||
1022 test -f $ac_srcdir/configure.in; then
1024 $ac_configure --help
1026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1035 TiMidity++ configure 2.12.0-pre1b
1036 generated by GNU Autoconf 2.57
1038 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1039 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1050 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1051 generated by GNU Autoconf 2.57. Invocation command line was
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1071 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1072 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1075 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1076 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1077 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1085 test -z "$as_dir" && as_dir=.
1086 echo "PATH: $as_dir"
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_must_keep_next=false
1116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1120 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127 if test $ac_must_keep_next = true; then
1128 ac_must_keep_next=false # Got value, back to normal.
1131 *=* | --config-cache | -C | -disable-* | --disable-* \
1132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134 | -with-* | --with-* | -without-* | --without-* | --x)
1135 case "$ac_configure_args0 " in
1136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139 -* ) ac_must_keep_next=true ;;
1142 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143 # Get rid of the leading space.
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log. We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158 # Save into config.log some information that might help in debugging.
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1168 # The following way of writing the cache mishandles newlines in values,
1171 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1191 for ac_var in $ac_subst_vars
1193 eval ac_val=$`echo $ac_var`
1194 echo "$ac_var='"'"'$ac_val'"'"'"
1198 if test -n "$ac_subst_files"; then
1205 for ac_var in $ac_subst_files
1207 eval ac_val=$`echo $ac_var`
1208 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -s confdefs.h; then
1220 sed "/^$/d" confdefs.h | sort
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1227 rm -f core core.* *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 # Predefined preprocessor variables.
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1303 # Check that the precious variables saved in the cache have kept the same
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387 for ac_dir in autoconf $srcdir/autoconf; do
1388 if test -f $ac_dir/install-sh; then
1390 ac_install_sh="$ac_aux_dir/install-sh -c"
1392 elif test -f $ac_dir/install.sh; then
1394 ac_install_sh="$ac_aux_dir/install.sh -c"
1396 elif test -f $ac_dir/shtool; then
1398 ac_install_sh="$ac_aux_dir/shtool install -c"
1402 if test -z "$ac_aux_dir"; then
1403 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1405 { (exit 1); exit 1; }; }
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411 # Make sure we can run config.sub.
1412 $ac_config_sub sun4 >/dev/null 2>&1 ||
1413 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1414 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1415 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: checking build system type" >&5
1418 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1419 if test "${ac_cv_build+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_build_alias=$build_alias
1423 test -z "$ac_cv_build_alias" &&
1424 ac_cv_build_alias=`$ac_config_guess`
1425 test -z "$ac_cv_build_alias" &&
1426 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1428 { (exit 1); exit 1; }; }
1429 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1431 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1432 { (exit 1); exit 1; }; }
1435 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1436 echo "${ECHO_T}$ac_cv_build" >&6
1438 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 echo "$as_me:$LINENO: checking host system type" >&5
1444 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1445 if test "${ac_cv_host+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 ac_cv_host_alias=$host_alias
1449 test -z "$ac_cv_host_alias" &&
1450 ac_cv_host_alias=$ac_cv_build_alias
1451 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1458 echo "${ECHO_T}$ac_cv_host" >&6
1460 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 echo "$as_me:$LINENO: checking target system type" >&5
1466 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1467 if test "${ac_cv_target+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 ac_cv_target_alias=$target_alias
1471 test "x$ac_cv_target_alias" = "x" &&
1472 ac_cv_target_alias=$ac_cv_host_alias
1473 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1479 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1480 echo "${ECHO_T}$ac_cv_target" >&6
1481 target=$ac_cv_target
1482 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487 # The aliases save the names the user supplied, while $host etc.
1488 # will get canonicalized.
1489 test -n "$target_alias" &&
1490 test "$program_prefix$program_suffix$program_transform_name" = \
1492 program_prefix=${target_alias}-
1493 am__api_version="1.7"
1494 # Find a good install program. We prefer a C program (faster),
1495 # so one script is as good as another. But avoid the broken or
1496 # incompatible versions:
1497 # SysV /etc/install, /usr/sbin/install
1498 # SunOS /usr/etc/install
1499 # IRIX /sbin/install
1501 # AmigaOS /C/install, which installs bootblocks on floppy discs
1502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1505 # ./install, which can be erroneously created by make from ./install.sh.
1506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1508 if test -z "$INSTALL"; then
1509 if test "${ac_cv_path_install+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 # Account for people who put trailing slashes in PATH elements.
1519 ./ | .// | /cC/* | \
1520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1526 for ac_prog in ginstall scoinst install; do
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529 if test $ac_prog = install &&
1530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # AIX install. It has an incompatible calling convention.
1533 elif test $ac_prog = install &&
1534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # program-specific install script used by HP pwplus--don't use.
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL=$ac_cv_path_install
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL=$ac_install_sh
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments. Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583 if test "$*" = "X"; then
1585 set X `ls -t $srcdir/configure conftest.file`
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
1591 # If neither matched, then we have a broken ls. This can happen
1592 # if, for instance, CONFIG_SHELL is bash and it inherits a
1593 # broken ls alias from the environment. This has actually
1594 # happened. Such a system could not be considered "sane".
1595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598 alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1602 test "$2" = conftest.file
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $. echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 # expand $ac_aux_dir to an absolute path
1631 am_aux_dir=`cd $ac_aux_dir && pwd`
1633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1634 # Use eval to expand $SHELL
1635 if eval "$MISSING --run true"; then
1636 am_missing_run="$MISSING --run "
1639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1643 for ac_prog in gawk mawk nawk awk
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_AWK+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$AWK"; then
1653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_AWK="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 if test -n "$AWK"; then
1673 echo "$as_me:$LINENO: result: $AWK" >&5
1674 echo "${ECHO_T}$AWK" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 test -n "$AWK" && break
1683 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1684 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1686 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.make <<\_ACEOF
1691 @echo 'ac_maketemp="$(MAKE)"'
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1695 if test -n "$ac_maketemp"; then
1696 eval ac_cv_prog_make_${ac_make}_set=yes
1698 eval ac_cv_prog_make_${ac_make}_set=no
1702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 SET_MAKE="MAKE=${MAKE-make}"
1712 rm -rf .tst 2>/dev/null
1713 mkdir .tst 2>/dev/null
1714 if test -d .tst; then
1719 rmdir .tst 2>/dev/null
1721 # test to see if srcdir already configured
1722 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1723 test -f $srcdir/config.status; then
1724 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1725 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1726 { (exit 1); exit 1; }; }
1729 # test whether we have cygpath
1730 if test -z "$CYGPATH_W"; then
1731 if (cygpath --version) >/dev/null 2>/dev/null; then
1732 CYGPATH_W='cygpath -w'
1739 # Define the identity of the package.
1740 PACKAGE='TiMidity++'
1741 VERSION='2.12.0-pre1b'
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE "$PACKAGE"
1749 cat >>confdefs.h <<_ACEOF
1750 #define VERSION "$VERSION"
1753 # Some tools Automake needs.
1755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1770 AMTAR=${AMTAR-"${am_missing_run}tar"}
1772 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1774 # Installed binaries are usually stripped using `strip' when the user
1775 # run `make install-strip'. However `strip' might not be the right
1776 # tool to use in cross-compilation environments, therefore Automake
1777 # will honor the `STRIP' environment variable to overrule this program.
1778 if test "$cross_compiling" != no; then
1779 if test -n "$ac_tool_prefix"; then
1780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}strip; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_STRIP+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 if test -n "$STRIP"; then
1788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 STRIP=$ac_cv_prog_STRIP
1807 if test -n "$STRIP"; then
1808 echo "$as_me:$LINENO: result: $STRIP" >&5
1809 echo "${ECHO_T}$STRIP" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1816 if test -z "$ac_cv_prog_STRIP"; then
1818 # Extract the first word of "strip", so it can be a program name with args.
1819 set dummy strip; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$ac_ct_STRIP"; then
1826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_ac_ct_STRIP="strip"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1846 if test -n "$ac_ct_STRIP"; then
1847 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1848 echo "${ECHO_T}$ac_ct_STRIP" >&6
1850 echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1856 STRIP="$ac_cv_prog_STRIP"
1860 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1862 # We need awk for the "check" target. The system "awk" is bad on
1868 ac_config_headers="$ac_config_headers config.h interface.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE=$enableval
1877 USE_MAINTAINER_MODE=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE=
1885 MAINTAINER_MODE_FALSE='#'
1887 MAINTAINER_MODE_TRUE='#'
1888 MAINTAINER_MODE_FALSE=
1891 MAINT=$MAINTAINER_MODE_TRUE
1895 SHELL=${CONFIG_SHELL-"/bin/sh"}
1898 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1899 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1900 echo "grimblepritz" >grimble
1901 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1902 contains="./contains"
1903 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1906 contains="./contains"
1910 grep) echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1914 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1915 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1916 cat >./contains <<'EOSS'
1917 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1919 chmod +x "./contains"
1924 # Check for compiler options -- such as debug flags.
1926 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1927 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1928 # Check whether --enable-debug or --disable-debug was given.
1929 if test "${enable_debug+set}" = set; then
1930 enableval="$enable_debug"
1931 timidity_cv_debug="yes"
1933 timidity_cv_debug="no"
1935 if test "x$timidity_cv_debug" = "xyes"; then
1937 cat >>confdefs.h <<\_ACEOF
1941 CFLAGS=${CFLAGS-"-g"}
1943 if test "x$timidity_cv_debug" = "xno"; then
1945 cat >>confdefs.h <<\_ACEOF
1950 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1951 echo "${ECHO_T}$timidity_cv_debug" >&6
1953 CFLAGS=${CFLAGS-"-O2"}
1955 if test "x$with_x" = x; then
1961 # Checking gcc environment
1962 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1963 LDFLAGS="$LDFLAGS -L${i}"
1965 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1966 CPPFLAGS="$CPPFLAGS -I${i}"
1969 # add $prefix if specified.
1970 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1971 LDFLAGS="-L$prefix/lib $LDFLAGS"
1972 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1973 CPPFLAGS="-I$prefix/include $CPPFLAGS"
1977 # Check whether --with-includes or --without-includes was given.
1978 if test "${with_includes+set}" = set; then
1979 withval="$with_includes"
1981 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1984 CPPFLAGS="$j$CPPFLAGS"
1989 # Check whether --with-libraries or --without-libraries was given.
1990 if test "${with_libraries+set}" = set; then
1991 withval="$with_libraries"
1993 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1996 LDFLAGS="$j$LDFLAGS"
2002 # Check whether --with-default-path or --without-default-path was given.
2003 if test "${with_default_path+set}" = set; then
2004 withval="$with_default_path"
2008 if test "x$prefix" != "xNONE"; then
2009 pkgdatadir='${prefix}/share/timidity'
2011 pkgdatadir='/usr/local/share/timidity'
2015 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2017 cat >>confdefs.h <<_ACEOF
2018 #define DEFAULT_PATH "$tmpdefpath"
2022 cat >>confdefs.h <<\_ACEOF
2023 #define PKGDATADIR DEFAULT_PATH
2028 # Check whether --with-module-dir or --without-module-dir was given.
2029 if test "${with_module_dir+set}" = set; then
2030 withval="$with_module_dir"
2034 if test "x$prefix" != "xNONE"; then
2035 pkglibdir='${prefix}/lib/timidity'
2037 pkglibdir='/usr/local/lib/timidity'
2041 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PKGLIBDIR "$tmplibdir"
2049 # Checks for programs.
2051 # Check whether --with-lispdir or --without-lispdir was given.
2052 if test "${with_lispdir+set}" = set; then
2053 withval="$with_lispdir"
2055 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2056 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2057 echo "$as_me:$LINENO: result: $lispdir" >&5
2058 echo "${ECHO_T}$lispdir" >&6
2061 # If set to t, that means we are running in a shell under Emacs.
2062 # If you have an Emacs named "t", then use the full path.
2063 test x"$EMACS" = xt && EMACS=
2064 for ac_prog in emacs xemacs
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_EMACS+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$EMACS"; then
2074 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_EMACS="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 EMACS=$ac_cv_prog_EMACS
2093 if test -n "$EMACS"; then
2094 echo "$as_me:$LINENO: result: $EMACS" >&5
2095 echo "${ECHO_T}$EMACS" >&6
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$EMACS" && break
2103 test -n "$EMACS" || EMACS="no"
2105 if test $EMACS != "no"; then
2106 if test x${lispdir+set} != xset; then
2107 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2108 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2109 if test "${am_cv_lispdir+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2113 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2114 # which is non-obvious for non-emacs users.
2115 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2116 # emacsen earlier and avoid running this altogether.
2117 { (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
2118 ($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
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 am_cv_lispdir=`sed -n \
2124 -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2125 -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2128 if test -z "$am_cv_lispdir"; then
2129 am_cv_lispdir='${datadir}/emacs/site-lisp'
2133 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2134 echo "${ECHO_T}$am_cv_lispdir" >&6
2135 lispdir="$am_cv_lispdir"
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$CC"; then
2176 echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_CC="${ac_tool_prefix}cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2264 if test -z "$ac_cv_prog_CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$ac_ct_CC"; then
2274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_ac_ct_CC="cc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2307 if test -z "$CC"; then
2308 # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327 ac_prog_rejected=yes
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 if test $ac_prog_rejected = yes; then
2338 # We found a bogon in the path, so make sure we never use it.
2339 set dummy $ac_cv_prog_CC
2341 if test $# != 0; then
2342 # We chose a different compiler from the bogus one.
2343 # However, it has the same basename, so the bogon will be chosen
2344 # first if we set CC to just the basename; use the full file name.
2346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2352 if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$CC" && break
2403 if test -z "$CC"; then
2407 # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy $ac_prog; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_CC"; then
2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_ac_ct_CC="$ac_prog"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6
2438 echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2442 test -n "$ac_ct_CC" && break
2451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459 "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462 (eval $ac_compiler --version </dev/null >&5) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467 (eval $ac_compiler -v </dev/null >&5) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472 (eval $ac_compiler -V </dev/null >&5) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2498 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2499 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2502 (eval $ac_link_default) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 # Find the output, starting from the most likely. This scheme is
2507 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2510 # Be careful to initialize this variable, since it used to be cached.
2511 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2513 # b.out is created by i960 compilers.
2514 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2516 test -f "$ac_file" || continue
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2521 # This is the source file.
2524 # We found the default executable, but exeext='' is most
2528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529 # FIXME: I believe we export ac_cv_exeext for Libtool,
2530 # but it would be cool to find out if it's true. Does anybody
2531 # maintain Libtool? --akim.
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546 { (exit 77); exit 77; }; }
2549 ac_exeext=$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_file" >&5
2551 echo "${ECHO_T}$ac_file" >&6
2553 # Check the compiler produces executables we can run. If not, either
2554 # the compiler is broken, or we cross compile.
2555 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2556 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2557 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2558 # If not cross compiling, check that we can run a simple program.
2559 if test "$cross_compiling" != yes; then
2560 if { ac_try='./$ac_file'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 if test "$cross_compiling" = maybe; then
2571 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&2;}
2577 { (exit 1); exit 1; }; }
2581 echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6
2584 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2585 ac_clean_files=$ac_clean_files_save
2586 # Check the compiler produces executables we can run. If not, either
2587 # the compiler is broken, or we cross compile.
2588 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2590 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2591 echo "${ECHO_T}$cross_compiling" >&6
2593 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2594 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596 (eval $ac_link) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2604 for ac_file in conftest.exe conftest conftest.*; do
2605 test -f "$ac_file" || continue
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2622 rm -f conftest$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2624 echo "${ECHO_T}$ac_cv_exeext" >&6
2626 rm -f conftest.$ac_ext
2627 EXEEXT=$ac_cv_exeext
2629 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2631 if test "${ac_cv_objext+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2650 rm -f conftest.o conftest.obj
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.$ac_objext conftest.$ac_ext
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2777 if test "$ac_test_CFLAGS" = set; then
2778 CFLAGS=$ac_save_CFLAGS
2779 elif test $ac_cv_prog_cc_g = yes; then
2780 if test "$GCC" = yes; then
2786 if test "$GCC" = yes; then
2792 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2793 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2794 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 ac_cv_prog_cc_stdc=no
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2811 struct buf { int x; };
2812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813 static char *e (p, i)
2819 static char *f (char * (*g) (char **, int), char **p, ...)
2824 s = g (p, va_arg (v,int));
2828 int test (int i, double x);
2829 struct s1 {int (*f) (int a);};
2830 struct s2 {int (*f) (double a);};
2831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2842 # Don't try gcc -ansi; that turns off useful extensions and
2843 # breaks some systems' header files.
2844 # AIX -qlanglvl=ansi
2845 # Ultrix and OSF/1 -std1
2846 # HP-UX 10.20 and later -Ae
2847 # HP-UX older versions -Aa -D_HPUX_SOURCE
2848 # SVR4 -Xc -D__EXTENSIONS__
2849 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2851 CC="$ac_save_CC $ac_arg"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cc_stdc=$ac_arg
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.$ac_objext
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2878 case "x$ac_cv_prog_cc_stdc" in
2880 echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2883 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885 CC="$CC $ac_cv_prog_cc_stdc" ;;
2888 # Some people use a C++ compiler to compile C. Since we use `exit',
2889 # in C++ we need to declare it. In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 for ac_declaration in \
2911 '#include <stdlib.h>' \
2912 'extern "C" void std::exit (int) throw (); using std::exit;' \
2913 'extern "C" void std::exit (int); using std::exit;' \
2914 'extern "C" void exit (int) throw ();' \
2915 'extern "C" void exit (int);' \
2918 cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f conftest.$ac_objext conftest.$ac_ext
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2992 if test -n "$ac_declaration"; then
2993 echo '#ifdef __cplusplus' >>confdefs.h
2994 echo $ac_declaration >>confdefs.h
2995 echo '#endif' >>confdefs.h
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.$ac_objext conftest.$ac_ext
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 DEPDIR="${am__leading_dot}deps"
3011 ac_config_commands="$ac_config_commands depfiles"
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3020 # If we don't find an include directive, just comment out the code.
3021 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3022 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # We grep out `Entering directory' and `Leaving directory'
3029 # messages which can occur if `w' ends up in MAKEFLAGS.
3030 # In particular we don't look at `^make:' because GNU make might
3031 # be invoked under some other name (usually "gmake"), in which
3032 # case it prints its new name instead of `make'.
3033 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3038 # Now try BSD make style include.
3039 if test "$am__include" = "#"; then
3040 echo '.include "confinc"' > confmf
3041 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3042 am__include=.include
3049 echo "$as_me:$LINENO: result: $_am_result" >&5
3050 echo "${ECHO_T}$_am_result" >&6
3051 rm -f confinc confmf
3053 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then
3055 enableval="$enable_dependency_tracking"
3058 if test "x$enable_dependency_tracking" != xno; then
3059 am_depcomp="$ac_aux_dir/depcomp"
3064 if test "x$enable_dependency_tracking" != xno; then
3075 depcc="$CC" am_compiler_list=
3077 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3079 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3083 # We make a subdir and do the tests there. Otherwise we can end up
3084 # making bogus files that we don't know about and never remove. For
3085 # instance it was reported that on HP-UX the gcc test will end up
3086 # making a dummy file named `D' -- because `-MD' means `put the output
3089 # Copy depcomp to subdir because otherwise we won't find it if we're
3090 # using a relative directory.
3091 cp "$am_depcomp" conftest.dir
3094 am_cv_CC_dependencies_compiler_type=none
3095 if test "$am_compiler_list" = ""; then
3096 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3098 for depmode in $am_compiler_list; do
3099 # We need to recreate these files for each test, as the compiler may
3100 # overwrite some of them when testing with obscure command lines.
3101 # This happens at least with the AIX C compiler.
3102 echo '#include "conftest.h"' > conftest.c
3103 echo 'int i;' > conftest.h
3104 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3108 # after this tag, mechanisms are not by side-effect, so they'll
3109 # only be used when explicitly requested
3110 if test "x$enable_dependency_tracking" = xyes; then
3118 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3119 # mode. It turns out that the SunPro C++ compiler does not properly
3120 # handle `-M -o', and we need to detect this.
3121 if depmode=$depmode \
3122 source=conftest.c object=conftest.o \
3123 depfile=conftest.Po tmpdepfile=conftest.TPo \
3124 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3125 >/dev/null 2>conftest.err &&
3126 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3128 # icc doesn't choke on unknown options, it will just issue warnings
3129 # (even with -Werror). So we grep stderr for any message
3130 # that says an option was ignored.
3131 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3132 am_cv_CC_dependencies_compiler_type=$depmode
3141 am_cv_CC_dependencies_compiler_type=none
3145 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3146 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3152 test "x$enable_dependency_tracking" != xno \
3153 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3155 am__fastdepCC_FALSE='#'
3157 am__fastdepCC_TRUE='#'
3158 am__fastdepCC_FALSE=
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3169 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3170 # On Suns, sometimes $CPP names a directory.
3171 if test -n "$CPP" && test -d "$CPP"; then
3174 if test -z "$CPP"; then
3175 if test "${ac_cv_prog_CPP+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 # Double quotes because CPP needs to be expanded
3179 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3182 for ac_c_preproc_warn_flag in '' yes
3184 # Use a header file that comes with gcc, so configuring glibc
3185 # with a fresh cross-compiler works.
3186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3187 # <limits.h> exists even on freestanding compilers.
3188 # On the NeXT, cc -E runs the code through the compiler's parser,
3189 # not just through cpp. "Syntax error" is here to catch this case.
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 # include <limits.h>
3200 # include <assert.h>
3204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null; then
3212 if test -s conftest.err; then
3213 ac_cpp_err=$ac_c_preproc_warn_flag
3220 if test -z "$ac_cpp_err"; then
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Broken: fails on valid input.
3229 rm -f conftest.err conftest.$ac_ext
3231 # OK, works on sane cases. Now check whether non-existent headers
3232 # can be detected and how.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 #line $LINENO "configure"
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3240 #include <ac_nonexistent.h>
3242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3258 if test -z "$ac_cpp_err"; then
3259 # Broken: success on invalid input.
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 # Passes both tests.
3269 rm -f conftest.err conftest.$ac_ext
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then
3286 echo "$as_me:$LINENO: result: $CPP" >&5
3287 echo "${ECHO_T}$CPP" >&6
3289 for ac_c_preproc_warn_flag in '' yes
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3305 # include <limits.h>
3307 # include <assert.h>
3311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3327 if test -z "$ac_cpp_err"; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Broken: fails on valid input.
3336 rm -f conftest.err conftest.$ac_ext
3338 # OK, works on sane cases. Now check whether non-existent headers
3339 # can be detected and how.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <ac_nonexistent.h>
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3365 if test -z "$ac_cpp_err"; then
3366 # Broken: success on invalid input.
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 # Passes both tests.
3376 rm -f conftest.err conftest.$ac_ext
3379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380 rm -f conftest.err conftest.$ac_ext
3381 if $ac_preproc_ok; then
3384 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 echo "$as_me:$LINENO: checking for egrep" >&5
3399 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3400 if test "${ac_cv_prog_egrep+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3404 then ac_cv_prog_egrep='grep -E'
3405 else ac_cv_prog_egrep='egrep'
3408 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3409 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3410 EGREP=$ac_cv_prog_egrep
3413 if test $ac_cv_c_compiler_gnu = yes; then
3414 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3415 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3416 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 ac_pattern="Autoconf.*'x'"
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3432 ac_cv_prog_gcc_traditional=yes
3434 ac_cv_prog_gcc_traditional=no
3439 if test $ac_cv_prog_gcc_traditional = no; then
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3452 ac_cv_prog_gcc_traditional=yes
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3459 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3460 if test $ac_cv_prog_gcc_traditional = yes; then
3461 CC="$CC -traditional"
3465 # Find a good install program. We prefer a C program (faster),
3466 # so one script is as good as another. But avoid the broken or
3467 # incompatible versions:
3468 # SysV /etc/install, /usr/sbin/install
3469 # SunOS /usr/etc/install
3470 # IRIX /sbin/install
3472 # AmigaOS /C/install, which installs bootblocks on floppy discs
3473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3476 # ./install, which can be erroneously created by make from ./install.sh.
3477 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3478 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3479 if test -z "$INSTALL"; then
3480 if test "${ac_cv_path_install+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 # Account for people who put trailing slashes in PATH elements.
3490 ./ | .// | /cC/* | \
3491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3494 # OSF1 and SCO ODT 3.0 have their own names for install.
3495 # Don't use installbsd from OSF since it installs stuff as root
3497 for ac_prog in ginstall scoinst install; do
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3500 if test $ac_prog = install &&
3501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3502 # AIX install. It has an incompatible calling convention.
3504 elif test $ac_prog = install &&
3505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3506 # program-specific install script used by HP pwplus--don't use.
3509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3521 if test "${ac_cv_path_install+set}" = set; then
3522 INSTALL=$ac_cv_path_install
3524 # As a last resort, use the slow shell script. We don't cache a
3525 # path for INSTALL within a source directory, because that will
3526 # break other packages using the cache if that directory is
3527 # removed, or if the path is relative.
3528 INSTALL=$ac_install_sh
3531 echo "$as_me:$LINENO: result: $INSTALL" >&5
3532 echo "${ECHO_T}$INSTALL" >&6
3534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3535 # It thinks the first close brace ends the variable substitution.
3536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3542 for ac_prog in gawk mawk nawk awk
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AWK+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$AWK"; then
3552 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AWK="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$AWK"; then
3572 echo "$as_me:$LINENO: result: $AWK" >&5
3573 echo "${ECHO_T}$AWK" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AWK" && break
3582 if test -n "$ac_tool_prefix"; then
3583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_RANLIB+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 if test -n "$RANLIB"; then
3591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 RANLIB=$ac_cv_prog_RANLIB
3610 if test -n "$RANLIB"; then
3611 echo "$as_me:$LINENO: result: $RANLIB" >&5
3612 echo "${ECHO_T}$RANLIB" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3619 if test -z "$ac_cv_prog_RANLIB"; then
3620 ac_ct_RANLIB=$RANLIB
3621 # Extract the first word of "ranlib", so it can be a program name with args.
3622 set dummy ranlib; ac_word=$2
3623 echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 if test -n "$ac_ct_RANLIB"; then
3629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_ac_ct_RANLIB="ranlib"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3649 if test -n "$ac_ct_RANLIB"; then
3650 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3651 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3657 RANLIB=$ac_ct_RANLIB
3659 RANLIB="$ac_cv_prog_RANLIB"
3662 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3665 if test "$LN_S" = "ln -s"; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667 echo "${ECHO_T}yes" >&6
3669 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3670 echo "${ECHO_T}no, using $LN_S" >&6
3673 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3674 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3675 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3676 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat > conftest.$ac_ext <<EOF
3680 int main() {return 0;}
3682 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3683 if test -s conftest.out; then
3684 eval "timidity_cv_ccoption_$ac_ccoption=no"
3686 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3689 eval "timidity_cv_ccoption_$ac_ccoption=no"
3694 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696 echo "${ECHO_T}yes" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3705 # Checks for target dependencies
3708 # Check whether --with-elf or --without-elf was given.
3709 if test "${with_elf+set}" = set; then
3717 # Check whether --with-simd or --without-simd was given.
3718 if test "${with_simd+set}" = set; then
3719 withval="$with_simd"
3728 test -n "$SHLD" || SHLD="ld -b"
3732 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3733 test -n "$SHLD" || SHLD="cc -shared -all"
3737 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3742 test -n "$SHLD" || SHLD="ld -Bshareable"
3746 if test "$ELFFORMAT" = yes; then
3747 test -n "$SHLD" || SHLD="ld -Bshareable"
3750 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3751 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3757 # EXTRALIBS="$EXTRALIBS -lxpg4"
3758 # test -n "$SHLD" || SHLD="ld -Bshareable"
3763 EXTRADEFS="-D__W32__"
3766 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3767 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3768 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3769 *) test -n "$SHLD" || SHLD="unknown" ;;
3773 lib_user32_test=-luser32
3776 EXTRADEFS="-D__W32__"
3779 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3780 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3781 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3782 *) test -n "$SHLD" || SHLD="unknown" ;;
3786 lib_user32_test=-luser32
3790 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3794 EXTRADEFS="-DSOLARIS"
3795 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3799 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3803 if test "x$SIMD" = "xyes"; then
3805 cat >>confdefs.h <<\_ACEOF
3806 #define USE_ALTIVEC 1
3809 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3810 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3813 cat >>confdefs.h <<\_ACEOF
3814 #define USE_ALTIVEC 0
3818 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3819 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3820 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3824 test -n "$SHLD" || \
3825 if test "x$GCC" = xyes; then
3828 SHLD="ld -Bdynamic -G"
3835 # Checks for libraries.
3837 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3838 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3839 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 ac_check_lib_save_LIBS=$LIBS
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3852 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_lib_m_sqrt=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3887 LIBS=$ac_check_lib_save_LIBS
3889 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3890 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3891 if test $ac_cv_lib_m_sqrt = yes; then
3892 cat >>confdefs.h <<_ACEOF
3901 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3902 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3903 if test "${ac_cv_lib_socket_socket+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 ac_check_lib_save_LIBS=$LIBS
3907 LIBS="-lsocket $LIBS"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3931 rm -f conftest.$ac_objext conftest$ac_exeext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_lib_socket_socket=yes
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_cv_lib_socket_socket=no
3950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3951 LIBS=$ac_check_lib_save_LIBS
3953 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3954 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3955 if test $ac_cv_lib_socket_socket = yes; then
3956 cat >>confdefs.h <<_ACEOF
3957 #define HAVE_LIBSOCKET 1
3960 LIBS="-lsocket $LIBS"
3964 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_check_lib_save_LIBS=$LIBS
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_lib_dl_dlopen=yes
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_cv_lib_dl_dlopen=no
4013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4014 LIBS=$ac_check_lib_save_LIBS
4016 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4018 if test $ac_cv_lib_dl_dlopen = yes; then
4022 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4023 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4024 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 ac_check_lib_save_LIBS=$LIBS
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4043 char NSLinkModule ();
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -s conftest$ac_exeext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 ac_cv_lib_objc_NSLinkModule=yes
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ac_cv_lib_objc_NSLinkModule=no
4071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072 LIBS=$ac_check_lib_save_LIBS
4074 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4075 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4076 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4079 # Mac OS X need this.
4081 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4082 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4083 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_check_lib_save_LIBS=$LIBS
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4096 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113 (eval $ac_link) 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -s conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_lib_xpg4_setlocale=yes
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 ac_cv_lib_xpg4_setlocale=no
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131 LIBS=$ac_check_lib_save_LIBS
4133 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4134 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4135 if test $ac_cv_lib_xpg4_setlocale = yes; then
4136 cat >>confdefs.h <<_ACEOF
4137 #define HAVE_LIBXPG4 1
4143 # Mac OS X (and maybe NetBSD) need this.
4145 for ac_func in gethostbyname
4147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4148 echo "$as_me:$LINENO: checking for $ac_func" >&5
4149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4150 if eval "test \"\${$as_ac_var+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 cat >conftest.$ac_ext <<_ACEOF
4154 #line $LINENO "configure"
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 /* System header to define __stub macros and hopefully few prototypes,
4161 which can conflict with char $ac_func (); below.
4162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 <limits.h> exists even on freestanding compilers. */
4165 # include <limits.h>
4167 # include <assert.h>
4169 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4177 /* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4183 char (*f) () = $ac_func;
4192 return f != $ac_func;
4197 rm -f conftest.$ac_objext conftest$ac_exeext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199 (eval $ac_link) 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 eval "$as_ac_var=yes"
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 eval "$as_ac_var=no"
4216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4220 if test `eval echo '${'$as_ac_var'}'` = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4227 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4228 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4229 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 ac_check_lib_save_LIBS=$LIBS
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4242 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char gethostbyname ();
4257 rm -f conftest.$ac_objext conftest$ac_exeext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4259 (eval $ac_link) 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -s conftest$ac_exeext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 ac_cv_lib_nsl_gethostbyname=yes
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_cv_lib_nsl_gethostbyname=no
4276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4277 LIBS=$ac_check_lib_save_LIBS
4279 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4280 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4281 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4282 cat >>confdefs.h <<_ACEOF
4283 #define HAVE_LIBNSL 1
4293 echo "$as_me:$LINENO: checking for X" >&5
4294 echo $ECHO_N "checking for X... $ECHO_C" >&6
4297 # Check whether --with-x or --without-x was given.
4298 if test "${with_x+set}" = set; then
4302 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4303 if test "x$with_x" = xno; then
4304 # The user explicitly disabled X.
4307 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4308 # Both variables are already set.
4311 if test "${ac_cv_have_x+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 # One or both of the vars are not set, and there is no cached value.
4315 ac_x_includes=no ac_x_libraries=no
4317 if mkdir conftest.dir; then
4319 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4320 cat >Imakefile <<'_ACEOF'
4322 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4324 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4325 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4326 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4327 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4328 for ac_extension in a so sl; do
4329 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4330 test -f $ac_im_libdir/libX11.$ac_extension; then
4331 ac_im_usrlibdir=$ac_im_libdir; break
4334 # Screen out bogus values from the imake configuration. They are
4335 # bogus both because they are the default anyway, and because
4336 # using them would break gcc on systems where it needs fixed includes.
4337 case $ac_im_incroot in
4339 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4341 case $ac_im_usrlibdir in
4343 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4350 # Standard set of common directories for X headers.
4351 # Check X11 before X11Rn because it is often a symlink to the current release.
4363 /usr/local/X11/include
4364 /usr/local/X11R6/include
4365 /usr/local/X11R5/include
4366 /usr/local/X11R4/include
4368 /usr/local/include/X11
4369 /usr/local/include/X11R6
4370 /usr/local/include/X11R5
4371 /usr/local/include/X11R4
4375 /usr/XFree86/include/X11
4379 /usr/unsupported/include
4381 /usr/local/x11r5/include
4382 /usr/lpp/Xamples/include
4384 /usr/openwin/include
4385 /usr/openwin/share/include'
4387 if test "$ac_x_includes" = no; then
4388 # Guess where to find include files, by looking for Intrinsic.h.
4389 # First, try using that file with no special directory specified.
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <X11/Intrinsic.h>
4399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } >/dev/null; then
4407 if test -s conftest.err; then
4408 ac_cpp_err=$ac_c_preproc_warn_flag
4415 if test -z "$ac_cpp_err"; then
4416 # We can compile using X headers with no special include directory.
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 for ac_dir in $ac_x_header_dirs; do
4423 if test -r "$ac_dir/X11/Intrinsic.h"; then
4424 ac_x_includes=$ac_dir
4429 rm -f conftest.err conftest.$ac_ext
4430 fi # $ac_x_includes = no
4432 if test "$ac_x_libraries" = no; then
4433 # Check for the libraries.
4434 # See if we find them without any special options.
4435 # Don't add to $LIBS permanently.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <X11/Intrinsic.h>
4454 rm -f conftest.$ac_objext conftest$ac_exeext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456 (eval $ac_link) 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -s conftest$ac_exeext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4467 # We can link X programs with no special library path.
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4474 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4476 # Don't even attempt the hair of trying to link an X program!
4477 for ac_extension in a so sl; do
4478 if test -r $ac_dir/libXt.$ac_extension; then
4479 ac_x_libraries=$ac_dir
4485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4486 fi # $ac_x_libraries = no
4488 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4489 # Didn't find X anywhere. Cache the known absence of X.
4490 ac_cv_have_x="have_x=no"
4492 # Record where we found X for the cache.
4493 ac_cv_have_x="have_x=yes \
4494 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4499 eval "$ac_cv_have_x"
4502 if test "$have_x" != yes; then
4503 echo "$as_me:$LINENO: result: $have_x" >&5
4504 echo "${ECHO_T}$have_x" >&6
4507 # If each of the values was on the command line, it overrides each guess.
4508 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4509 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4510 # Update the cache value to reflect the command line values.
4511 ac_cv_have_x="have_x=yes \
4512 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4513 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4514 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4517 if test "$no_x" = yes; then
4518 # Not all programs may use this symbol, but it does not hurt to define it.
4520 cat >>confdefs.h <<\_ACEOF
4521 #define X_DISPLAY_MISSING 1
4524 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4526 if test -n "$x_includes"; then
4527 X_CFLAGS="$X_CFLAGS -I$x_includes"
4530 # It would also be nice to do this for all -L options, not just this one.
4531 if test -n "$x_libraries"; then
4532 X_LIBS="$X_LIBS -L$x_libraries"
4533 # For Solaris; some versions of Sun CC require a space after -R and
4534 # others require no space. Words are not sufficient . . . .
4535 case `(uname -sr) 2>/dev/null` in
4537 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4538 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4539 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -s conftest$ac_exeext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4576 if test $ac_R_nospace = yes; then
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 X_LIBS="$X_LIBS -R$x_libraries"
4581 LIBS="$ac_xsave_LIBS -R $x_libraries"
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 if test $ac_R_space = yes; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6
4621 X_LIBS="$X_LIBS -R $x_libraries"
4623 echo "$as_me:$LINENO: result: neither works" >&5
4624 echo "${ECHO_T}neither works" >&6
4631 # Check for system-dependent libraries X programs must link with.
4632 # Do this before checking for the system-independent R6 libraries
4633 # (-lICE), since we may need -lsocket or whatever for X linking.
4635 if test "$ISC" = yes; then
4636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4638 # Martyn Johnson says this is needed for Ultrix, if the X
4639 # libraries were built with DECnet support. And Karl Berry says
4640 # the Alpha needs dnet_stub (dnet does not exist).
4641 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4656 char XOpenDisplay ();
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4683 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4684 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 ac_check_lib_save_LIBS=$LIBS
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4697 /* Override any gcc2 internal prototype to avoid an error. */
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -s conftest$ac_exeext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_lib_dnet_dnet_ntoa=yes
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_lib_dnet_dnet_ntoa=no
4731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4735 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4736 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4737 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4740 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4741 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4742 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4743 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_check_lib_save_LIBS=$LIBS
4747 LIBS="-ldnet_stub $LIBS"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line $LINENO "configure"
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 /* Override any gcc2 internal prototype to avoid an error. */
4760 /* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773 (eval $ac_link) 2>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -s conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_cv_lib_dnet_stub_dnet_ntoa=no
4790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4791 LIBS=$ac_check_lib_save_LIBS
4793 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4794 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4795 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4802 LIBS="$ac_xsave_LIBS"
4804 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4805 # to get the SysV transport functions.
4806 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4808 # The nsl library prevents programs from opening the X display
4809 # on Irix 5.2, according to T.E. Dickey.
4810 # The functions gethostbyname, getservbyname, and inet_addr are
4811 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4812 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4813 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4814 if test "${ac_cv_func_gethostbyname+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 /* System header to define __stub macros and hopefully few prototypes,
4825 which can conflict with char gethostbyname (); below.
4826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827 <limits.h> exists even on freestanding compilers. */
4829 # include <limits.h>
4831 # include <assert.h>
4833 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4840 char gethostbyname ();
4841 /* The GNU C library defines this for functions which it implements
4842 to always fail with ENOSYS. Some functions are actually named
4843 something starting with __ and the normal name is an alias. */
4844 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4847 char (*f) () = gethostbyname;
4856 return f != gethostbyname;
4861 rm -f conftest.$ac_objext conftest$ac_exeext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4863 (eval $ac_link) 2>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -s conftest$ac_exeext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 ac_cv_func_gethostbyname=yes
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_func_gethostbyname=no
4880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4883 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4885 if test $ac_cv_func_gethostbyname = no; then
4886 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4887 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4888 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_check_lib_save_LIBS=$LIBS
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4901 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4907 char gethostbyname ();
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918 (eval $ac_link) 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_lib_nsl_gethostbyname=yes
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_cv_lib_nsl_gethostbyname=no
4935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4936 LIBS=$ac_check_lib_save_LIBS
4938 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4939 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4940 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4944 if test $ac_cv_lib_nsl_gethostbyname = no; then
4945 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4946 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4947 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_check_lib_save_LIBS=$LIBS
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4960 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4966 char gethostbyname ();
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4977 (eval $ac_link) 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest$ac_exeext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_lib_bsd_gethostbyname=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_cv_lib_bsd_gethostbyname=no
4994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4995 LIBS=$ac_check_lib_save_LIBS
4997 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4998 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4999 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5006 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5007 # socket/setsockopt and other routines are undefined under SCO ODT
5008 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5009 # on later versions), says Simon Leinen: it contains gethostby*
5010 # variants that don't use the name server (or something). -lsocket
5011 # must be given before -lnsl if both are needed. We assume that
5012 # if connect needs -lnsl, so does gethostbyname.
5013 echo "$as_me:$LINENO: checking for connect" >&5
5014 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5015 if test "${ac_cv_func_connect+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char connect (); below.
5027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028 <limits.h> exists even on freestanding compilers. */
5030 # include <limits.h>
5032 # include <assert.h>
5034 /* Override any gcc2 internal prototype to avoid an error. */
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5042 /* The GNU C library defines this for functions which it implements
5043 to always fail with ENOSYS. Some functions are actually named
5044 something starting with __ and the normal name is an alias. */
5045 #if defined (__stub_connect) || defined (__stub___connect)
5048 char (*f) () = connect;
5057 return f != connect;
5062 rm -f conftest.$ac_objext conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest$ac_exeext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_cv_func_connect=yes
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_cv_func_connect=no
5081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5083 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5084 echo "${ECHO_T}$ac_cv_func_connect" >&6
5086 if test $ac_cv_func_connect = no; then
5087 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5089 if test "${ac_cv_lib_socket_connect+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5102 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_socket_connect=yes
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_cv_lib_socket_connect=no
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5140 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5141 if test $ac_cv_lib_socket_connect = yes; then
5142 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5147 # Guillermo Gomez says -lposix is necessary on A/UX.
5148 echo "$as_me:$LINENO: checking for remove" >&5
5149 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5150 if test "${ac_cv_func_remove+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 /* System header to define __stub macros and hopefully few prototypes,
5161 which can conflict with char remove (); below.
5162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 <limits.h> exists even on freestanding compilers. */
5165 # include <limits.h>
5167 # include <assert.h>
5169 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5177 /* The GNU C library defines this for functions which it implements
5178 to always fail with ENOSYS. Some functions are actually named
5179 something starting with __ and the normal name is an alias. */
5180 #if defined (__stub_remove) || defined (__stub___remove)
5183 char (*f) () = remove;
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_func_remove=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_cv_func_remove=no
5216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5219 echo "${ECHO_T}$ac_cv_func_remove" >&6
5221 if test $ac_cv_func_remove = no; then
5222 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5223 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5224 if test "${ac_cv_lib_posix_remove+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lposix $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_lib_posix_remove=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_lib_posix_remove=no
5271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5276 if test $ac_cv_lib_posix_remove = yes; then
5277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5283 echo "$as_me:$LINENO: checking for shmat" >&5
5284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5285 if test "${ac_cv_func_shmat+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 /* System header to define __stub macros and hopefully few prototypes,
5296 which can conflict with char shmat (); below.
5297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298 <limits.h> exists even on freestanding compilers. */
5300 # include <limits.h>
5302 # include <assert.h>
5304 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_shmat) || defined (__stub___shmat)
5318 char (*f) () = shmat;
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_func_shmat=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5353 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5354 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5356 if test $ac_cv_func_shmat = no; then
5357 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5358 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5359 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 ac_check_lib_save_LIBS=$LIBS
5364 cat >conftest.$ac_ext <<_ACEOF
5365 #line $LINENO "configure"
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5372 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389 (eval $ac_link) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest$ac_exeext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_lib_ipc_shmat=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_lib_ipc_shmat=no
5406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5409 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5411 if test $ac_cv_lib_ipc_shmat = yes; then
5412 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5418 # Check for libraries that X11R6 Xt/Xaw programs need.
5419 ac_save_LDFLAGS=$LDFLAGS
5420 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5421 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5422 # check for ICE first), but we must link in the order -lSM -lICE or
5423 # we get undefined symbols. So assume we have SM if we have ICE.
5424 # These have to be linked with before -lX11, unlike the other
5425 # libraries we check for below, so use a different variable.
5426 # John Interrante, Karl Berry
5427 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5428 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5429 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5442 /* Override any gcc2 internal prototype to avoid an error. */
5446 /* We use char because int might match the return type of a gcc2
5447 builtin and then its argument prototype would still apply. */
5448 char IceConnectionNumber ();
5452 IceConnectionNumber ();
5457 rm -f conftest.$ac_objext conftest$ac_exeext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5459 (eval $ac_link) 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -s conftest$ac_exeext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 ac_cv_lib_ICE_IceConnectionNumber=yes
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_cv_lib_ICE_IceConnectionNumber=no
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_check_lib_save_LIBS
5479 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5480 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5481 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5482 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5485 LDFLAGS=$ac_save_LDFLAGS
5491 if test "x$with_x" = xyes; then
5492 if test "x$have_x" = xno; then
5493 if test "x$x_config_flag" = xyes; then
5494 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5495 echo "$as_me: error: Could not configure X" >&2;}
5496 { (exit 1); exit 1; }; }
5498 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5499 echo "$as_me: WARNING: Could not configure X" >&2;}
5503 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5504 if test "x$x_libraries" != x; then
5505 ldflags_x_opt="-L$x_libraries"
5506 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5507 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5511 if test "x$x_includes" != x; then
5512 CPPFLAGS="$CPPFLAGS -I$x_includes"
5516 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5517 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5518 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_check_lib_save_LIBS=$LIBS
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5531 /* Override any gcc2 internal prototype to avoid an error. */
5535 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5537 char XOpenDisplay ();
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_lib_X11_XOpenDisplay=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_lib_X11_XOpenDisplay=no
5565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 LIBS=$ac_check_lib_save_LIBS
5568 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5569 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5570 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5571 cat >>confdefs.h <<_ACEOF
5572 #define HAVE_LIBX11 1
5579 echo "$as_me:$LINENO: checking X11 version 6" >&5
5580 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5581 if test "${timidity_cv_x11_version_6+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <X11/Xlib.h>
5596 #if XlibSpecificationRelease < 6
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 timidity_cv_x11_version_6=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 timidity_cv_x11_version_6=no
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 if test "$timidity_cv_x11_version_6" = "yes"; then
5627 echo "$as_me:$LINENO: result: 6 or newer" >&5
5628 echo "${ECHO_T}6 or newer" >&6
5630 echo "$as_me:$LINENO: result: before 6" >&5
5631 echo "${ECHO_T}before 6" >&6
5635 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5636 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5637 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 ac_check_lib_save_LIBS=$LIBS
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char XShapeCombineMask ();
5660 XShapeCombineMask ();
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_lib_Xext_XShapeCombineMask=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_lib_Xext_XShapeCombineMask=no
5684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5688 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5689 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5690 have_xext=yes; LIBS="-lXext $LIBS"
5696 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5697 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5698 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_check_lib_save_LIBS=$LIBS
5703 cat >conftest.$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5717 char IceConnectionNumber ();
5721 IceConnectionNumber ();
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_lib_ICE_IceConnectionNumber=yes
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 ac_cv_lib_ICE_IceConnectionNumber=no
5745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5746 LIBS=$ac_check_lib_save_LIBS
5748 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5749 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5750 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LIBICE 1
5759 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5760 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5761 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 ac_check_lib_save_LIBS=$LIBS
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5774 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5780 char SmcOpenConnection ();
5784 SmcOpenConnection ();
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_SM_SmcOpenConnection=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_cv_lib_SM_SmcOpenConnection=no
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_check_lib_save_LIBS
5811 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5812 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5813 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5814 have_xprelibs=yes; LIBS="-lSM $LIBS"
5819 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5820 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5821 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 ac_check_lib_save_LIBS=$LIBS
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5840 char XtVaAppInitialize ();
5844 XtVaAppInitialize ();
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_lib_Xt_XtVaAppInitialize=yes
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 ac_cv_lib_Xt_XtVaAppInitialize=no
5868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5869 LIBS=$ac_check_lib_save_LIBS
5871 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5872 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5873 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5874 have_xt=yes; LIBS="-lXt $LIBS"
5879 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5880 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5881 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 ac_check_lib_save_LIBS=$LIBS
5886 cat >conftest.$ac_ext <<_ACEOF
5887 #line $LINENO "configure"
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5894 /* Override any gcc2 internal prototype to avoid an error. */
5898 /* We use char because int might match the return type of a gcc2
5899 builtin and then its argument prototype would still apply. */
5900 char XmuInternAtom ();
5909 rm -f conftest.$ac_objext conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_lib_Xmu_XmuInternAtom=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_lib_Xmu_XmuInternAtom=no
5928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5929 LIBS=$ac_check_lib_save_LIBS
5931 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5932 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5933 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5938 for ac_func in XmuRegisterExternalAgent
5940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5941 echo "$as_me:$LINENO: checking for $ac_func" >&5
5942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5943 if eval "test \"\${$as_ac_var+set}\" = set"; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char $ac_func (); below.
5955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956 <limits.h> exists even on freestanding compilers. */
5958 # include <limits.h>
5960 # include <assert.h>
5962 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 char (*f) () = $ac_func;
5985 return f != $ac_func;
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -s conftest$ac_exeext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_var=yes"
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 eval "$as_ac_var=no"
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6013 if test `eval echo '${'$as_ac_var'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6021 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6022 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6023 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-lXaw3d $LIBS"
6028 cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6042 char XawInitializeWidgetSet ();
6046 XawInitializeWidgetSet ();
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053 (eval $ac_link) 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6074 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6075 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6078 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6079 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6080 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_check_lib_save_LIBS=$LIBS
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099 char XawInitializeWidgetSet ();
6103 XawInitializeWidgetSet ();
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6130 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6131 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6132 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6140 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6141 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6142 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 ac_check_lib_save_LIBS=$LIBS
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char XmCreateForm ();
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_lib_Xm_XmCreateForm=yes
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_lib_Xm_XmCreateForm=no
6189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6190 LIBS=$ac_check_lib_save_LIBS
6192 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6193 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6194 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6201 for ac_func in XShmCreatePixmap
6203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6204 echo "$as_me:$LINENO: checking for $ac_func" >&5
6205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6206 if eval "test \"\${$as_ac_var+set}\" = set"; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func (); below.
6218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219 <limits.h> exists even on freestanding compilers. */
6221 # include <limits.h>
6223 # include <assert.h>
6225 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6239 char (*f) () = $ac_func;
6248 return f != $ac_func;
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -s conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 eval "$as_ac_var=yes"
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 eval "$as_ac_var=no"
6272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6276 if test `eval echo '${'$as_ac_var'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6287 # Checks for header files.
6288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6290 if test "${ac_cv_header_stdc+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_header_stdc=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 ac_cv_header_stdc=no
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6334 if test $ac_cv_header_stdc = yes; then
6335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "memchr" >/dev/null 2>&1; then
6350 ac_cv_header_stdc=no
6356 if test $ac_cv_header_stdc = yes; then
6357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 $EGREP "free" >/dev/null 2>&1; then
6372 ac_cv_header_stdc=no
6378 if test $ac_cv_header_stdc = yes; then
6379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380 if test "$cross_compiling" = yes; then
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 #if ((' ' & 0x0FF) == 0x020)
6392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6395 # define ISLOWER(c) \
6396 (('a' <= (c) && (c) <= 'i') \
6397 || ('j' <= (c) && (c) <= 'r') \
6398 || ('s' <= (c) && (c) <= 'z'))
6399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6407 for (i = 0; i < 256; i++)
6408 if (XOR (islower (i), ISLOWER (i))
6409 || toupper (i) != TOUPPER (i))
6414 rm -f conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6427 echo "$as_me: program exited with status $ac_status" >&5
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_cv_header_stdc=no
6434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6440 if test $ac_cv_header_stdc = yes; then
6442 cat >>confdefs.h <<\_ACEOF
6443 #define STDC_HEADERS 1
6448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6459 inttypes.h stdint.h unistd.h
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6476 #include <$ac_header>
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -s conftest.$ac_objext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 eval "$as_ac_Header=yes"
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 eval "$as_ac_Header=no"
6497 rm -f conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6512 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6513 if test "${ac_cv_header_stdbool_h+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line $LINENO "configure"
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6524 #include <stdbool.h>
6526 # error bool is not defined
6529 # error false is not defined
6532 # error false is not 0
6535 # error true is not defined
6538 # error true is not 1
6540 #ifndef __bool_true_false_are_defined
6541 # error __bool_true_false_are_defined is not defined
6544 struct s { _Bool s: 1; _Bool t; } s;
6546 char a[true == 1 ? 1 : -1];
6547 char b[false == 0 ? 1 : -1];
6548 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6549 char d[(bool) -0.5 == true ? 1 : -1];
6551 char f[(_Bool) -0.0 == false ? 1 : -1];
6553 char h[sizeof (_Bool)];
6559 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_header_stdbool_h=yes
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_cv_header_stdbool_h=no
6583 rm -f conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6586 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6587 echo "$as_me:$LINENO: checking for _Bool" >&5
6588 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6589 if test "${ac_cv_type__Bool+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 $ac_includes_default
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_type__Bool=yes
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f conftest.$ac_objext conftest.$ac_ext
6632 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6633 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6634 if test $ac_cv_type__Bool = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE__BOOL 1
6643 if test $ac_cv_header_stdbool_h = yes; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_STDBOOL_H 1
6651 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6652 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6653 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <sys/types.h>
6664 #include <sys/wait.h>
6666 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_header_sys_wait_h=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_header_sys_wait_h=no
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6705 if test $ac_cv_header_sys_wait_h = yes; then
6707 cat >>confdefs.h <<\_ACEOF
6708 #define HAVE_SYS_WAIT_H 1
6713 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6714 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6715 if test "${ac_cv_header_time+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <sys/types.h>
6726 #include <sys/time.h>
6732 if ((struct tm *) 0)
6738 rm -f conftest.$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_header_time=yes
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_cv_header_time=no
6757 rm -f conftest.$ac_objext conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6760 echo "${ECHO_T}$ac_cv_header_time" >&6
6761 if test $ac_cv_header_time = yes; then
6763 cat >>confdefs.h <<\_ACEOF
6764 #define TIME_WITH_SYS_TIME 1
6775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6783 #line $LINENO "configure"
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -s conftest.$ac_objext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 eval "$as_ac_Header=yes"
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 eval "$as_ac_Header=no"
6820 rm -f conftest.$ac_objext conftest.$ac_ext
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6825 cat >>confdefs.h <<_ACEOF
6826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6829 ac_header_dirent=$ac_hdr; break
6833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6834 if test $ac_header_dirent = dirent.h; then
6835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6837 if test "${ac_cv_search_opendir+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_func_search_save_LIBS=$LIBS
6841 ac_cv_search_opendir=no
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -s conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_search_opendir="none required"
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6884 if test "$ac_cv_search_opendir" = no; then
6885 for ac_lib in dir; do
6886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6895 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_search_opendir="-l$ac_lib"
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6932 LIBS=$ac_func_search_save_LIBS
6934 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6935 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6936 if test "$ac_cv_search_opendir" != no; then
6937 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6942 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6944 if test "${ac_cv_search_opendir+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_func_search_save_LIBS=$LIBS
6948 ac_cv_search_opendir=no
6949 cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6957 /* Override any gcc2 internal prototype to avoid an error. */
6961 /* We use char because int might match the return type of a gcc2
6962 builtin and then its argument prototype would still apply. */
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_search_opendir="none required"
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6991 if test "$ac_cv_search_opendir" = no; then
6993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7002 /* Override any gcc2 internal prototype to avoid an error. */
7006 /* We use char because int might match the return type of a gcc2
7007 builtin and then its argument prototype would still apply. */
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_search_opendir="-l$ac_lib"
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_func_search_save_LIBS
7041 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7042 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7043 if test "$ac_cv_search_opendir" != no; then
7044 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7127 X11/extensions/XShm.h \
7130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo "$as_me:$LINENO: checking for $ac_header" >&5
7133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140 # Is the header compilable?
7141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 $ac_includes_default
7151 #include <$ac_header>
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_header_compiler=yes
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_header_compiler=no
7172 rm -f conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7174 echo "${ECHO_T}$ac_header_compiler" >&6
7176 # Is the header present?
7177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7180 #line $LINENO "configure"
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #include <$ac_header>
7188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev/null; then
7196 if test -s conftest.err; then
7197 ac_cpp_err=$ac_c_preproc_warn_flag
7204 if test -z "$ac_cpp_err"; then
7205 ac_header_preproc=yes
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_header_preproc=no
7212 rm -f conftest.err conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7214 echo "${ECHO_T}$ac_header_preproc" >&6
7216 # So? What about this header?
7217 case $ac_header_compiler:$ac_header_preproc in
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7225 ## ------------------------------------ ##
7226 ## Report this to bug-autoconf@gnu.org. ##
7227 ## ------------------------------------ ##
7230 sed "s/^/$as_me: WARNING: /" >&2
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241 ## ------------------------------------ ##
7242 ## Report this to bug-autoconf@gnu.org. ##
7243 ## ------------------------------------ ##
7246 sed "s/^/$as_me: WARNING: /" >&2
7249 echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 eval "$as_ac_Header=$ac_header_preproc"
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7269 if test "${ac_cv_header_string_h+set}" = set; then
7270 echo "$as_me:$LINENO: checking for string.h" >&5
7271 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7272 if test "${ac_cv_header_string_h+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7276 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7278 # Is the header compilable?
7279 echo "$as_me:$LINENO: checking string.h usability" >&5
7280 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7282 #line $LINENO "configure"
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_header_compiler=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_header_compiler=no
7310 rm -f conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7312 echo "${ECHO_T}$ac_header_compiler" >&6
7314 # Is the header present?
7315 echo "$as_me:$LINENO: checking string.h presence" >&5
7316 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } >/dev/null; then
7334 if test -s conftest.err; then
7335 ac_cpp_err=$ac_c_preproc_warn_flag
7342 if test -z "$ac_cpp_err"; then
7343 ac_header_preproc=yes
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_header_preproc=no
7350 rm -f conftest.err conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7352 echo "${ECHO_T}$ac_header_preproc" >&6
7354 # So? What about this header?
7355 case $ac_header_compiler:$ac_header_preproc in
7357 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7358 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7360 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7363 ## ------------------------------------ ##
7364 ## Report this to bug-autoconf@gnu.org. ##
7365 ## ------------------------------------ ##
7368 sed "s/^/$as_me: WARNING: /" >&2
7371 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7379 ## ------------------------------------ ##
7380 ## Report this to bug-autoconf@gnu.org. ##
7381 ## ------------------------------------ ##
7384 sed "s/^/$as_me: WARNING: /" >&2
7387 echo "$as_me:$LINENO: checking for string.h" >&5
7388 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7389 if test "${ac_cv_header_string_h+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_cv_header_string_h=$ac_header_preproc
7394 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7395 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7398 if test $ac_cv_header_string_h = yes; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define NO_STRING_H 1
7410 # Checks for typedefs, structures, and compiler characteristics.
7411 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7412 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7413 if test "${ac_cv_c_bigendian+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 # See if sys/param.h defines the BYTE_ORDER macro.
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #include <sys/types.h>
7425 #include <sys/param.h>
7430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7438 rm -f conftest.$ac_objext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7440 (eval $ac_compile) 2>&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -s conftest.$ac_objext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 # It does; now see whether it defined to BIG_ENDIAN or not.
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <sys/types.h>
7459 #include <sys/param.h>
7464 #if BYTE_ORDER != BIG_ENDIAN
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } &&
7478 { ac_try='test -s conftest.$ac_objext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_c_bigendian=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 ac_cv_c_bigendian=no
7491 rm -f conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 # It does not; compile a test program.
7497 if test "$cross_compiling" = yes; then
7498 # try to guess the endianness by grepping values into an object file
7499 ac_cv_c_bigendian=unknown
7500 cat >conftest.$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7508 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7509 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7510 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7511 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7512 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7516 _ascii (); _ebcdic ();
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7534 ac_cv_c_bigendian=yes
7536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7537 if test "$ac_cv_c_bigendian" = unknown; then
7538 ac_cv_c_bigendian=no
7540 # finding both strings is unlikely to happen, but who knows?
7541 ac_cv_c_bigendian=unknown
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7561 /* Are we little or big endian? From Harbison&Steele. */
7565 char c[sizeof (long)];
7568 exit (u.c[sizeof (long) - 1] == 1);
7571 rm -f conftest$ac_exeext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_c_bigendian=no
7584 echo "$as_me: program exited with status $ac_status" >&5
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_cv_c_bigendian=yes
7591 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7594 rm -f conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7597 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7598 case $ac_cv_c_bigendian in
7601 cat >>confdefs.h <<\_ACEOF
7602 #define WORDS_BIGENDIAN 1
7608 { { echo "$as_me:$LINENO: error: unknown endianness
7609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7610 echo "$as_me: error: unknown endianness
7611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7612 { (exit 1); exit 1; }; } ;;
7616 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7617 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7618 if test "${ac_cv_c_char_unsigned+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 $ac_includes_default
7632 static int test_array [1 - 2 * !(((char) -1) < 0)];
7639 rm -f conftest.$ac_objext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641 (eval $ac_compile) 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_c_char_unsigned=no
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_c_char_unsigned=yes
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7661 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7662 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7663 cat >>confdefs.h <<\_ACEOF
7664 #define __CHAR_UNSIGNED__ 1
7669 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7671 if test "${ac_cv_c_const+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 cat >conftest.$ac_ext <<_ACEOF
7675 #line $LINENO "configure"
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7685 /* FIXME: Include the comments suggested by Paul. */
7687 /* Ultrix mips cc rejects this. */
7688 typedef int charset[2];
7690 /* SunOS 4.1.1 cc rejects this. */
7691 char const *const *ccp;
7693 /* NEC SVR4.0.2 mips cc rejects this. */
7694 struct point {int x, y;};
7695 static struct point const zero = {0,0};
7696 /* AIX XL C 1.02.0.0 rejects this.
7697 It does not let you subtract one const X* pointer from another in
7698 an arm of an if-expression whose if-part is not a constant
7700 const char *g = "string";
7701 ccp = &g + (g ? g-g : 0);
7702 /* HPUX 7.0 cc rejects these. */
7705 ccp = (char const *const *) p;
7706 { /* SCO 3.2v4 cc rejects this. */
7708 char const *s = 0 ? (char *) 0 : (char const *) 0;
7712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7714 const int *foo = &x[0];
7717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7718 typedef const int *iptr;
7722 { /* AIX XL C 1.02.0.0 rejects this saying
7723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7724 struct s { int j; const int *ap[3]; };
7725 struct s *b; b->j = 5;
7727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7736 rm -f conftest.$ac_objext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738 (eval $ac_compile) 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } &&
7742 { ac_try='test -s conftest.$ac_objext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7755 rm -f conftest.$ac_objext conftest.$ac_ext
7757 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7758 echo "${ECHO_T}$ac_cv_c_const" >&6
7759 if test $ac_cv_c_const = no; then
7761 cat >>confdefs.h <<\_ACEOF
7767 echo "$as_me:$LINENO: checking for inline" >&5
7768 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7769 if test "${ac_cv_c_inline+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 for ac_kw in inline __inline__ __inline; do
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7783 static $ac_kw foo_t static_foo () {return 0; }
7784 $ac_kw foo_t foo () {return 0; }
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_c_inline=$ac_kw; break
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7810 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7811 echo "${ECHO_T}$ac_cv_c_inline" >&6
7812 case $ac_cv_c_inline in
7815 cat >>confdefs.h <<\_ACEOF
7819 *) cat >>confdefs.h <<_ACEOF
7820 #define inline $ac_cv_c_inline
7825 echo "$as_me:$LINENO: checking for working volatile" >&5
7826 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7827 if test "${ac_cv_c_volatile+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 cat >conftest.$ac_ext <<_ACEOF
7831 #line $LINENO "configure"
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7848 rm -f conftest.$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850 (eval $ac_compile) 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest.$ac_objext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_c_volatile=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7867 rm -f conftest.$ac_objext conftest.$ac_ext
7869 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7870 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7871 if test $ac_cv_c_volatile = no; then
7873 cat >>confdefs.h <<\_ACEOF
7879 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7880 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7881 if test "${ac_cv_c_stringize+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7893 char *s = x(teststring);
7895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7896 $EGREP "#teststring" >/dev/null 2>&1; then
7897 ac_cv_c_stringize=no
7899 ac_cv_c_stringize=yes
7904 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7905 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7906 if test $ac_cv_c_stringize = yes; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_STRINGIZE 1
7914 echo "$as_me:$LINENO: checking for function prototypes" >&5
7915 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7916 if test "$ac_cv_prog_cc_stdc" != no; then
7917 echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7920 cat >>confdefs.h <<\_ACEOF
7921 #define PROTOTYPES 1
7925 cat >>confdefs.h <<\_ACEOF
7926 #define __PROTOTYPES 1
7930 echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6
7934 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7935 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7936 if test "${ac_cv_struct_tm+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7952 struct tm *tp; tp->tm_sec;
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_struct_tm=time.h
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_cv_struct_tm=sys/time.h
7976 rm -f conftest.$ac_objext conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7979 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7980 if test $ac_cv_struct_tm = sys/time.h; then
7982 cat >>confdefs.h <<\_ACEOF
7983 #define TM_IN_SYS_TIME 1
7988 echo "$as_me:$LINENO: checking for size_t" >&5
7989 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7990 if test "${ac_cv_type_size_t+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8006 if (sizeof (size_t))
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014 (eval $ac_compile) 2>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_type_size_t=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_type_size_t=no
8031 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8034 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8035 if test $ac_cv_type_size_t = yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define size_t unsigned
8045 echo "$as_me:$LINENO: checking for off_t" >&5
8046 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_off_t+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071 (eval $ac_compile) 2>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest.$ac_objext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_type_off_t=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8090 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8091 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8092 if test $ac_cv_type_off_t = yes; then
8096 cat >>confdefs.h <<_ACEOF
8102 echo "$as_me:$LINENO: checking for pid_t" >&5
8103 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8104 if test "${ac_cv_type_pid_t+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 $ac_includes_default
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_type_pid_t=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8148 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8149 if test $ac_cv_type_pid_t = yes; then
8153 cat >>confdefs.h <<_ACEOF
8160 echo "$as_me:$LINENO: checking volatile declaration" >&5
8161 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8162 if test "${timidity_cv_type_volatile+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 timidity_cv_type_volatile=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 timidity_cv_type_volatile=no
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8203 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8204 if test $timidity_cv_type_volatile = no; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define NO_VOLATILE 1
8212 echo "$as_me:$LINENO: checking union semun declaration" >&5
8213 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8214 if test "${timidity_cv_type_union_semun+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8218 #line $LINENO "configure"
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8225 #include <sys/types.h>
8226 #include <sys/ipc.h>
8227 #include <sys/sem.h>
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -s conftest.$ac_objext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 timidity_cv_type_union_semun=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 timidity_cv_type_union_semun=no
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8258 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8259 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8260 if test $timidity_cv_type_union_semun = yes; then
8262 cat >>confdefs.h <<\_ACEOF
8263 #define HAVE_UNION_SEMUN 1
8268 if test "x$CYGNUS" = xyes; then
8269 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8270 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8271 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8282 #include <windows.h>
8283 #include <mmsystem.h>
8288 return WOM_OPEN != 0x3BB
8293 rm -f conftest.$ac_objext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8295 (eval $ac_compile) 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 timidity_cv_header_new_mmsystem=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 timidity_cv_header_new_mmsystem=no
8312 rm -f conftest.$ac_objext conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8315 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8316 if test $timidity_cv_header_new_mmsystem = yes; then
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_NEW_MMSYSTEM 1
8325 if test "x$MINGW" = xyes; then
8326 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8327 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8328 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8339 #include <windows.h>
8340 #include <mmsystem.h>
8345 return WOM_OPEN != 0x3BB
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 timidity_cv_header_new_mmsystem=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 timidity_cv_header_new_mmsystem=no
8369 rm -f conftest.$ac_objext conftest.$ac_ext
8371 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8372 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8373 if test $timidity_cv_header_new_mmsystem = yes; then
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_NEW_MMSYSTEM 1
8382 # Checks for library functions.
8383 echo "$as_me:$LINENO: checking for error_at_line" >&5
8384 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8385 if test "${ac_cv_lib_error_at_line+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8399 error_at_line (0, 0, "", 0, "");
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_lib_error_at_line=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_lib_error_at_line=no
8423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8426 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8427 if test $ac_cv_lib_error_at_line = no; then
8428 LIBOBJS="$LIBOBJS error.$ac_objext"
8433 for ac_header in unistd.h vfork.h
8435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8437 echo "$as_me:$LINENO: checking for $ac_header" >&5
8438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8445 # Is the header compilable?
8446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #include <$ac_header>
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_header_compiler=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_compiler=no
8477 rm -f conftest.$ac_objext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479 echo "${ECHO_T}$ac_header_compiler" >&6
8481 # Is the header present?
8482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 #include <$ac_header>
8493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } >/dev/null; then
8501 if test -s conftest.err; then
8502 ac_cpp_err=$ac_c_preproc_warn_flag
8509 if test -z "$ac_cpp_err"; then
8510 ac_header_preproc=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_preproc=no
8517 rm -f conftest.err conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519 echo "${ECHO_T}$ac_header_preproc" >&6
8521 # So? What about this header?
8522 case $ac_header_compiler:$ac_header_preproc in
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530 ## ------------------------------------ ##
8531 ## Report this to bug-autoconf@gnu.org. ##
8532 ## ------------------------------------ ##
8535 sed "s/^/$as_me: WARNING: /" >&2
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 ## ------------------------------------ ##
8547 ## Report this to bug-autoconf@gnu.org. ##
8548 ## ------------------------------------ ##
8551 sed "s/^/$as_me: WARNING: /" >&2
8554 echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 eval "$as_ac_Header=$ac_header_preproc"
8561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8566 cat >>confdefs.h <<_ACEOF
8567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576 for ac_func in fork vfork
8578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8579 echo "$as_me:$LINENO: checking for $ac_func" >&5
8580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8581 if eval "test \"\${$as_ac_var+set}\" = set"; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.$ac_ext <<_ACEOF
8585 #line $LINENO "configure"
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 /* System header to define __stub macros and hopefully few prototypes,
8592 which can conflict with char $ac_func (); below.
8593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594 <limits.h> exists even on freestanding compilers. */
8596 # include <limits.h>
8598 # include <assert.h>
8600 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8608 /* The GNU C library defines this for functions which it implements
8609 to always fail with ENOSYS. Some functions are actually named
8610 something starting with __ and the normal name is an alias. */
8611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8614 char (*f) () = $ac_func;
8623 return f != $ac_func;
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 eval "$as_ac_var=yes"
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 eval "$as_ac_var=no"
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8651 if test `eval echo '${'$as_ac_var'}'` = yes; then
8652 cat >>confdefs.h <<_ACEOF
8653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8659 if test "x$ac_cv_func_fork" = xyes; then
8660 echo "$as_me:$LINENO: checking for working fork" >&5
8661 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8662 if test "${ac_cv_func_fork_works+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 if test "$cross_compiling" = yes; then
8666 ac_cv_func_fork_works=cross
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* By Ruediger Kuhlmann. */
8670 #include <sys/types.h>
8672 # include <unistd.h>
8674 /* Some systems only have a dummy stub for fork() */
8682 rm -f conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_func_fork_works=yes
8695 echo "$as_me: program exited with status $ac_status" >&5
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_func_fork_works=no
8702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8706 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8709 ac_cv_func_fork_works=$ac_cv_func_fork
8711 if test "x$ac_cv_func_fork_works" = xcross; then
8713 *-*-amigaos* | *-*-msdosdjgpp*)
8714 # Override, as these systems have only a dummy fork() stub
8715 ac_cv_func_fork_works=no
8718 ac_cv_func_fork_works=yes
8721 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8722 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8724 ac_cv_func_vfork_works=$ac_cv_func_vfork
8725 if test "x$ac_cv_func_vfork" = xyes; then
8726 echo "$as_me:$LINENO: checking for working vfork" >&5
8727 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8728 if test "${ac_cv_func_vfork_works+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 if test "$cross_compiling" = yes; then
8732 ac_cv_func_vfork_works=cross
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 /* Thanks to Paul Eggert for this test. */
8744 #include <sys/types.h>
8745 #include <sys/stat.h>
8746 #include <sys/wait.h>
8748 # include <unistd.h>
8753 /* On some sparc systems, changes by the child to local and incoming
8754 argument registers are propagated back to the parent. The compiler
8755 is told about this with #include <vfork.h>, but some compilers
8756 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8757 static variable whose address is put into a register that is
8758 clobbered by the vfork. */
8761 sparc_address_test (int arg)
8763 sparc_address_test (arg) int arg;
8784 pid_t parent = getpid ();
8787 sparc_address_test (0);
8792 /* Here is another test for sparc vfork register problems. This
8793 test uses lots of local variables, at least as many local
8794 variables as main has allocated so far including compiler
8795 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8796 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8797 reuse the register of parent for one of the local variables,
8798 since it will think that parent can't possibly be used any more
8799 in this routine. Assigning to the local variable will thus
8800 munge parent in the parent process. */
8802 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8803 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8804 /* Convince the compiler that p..p7 are live; otherwise, it might
8805 use the same hardware register for all 8 local variables. */
8806 if (p != p1 || p != p2 || p != p3 || p != p4
8807 || p != p5 || p != p6 || p != p7)
8810 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8811 from child file descriptors. If the child closes a descriptor
8812 before it execs or exits, this munges the parent's descriptor
8813 as well. Test for this by closing stdout in the child. */
8814 _exit(close(fileno(stdout)) != 0);
8819 while (wait(&status) != child)
8822 /* Was there some problem with vforking? */
8825 /* Did the child fail? (This shouldn't happen.) */
8828 /* Did the vfork/compiler bug occur? */
8829 || parent != getpid()
8831 /* Did the file descriptor bug occur? */
8832 || fstat(fileno(stdout), &st) != 0
8837 rm -f conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_func_vfork_works=yes
8850 echo "$as_me: program exited with status $ac_status" >&5
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_func_vfork_works=no
8857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8861 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8864 if test "x$ac_cv_func_fork_works" = xcross; then
8865 ac_cv_func_vfork_works=ac_cv_func_vfork
8866 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8867 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8870 if test "x$ac_cv_func_vfork_works" = xyes; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_WORKING_VFORK 1
8878 cat >>confdefs.h <<\_ACEOF
8883 if test "x$ac_cv_func_fork_works" = xyes; then
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_WORKING_FORK 1
8891 echo "$as_me:$LINENO: checking for working memcmp" >&5
8892 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8893 if test "${ac_cv_func_memcmp_working+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 if test "$cross_compiling" = yes; then
8897 ac_cv_func_memcmp_working=no
8899 cat >conftest.$ac_ext <<_ACEOF
8900 #line $LINENO "configure"
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8911 /* Some versions of memcmp are not 8-bit clean. */
8912 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8913 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8916 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8917 or more and with at least one buffer not starting on a 4-byte boundary.
8918 William Lewis provided this test program. */
8923 for (i = 0; i < 4; i++)
8927 strcpy (a, "--------01111111");
8928 strcpy (b, "--------10000000");
8929 if (memcmp (a, b, 16) >= 0)
8939 rm -f conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_func_memcmp_working=yes
8952 echo "$as_me: program exited with status $ac_status" >&5
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_cv_func_memcmp_working=no
8959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8962 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8963 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8964 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8968 for ac_header in stdlib.h unistd.h
8970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8972 echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8980 # Is the header compilable?
8981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990 $ac_includes_default
8991 #include <$ac_header>
8993 rm -f conftest.$ac_objext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995 (eval $ac_compile) 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -s conftest.$ac_objext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_header_compiler=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_header_compiler=no
9012 rm -f conftest.$ac_objext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014 echo "${ECHO_T}$ac_header_compiler" >&6
9016 # Is the header present?
9017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9020 #line $LINENO "configure"
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 #include <$ac_header>
9028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9031 grep -v '^ *+' conftest.er1 >conftest.err
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } >/dev/null; then
9036 if test -s conftest.err; then
9037 ac_cpp_err=$ac_c_preproc_warn_flag
9044 if test -z "$ac_cpp_err"; then
9045 ac_header_preproc=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_header_preproc=no
9052 rm -f conftest.err conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054 echo "${ECHO_T}$ac_header_preproc" >&6
9056 # So? What about this header?
9057 case $ac_header_compiler:$ac_header_preproc in
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9065 ## ------------------------------------ ##
9066 ## Report this to bug-autoconf@gnu.org. ##
9067 ## ------------------------------------ ##
9070 sed "s/^/$as_me: WARNING: /" >&2
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9081 ## ------------------------------------ ##
9082 ## Report this to bug-autoconf@gnu.org. ##
9083 ## ------------------------------------ ##
9086 sed "s/^/$as_me: WARNING: /" >&2
9089 echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 eval "$as_ac_Header=$ac_header_preproc"
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9101 cat >>confdefs.h <<_ACEOF
9102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9110 for ac_func in getpagesize
9112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9119 #line $LINENO "configure"
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 /* System header to define __stub macros and hopefully few prototypes,
9126 which can conflict with char $ac_func (); below.
9127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9128 <limits.h> exists even on freestanding compilers. */
9130 # include <limits.h>
9132 # include <assert.h>
9134 /* Override any gcc2 internal prototype to avoid an error. */
9139 /* We use char because int might match the return type of a gcc2
9140 builtin and then its argument prototype would still apply. */
9142 /* The GNU C library defines this for functions which it implements
9143 to always fail with ENOSYS. Some functions are actually named
9144 something starting with __ and the normal name is an alias. */
9145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9148 char (*f) () = $ac_func;
9157 return f != $ac_func;
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 eval "$as_ac_var=yes"
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 eval "$as_ac_var=no"
9181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9185 if test `eval echo '${'$as_ac_var'}'` = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9193 echo "$as_me:$LINENO: checking for working mmap" >&5
9194 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9195 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 if test "$cross_compiling" = yes; then
9199 ac_cv_func_mmap_fixed_mapped=no
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 $ac_includes_default
9209 /* malloc might have been renamed as rpl_malloc. */
9212 /* Thanks to Mike Haertel and Jim Avera for this test.
9213 Here is a matrix of mmap possibilities:
9214 mmap private not fixed
9215 mmap private fixed at somewhere currently unmapped
9216 mmap private fixed at somewhere already mapped
9217 mmap shared not fixed
9218 mmap shared fixed at somewhere currently unmapped
9219 mmap shared fixed at somewhere already mapped
9220 For private mappings, we should verify that changes cannot be read()
9221 back from the file, nor mmap's back from the file at a different
9222 address. (There have been systems where private was not correctly
9223 implemented like the infamous i386 svr4.0, and systems where the
9224 VM page cache was not coherent with the file system buffer cache
9225 like early versions of FreeBSD and possibly contemporary NetBSD.)
9226 For shared mappings, we should conversely verify that changes get
9227 propagated back to all the places they're supposed to be.
9229 Grep wants private fixed already mapped.
9230 The main things grep needs to know about mmap are:
9231 * does it exist and is it safe to write into the mmap'd area
9232 * how to use it (BSD variants) */
9235 #include <sys/mman.h>
9237 #if !STDC_HEADERS && !HAVE_STDLIB_H
9241 /* This mess was copied from the GNU getpagesize.h. */
9242 #if !HAVE_GETPAGESIZE
9243 /* Assume that all systems that can run configure have sys/param.h. */
9244 # if !HAVE_SYS_PARAM_H
9245 # define HAVE_SYS_PARAM_H 1
9248 # ifdef _SC_PAGESIZE
9249 # define getpagesize() sysconf(_SC_PAGESIZE)
9250 # else /* no _SC_PAGESIZE */
9251 # if HAVE_SYS_PARAM_H
9252 # include <sys/param.h>
9253 # ifdef EXEC_PAGESIZE
9254 # define getpagesize() EXEC_PAGESIZE
9255 # else /* no EXEC_PAGESIZE */
9257 # define getpagesize() NBPG * CLSIZE
9260 # endif /* no CLSIZE */
9261 # else /* no NBPG */
9263 # define getpagesize() NBPC
9264 # else /* no NBPC */
9266 # define getpagesize() PAGESIZE
9267 # endif /* PAGESIZE */
9268 # endif /* no NBPC */
9269 # endif /* no NBPG */
9270 # endif /* no EXEC_PAGESIZE */
9271 # else /* no HAVE_SYS_PARAM_H */
9272 # define getpagesize() 8192 /* punt totally */
9273 # endif /* no HAVE_SYS_PARAM_H */
9274 # endif /* no _SC_PAGESIZE */
9276 #endif /* no HAVE_GETPAGESIZE */
9281 char *data, *data2, *data3;
9285 pagesize = getpagesize ();
9287 /* First, make a file with some known garbage in it. */
9288 data = (char *) malloc (pagesize);
9291 for (i = 0; i < pagesize; ++i)
9292 *(data + i) = rand ();
9294 fd = creat ("conftest.mmap", 0600);
9297 if (write (fd, data, pagesize) != pagesize)
9301 /* Next, try to mmap the file at a fixed address which already has
9302 something else allocated at it. If we can, also make sure that
9303 we see the same garbage. */
9304 fd = open ("conftest.mmap", O_RDWR);
9307 data2 = (char *) malloc (2 * pagesize);
9310 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9314 for (i = 0; i < pagesize; ++i)
9315 if (*(data + i) != *(data2 + i))
9318 /* Finally, make sure that changes to the mapped area do not
9319 percolate back to the file as seen by read(). (This is a bug on
9320 some variants of i386 svr4.0.) */
9321 for (i = 0; i < pagesize; ++i)
9322 *(data2 + i) = *(data2 + i) + 1;
9323 data3 = (char *) malloc (pagesize);
9326 if (read (fd, data3, pagesize) != pagesize)
9328 for (i = 0; i < pagesize; ++i)
9329 if (*(data + i) != *(data3 + i))
9335 rm -f conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_func_mmap_fixed_mapped=yes
9348 echo "$as_me: program exited with status $ac_status" >&5
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_cv_func_mmap_fixed_mapped=no
9355 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9362 cat >>confdefs.h <<\_ACEOF
9369 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9370 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9371 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 ac_cv_func_setvbuf_reversed=no
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9384 int (setvbuf) (FILE *, int, char *, size_t);
9389 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9415 int (setvbuf) (FILE *, int, char *, size_t);
9420 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
9431 { ac_try='test -s conftest$ac_exeext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 # It compiles and links either way, so it must not be declared
9438 # with a prototype and most likely this is a K&R C compiler.
9440 if test "$cross_compiling" = yes; then
9441 : # Assume setvbuf is not reversed when cross-compiling.
9443 cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9454 /* This call has the arguments reversed.
9455 A reversed system may check and see that the address of buf
9456 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
9458 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9461 exit (0); /* Non-reversed systems SEGV here. */
9466 rm -f conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_func_setvbuf_reversed=yes
9479 echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9484 rm -f core core.* *.core
9486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9488 ac_cv_func_setvbuf_reversed=yes
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: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9503 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9504 if test $ac_cv_func_setvbuf_reversed = yes; then
9506 cat >>confdefs.h <<\_ACEOF
9507 #define SETVBUF_REVERSED 1
9512 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9514 if test "${ac_cv_type_signal+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <sys/types.h>
9530 extern "C" void (*signal (int, void (*)(int)))(int);
9532 void (*signal ()) ();
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_type_signal=void
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_type_signal=int
9562 rm -f conftest.$ac_objext conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9565 echo "${ECHO_T}$ac_cv_type_signal" >&6
9567 cat >>confdefs.h <<_ACEOF
9568 #define RETSIGTYPE $ac_cv_type_signal
9573 for ac_func in vprintf
9575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9576 echo "$as_me:$LINENO: checking for $ac_func" >&5
9577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_var+set}\" = set"; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char $ac_func (); below.
9590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9591 <limits.h> exists even on freestanding compilers. */
9593 # include <limits.h>
9595 # include <assert.h>
9597 /* Override any gcc2 internal prototype to avoid an error. */
9602 /* We use char because int might match the return type of a gcc2
9603 builtin and then its argument prototype would still apply. */
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9611 char (*f) () = $ac_func;
9620 return f != $ac_func;
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 eval "$as_ac_var=yes"
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 eval "$as_ac_var=no"
9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9648 if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9653 echo "$as_me:$LINENO: checking for _doprnt" >&5
9654 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9655 if test "${ac_cv_func__doprnt+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9659 #line $LINENO "configure"
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 /* System header to define __stub macros and hopefully few prototypes,
9666 which can conflict with char _doprnt (); below.
9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668 <limits.h> exists even on freestanding compilers. */
9670 # include <limits.h>
9672 # include <assert.h>
9674 /* Override any gcc2 internal prototype to avoid an error. */
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9682 /* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9688 char (*f) () = _doprnt;
9697 return f != _doprnt;
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_func__doprnt=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_func__doprnt=no
9721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9724 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9725 if test $ac_cv_func__doprnt = yes; then
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_DOPRNT 1
9805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9806 echo "$as_me:$LINENO: checking for $ac_func" >&5
9807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9808 if eval "test \"\${$as_ac_var+set}\" = set"; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 /* System header to define __stub macros and hopefully few prototypes,
9819 which can conflict with char $ac_func (); below.
9820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821 <limits.h> exists even on freestanding compilers. */
9823 # include <limits.h>
9825 # include <assert.h>
9827 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9841 char (*f) () = $ac_func;
9850 return f != $ac_func;
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 eval "$as_ac_var=yes"
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 eval "$as_ac_var=no"
9874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9878 if test `eval echo '${'$as_ac_var'}'` = yes; then
9879 cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9886 echo "$as_me:$LINENO: checking for getopt_long" >&5
9887 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
9888 if test "${ac_cv_func_getopt_long+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 /* System header to define __stub macros and hopefully few prototypes,
9899 which can conflict with char getopt_long (); below.
9900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9901 <limits.h> exists even on freestanding compilers. */
9903 # include <limits.h>
9905 # include <assert.h>
9907 /* Override any gcc2 internal prototype to avoid an error. */
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9914 char getopt_long ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
9921 char (*f) () = getopt_long;
9930 return f != getopt_long;
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_func_getopt_long=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_func_getopt_long=no
9954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9957 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
9958 if test $ac_cv_func_getopt_long = yes; then
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_GETOPT_LONG 1
9964 tm_cv_needgetopt="no"
9966 tm_cv_needgetopt="yes"
9971 if test "x$tm_cv_needgetopt" = "xyes"; then
9973 NEEDGETOPT_FALSE='#'
9981 if test "x$CYGNUS" = xyes; then
9982 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
9984 echo "$as_me:$LINENO: checking for opendir" >&5
9985 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9986 if test "${ac_cv_func_opendir+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line $LINENO "configure"
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 /* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char opendir (); below.
9998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999 <limits.h> exists even on freestanding compilers. */
10001 # include <limits.h>
10003 # include <assert.h>
10005 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_opendir) || defined (__stub___opendir)
10019 char (*f) () = opendir;
10028 return f != opendir;
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_func_opendir=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_func_opendir=no
10052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10054 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10055 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10056 if test $ac_cv_func_opendir = yes; then
10059 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10064 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10068 if test "x$enable_network" = "xyes"; then
10069 echo "$as_me:$LINENO: checking for socket" >&5
10070 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10071 if test "${ac_cv_func_socket+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 #line $LINENO "configure"
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 /* System header to define __stub macros and hopefully few prototypes,
10082 which can conflict with char socket (); below.
10083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10084 <limits.h> exists even on freestanding compilers. */
10086 # include <limits.h>
10088 # include <assert.h>
10090 /* Override any gcc2 internal prototype to avoid an error. */
10095 /* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined (__stub_socket) || defined (__stub___socket)
10104 char (*f) () = socket;
10113 return f != socket;
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_func_socket=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_func_socket=no
10137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10140 echo "${ECHO_T}$ac_cv_func_socket" >&6
10141 if test $ac_cv_func_socket = yes; then
10144 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10145 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10146 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10147 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_save_LIBS="$LIBS"
10151 LIBS="-lwsock32 $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 #include <windows.h>
10160 #include <winsock.h>
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 eval "wapi_cv_lib_$ac_lib_var=yes"
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 eval "wapi_cv_lib_$ac_lib_var=no"
10189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10190 LIBS="$ac_save_LIBS"
10193 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10194 echo "$as_me:$LINENO: result: yes" >&5
10195 echo "${ECHO_T}yes" >&6
10196 EXTRALIBS="$EXTRALIBS -lwsock32"
10197 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10199 echo "$as_me:$LINENO: result: no" >&5
10200 echo "${ECHO_T}no" >&6
10209 if test "x$CYGWIN" = xyes; then
10210 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
10212 echo "$as_me:$LINENO: checking for opendir" >&5
10213 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10214 if test "${ac_cv_func_opendir+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10218 #line $LINENO "configure"
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char opendir (); below.
10226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227 <limits.h> exists even on freestanding compilers. */
10229 # include <limits.h>
10231 # include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_opendir) || defined (__stub___opendir)
10247 char (*f) () = opendir;
10256 return f != opendir;
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_func_opendir=yes
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_func_opendir=no
10280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10283 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10284 if test $ac_cv_func_opendir = yes; then
10287 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10292 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10296 if test "x$enable_network" = "xyes"; then
10297 echo "$as_me:$LINENO: checking for socket" >&5
10298 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10299 if test "${ac_cv_func_socket+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 /* System header to define __stub macros and hopefully few prototypes,
10310 which can conflict with char socket (); below.
10311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10312 <limits.h> exists even on freestanding compilers. */
10314 # include <limits.h>
10316 # include <assert.h>
10318 /* Override any gcc2 internal prototype to avoid an error. */
10323 /* We use char because int might match the return type of a gcc2
10324 builtin and then its argument prototype would still apply. */
10326 /* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329 #if defined (__stub_socket) || defined (__stub___socket)
10332 char (*f) () = socket;
10341 return f != socket;
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_func_socket=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_func_socket=no
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10367 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10368 echo "${ECHO_T}$ac_cv_func_socket" >&6
10369 if test $ac_cv_func_socket = yes; then
10372 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10373 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10374 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10375 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 ac_save_LIBS="$LIBS"
10379 LIBS="-lwsock32 $LIBS"
10380 cat >conftest.$ac_ext <<_ACEOF
10381 #line $LINENO "configure"
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <windows.h>
10388 #include <winsock.h>
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400 (eval $ac_link) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "wapi_cv_lib_$ac_lib_var=yes"
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 eval "wapi_cv_lib_$ac_lib_var=no"
10417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10418 LIBS="$ac_save_LIBS"
10421 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10424 EXTRALIBS="$EXTRALIBS -lwsock32"
10425 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10427 echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10436 # Checks on extra paths
10439 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10440 if test "${with_tcl_includes+set}" = set; then
10441 withval="$with_tcl_includes"
10442 if test ! -d $withval; then
10443 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10444 echo "$as_me: WARNING: $withval is not found." >&2;}
10446 tcl_include_dir="-I$withval"
10450 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10451 if test "${with_tcl_libs+set}" = set; then
10452 withval="$with_tcl_libs"
10453 if test ! -d $withval; then
10454 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10455 echo "$as_me: WARNING: $withval is not found." >&2;}
10457 tcl_libdir="-L$withval"
10460 # Check whether --with-tk-includes or --without-tk-includes was given.
10461 if test "${with_tk_includes+set}" = set; then
10462 withval="$with_tk_includes"
10463 if test ! -d $withval; then
10464 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10465 echo "$as_me: WARNING: $withval is not found." >&2;}
10467 tk_includes="-I$withval"
10470 # Check whether --with-tk-libs or --without-tk-libs was given.
10471 if test "${with_tk_libs+set}" = set; then
10472 withval="$with_tk_libs"
10473 if test ! -d $withval; then
10474 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10475 echo "$as_me: WARNING: $withval is not found." >&2;}
10477 tk_libdir="-L$withval"
10481 # Check whether --with-offix-includes or --without-offix-includes was given.
10482 if test "${with_offix_includes+set}" = set; then
10483 withval="$with_offix_includes"
10484 if test ! -d $withval; then
10485 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10486 echo "$as_me: WARNING: $withval is not found." >&2;}
10488 offix_include_dir="-I$withval"
10491 # Check whether --with-offix-libs or --without-offix-libs was given.
10492 if test "${with_offix_libs+set}" = set; then
10493 withval="$with_offix_libs"
10494 if test ! -d $withval; then
10495 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10496 echo "$as_me: WARNING: $withval is not found." >&2;}
10498 offix_lib_dir="-L$withval"
10506 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
10509 # Check whether --with-nas-library or --without-nas-library was given.
10510 if test "${with_nas_library+set}" = set; then
10511 withval="$with_nas_library"
10515 # Check whether --with-nas-includes or --without-nas-includes was given.
10516 if test "${with_nas_includes+set}" = set; then
10517 withval="$with_nas_includes"
10522 # Check whether --enable-audio or --disable-audio was given.
10523 if test "${enable_audio+set}" = set; then
10524 enableval="$enable_audio"
10525 enable_audio=$enableval
10532 test "x$enable_audio" = xyes && enable_audio=default
10534 if test "x$enable_audio" != xno; then
10535 for i in `echo $enable_audio | sed 's/,/ /g'`; do
10536 eval "au_enable_$i=yes"
10542 # Check whether --with-default-output or --without-default-output was given.
10543 if test "${with_default_output+set}" = set; then
10544 withval="$with_default_output"
10545 if test "$enable_audio" != no; then
10546 DEFAULT_PLAYMODE=$withval
10547 eval "au_enable_$DEFAULT_PLAYMODE=yes"
10549 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10550 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10555 if test "x$au_enable_default" = xyes; then
10557 *-*-linux*|*-*-freebsd*)
10561 au_enable_sb_dsp=yes
10563 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10591 au_enable_darwin=yes
10594 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10595 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10601 # Each audio mode's configurations
10602 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10603 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10604 if test "x$au_enable_oss" = xyes; then
10605 EXTRADEFS="$EXTRADEFS -DAU_OSS"
10606 SYSEXTRAS="$SYSEXTRAS oss_a.c"
10607 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10608 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10609 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10613 echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6
10617 if test "x$ac_cv_header_soundcard_h" = xyes; then
10618 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10619 echo "${ECHO_T}yes - <soundcard.h>" >&6
10621 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10622 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10628 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10629 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10630 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-lossaudio $LIBS"
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10643 /* Override any gcc2 internal prototype to avoid an error. */
10647 /* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_lib_ossaudio_open=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_lib_ossaudio_open=no
10677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10681 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10682 if test $ac_cv_lib_ossaudio_open = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_LIBOSSAUDIO 1
10687 LIBS="-lossaudio $LIBS"
10694 if test ! -e "/dev/dsp"; then
10695 oss_device=/dev/audio
10700 echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6
10704 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10705 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10706 if test "x$au_enable_sun" = xyes; then
10709 if test -f /usr/demo/SOUND/libaudio.a; then
10710 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10711 echo "$as_me:$LINENO: result: yes" >&5
10712 echo "${ECHO_T}yes" >&6
10714 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10715 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10719 if test -f /usr/demo/SOUND/lib/libaudio.a; then
10720 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10721 echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10724 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10725 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10728 *) echo "$as_me:$LINENO: result: yes" >&5
10729 echo "${ECHO_T}yes" >&6
10732 EXTRADEFS="$EXTRADEFS -DAU_SUN"
10733 SYSEXTRAS="$SYSEXTRAS sun_a.c"
10735 echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10739 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10740 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10741 if test "x$au_enable_hpux" = xyes; then
10743 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10744 echo "${ECHO_T}yes" >&6 ;;
10745 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10746 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10748 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10749 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10751 echo "$as_me:$LINENO: result: no" >&5
10752 echo "${ECHO_T}no" >&6
10755 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10756 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10757 if test "x$au_enable_irix" = xyes; then
10759 *-sgi-irix5*|*-sgi-irix6.2)
10760 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10761 echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10765 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10766 echo "$as_me:$LINENO: result: yes" >&5
10767 echo "${ECHO_T}yes" >&6
10769 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10770 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10772 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10773 EXTRALIBS="$EXTRASLIBS -laudio"
10775 echo "$as_me:$LINENO: result: no" >&5
10776 echo "${ECHO_T}no" >&6
10779 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10780 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10781 if test "x$au_enable_mme" = xyes; then
10783 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10784 echo "${ECHO_T}yes" >&6 ;;
10785 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10786 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10788 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10789 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10790 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10791 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10793 echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6
10797 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10798 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10799 if test "x$au_enable_sb_dsp" = xyes; then
10801 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10802 echo "${ECHO_T}yes" >&6 ;;
10803 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10804 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10806 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10807 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10809 echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6
10813 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10814 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10815 if test "x$au_enable_w32" = xyes; then
10818 echo "$as_me:$LINENO: result: yes" >&5
10819 echo "${ECHO_T}yes" >&6
10822 echo "$as_me:$LINENO: result: yes" >&5
10823 echo "${ECHO_T}yes" >&6
10826 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10827 echo "$as_me: WARNING: may not work on $target" >&2;}
10830 SYSEXTRAS="$SYSEXTRAS w32_a.c"
10831 EXTRALIBS="$EXTRALIBS -lwinmm"
10832 EXTRADEFS="$EXTRADEFS -DAU_W32"
10834 echo "$as_me:$LINENO: result: no" >&5
10835 echo "${ECHO_T}no" >&6
10838 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10839 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10840 if test "x$au_enable_darwin" = xyes; then
10841 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10842 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10843 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10846 echo "$as_me:$LINENO: result: yes" >&5
10847 echo "${ECHO_T}yes" >&6;;
10849 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10850 echo "$as_me: WARNING: may not work on $target" >&2;}
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10859 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10860 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10861 if test "x$au_enable_alsa" = xyes; then
10862 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10863 echo "${ECHO_T}yes, configuring alsa" >&6
10866 KEEPLDFLAGS=$LDFLAGS
10867 alsa_save_CFLAGS="$CFLAGS"
10868 alsa_save_LDFLAGS="$LDFLAGS"
10869 alsa_save_LIBS="$LIBS"
10873 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10874 if test "${with_alsa_prefix+set}" = set; then
10875 withval="$with_alsa_prefix"
10876 alsa_prefix="$withval"
10882 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10883 if test "${with_alsa_inc_prefix+set}" = set; then
10884 withval="$with_alsa_inc_prefix"
10885 alsa_inc_prefix="$withval"
10890 # Check whether --enable-alsatest or --disable-alsatest was given.
10891 if test "${enable_alsatest+set}" = set; then
10892 enableval="$enable_alsatest"
10895 enable_alsatest=yes
10898 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10899 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10900 if test "$alsa_inc_prefix" != "" ; then
10901 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10902 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10904 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10905 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10907 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10908 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10909 if test "$alsa_prefix" != "" ; then
10910 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10911 LDFLAGS="$LDFLAGS $ALSA_LIBS"
10914 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10915 LIBS=`echo $LIBS | sed 's/-lm//'`
10916 LIBS=`echo $LIBS | sed 's/-ldl//'`
10917 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10918 LIBS=`echo $LIBS | sed 's/ //'`
10919 LIBS="$ALSA_LIBS $LIBS"
10920 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10921 echo "${ECHO_T}$ALSA_LIBS" >&6
10923 min_alsa_version=0.1.1
10924 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10925 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10927 alsa_min_major_version=`echo $min_alsa_version | \
10928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10929 alsa_min_minor_version=`echo $min_alsa_version | \
10930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10931 alsa_min_micro_version=`echo $min_alsa_version | \
10932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943 cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10951 #include <alsa/asoundlib.h>
10957 /* ensure backward compatibility */
10958 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10959 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10961 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10962 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10964 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10965 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10968 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10971 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10972 # error not present
10975 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10978 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10979 # error not present
10982 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10983 # error not present
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995 (eval $ac_compile) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 echo "$as_me:$LINENO: result: found." >&5
11006 echo "${ECHO_T}found." >&6
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11019 #include <sys/asoundlib.h>
11025 /* ensure backward compatibility */
11026 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11027 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11029 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11030 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11032 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11033 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11036 # if(SND_LIB_MAJOR > $alsa_min_major_version)
11039 # if(SND_LIB_MAJOR < $alsa_min_major_version)
11040 # error not present
11043 # if(SND_LIB_MINOR > $alsa_min_minor_version)
11046 # if(SND_LIB_MINOR < $alsa_min_minor_version)
11047 # error not present
11050 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11051 # error not present
11061 rm -f conftest.$ac_objext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063 (eval $ac_compile) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -s conftest.$ac_objext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 echo "$as_me:$LINENO: result: found." >&5
11074 echo "${ECHO_T}found." >&6
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 echo "$as_me:$LINENO: result: not present." >&5
11080 echo "${ECHO_T}not present." >&6
11081 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
11082 echo "${ECHO_T}libasound was not found anywhere." >&6
11085 rm -f conftest.$ac_objext conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
11087 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
11090 rm -f conftest.$ac_objext conftest.$ac_ext
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11099 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
11100 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11101 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-lasound $LIBS"
11106 cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11114 /* Override any gcc2 internal prototype to avoid an error. */
11118 /* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120 char snd_ctl_open ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_lib_asound_snd_ctl_open=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_cv_lib_asound_snd_ctl_open=no
11148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11151 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11152 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11153 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_LIBASOUND 1
11158 LIBS="-lasound $LIBS"
11161 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11162 echo "${ECHO_T}No linkable libasound was found." >&6
11168 if test "x$alsa_found" = "xyes" ; then
11170 LIBS=`echo $LIBS | sed 's/-lasound//g'`
11171 LIBS=`echo $LIBS | sed 's/ //'`
11172 LIBS="-lasound $LIBS"
11175 CFLAGS="$alsa_save_CFLAGS"
11176 LDFLAGS="$alsa_save_LDFLAGS"
11177 LIBS="$alsa_save_LIBS"
11185 if test "x$alsa_found" = "xyes" ; then
11186 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11187 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11188 for f in $ALSA_CFLAGS; do
11190 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11191 *) CFLAGS="$CPPFLAGS $f" ;;
11195 LIBS="$KEEPLIBS $ALSA_LIBS"
11197 for ac_func in snd_seq_port_info_set_timestamping
11199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_var+set}\" = set"; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 /* System header to define __stub macros and hopefully few prototypes,
11213 which can conflict with char $ac_func (); below.
11214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215 <limits.h> exists even on freestanding compilers. */
11217 # include <limits.h>
11219 # include <assert.h>
11221 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11229 /* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11235 char (*f) () = $ac_func;
11244 return f != $ac_func;
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_var=yes"
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 eval "$as_ac_var=no"
11268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11272 if test `eval echo '${'$as_ac_var'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11281 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11282 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11285 LDFLAGS=$KEEPLDFLAGS
11288 echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6
11292 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11293 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11294 if test "x$au_enable_alib" = xyes; then
11296 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11297 echo "${ECHO_T}yes" >&6 ;;
11298 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11299 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11301 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11302 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11303 if test -d /opt/audio/include; then
11304 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11306 if test -d /opt/audio/lib; then
11307 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11309 EXTRALIBS="$EXTRALIBS -lAlib"
11311 echo "$as_me:$LINENO: result: no" >&5
11312 echo "${ECHO_T}no" >&6
11315 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11316 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11317 if test "x$au_enable_nas" = xyes; then
11318 if test "x$with_x" != xyes; then
11319 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11320 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11321 { (exit 1); exit 1; }; }
11323 EXTRADEFS="$EXTRADEFS -DAU_NAS"
11324 SYSEXTRAS="$SYSEXTRAS nas_a.c"
11327 if test "x$with_nas_library" != x; then
11328 echo "$as_me:$LINENO: result: $with_nas_library" >&5
11329 echo "${ECHO_T}$with_nas_library" >&6;
11330 EXTRALIBS="$EXTRALIBS $with_nas_library"
11332 echo "$as_me:$LINENO: result: " >&5
11333 echo "${ECHO_T}" >&6
11334 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11335 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11336 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 ac_func_search_save_LIBS="$LIBS"
11340 timidity_cv_search_AuOpenServer="no"
11341 for i in $x_libraries/libaudio.a \
11342 /usr/lib/libaudio.so \
11343 /usr/lib/libaudio.a ; do
11344 LIBS="$i $ac_func_search_save_LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346 #line $LINENO "configure"
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11353 /* Override any gcc2 internal prototype to avoid an error. */
11357 /* We use char because int might match the return type of a gcc2
11358 builtin and then its argument prototype would still apply. */
11359 char AuOpenServer ();
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370 (eval $ac_link) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 timidity_cv_search_AuOpenServer="$i"; break
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11388 LIBS="$ac_func_search_save_LIBS"
11390 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11391 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11392 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11393 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11394 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11395 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11397 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11398 echo "$as_me: WARNING: NAS library is not found." >&2;}
11401 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11403 if test "x$have_xext" = xyes; then
11404 lib_xext_opt=-lXext
11406 if test "x$have_xprelibs" = xyes; then
11407 lib_xprelibs_opt='-lSM -lICE'
11410 echo "$as_me:$LINENO: result: no" >&5
11411 echo "${ECHO_T}no" >&6
11414 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11415 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11416 if test "x$au_enable_arts" = xyes; then
11417 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11418 echo "${ECHO_T}yes, configuring aRts" >&6
11421 KEEPLDFLAGS=$LDFLAGS
11423 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11424 if test "${with_arts_prefix+set}" = set; then
11425 withval="$with_arts_prefix"
11426 arts_prefix="$withval"
11430 # Check whether --enable-artstest or --disable-artstest was given.
11431 if test "${enable_artstest+set}" = set; then
11432 enableval="$enable_artstest"
11435 enable_artstest=yes
11438 if test x$arts_prefix != x ; then
11439 arts_args="$arts_args --prefix=$arts_prefix"
11440 if test x${ARTS_CONFIG+set} != xset ; then
11441 ARTS_CONFIG=$arts_prefix/bin/artsc-config
11445 # Extract the first word of "artsc-config", so it can be a program name with args.
11446 set dummy artsc-config; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 case $ARTS_CONFIG in
11454 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11475 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11477 if test -n "$ARTS_CONFIG"; then
11478 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11479 echo "${ECHO_T}$ARTS_CONFIG" >&6
11481 echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6
11485 min_arts_version=0.9.5
11486 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11487 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11489 if test "$ARTS_CONFIG" = "no" ; then
11492 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11493 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11495 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11496 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11497 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11498 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11499 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11500 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11501 if test "x$enable_artstest" = "xyes" ; then
11502 ac_save_CFLAGS="$CFLAGS"
11503 ac_save_LIBS="$LIBS"
11504 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11505 LIBS="$LIBS $ARTS_LIBS"
11506 rm -f conf.artstest
11507 if test "$cross_compiling" = yes; then
11508 echo $ac_n "cross compiling; assumed OK... $ac_c"
11510 cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11519 #include <stdlib.h>
11520 #include <string.h>
11524 my_strdup (char *str)
11530 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11531 strcpy (new_str, str);
11541 int major, minor, micro;
11544 system ("touch conf.artstest");
11546 /* HP/UX 9 (%@#!) writes to sscanf strings */
11547 tmp_version = my_strdup("$min_arts_version");
11548 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11549 printf("%s, bad version string\n", "$min_arts_version");
11553 if (($arts_major_version > major) ||
11554 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11555 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11561 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11562 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11563 printf("*** best to upgrade to the required version.\n");
11564 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11565 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11566 printf("*** config.cache before re-running configure\n");
11573 rm -f conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575 (eval $ac_link) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11586 echo "$as_me: program exited with status $ac_status" >&5
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ( exit $ac_status )
11593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11595 CFLAGS="$ac_save_CFLAGS"
11596 LIBS="$ac_save_LIBS"
11599 if test "x$no_arts" = x ; then
11600 echo "$as_me:$LINENO: result: yes" >&5
11601 echo "${ECHO_T}yes" >&6
11604 echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11606 if test "$ARTS_CONFIG" = "no" ; then
11607 echo "*** The artsc-config script installed by ARTS could not be found"
11608 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11609 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11610 echo "*** full path to artsc-config."
11612 if test -f conf.artstest ; then
11615 echo "*** Could not run ARTS test program, checking why..."
11616 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11617 LIBS="$LIBS $ARTS_LIBS"
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 echo "*** The test program compiled, but did not run. This usually means"
11650 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11651 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11652 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11653 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11654 echo "*** is required on your system"
11656 echo "*** If you have an old version installed, it is best to remove it, although"
11657 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 echo "*** The test program failed to compile or link. See the file config.log for the"
11663 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11664 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11665 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 CFLAGS="$ac_save_CFLAGS"
11669 LIBS="$ac_save_LIBS"
11678 rm -f conf.artstest
11682 LDFLAGS=$KEEPLDFLAGS
11683 if test "x$no_arts" = x; then
11684 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11685 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11686 for f in $ARTS_CFLAGS; do
11688 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11689 *) CFLAGS="$CPPFLAGS $f" ;;
11693 LIBS="$LIBS $ARTS_LIBS"
11695 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11696 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11699 echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6
11703 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11704 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11705 if test "x$au_enable_esd" = xyes; then
11706 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11707 echo "${ECHO_T}yes, configuring esd" >&6
11710 KEEPLDFLAGS=$LDFLAGS
11712 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11713 if test "${with_esd_prefix+set}" = set; then
11714 withval="$with_esd_prefix"
11715 esd_prefix="$withval"
11720 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11721 if test "${with_esd_exec_prefix+set}" = set; then
11722 withval="$with_esd_exec_prefix"
11723 esd_exec_prefix="$withval"
11727 # Check whether --enable-esdtest or --disable-esdtest was given.
11728 if test "${enable_esdtest+set}" = set; then
11729 enableval="$enable_esdtest"
11735 if test x$esd_exec_prefix != x ; then
11736 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11737 if test x${ESD_CONFIG+set} != xset ; then
11738 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11741 if test x$esd_prefix != x ; then
11742 esd_args="$esd_args --prefix=$esd_prefix"
11743 if test x${ESD_CONFIG+set} != xset ; then
11744 ESD_CONFIG=$esd_prefix/bin/esd-config
11748 # Extract the first word of "esd-config", so it can be a program name with args.
11749 set dummy esd-config; ac_word=$2
11750 echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11752 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 case $ESD_CONFIG in
11757 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11778 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11780 if test -n "$ESD_CONFIG"; then
11781 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11782 echo "${ECHO_T}$ESD_CONFIG" >&6
11784 echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11788 min_esd_version=0.2.7
11789 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11790 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11792 if test "$ESD_CONFIG" = "no" ; then
11798 ac_cpp='$CPP $CPPFLAGS'
11799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11804 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11806 esd_major_version=`$ESD_CONFIG $esd_args --version | \
11807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11808 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11810 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11812 if test "x$enable_esdtest" = "xyes" ; then
11813 ac_save_CFLAGS="$CFLAGS"
11814 ac_save_LIBS="$LIBS"
11815 CFLAGS="$CFLAGS $ESD_CFLAGS"
11816 LIBS="$LIBS $ESD_LIBS"
11818 if test "$cross_compiling" = yes; then
11819 echo $ac_n "cross compiling; assumed OK... $ac_c"
11821 cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11830 #include <stdlib.h>
11831 #include <string.h>
11835 my_strdup (char *str)
11841 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11842 strcpy (new_str, str);
11852 int major, minor, micro;
11855 system ("touch conf.esdtest");
11857 /* HP/UX 9 (%@#!) writes to sscanf strings */
11858 tmp_version = my_strdup("$min_esd_version");
11859 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11860 printf("%s, bad version string\n", "$min_esd_version");
11864 if (($esd_major_version > major) ||
11865 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11866 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11872 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11873 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11874 printf("*** best to upgrade to the required version.\n");
11875 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11876 printf("*** to point to the correct copy of esd-config, and remove the file\n");
11877 printf("*** config.cache before re-running configure\n");
11884 rm -f conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11897 echo "$as_me: program exited with status $ac_status" >&5
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ( exit $ac_status )
11904 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11906 CFLAGS="$ac_save_CFLAGS"
11907 LIBS="$ac_save_LIBS"
11909 ac_cpp='$CPP $CPPFLAGS'
11910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916 if test "x$no_esd" = x ; then
11917 echo "$as_me:$LINENO: result: yes" >&5
11918 echo "${ECHO_T}yes" >&6
11921 echo "$as_me:$LINENO: result: no" >&5
11922 echo "${ECHO_T}no" >&6
11923 if test "$ESD_CONFIG" = "no" ; then
11924 echo "*** The esd-config script installed by ESD could not be found"
11925 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11926 echo "*** your path, or set the ESD_CONFIG environment variable to the"
11927 echo "*** full path to esd-config."
11929 if test -f conf.esdtest ; then
11932 echo "*** Could not run ESD test program, checking why..."
11933 CFLAGS="$CFLAGS $ESD_CFLAGS"
11934 LIBS="$LIBS $ESD_LIBS"
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943 cat >conftest.$ac_ext <<_ACEOF
11944 #line $LINENO "configure"
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964 (eval $ac_link) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 echo "*** The test program compiled, but did not run. This usually means"
11975 echo "*** that the run-time linker is not finding ESD or finding the wrong"
11976 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11977 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11978 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11979 echo "*** is required on your system"
11981 echo "*** If you have an old version installed, it is best to remove it, although"
11982 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 echo "*** The test program failed to compile or link. See the file config.log for the"
11988 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11989 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11990 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11993 CFLAGS="$ac_save_CFLAGS"
11994 LIBS="$ac_save_LIBS"
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12013 LDFLAGS=$KEEPLDFLAGS
12014 if test "x$no_esd" = x; then
12015 EXTRADEFS="$EXTRADEFS -DAU_ESD"
12016 SYSEXTRAS="$SYSEXTRAS esd_a.c"
12017 for f in $ESD_CFLAGS; do
12019 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12020 *) CFLAGS="$CPPFLAGS $f" ;;
12024 LIBS="$LIBS $ESD_LIBS"
12026 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12027 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12030 echo "$as_me:$LINENO: result: no" >&5
12031 echo "${ECHO_T}no" >&6
12034 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12035 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12036 if test "x$au_enable_portaudio" = xyes; then
12037 echo "$as_me:$LINENO: result: yes" >&5
12038 echo "${ECHO_T}yes" >&6
12039 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12040 EXTRALIBS="$EXTRALIBS -lportaudio"
12041 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12043 echo "$as_me:$LINENO: result: no" >&5
12044 echo "${ECHO_T}no" >&6
12047 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12048 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12049 if test "x$au_enable_jack" = xyes; then
12050 echo "$as_me:$LINENO: result: yes" >&5
12051 echo "${ECHO_T}yes" >&6
12052 SYSEXTRAS="$SYSEXTRAS jack_a.c"
12053 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12054 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12056 echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12060 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
12061 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
12062 if test "x$au_enable_vorbis" = xyes; then
12063 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
12064 echo "${ECHO_T}yes, configuring vorbis" >&6
12066 # Check whether --with-ogg or --without-ogg was given.
12067 if test "${with_ogg+set}" = set; then
12068 withval="$with_ogg"
12069 ogg_prefix="$withval"
12074 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
12075 if test "${with_ogg_libraries+set}" = set; then
12076 withval="$with_ogg_libraries"
12077 ogg_libraries="$withval"
12082 # Check whether --with-ogg-includes or --without-ogg-includes was given.
12083 if test "${with_ogg_includes+set}" = set; then
12084 withval="$with_ogg_includes"
12085 ogg_includes="$withval"
12089 # Check whether --enable-oggtest or --disable-oggtest was given.
12090 if test "${enable_oggtest+set}" = set; then
12091 enableval="$enable_oggtest"
12097 if test "x$ogg_libraries" != "x" ; then
12098 OGG_LIBS="-L$ogg_libraries"
12099 elif test "x$ogg_prefix" != "x" ; then
12100 OGG_LIBS="-L$ogg_prefix/lib"
12101 elif test "x$prefix" != "xNONE" ; then
12102 OGG_LIBS="-L$prefix/lib"
12105 OGG_LIBS="$OGG_LIBS -logg"
12107 if test "x$ogg_includes" != "x" ; then
12108 OGG_CFLAGS="-I$ogg_includes"
12109 elif test "x$ogg_prefix" != "x" ; then
12110 OGG_CFLAGS="-I$ogg_prefix/include"
12111 elif test "x$prefix" != "xNONE"; then
12112 OGG_CFLAGS="-I$prefix/include"
12115 echo "$as_me:$LINENO: checking for Ogg" >&5
12116 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
12120 if test "x$enable_oggtest" = "xyes" ; then
12121 ac_save_CFLAGS="$CFLAGS"
12122 ac_save_LIBS="$LIBS"
12123 CFLAGS="$CFLAGS $OGG_CFLAGS"
12124 LIBS="$LIBS $OGG_LIBS"
12126 if test "$cross_compiling" = yes; then
12127 echo $ac_n "cross compiling; assumed OK... $ac_c"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12138 #include <stdlib.h>
12139 #include <string.h>
12140 #include <ogg/ogg.h>
12144 system("touch conf.oggtest");
12150 rm -f conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12163 echo "$as_me: program exited with status $ac_status" >&5
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 ( exit $ac_status )
12170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12172 CFLAGS="$ac_save_CFLAGS"
12173 LIBS="$ac_save_LIBS"
12176 if test "x$no_ogg" = "x" ; then
12177 echo "$as_me:$LINENO: result: yes" >&5
12178 echo "${ECHO_T}yes" >&6
12181 # Check whether --with-vorbis or --without-vorbis was given.
12182 if test "${with_vorbis+set}" = set; then
12183 withval="$with_vorbis"
12184 vorbis_prefix="$withval"
12189 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
12190 if test "${with_vorbis_libraries+set}" = set; then
12191 withval="$with_vorbis_libraries"
12192 vorbis_libraries="$withval"
12194 vorbis_libraries=""
12197 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
12198 if test "${with_vorbis_includes+set}" = set; then
12199 withval="$with_vorbis_includes"
12200 vorbis_includes="$withval"
12204 # Check whether --enable-vorbistest or --disable-vorbistest was given.
12205 if test "${enable_vorbistest+set}" = set; then
12206 enableval="$enable_vorbistest"
12209 enable_vorbistest=yes
12212 if test "x$vorbis_libraries" != "x" ; then
12213 VORBIS_LIBS="-L$vorbis_libraries"
12214 elif test "x$vorbis_prefix" != "x" ; then
12215 VORBIS_LIBS="-L$vorbis_prefix/lib"
12216 elif test "x$prefix" != "xNONE"; then
12217 VORBIS_LIBS="-L$prefix/lib"
12220 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12221 VORBISFILE_LIBS="-lvorbisfile"
12222 VORBISENC_LIBS="-lvorbisenc"
12224 if test "x$vorbis_includes" != "x" ; then
12225 VORBIS_CFLAGS="-I$vorbis_includes"
12226 elif test "x$vorbis_prefix" != "x" ; then
12227 VORBIS_CFLAGS="-I$vorbis_prefix/include"
12228 elif test "x$prefix" != "xNONE"; then
12229 VORBIS_CFLAGS="-I$prefix/include"
12233 echo "$as_me:$LINENO: checking for Vorbis" >&5
12234 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12238 if test "x$enable_vorbistest" = "xyes" ; then
12239 ac_save_CFLAGS="$CFLAGS"
12240 ac_save_LIBS="$LIBS"
12241 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12242 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12243 rm -f conf.vorbistest
12244 if test "$cross_compiling" = yes; then
12245 echo $ac_n "cross compiling; assumed OK... $ac_c"
12247 cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12256 #include <stdlib.h>
12257 #include <string.h>
12258 #include <vorbis/codec.h>
12262 system("touch conf.vorbistest");
12268 rm -f conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12281 echo "$as_me: program exited with status $ac_status" >&5
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ( exit $ac_status )
12288 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12290 CFLAGS="$ac_save_CFLAGS"
12291 LIBS="$ac_save_LIBS"
12294 if test "x$no_vorbis" = "x" ; then
12295 echo "$as_me:$LINENO: result: yes" >&5
12296 echo "${ECHO_T}yes" >&6
12299 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12300 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12301 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12302 if test "x$CYGNUS" = "xyes"; then
12303 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12304 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12306 if test "x$MINGW" = "xyes"; then
12307 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12308 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12312 echo "$as_me:$LINENO: result: no" >&5
12313 echo "${ECHO_T}no" >&6
12314 if test -f conf.vorbistest ; then
12317 echo "*** Could not run Vorbis test program, checking why..."
12318 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12319 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 #line $LINENO "configure"
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12329 #include <vorbis/codec.h>
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -s conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 echo "*** The test program compiled, but did not run. This usually means"
12352 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12353 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12354 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12355 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12356 echo "*** is required on your system"
12358 echo "*** If you have an old version installed, it is best to remove it, although"
12359 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 echo "*** The test program failed to compile or link. See the file config.log for the"
12365 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12366 echo "*** or that you have moved Vorbis since it was installed."
12368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12369 CFLAGS="$ac_save_CFLAGS"
12370 LIBS="$ac_save_LIBS"
12377 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12378 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12385 rm -f conf.vorbistest
12389 echo "$as_me:$LINENO: result: no" >&5
12390 echo "${ECHO_T}no" >&6
12391 if test -f conf.oggtest ; then
12394 echo "*** Could not run Ogg test program, checking why..."
12395 CFLAGS="$CFLAGS $OGG_CFLAGS"
12396 LIBS="$LIBS $OGG_LIBS"
12397 cat >conftest.$ac_ext <<_ACEOF
12398 #line $LINENO "configure"
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12406 #include <ogg/ogg.h>
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 echo "*** The test program compiled, but did not run. This usually means"
12429 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12430 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12431 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12432 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12433 echo "*** is required on your system"
12435 echo "*** If you have an old version installed, it is best to remove it, although"
12436 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 echo "*** The test program failed to compile or link. See the file config.log for the"
12442 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12443 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12444 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12447 CFLAGS="$ac_save_CFLAGS"
12448 LIBS="$ac_save_LIBS"
12453 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12454 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12463 echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6
12467 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12468 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12469 if test "x$au_enable_gogo" = xyes; then
12470 if test "x$CYGNUS" = "xyes"; then
12471 echo "$as_me:$LINENO: result: yes" >&5
12472 echo "${ECHO_T}yes" >&6
12474 if test "x$MINGW" = "xyes"; then
12475 echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6
12478 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
12479 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
12483 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12484 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12485 EXTRALIBS="$EXTRALIBS -lgogo"
12487 echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12491 if test "x$au_enable_none" = xyes; then
12492 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12493 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12495 echo "$as_me:$LINENO: checking default output mode" >&5
12496 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12497 if test "x$DEFAULT_PLAYMODE" = x; then
12498 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12500 case ".$DEFAULT_PLAYMODE" in
12501 .default) TIMIDITY_OUTPUT_ID=d ;;
12502 .oss) TIMIDITY_OUTPUT_ID=d ;;
12503 .alsa) TIMIDITY_OUTPUT_ID=s ;;
12504 .sun) TIMIDITY_OUTPUT_ID=d ;;
12505 .hpux) TIMIDITY_OUTPUT_ID=d ;;
12506 .irix) TIMIDITY_OUTPUT_ID=d ;;
12507 .mme) TIMIDITY_OUTPUT_ID=d ;;
12508 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
12509 .darwin) TIMIDITY_OUTPUT_ID=d ;;
12510 .w32) TIMIDITY_OUTPUT_ID=d ;;
12511 .alib) TIMIDITY_OUTPUT_ID=A ;;
12512 .nas) TIMIDITY_OUTPUT_ID=n ;;
12513 .arts) TIMIDITY_OUTPUT_ID=R ;;
12514 .esd) TIMIDITY_OUTPUT_ID=e ;;
12515 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
12516 .wav) TIMIDITY_OUTPUT_ID=w ;;
12517 .au) TIMIDITY_OUTPUT_ID=u ;;
12518 .aiff) TIMIDITY_OUTPUT_ID=a ;;
12519 .list) TIMIDITY_OUTPUT_ID=l ;;
12520 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
12521 .gogo) TIMIDITY_OUTPUT_ID=g ;;
12522 .jack) TIMIDITY_OUTPUT_ID=j ;;
12523 *) TIMIDITY_OUTPUT_ID= ;;
12525 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12526 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12529 # Interface Section
12532 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12534 # Check whether --enable-interface or --disable-interface was given.
12535 if test "${enable_interface+set}" = set; then
12536 enableval="$enable_interface"
12537 for i in `echo $enableval | sed 's/,/ /g'`; do
12538 eval "enable_$i=yes"
12542 # Dynamic link configuration
12543 # Check whether --enable-dynamic or --disable-dynamic was given.
12544 if test "${enable_dynamic+set}" = set; then
12545 enableval="$enable_dynamic"
12546 if test "x$enable_dynamic" = xyes; then
12547 enable_dynamic=dynamic
12548 elif test "x$enable_dynamic" != xno; then
12549 for i in `echo $enableval | sed 's/,/ /g'`; do
12550 eval "enable_$i=dynamic"
12556 for i in $interface_targets; do
12557 eval "join_targets=$join_targets\$enable_$i"
12560 case ".$join_targets" in
12561 .*dynamic*) NEEDDLOPEN=yes;;
12565 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12566 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12568 if test "$NEEDDLOPEN" = "yes"; then
12571 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12572 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12573 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 cat >conftest.$ac_ext <<_ACEOF
12577 #line $LINENO "configure"
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <windows.h>
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 wapi_cv_func_LoadLibrary=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 wapi_cv_func_LoadLibrary=no
12613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12616 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12617 echo "$as_me:$LINENO: result: yes" >&5
12618 echo "${ECHO_T}yes" >&6
12621 echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6
12625 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12627 if test "$have_dl" = "no"; then
12628 echo "$as_me:$LINENO: checking for shl_load" >&5
12629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12630 if test "${ac_cv_func_shl_load+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 /* System header to define __stub macros and hopefully few prototypes,
12641 which can conflict with char shl_load (); below.
12642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12643 <limits.h> exists even on freestanding compilers. */
12645 # include <limits.h>
12647 # include <assert.h>
12649 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12663 char (*f) () = shl_load;
12672 return f != shl_load;
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -s conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_cv_func_shl_load=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 ac_cv_func_shl_load=no
12696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12699 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12700 if test $ac_cv_func_shl_load = yes; then
12705 if test "$have_dl" = "no"; then
12706 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12707 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12708 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 /* System header to define __stub macros and hopefully few prototypes,
12719 which can conflict with char NSLinkModule (); below.
12720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721 <limits.h> exists even on freestanding compilers. */
12723 # include <limits.h>
12725 # include <assert.h>
12727 /* Override any gcc2 internal prototype to avoid an error. */
12732 /* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12734 char NSLinkModule ();
12735 /* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12741 char (*f) () = NSLinkModule;
12750 return f != NSLinkModule;
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_func_NSLinkModule=yes
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_cv_func_NSLinkModule=no
12774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12776 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12777 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12778 if test $ac_cv_func_NSLinkModule = yes; then
12783 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12786 if test "$have_dl" = "no"; then
12787 echo "$as_me:$LINENO: checking for dlopen" >&5
12788 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12789 if test "${ac_cv_func_dlopen+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 cat >conftest.$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char dlopen (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12804 # include <limits.h>
12806 # include <assert.h>
12808 /* Override any gcc2 internal prototype to avoid an error. */
12813 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12816 /* The GNU C library defines this for functions which it implements
12817 to always fail with ENOSYS. Some functions are actually named
12818 something starting with __ and the normal name is an alias. */
12819 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12822 char (*f) () = dlopen;
12831 return f != dlopen;
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_func_dlopen=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_cv_func_dlopen=no
12855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12857 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12858 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12859 if test $ac_cv_func_dlopen = yes; then
12864 if test "$have_dl" = "no"; then
12865 echo "$as_me:$LINENO: checking for dld_init" >&5
12866 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12867 if test "${ac_cv_func_dld_init+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 cat >conftest.$ac_ext <<_ACEOF
12871 #line $LINENO "configure"
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 /* System header to define __stub macros and hopefully few prototypes,
12878 which can conflict with char dld_init (); below.
12879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12880 <limits.h> exists even on freestanding compilers. */
12882 # include <limits.h>
12884 # include <assert.h>
12886 /* Override any gcc2 internal prototype to avoid an error. */
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12900 char (*f) () = dld_init;
12909 return f != dld_init;
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_func_dld_init=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ac_cv_func_dld_init=no
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12935 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12936 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12937 if test $ac_cv_func_dld_init = yes; then
12942 if test "$have_dl" = "no"; then
12943 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12944 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12945 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 ac_check_lib_save_LIBS=$LIBS
12950 cat >conftest.$ac_ext <<_ACEOF
12951 #line $LINENO "configure"
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12958 /* Override any gcc2 internal prototype to avoid an error. */
12962 /* We use char because int might match the return type of a gcc2
12963 builtin and then its argument prototype would still apply. */
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975 (eval $ac_link) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_dld_dld_init=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_lib_dld_dld_init=no
12992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12996 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12997 if test $ac_cv_lib_dld_dld_init = yes; then
12998 have_dl=dld;lib_dl_opt=-ldld
13003 echo "$as_me:$LINENO: checking dynamic link method" >&5
13004 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
13007 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
13008 echo "${ECHO_T}use dl_dlopen.c" >&6
13009 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
13010 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
13011 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
13012 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 case "$ac_cv_header_dlfcn_h" in
13016 yes) i_dlfcn=define;;
13027 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
13029 #include <sys/types.h>
13034 extern int fred() ;
13043 int mode = RTLD_LAZY ;
13045 handle = dlopen("./dyna.$so", mode) ;
13046 if (handle == NULL) {
13051 symbol = dlsym(handle, "fred") ;
13052 if (symbol == NULL) {
13053 /* try putting a leading underscore */
13054 symbol = dlsym(handle, "_fred") ;
13055 if (symbol == NULL) {
13068 : Call the object file tmp-dyna.o in case dlext=o.
13069 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
13070 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
13071 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
13072 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
13075 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
13076 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
13078 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
13079 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
13081 3) timidity_cv_func_dlsym_underscore=yes
13083 4) timidity_cv_func_dlsym_underscore=no
13087 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
13088 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
13090 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
13094 case "x$timidity_cv_func_dlsym_underscore" in
13096 cat >>confdefs.h <<\_ACEOF
13097 #define DLSYM_NEEDS_UNDERSCORE 1
13100 echo "$as_me:$LINENO: result: yes" >&5
13101 echo "${ECHO_T}yes" >&6
13104 echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6
13111 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
13112 echo "${ECHO_T}use dl_dld.c" >&6
13113 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
13116 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
13117 echo "${ECHO_T}use dl_hpux.c" >&6
13118 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
13119 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
13122 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
13123 echo "${ECHO_T}use dl_w32.c" >&6
13124 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
13127 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
13128 echo "${ECHO_T}use dl_dyld.c" >&6
13129 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
13133 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
13134 echo "$as_me: WARNING: no method to open a shared object" >&2;}
13139 if test "$NEEDDLOPEN" = "yes"; then
13140 cat >> confdefs.h <<EOF
13141 #define IA_DYNAMIC 1
13145 cat >>confdefs.h <<_ACEOF
13146 #define SHARED_LIB_EXT ".$so"
13149 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
13154 if test "$NEEDDLOPEN" = "yes"; then
13156 NEEDDLOPEN_FALSE='#'
13158 NEEDDLOPEN_TRUE='#'
13167 ENABLE_NCURSES_TRUE=
13168 ENABLE_NCURSES_FALSE='#'
13170 ENABLE_NCURSES_TRUE='#'
13171 ENABLE_NCURSES_FALSE=
13174 # Check whether --enable-ncurses or --disable-ncurses was given.
13175 if test "${enable_ncurses+set}" = set; then
13176 enableval="$enable_ncurses"
13177 case "x$enable_ncurses" in xyes|xdynamic)
13180 for ac_header in ncurses.h ncurses/curses.h curses.h
13182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184 echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13192 # Is the header compilable?
13193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 $ac_includes_default
13203 #include <$ac_header>
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_header_compiler=yes
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_header_compiler=no
13224 rm -f conftest.$ac_objext conftest.$ac_ext
13225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13226 echo "${ECHO_T}$ac_header_compiler" >&6
13228 # Is the header present?
13229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13231 cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 #include <$ac_header>
13240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } >/dev/null; then
13248 if test -s conftest.err; then
13249 ac_cpp_err=$ac_c_preproc_warn_flag
13256 if test -z "$ac_cpp_err"; then
13257 ac_header_preproc=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_header_preproc=no
13264 rm -f conftest.err conftest.$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13266 echo "${ECHO_T}$ac_header_preproc" >&6
13268 # So? What about this header?
13269 case $ac_header_compiler:$ac_header_preproc in
13271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13277 ## ------------------------------------ ##
13278 ## Report this to bug-autoconf@gnu.org. ##
13279 ## ------------------------------------ ##
13282 sed "s/^/$as_me: WARNING: /" >&2
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13293 ## ------------------------------------ ##
13294 ## Report this to bug-autoconf@gnu.org. ##
13295 ## ------------------------------------ ##
13298 sed "s/^/$as_me: WARNING: /" >&2
13301 echo "$as_me:$LINENO: checking for $ac_header" >&5
13302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 eval "$as_ac_Header=$ac_header_preproc"
13308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13313 cat >>confdefs.h <<_ACEOF
13314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13325 *) for i in /usr/include /usr/local/include; do
13326 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13327 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
13328 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
13329 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13336 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13337 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13338 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-lncurses $LIBS"
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any gcc2 internal prototype to avoid an error. */
13355 /* We use char because int might match the return type of a gcc2
13356 builtin and then its argument prototype would still apply. */
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368 (eval $ac_link) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -s conftest$ac_exeext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_lib_ncurses_initscr=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_cv_lib_ncurses_initscr=no
13385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13388 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13389 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13390 if test $ac_cv_lib_ncurses_initscr = yes; then
13391 lib_curses_opt=-lncurses
13393 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13394 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13395 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 ac_check_lib_save_LIBS=$LIBS
13399 LIBS="-lcurses $lib_user32_test $LIBS"
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13408 /* Override any gcc2 internal prototype to avoid an error. */
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414 char PDC_set_ctrl_break ();
13418 PDC_set_ctrl_break ();
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_lib_curses_PDC_set_ctrl_break=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_lib_curses_PDC_set_ctrl_break=no
13442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13445 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13446 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13447 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13448 lib_curses_opt=-lcurses
13450 cat >>confdefs.h <<\_ACEOF
13451 #define USE_PDCURSES 1
13454 lib_user32_opt="$lib_user32_test"
13457 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13458 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13459 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_check_lib_save_LIBS=$LIBS
13463 LIBS="-lpdcurses $LIBS"
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #line $LINENO "configure"
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char PDC_set_ctrl_break ();
13482 PDC_set_ctrl_break ();
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13509 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13510 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13511 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13512 lib_curses_opt=-lpdcurses
13514 cat >>confdefs.h <<\_ACEOF
13515 #define USE_PDCURSES 1
13518 lib_user32_opt="$lib_user32_test"
13523 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13524 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13525 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lcurses $LIBS"
13530 cat >conftest.$ac_ext <<_ACEOF
13531 #line $LINENO "configure"
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13538 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13555 (eval $ac_link) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -s conftest$ac_exeext'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_lib_curses_initscr=yes
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 ac_cv_lib_curses_initscr=no
13572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13575 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13576 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13577 if test $ac_cv_lib_curses_initscr = yes; then
13578 lib_curses_opt=-lcurses
13580 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13581 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13588 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13603 case "x$enable_ncurses" in
13605 cat >> confdefs.h <<EOF
13606 #define IA_NCURSES 1
13612 ENABLE_NCURSES_TRUE=
13613 ENABLE_NCURSES_FALSE='#'
13615 ENABLE_NCURSES_TRUE='#'
13616 ENABLE_NCURSES_FALSE=
13619 LIBS="$LIBS $lib_curses_opt"
13622 EXTRALIBS="$EXTRALIBS -lmytinfo"
13625 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13629 dynamic_targets="$dynamic_targets interface_n.\$(so)"
13630 n_so_libs="$lib_curses_opt"
13633 EXTRALIBS="$EXTRALIBS -lmytinfo"
13648 ENABLE_SLANG_FALSE='#'
13650 ENABLE_SLANG_TRUE='#'
13651 ENABLE_SLANG_FALSE=
13654 # Check whether --enable-slang or --disable-slang was given.
13655 if test "${enable_slang+set}" = set; then
13656 enableval="$enable_slang"
13657 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13658 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13659 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-lslang $LIBS"
13664 cat >conftest.$ac_ext <<_ACEOF
13665 #line $LINENO "configure"
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13678 char SLang_init_tty ();
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689 (eval $ac_link) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -s conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_lib_slang_SLang_init_tty=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_cv_lib_slang_SLang_init_tty=no
13706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13709 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13710 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13711 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13715 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13716 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13722 for ac_header in slang/slang.h slang.h
13724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13726 echo "$as_me:$LINENO: checking for $ac_header" >&5
13727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13734 # Is the header compilable?
13735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13737 cat >conftest.$ac_ext <<_ACEOF
13738 #line $LINENO "configure"
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 $ac_includes_default
13745 #include <$ac_header>
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_header_compiler=yes
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_header_compiler=no
13766 rm -f conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 echo "${ECHO_T}$ac_header_compiler" >&6
13770 # Is the header present?
13771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 #include <$ac_header>
13782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } >/dev/null; then
13790 if test -s conftest.err; then
13791 ac_cpp_err=$ac_c_preproc_warn_flag
13798 if test -z "$ac_cpp_err"; then
13799 ac_header_preproc=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_header_preproc=no
13806 rm -f conftest.err conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808 echo "${ECHO_T}$ac_header_preproc" >&6
13810 # So? What about this header?
13811 case $ac_header_compiler:$ac_header_preproc in
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13819 ## ------------------------------------ ##
13820 ## Report this to bug-autoconf@gnu.org. ##
13821 ## ------------------------------------ ##
13824 sed "s/^/$as_me: WARNING: /" >&2
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835 ## ------------------------------------ ##
13836 ## Report this to bug-autoconf@gnu.org. ##
13837 ## ------------------------------------ ##
13840 sed "s/^/$as_me: WARNING: /" >&2
13843 echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 eval "$as_ac_Header=$ac_header_preproc"
13850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13855 cat >>confdefs.h <<_ACEOF
13856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 case "x$enable_slang" in
13867 cat >> confdefs.h <<EOF
13875 ENABLE_SLANG_FALSE='#'
13877 ENABLE_SLANG_TRUE='#'
13878 ENABLE_SLANG_FALSE=
13881 LIBS="$LIBS -lslang"
13882 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13886 dynamic_targets="$dynamic_targets interface_s.\$(so)"
13887 s_so_libs="-lslang"
13888 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13889 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13890 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 ac_check_lib_save_LIBS=$LIBS
13894 LIBS="-ltermcap $LIBS"
13895 cat >conftest.$ac_ext <<_ACEOF
13896 #line $LINENO "configure"
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13903 /* Override any gcc2 internal prototype to avoid an error. */
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920 (eval $ac_link) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -s conftest$ac_exeext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_cv_lib_termcap_initscr=yes
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 ac_cv_lib_termcap_initscr=no
13937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13940 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13941 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13942 if test $ac_cv_lib_termcap_initscr = yes; then
13943 s_so_libs="$s_so_libs -ltermcap"
13959 ENABLE_MOTIF_FALSE='#'
13961 ENABLE_MOTIF_TRUE='#'
13962 ENABLE_MOTIF_FALSE=
13965 # Check whether --enable-motif or --disable-motif was given.
13966 if test "${enable_motif+set}" = set; then
13967 enableval="$enable_motif"
13968 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
13969 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13970 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13971 { (exit 1); exit 1; }; }
13973 if test "x$have_xm" != xyes; then
13974 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13975 echo "$as_me: WARNING: Motif library is not found." >&2;}
13980 case "x$enable_motif" in
13982 cat >> confdefs.h <<EOF
13990 ENABLE_MOTIF_FALSE='#'
13992 ENABLE_MOTIF_TRUE='#'
13993 ENABLE_MOTIF_FALSE=
13998 lib_xext_opt=-lXext
13999 if test "x$have_xprelibs" = xyes; then
14000 lib_xprelibs_opt='-lSM -lICE'
14002 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
14006 dynamic_targets="$dynamic_targets interface_m.\$(so)"
14007 if test x$have_xprelibs = xyes; then
14008 m_so_libs="-lXext -lSM -lICE"
14010 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
14024 ENABLE_TCLTK_FALSE='#'
14026 ENABLE_TCLTK_TRUE='#'
14027 ENABLE_TCLTK_FALSE=
14030 # Check whether --enable-tcltk or --disable-tcltk was given.
14031 if test "${enable_tcltk+set}" = set; then
14032 enableval="$enable_tcltk"
14033 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
14034 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
14035 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
14036 { (exit 1); exit 1; }; }
14039 KEEPCPPFLAGS=$CPPFLAGS
14040 KEEPLDFLAGS=$LDFLAGS
14043 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
14044 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
14045 LIBS="$LIBS $lib_dl_opt"
14049 for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76 tcl8.3 tcl8.4; do
14050 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
14051 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
14052 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 ac_check_lib_save_LIBS=$LIBS
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any gcc2 internal prototype to avoid an error. */
14070 /* We use char because int might match the return type of a gcc2
14071 builtin and then its argument prototype would still apply. */
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -s conftest$ac_exeext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 eval "$as_ac_Lib=yes"
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 eval "$as_ac_Lib=no"
14100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14104 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14105 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14110 LIBS="$LIBS $tcl_lib"
14111 for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42 tk8.3 tk8.4; do
14112 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
14113 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
14114 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 ac_check_lib_save_LIBS=$LIBS
14120 cat >conftest.$ac_ext <<_ACEOF
14121 #line $LINENO "configure"
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14128 /* Override any gcc2 internal prototype to avoid an error. */
14132 /* We use char because int might match the return type of a gcc2
14133 builtin and then its argument prototype would still apply. */
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -s conftest$ac_exeext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 eval "$as_ac_Lib=yes"
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 eval "$as_ac_Lib=no"
14162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14166 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14167 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14174 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
14175 CPPFLAGS=$KEEPCPPFLAGS
14176 LDFLAGS=$KEEPLDFLAGS
14178 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
14179 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
14181 tcltk_dep='tclIndex'
14185 case "x$enable_tcltk" in
14187 cat >> confdefs.h <<EOF
14195 ENABLE_TCLTK_FALSE='#'
14197 ENABLE_TCLTK_TRUE='#'
14198 ENABLE_TCLTK_FALSE=
14201 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
14204 EXTRALIBS="$EXTRALIBS -lipc"
14207 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
14211 dynamic_targets="$dynamic_targets interface_k.\$(so)"
14212 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14215 k_so_libs="$k_so_libs -lipc"
14218 k_so_libs="$k_so_libs -lX11 -lm"
14229 if test "x$enable_tcltk" = "xdynamic"; then
14230 ENABLE_DYNAMIC_TCLTK_TRUE=
14231 ENABLE_DYNAMIC_TCLTK_FALSE='#'
14233 ENABLE_DYNAMIC_TCLTK_TRUE='#'
14234 ENABLE_DYNAMIC_TCLTK_FALSE=
14242 ENABLE_EMACS_FALSE='#'
14244 ENABLE_EMACS_TRUE='#'
14245 ENABLE_EMACS_FALSE=
14248 # Check whether --enable-emacs or --disable-emacs was given.
14249 if test "${enable_emacs+set}" = set; then
14250 enableval="$enable_emacs"
14251 case "x$enable_emacs" in xyes|xdynamic) ;; esac
14253 case "x$enable_emacs" in
14255 cat >> confdefs.h <<EOF
14263 ENABLE_EMACS_FALSE='#'
14265 ENABLE_EMACS_TRUE='#'
14266 ENABLE_EMACS_FALSE=
14269 ELFILES="$ELFILES timidity.el"
14270 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14274 dynamic_targets="$dynamic_targets interface_e.\$(so)"
14275 ELFILES="$ELFILES timidity.el"
14288 ENABLE_VT100_FALSE='#'
14290 ENABLE_VT100_TRUE='#'
14291 ENABLE_VT100_FALSE=
14294 # Check whether --enable-vt100 or --disable-vt100 was given.
14295 if test "${enable_vt100+set}" = set; then
14296 enableval="$enable_vt100"
14297 case "x$enable_vt100" in xyes|xdynamic) ;; esac
14299 case "x$enable_vt100" in
14301 cat >> confdefs.h <<EOF
14309 ENABLE_VT100_FALSE='#'
14311 ENABLE_VT100_TRUE='#'
14312 ENABLE_VT100_FALSE=
14315 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14318 dynamic_targets="$dynamic_targets interface_T.\$(so)"
14332 ENABLE_XAW_FALSE='#'
14334 ENABLE_XAW_TRUE='#'
14338 # Check whether --enable-xaw or --disable-xaw was given.
14339 if test "${enable_xaw+set}" = set; then
14340 enableval="$enable_xaw"
14341 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
14342 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14343 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14344 { (exit 1); exit 1; }; }
14346 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14347 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14348 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14352 case "x$enable_xaw" in
14354 cat >> confdefs.h <<EOF
14362 ENABLE_XAW_FALSE='#'
14364 ENABLE_XAW_TRUE='#'
14368 if test "x$have_xext" = xyes; then
14369 lib_xext_opt=-lXext
14371 if test "x$have_xprelibs" = xyes; then
14372 lib_xprelibs_opt='-lSM -lICE'
14376 if test "x$have_xaw" = x3d; then
14378 cat >>confdefs.h <<\_ACEOF
14382 lib_xaw_opt=-lXaw3d
14386 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14390 dynamic_targets="$dynamic_targets interface_a.\$(so)"
14391 if test "x$have_xext" = xyes; then
14392 a_so_libs="-lXext -lX11"
14398 a_so_libs="$a_so_libs -lcc_dynamic"
14401 if test "x$have_xprelibs" = xyes; then
14402 a_so_libs="-lSM -lICE $a_so_libs"
14404 if test "x$have_xaw" = xyes; then
14405 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14406 elif test "x$have_xaw" = x3d; then
14408 cat >>confdefs.h <<\_ACEOF
14412 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14414 a_so_libs="$ldflags_x_opt $a_so_libs"
14425 if test "x$enable_xaw" = "xdynamic"; then
14426 ENABLE_DYNAMIC_XAW_TRUE=
14427 ENABLE_DYNAMIC_XAW_FALSE='#'
14429 ENABLE_DYNAMIC_XAW_TRUE='#'
14430 ENABLE_DYNAMIC_XAW_FALSE=
14438 ENABLE_XSKIN_FALSE='#'
14440 ENABLE_XSKIN_TRUE='#'
14441 ENABLE_XSKIN_FALSE=
14444 # Check whether --enable-xskin or --disable-xskin was given.
14445 if test "${enable_xskin+set}" = set; then
14446 enableval="$enable_xskin"
14447 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
14448 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14449 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14450 { (exit 1); exit 1; }; }
14454 case "x$enable_xskin" in
14456 cat >> confdefs.h <<EOF
14464 ENABLE_XSKIN_FALSE='#'
14466 ENABLE_XSKIN_TRUE='#'
14467 ENABLE_XSKIN_FALSE=
14470 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14473 dynamic_targets="$dynamic_targets interface_i.\$(so)"
14474 i_so_libs="$ldflags_x_opt -lX11"
14487 ENABLE_GTK_FALSE='#'
14489 ENABLE_GTK_TRUE='#'
14493 # Check whether --enable-gtk or --disable-gtk was given.
14494 if test "${enable_gtk+set}" = set; then
14495 enableval="$enable_gtk"
14496 case "x$enable_gtk" in xyes|xdynamic)
14497 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14498 if test "${with_gtk_prefix+set}" = set; then
14499 withval="$with_gtk_prefix"
14500 gtk_config_prefix="$withval"
14502 gtk_config_prefix=""
14505 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14506 if test "${with_gtk_exec_prefix+set}" = set; then
14507 withval="$with_gtk_exec_prefix"
14508 gtk_config_exec_prefix="$withval"
14510 gtk_config_exec_prefix=""
14512 # Check whether --enable-gtktest or --disable-gtktest was given.
14513 if test "${enable_gtktest+set}" = set; then
14514 enableval="$enable_gtktest"
14524 gtk_config_args="$gtk_config_args gthread"
14529 if test x$gtk_config_exec_prefix != x ; then
14530 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14531 if test x${GTK_CONFIG+set} != xset ; then
14532 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14535 if test x$gtk_config_prefix != x ; then
14536 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14537 if test x${GTK_CONFIG+set} != xset ; then
14538 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14542 # Extract the first word of "gtk-config", so it can be a program name with args.
14543 set dummy gtk-config; ac_word=$2
14544 echo "$as_me:$LINENO: checking for $ac_word" >&5
14545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14546 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 case $GTK_CONFIG in
14551 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14568 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14572 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14574 if test -n "$GTK_CONFIG"; then
14575 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14576 echo "${ECHO_T}$GTK_CONFIG" >&6
14578 echo "$as_me:$LINENO: result: no" >&5
14579 echo "${ECHO_T}no" >&6
14582 min_gtk_version=1.1.3
14583 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14584 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14586 if test "$GTK_CONFIG" = "no" ; then
14589 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14590 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14591 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14593 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14595 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14597 if test "x$enable_gtktest" = "xyes" ; then
14598 ac_save_CFLAGS="$CFLAGS"
14599 ac_save_LIBS="$LIBS"
14600 CFLAGS="$CFLAGS $GTK_CFLAGS"
14601 LIBS="$GTK_LIBS $LIBS"
14603 if test "$cross_compiling" = yes; then
14604 echo $ac_n "cross compiling; assumed OK... $ac_c"
14606 cat >conftest.$ac_ext <<_ACEOF
14607 #line $LINENO "configure"
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14614 #include <gtk/gtk.h>
14616 #include <stdlib.h>
14621 int major, minor, micro;
14624 system ("touch conf.gtktest");
14626 /* HP/UX 9 (%@#!) writes to sscanf strings */
14627 tmp_version = g_strdup("$min_gtk_version");
14628 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14629 printf("%s, bad version string\n", "$min_gtk_version");
14633 if ((gtk_major_version != $gtk_config_major_version) ||
14634 (gtk_minor_version != $gtk_config_minor_version) ||
14635 (gtk_micro_version != $gtk_config_micro_version))
14637 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14638 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14639 gtk_major_version, gtk_minor_version, gtk_micro_version);
14640 printf ("*** was found! If gtk-config was correct, then it is best\n");
14641 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14642 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14643 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14644 printf("*** required on your system.\n");
14645 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14646 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14647 printf("*** before re-running configure\n");
14649 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14650 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14651 (gtk_minor_version != GTK_MINOR_VERSION) ||
14652 (gtk_micro_version != GTK_MICRO_VERSION))
14654 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14655 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14656 printf("*** library (version %d.%d.%d)\n",
14657 gtk_major_version, gtk_minor_version, gtk_micro_version);
14659 #endif /* defined (GTK_MAJOR_VERSION) ... */
14662 if ((gtk_major_version > major) ||
14663 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14664 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14670 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14671 gtk_major_version, gtk_minor_version, gtk_micro_version);
14672 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14673 major, minor, micro);
14674 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14676 printf("*** If you have already installed a sufficiently new version, this error\n");
14677 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14678 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14679 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14680 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14681 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14682 printf("*** so that the correct libraries are found at run-time))\n");
14689 rm -f conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14702 echo "$as_me: program exited with status $ac_status" >&5
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ( exit $ac_status )
14709 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14711 CFLAGS="$ac_save_CFLAGS"
14712 LIBS="$ac_save_LIBS"
14715 if test "x$no_gtk" = x ; then
14716 echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14720 echo "$as_me:$LINENO: result: no" >&5
14721 echo "${ECHO_T}no" >&6
14722 if test "$GTK_CONFIG" = "no" ; then
14723 echo "*** The gtk-config script installed by GTK could not be found"
14724 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14725 echo "*** your path, or set the GTK_CONFIG environment variable to the"
14726 echo "*** full path to gtk-config."
14728 if test -f conf.gtktest ; then
14731 echo "*** Could not run GTK test program, checking why..."
14732 CFLAGS="$CFLAGS $GTK_CFLAGS"
14733 LIBS="$LIBS $GTK_LIBS"
14734 cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14742 #include <gtk/gtk.h>
14748 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 echo "*** The test program compiled, but did not run. This usually means"
14766 echo "*** that the run-time linker is not finding GTK or finding the wrong"
14767 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14768 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14769 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14770 echo "*** is required on your system"
14772 echo "*** If you have an old version installed, it is best to remove it, although"
14773 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14775 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14776 echo "*** came with the system with the command"
14778 echo "*** rpm --erase --nodeps gtk gtk-devel"
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 echo "*** The test program failed to compile or link. See the file config.log for the"
14784 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14785 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14786 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14789 CFLAGS="$ac_save_CFLAGS"
14790 LIBS="$ac_save_LIBS"
14802 case "x$enable_gtk" in
14804 cat >> confdefs.h <<EOF
14812 ENABLE_GTK_FALSE='#'
14814 ENABLE_GTK_TRUE='#'
14818 LIBS="$LIBS $GTK_LIBS"
14819 for f in $GTK_CFLAGS; do
14821 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14822 *) CFLAGS="$CPPFLAGS $f" ;;
14826 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14830 dynamic_targets="$dynamic_targets interface_g.\$(so)"
14831 if test "x$GCC" = xyes; then
14832 for i in $GTK_LIBS; do
14835 *) g_so_libs="$g_so_libs $i" ;;
14839 g_so_libs="$GTK_LIBS"
14841 for f in $GTK_CFLAGS; do
14843 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14844 *) CFLAGS="$CPPFLAGS $f" ;;
14859 ENABLE_SERVER_TRUE=
14860 ENABLE_SERVER_FALSE='#'
14862 ENABLE_SERVER_TRUE='#'
14863 ENABLE_SERVER_FALSE=
14866 # Check whether --enable-server or --disable-server was given.
14867 if test "${enable_server+set}" = set; then
14868 enableval="$enable_server"
14869 case "x$enable_server" in xyes|xdynamic) ;; esac
14871 case "x$enable_server" in
14873 cat >> confdefs.h <<EOF
14874 #define IA_SERVER 1
14880 ENABLE_SERVER_TRUE=
14881 ENABLE_SERVER_FALSE='#'
14883 ENABLE_SERVER_TRUE='#'
14884 ENABLE_SERVER_FALSE=
14887 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14889 for ac_header in sys/soundcard.h
14891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893 echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14901 # Is the header compilable?
14902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14904 cat >conftest.$ac_ext <<_ACEOF
14905 #line $LINENO "configure"
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14912 #include <$ac_header>
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_header_compiler=yes
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_header_compiler=no
14933 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <$ac_header>
14949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } >/dev/null; then
14957 if test -s conftest.err; then
14958 ac_cpp_err=$ac_c_preproc_warn_flag
14965 if test -z "$ac_cpp_err"; then
14966 ac_header_preproc=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_preproc=no
14973 rm -f conftest.err conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc in
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14986 ## ------------------------------------ ##
14987 ## Report this to bug-autoconf@gnu.org. ##
14988 ## ------------------------------------ ##
14991 sed "s/^/$as_me: WARNING: /" >&2
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15002 ## ------------------------------------ ##
15003 ## Report this to bug-autoconf@gnu.org. ##
15004 ## ------------------------------------ ##
15007 sed "s/^/$as_me: WARNING: /" >&2
15010 echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 eval "$as_ac_Header=$ac_header_preproc"
15017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15033 dynamic_targets="$dynamic_targets interface_r.\$(so)"
15046 ENABLE_ALSASEQ_TRUE=
15047 ENABLE_ALSASEQ_FALSE='#'
15049 ENABLE_ALSASEQ_TRUE='#'
15050 ENABLE_ALSASEQ_FALSE=
15053 # Check whether --enable-alsaseq or --disable-alsaseq was given.
15054 if test "${enable_alsaseq+set}" = set; then
15055 enableval="$enable_alsaseq"
15056 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
15058 case "x$enable_alsaseq" in
15060 cat >> confdefs.h <<EOF
15061 #define IA_ALSASEQ 1
15067 ENABLE_ALSASEQ_TRUE=
15068 ENABLE_ALSASEQ_FALSE='#'
15070 ENABLE_ALSASEQ_TRUE='#'
15071 ENABLE_ALSASEQ_FALSE=
15074 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
15076 for ac_header in sys/asoundlib.h
15078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080 echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15088 # Is the header compilable?
15089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15099 #include <$ac_header>
15101 rm -f conftest.$ac_objext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103 (eval $ac_compile) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -s conftest.$ac_objext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_header_compiler=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_header_compiler=no
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6
15124 # Is the header present?
15125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <$ac_header>
15136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
15152 if test -z "$ac_cpp_err"; then
15153 ac_header_preproc=yes
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_header_preproc=no
15160 rm -f conftest.err conftest.$ac_ext
15161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15162 echo "${ECHO_T}$ac_header_preproc" >&6
15164 # So? What about this header?
15165 case $ac_header_compiler:$ac_header_preproc in
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15173 ## ------------------------------------ ##
15174 ## Report this to bug-autoconf@gnu.org. ##
15175 ## ------------------------------------ ##
15178 sed "s/^/$as_me: WARNING: /" >&2
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189 ## ------------------------------------ ##
15190 ## Report this to bug-autoconf@gnu.org. ##
15191 ## ------------------------------------ ##
15194 sed "s/^/$as_me: WARNING: /" >&2
15197 echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 eval "$as_ac_Header=$ac_header_preproc"
15204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15220 dynamic_targets="$dynamic_targets interface_A.\$(so)"
15233 ENABLE_WINSYN_TRUE=
15234 ENABLE_WINSYN_FALSE='#'
15236 ENABLE_WINSYN_TRUE='#'
15237 ENABLE_WINSYN_FALSE=
15240 # Check whether --enable-winsyn or --disable-winsyn was given.
15241 if test "${enable_winsyn+set}" = set; then
15242 enableval="$enable_winsyn"
15243 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
15245 case "x$enable_winsyn" in
15247 cat >> confdefs.h <<EOF
15248 #define IA_WINSYN 1
15254 ENABLE_WINSYN_TRUE=
15255 ENABLE_WINSYN_FALSE='#'
15257 ENABLE_WINSYN_TRUE='#'
15258 ENABLE_WINSYN_FALSE=
15261 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
15264 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15277 ENABLE_PORTMIDISYN_TRUE=
15278 ENABLE_PORTMIDISYN_FALSE='#'
15280 ENABLE_PORTMIDISYN_TRUE='#'
15281 ENABLE_PORTMIDISYN_FALSE=
15284 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
15285 if test "${enable_portmidisyn+set}" = set; then
15286 enableval="$enable_portmidisyn"
15287 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
15289 case "x$enable_portmidisyn" in
15291 cat >> confdefs.h <<EOF
15292 #define IA_PORTMIDISYN 1
15298 ENABLE_PORTMIDISYN_TRUE=
15299 ENABLE_PORTMIDISYN_FALSE='#'
15301 ENABLE_PORTMIDISYN_TRUE='#'
15302 ENABLE_PORTMIDISYN_FALSE=
15305 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
15308 dynamic_targets="$dynamic_targets interface_P.\$(so)"
15321 ENABLE_W32G_SYN_TRUE=
15322 ENABLE_W32G_SYN_FALSE='#'
15324 ENABLE_W32G_SYN_TRUE='#'
15325 ENABLE_W32G_SYN_FALSE=
15328 # Check whether --enable-winsyng or --disable-winsyng was given.
15329 if test "${enable_winsyng+set}" = set; then
15330 enableval="$enable_winsyng"
15331 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
15333 case "x$enable_winsyng" in
15335 cat >> confdefs.h <<EOF
15336 #define IA_W32G_SYN 1
15342 ENABLE_W32G_SYN_TRUE=
15343 ENABLE_W32G_SYN_FALSE='#'
15345 ENABLE_W32G_SYN_TRUE='#'
15346 ENABLE_W32G_SYN_FALSE=
15349 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15350 lib_user32_opt='-luser32'
15351 LDFLAGS="-mwindows $LDFLAGS"
15352 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
15356 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15370 ENABLE_W32GUI_TRUE=
15371 ENABLE_W32GUI_FALSE='#'
15373 ENABLE_W32GUI_TRUE='#'
15374 ENABLE_W32GUI_FALSE=
15377 # Check whether --enable-w32gui or --disable-w32gui was given.
15378 if test "${enable_w32gui+set}" = set; then
15379 enableval="$enable_w32gui"
15380 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
15382 case "x$enable_w32gui" in
15384 cat >> confdefs.h <<EOF
15385 #define IA_W32GUI 1
15391 ENABLE_W32GUI_TRUE=
15392 ENABLE_W32GUI_FALSE='#'
15394 ENABLE_W32GUI_TRUE='#'
15395 ENABLE_W32GUI_FALSE=
15398 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15399 lib_user32_opt='-luser32'
15400 LDFLAGS="-mwindows $LDFLAGS"
15401 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c"
15405 dynamic_targets="$dynamic_targets interface_w.\$(so)"
15418 ENABLE_PLUGIN_TRUE=
15419 ENABLE_PLUGIN_FALSE='#'
15421 ENABLE_PLUGIN_TRUE='#'
15422 ENABLE_PLUGIN_FALSE=
15425 # Check whether --enable-ump or --disable-ump was given.
15426 if test "${enable_ump+set}" = set; then
15427 enableval="$enable_ump"
15428 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
15429 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
15430 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
15431 { (exit 1); exit 1; }; }
15433 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15434 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15435 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15436 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15440 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15442 # Is the header compilable?
15443 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15444 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 $ac_includes_default
15453 #include <X11/xpm.h>
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -s conftest.$ac_objext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467 ac_header_compiler=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_compiler=no
15474 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15476 echo "${ECHO_T}$ac_header_compiler" >&6
15478 # Is the header present?
15479 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15480 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 #include <X11/xpm.h>
15490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } >/dev/null; then
15498 if test -s conftest.err; then
15499 ac_cpp_err=$ac_c_preproc_warn_flag
15506 if test -z "$ac_cpp_err"; then
15507 ac_header_preproc=yes
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_header_preproc=no
15514 rm -f conftest.err conftest.$ac_ext
15515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15516 echo "${ECHO_T}$ac_header_preproc" >&6
15518 # So? What about this header?
15519 case $ac_header_compiler:$ac_header_preproc in
15521 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15522 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15527 ## ------------------------------------ ##
15528 ## Report this to bug-autoconf@gnu.org. ##
15529 ## ------------------------------------ ##
15532 sed "s/^/$as_me: WARNING: /" >&2
15535 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15536 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15538 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15540 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15543 ## ------------------------------------ ##
15544 ## Report this to bug-autoconf@gnu.org. ##
15545 ## ------------------------------------ ##
15548 sed "s/^/$as_me: WARNING: /" >&2
15551 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15552 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15553 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 ac_cv_header_X11_xpm_h=$ac_header_preproc
15558 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15559 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15562 if test $ac_cv_header_X11_xpm_h = yes; then
15565 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15566 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15567 { (exit 1); exit 1; }; }
15571 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15572 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15573 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+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 XpmCreatePixmapFromData ();
15596 XpmCreatePixmapFromData ();
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_Xpm_XpmCreatePixmapFromData=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_lib_Xpm_XpmCreatePixmapFromData=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_Xpm_XpmCreatePixmapFromData" >&5
15624 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15625 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15628 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15629 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15630 { (exit 1); exit 1; }; }
15633 if test "x$have_xext" = xyes; then
15634 lib_xext_opt=-lXext
15636 if test "x$have_xprelibs" = xyes; then
15637 lib_xprelibs_opt='-lSM -lICE'
15643 case "x$enable_ump" in
15645 cat >> confdefs.h <<EOF
15646 #define IA_PLUGIN 1
15652 ENABLE_PLUGIN_TRUE=
15653 ENABLE_PLUGIN_FALSE='#'
15655 ENABLE_PLUGIN_TRUE='#'
15656 ENABLE_PLUGIN_FALSE=
15662 dynamic_targets="$dynamic_targets interface_p.\$(so)"
15673 # Check whether --enable-offix or --disable-offix was given.
15674 if test "${enable_offix+set}" = set; then
15675 enableval="$enable_offix"
15676 if test "$enableval" = "yes"; then
15677 KEEPCPPFLAGS=$CPPFLAGS
15679 KEEPLDFLAGS=$LDFLAGS
15680 CPPFLAGS="$CPPFLAGS $offix_include_dir"
15681 LDFLAGS="$LDFLAGS $offix_lib_dir"
15682 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15683 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15684 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15685 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 ac_check_lib_save_LIBS=$LIBS
15690 cat >conftest.$ac_ext <<_ACEOF
15691 #line $LINENO "configure"
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15698 /* Override any gcc2 internal prototype to avoid an error. */
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15704 char DndInitialize ();
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_lib_Dnd_DndInitialize=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 ac_cv_lib_Dnd_DndInitialize=no
15732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15733 LIBS=$ac_check_lib_save_LIBS
15735 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15736 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15737 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15740 lib_offix_opt="-lDnd"
15742 cat >>confdefs.h <<\_ACEOF
15748 LDFLAGS=$KEEPLDFLAGS
15749 CPPFLAGS=$KEEPCPPFLAGS
15758 # Check whether --enable-network or --disable-network was given.
15759 if test "${enable_network+set}" = set; then
15760 enableval="$enable_network"
15761 if test "$enableval" = "yes"; then
15763 cat >>confdefs.h <<\_ACEOF
15764 #define SUPPORT_SOCKET 1
15771 if test "x$enable_network" = "xyes"; then
15772 ENABLE_NETWORK_TRUE=
15773 ENABLE_NETWORK_FALSE='#'
15775 ENABLE_NETWORK_TRUE='#'
15776 ENABLE_NETWORK_FALSE=
15780 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15781 if test "${enable_spectrogram+set}" = set; then
15782 enableval="$enable_spectrogram"
15783 if test "$enableval" = "yes"; then
15784 if test "x$with_x" != xyes; then
15785 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15786 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15787 { (exit 1); exit 1; }; }
15790 cat >>confdefs.h <<\_ACEOF
15791 #define SUPPORT_SOUNDSPEC 1
15798 if test "x$enable_spectrogram" = "xyes"; then
15799 ENABLE_SOUND_SPEC_TRUE=
15800 ENABLE_SOUND_SPEC_FALSE='#'
15802 ENABLE_SOUND_SPEC_TRUE='#'
15803 ENABLE_SOUND_SPEC_FALSE=
15807 # Check whether --enable-spline or --disable-spline was given.
15808 if test "${enable_spline+set}" = set; then
15809 enableval="$enable_spline"
15810 case "x$enableval" in
15813 cat >>confdefs.h <<\_ACEOF
15814 #define LINEAR_INTERPOLATION 1
15820 cat >>confdefs.h <<\_ACEOF
15821 #define CSPLINE_INTERPOLATION 1
15827 cat >>confdefs.h <<\_ACEOF
15828 #define LAGRANGE_INTERPOLATION 1
15834 cat >>confdefs.h <<\_ACEOF
15835 #define NEWTON_INTERPOLATION 1
15841 cat >>confdefs.h <<\_ACEOF
15842 #define GAUSS_INTERPOLATION 1
15848 cat >>confdefs.h <<\_ACEOF
15849 #define NO_INTERPOLATION 1
15854 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15855 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15856 { (exit 1); exit 1; }; }
15861 # Check whether --enable-wrd or --disable-wrd was given.
15862 if test "${enable_wrd+set}" = set; then
15863 enableval="$enable_wrd"
15864 if test "$enableval" = "yes"; then
15865 if test "x$with_x" != xyes; then
15866 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15867 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15868 { (exit 1); exit 1; }; }
15871 cat >>confdefs.h <<\_ACEOF
15875 enable_sherry_wrd=yes
15876 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15877 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15878 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 ac_check_lib_save_LIBS=$LIBS
15883 cat >conftest.$ac_ext <<_ACEOF
15884 #line $LINENO "configure"
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15891 /* Override any gcc2 internal prototype to avoid an error. */
15895 /* We use char because int might match the return type of a gcc2
15896 builtin and then its argument prototype would still apply. */
15897 char zlibVersion ();
15906 rm -f conftest.$ac_objext conftest$ac_exeext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15908 (eval $ac_link) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -s conftest$ac_exeext'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_lib_z_zlibVersion=yes
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_cv_lib_z_zlibVersion=no
15925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15928 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15929 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15930 if test $ac_cv_lib_z_zlibVersion = yes; then
15933 enable_sherry_wrd=no
15936 if test "${ac_cv_header_png_h+set}" = set; then
15937 echo "$as_me:$LINENO: checking for png.h" >&5
15938 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15939 if test "${ac_cv_header_png_h+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15943 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15945 # Is the header compilable?
15946 echo "$as_me:$LINENO: checking png.h usability" >&5
15947 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955 $ac_includes_default
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try='test -s conftest.$ac_objext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_compiler=no
15977 rm -f conftest.$ac_objext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6
15981 # Is the header present?
15982 echo "$as_me:$LINENO: checking png.h presence" >&5
15983 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } >/dev/null; then
16001 if test -s conftest.err; then
16002 ac_cpp_err=$ac_c_preproc_warn_flag
16009 if test -z "$ac_cpp_err"; then
16010 ac_header_preproc=yes
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16017 rm -f conftest.err conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16019 echo "${ECHO_T}$ac_header_preproc" >&6
16021 # So? What about this header?
16022 case $ac_header_compiler:$ac_header_preproc in
16024 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
16025 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16027 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16030 ## ------------------------------------ ##
16031 ## Report this to bug-autoconf@gnu.org. ##
16032 ## ------------------------------------ ##
16035 sed "s/^/$as_me: WARNING: /" >&2
16038 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16043 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16046 ## ------------------------------------ ##
16047 ## Report this to bug-autoconf@gnu.org. ##
16048 ## ------------------------------------ ##
16051 sed "s/^/$as_me: WARNING: /" >&2
16054 echo "$as_me:$LINENO: checking for png.h" >&5
16055 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
16056 if test "${ac_cv_header_png_h+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 ac_cv_header_png_h=$ac_header_preproc
16061 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
16062 echo "${ECHO_T}$ac_cv_header_png_h" >&6
16065 if test $ac_cv_header_png_h = yes; then
16068 enable_sherry_wrd=no
16072 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
16073 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
16074 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lpng -lz $LIBS"
16079 cat >conftest.$ac_ext <<_ACEOF
16080 #line $LINENO "configure"
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16087 /* Override any gcc2 internal prototype to avoid an error. */
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16093 char png_init_io ();
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_lib_png_png_init_io=yes
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_cv_lib_png_png_init_io=no
16121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_lib_save_LIBS
16124 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
16125 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
16126 if test $ac_cv_lib_png_png_init_io = yes; then
16129 enable_sherry_wrd=no
16132 if test "$enable_sherry_wrd" = yes; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define ENABLE_SHERRY 1
16141 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
16142 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
16144 if test "x$have_xext" = xyes; then
16145 lib_xext_opt=-lXext
16158 if test "x$enable_wrd" = "xyes"; then
16160 ENABLE_WRD_FALSE='#'
16162 ENABLE_WRD_TRUE='#'
16169 if test "x$CYGNUS" = xyes; then
16179 if test "x$MINGW" = xyes; then
16189 if test "x$W32READDIR" = "xyes"; then
16191 W32READDIR_FALSE='#'
16193 W32READDIR_TRUE='#'
16198 rm -f wordtmp >/dev/null 2>&1
16200 for f in $LDFLAGS; do
16201 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16204 echo $f >>wordtmp; val="$val $f"
16209 rm -f wordtmp >/dev/null 2>&1
16211 rm -f wordtmp >/dev/null 2>&1
16213 for f in $SHLDFLAGS; do
16214 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16217 echo $f >>wordtmp; val="$val $f"
16222 rm -f wordtmp >/dev/null 2>&1
16224 rm -f wordtmp >/dev/null 2>&1
16226 for f in $EXTRACFLAGS $CFLAGS; do
16227 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16230 echo $f >>wordtmp; val="$val $f"
16235 rm -f wordtmp >/dev/null 2>&1
16237 rm -f wordtmp >/dev/null 2>&1
16239 for f in $CPPFLAGS $EXTRADEFS; do
16240 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16243 echo $f >>wordtmp; val="$val $f"
16248 rm -f wordtmp >/dev/null 2>&1
16251 if test "x$oss_device" != x; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define OSS_DEVICE "$oss_device"
16259 if test "x$TIMIDITY_OUTPUT_ID" != x; then
16261 cat >>confdefs.h <<_ACEOF
16262 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
16267 if test "x$with_x" = xyes; then
16268 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/"`
16270 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
16271 SHLD="$SHLD $SHLDFLAGS"
16291 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"
16293 cat >confcache <<\_ACEOF
16294 # This file is a shell script that caches the results of configure
16295 # tests run on this system so they can be shared between configure
16296 # scripts and configure runs, see configure's option --config-cache.
16297 # It is not useful on other systems. If it contains results you don't
16298 # want to keep, you may remove or edit it.
16300 # config.status only pays attention to the cache file if you give it
16301 # the --recheck option to rerun configure.
16303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16305 # following values.
16309 # The following way of writing the cache mishandles newlines in values,
16310 # but we know of no workaround that is simple, portable, and efficient.
16311 # So, don't put newlines in cache variables' values.
16312 # Ultrix sh set writes to stderr and can't be redirected directly,
16313 # and sets the high bit in the cache file unless we assign to the vars.
16316 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16318 # `set' does not quote correctly, so add quotes (double-quote
16319 # substitution turns \\\\ into \\, and sed turns \\ into \).
16322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16325 # `set' quotes correctly as required by POSIX, so do not add quotes.
16327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16336 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16338 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16339 if test -w $cache_file; then
16340 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16341 cat confcache >$cache_file
16343 echo "not updating unwritable cache $cache_file"
16348 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16349 # Let make expand exec_prefix.
16350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16354 # trailing colons and then remove the whole line if VPATH becomes empty
16355 # (actually we leave an empty line to preserve line numbers).
16356 if test "x$srcdir" = x.; then
16357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16358 s/:*\$(srcdir):*/:/;
16359 s/:*\${srcdir}:*/:/;
16361 s/^\([^=]*=[ ]*\):*/\1/;
16367 DEFS=-DHAVE_CONFIG_H
16371 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16372 # 1. Remove the extension, and $U if already installed.
16373 ac_i=`echo "$ac_i" |
16374 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16376 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16377 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16379 LIBOBJS=$ac_libobjs
16381 LTLIBOBJS=$ac_ltlibobjs
16384 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16385 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16386 Usually this means the macro was only invoked conditionally." >&5
16387 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16388 Usually this means the macro was only invoked conditionally." >&2;}
16389 { (exit 1); exit 1; }; }
16391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16392 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16393 Usually this means the macro was only invoked conditionally." >&5
16394 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16395 Usually this means the macro was only invoked conditionally." >&2;}
16396 { (exit 1); exit 1; }; }
16398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16399 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16400 Usually this means the macro was only invoked conditionally." >&5
16401 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16402 Usually this means the macro was only invoked conditionally." >&2;}
16403 { (exit 1); exit 1; }; }
16405 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
16406 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
16407 Usually this means the macro was only invoked conditionally." >&5
16408 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
16409 Usually this means the macro was only invoked conditionally." >&2;}
16410 { (exit 1); exit 1; }; }
16412 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16413 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16414 Usually this means the macro was only invoked conditionally." >&5
16415 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16416 Usually this means the macro was only invoked conditionally." >&2;}
16417 { (exit 1); exit 1; }; }
16419 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16420 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16421 Usually this means the macro was only invoked conditionally." >&5
16422 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16423 Usually this means the macro was only invoked conditionally." >&2;}
16424 { (exit 1); exit 1; }; }
16426 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16427 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16428 Usually this means the macro was only invoked conditionally." >&5
16429 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16430 Usually this means the macro was only invoked conditionally." >&2;}
16431 { (exit 1); exit 1; }; }
16433 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16434 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16435 Usually this means the macro was only invoked conditionally." >&5
16436 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16437 Usually this means the macro was only invoked conditionally." >&2;}
16438 { (exit 1); exit 1; }; }
16440 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16441 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16442 Usually this means the macro was only invoked conditionally." >&5
16443 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16444 Usually this means the macro was only invoked conditionally." >&2;}
16445 { (exit 1); exit 1; }; }
16447 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16448 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16449 Usually this means the macro was only invoked conditionally." >&5
16450 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16451 Usually this means the macro was only invoked conditionally." >&2;}
16452 { (exit 1); exit 1; }; }
16454 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16455 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16456 Usually this means the macro was only invoked conditionally." >&5
16457 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16458 Usually this means the macro was only invoked conditionally." >&2;}
16459 { (exit 1); exit 1; }; }
16461 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16462 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16463 Usually this means the macro was only invoked conditionally." >&5
16464 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16465 Usually this means the macro was only invoked conditionally." >&2;}
16466 { (exit 1); exit 1; }; }
16468 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16469 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16470 Usually this means the macro was only invoked conditionally." >&5
16471 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16472 Usually this means the macro was only invoked conditionally." >&2;}
16473 { (exit 1); exit 1; }; }
16475 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16476 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16477 Usually this means the macro was only invoked conditionally." >&5
16478 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16479 Usually this means the macro was only invoked conditionally." >&2;}
16480 { (exit 1); exit 1; }; }
16482 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16483 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16484 Usually this means the macro was only invoked conditionally." >&5
16485 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16486 Usually this means the macro was only invoked conditionally." >&2;}
16487 { (exit 1); exit 1; }; }
16489 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16490 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16491 Usually this means the macro was only invoked conditionally." >&5
16492 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16493 Usually this means the macro was only invoked conditionally." >&2;}
16494 { (exit 1); exit 1; }; }
16496 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16497 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16498 Usually this means the macro was only invoked conditionally." >&5
16499 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16500 Usually this means the macro was only invoked conditionally." >&2;}
16501 { (exit 1); exit 1; }; }
16503 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16504 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16505 Usually this means the macro was only invoked conditionally." >&5
16506 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16507 Usually this means the macro was only invoked conditionally." >&2;}
16508 { (exit 1); exit 1; }; }
16510 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16511 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16512 Usually this means the macro was only invoked conditionally." >&5
16513 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16514 Usually this means the macro was only invoked conditionally." >&2;}
16515 { (exit 1); exit 1; }; }
16517 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16518 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16519 Usually this means the macro was only invoked conditionally." >&5
16520 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16521 Usually this means the macro was only invoked conditionally." >&2;}
16522 { (exit 1); exit 1; }; }
16524 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16525 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16526 Usually this means the macro was only invoked conditionally." >&5
16527 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16528 Usually this means the macro was only invoked conditionally." >&2;}
16529 { (exit 1); exit 1; }; }
16531 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16532 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16533 Usually this means the macro was only invoked conditionally." >&5
16534 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16535 Usually this means the macro was only invoked conditionally." >&2;}
16536 { (exit 1); exit 1; }; }
16538 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16539 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16540 Usually this means the macro was only invoked conditionally." >&5
16541 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16542 Usually this means the macro was only invoked conditionally." >&2;}
16543 { (exit 1); exit 1; }; }
16545 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16546 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16547 Usually this means the macro was only invoked conditionally." >&5
16548 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16549 Usually this means the macro was only invoked conditionally." >&2;}
16550 { (exit 1); exit 1; }; }
16552 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16553 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16554 Usually this means the macro was only invoked conditionally." >&5
16555 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16556 Usually this means the macro was only invoked conditionally." >&2;}
16557 { (exit 1); exit 1; }; }
16559 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16560 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16561 Usually this means the macro was only invoked conditionally." >&5
16562 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16563 Usually this means the macro was only invoked conditionally." >&2;}
16564 { (exit 1); exit 1; }; }
16566 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16567 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16568 Usually this means the macro was only invoked conditionally." >&5
16569 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16570 Usually this means the macro was only invoked conditionally." >&2;}
16571 { (exit 1); exit 1; }; }
16573 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16574 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16575 Usually this means the macro was only invoked conditionally." >&5
16576 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16577 Usually this means the macro was only invoked conditionally." >&2;}
16578 { (exit 1); exit 1; }; }
16580 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16581 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16582 Usually this means the macro was only invoked conditionally." >&5
16583 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16584 Usually this means the macro was only invoked conditionally." >&2;}
16585 { (exit 1); exit 1; }; }
16587 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16588 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16589 Usually this means the macro was only invoked conditionally." >&5
16590 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16591 Usually this means the macro was only invoked conditionally." >&2;}
16592 { (exit 1); exit 1; }; }
16594 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16595 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16596 Usually this means the macro was only invoked conditionally." >&5
16597 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16598 Usually this means the macro was only invoked conditionally." >&2;}
16599 { (exit 1); exit 1; }; }
16601 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16602 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16603 Usually this means the macro was only invoked conditionally." >&5
16604 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16605 Usually this means the macro was only invoked conditionally." >&2;}
16606 { (exit 1); exit 1; }; }
16608 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16609 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16610 Usually this means the macro was only invoked conditionally." >&5
16611 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16612 Usually this means the macro was only invoked conditionally." >&2;}
16613 { (exit 1); exit 1; }; }
16615 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16616 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16617 Usually this means the macro was only invoked conditionally." >&5
16618 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16619 Usually this means the macro was only invoked conditionally." >&2;}
16620 { (exit 1); exit 1; }; }
16622 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16623 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16624 Usually this means the macro was only invoked conditionally." >&5
16625 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16626 Usually this means the macro was only invoked conditionally." >&2;}
16627 { (exit 1); exit 1; }; }
16629 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16630 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16631 Usually this means the macro was only invoked conditionally." >&5
16632 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16633 Usually this means the macro was only invoked conditionally." >&2;}
16634 { (exit 1); exit 1; }; }
16636 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16637 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16638 Usually this means the macro was only invoked conditionally." >&5
16639 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16640 Usually this means the macro was only invoked conditionally." >&2;}
16641 { (exit 1); exit 1; }; }
16643 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16644 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16645 Usually this means the macro was only invoked conditionally." >&5
16646 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16647 Usually this means the macro was only invoked conditionally." >&2;}
16648 { (exit 1); exit 1; }; }
16650 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16651 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16652 Usually this means the macro was only invoked conditionally." >&5
16653 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16654 Usually this means the macro was only invoked conditionally." >&2;}
16655 { (exit 1); exit 1; }; }
16657 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16658 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16659 Usually this means the macro was only invoked conditionally." >&5
16660 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16661 Usually this means the macro was only invoked conditionally." >&2;}
16662 { (exit 1); exit 1; }; }
16664 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16665 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16666 Usually this means the macro was only invoked conditionally." >&5
16667 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16668 Usually this means the macro was only invoked conditionally." >&2;}
16669 { (exit 1); exit 1; }; }
16671 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16672 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16673 Usually this means the macro was only invoked conditionally." >&5
16674 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16675 Usually this means the macro was only invoked conditionally." >&2;}
16676 { (exit 1); exit 1; }; }
16678 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16679 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16680 Usually this means the macro was only invoked conditionally." >&5
16681 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16682 Usually this means the macro was only invoked conditionally." >&2;}
16683 { (exit 1); exit 1; }; }
16685 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16686 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16687 Usually this means the macro was only invoked conditionally." >&5
16688 echo "$as_me: error: conditional \"MINGW\" was never defined.
16689 Usually this means the macro was only invoked conditionally." >&2;}
16690 { (exit 1); exit 1; }; }
16692 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16693 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16694 Usually this means the macro was only invoked conditionally." >&5
16695 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16696 Usually this means the macro was only invoked conditionally." >&2;}
16697 { (exit 1); exit 1; }; }
16700 : ${CONFIG_STATUS=./config.status}
16701 ac_clean_files_save=$ac_clean_files
16702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16705 cat >$CONFIG_STATUS <<_ACEOF
16707 # Generated by $as_me.
16708 # Run this file to recreate the current configuration.
16709 # Compiler output produced by configure, useful for debugging
16710 # configure, is in config.log if it exists.
16713 ac_cs_recheck=false
16715 SHELL=\${CONFIG_SHELL-$SHELL}
16718 cat >>$CONFIG_STATUS <<\_ACEOF
16719 ## --------------------- ##
16720 ## M4sh Initialization. ##
16721 ## --------------------- ##
16723 # Be Bourne compatible
16724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16728 # is contrary to our usage. Disable this feature.
16729 alias -g '${1+"$@"}'='"$@"'
16730 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16734 # Support unset when possible.
16735 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16742 # Work around bugs in pre-3.0 UWIN ksh.
16743 $as_unset ENV MAIL MAILPATH
16750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16752 LC_TELEPHONE LC_TIME
16754 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16755 eval $as_var=C; export $as_var
16761 # Required to use basename.
16762 if expr a : '\(a\)' >/dev/null 2>&1; then
16768 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16769 as_basename=basename
16775 # Name of the executable.
16776 as_me=`$as_basename "$0" ||
16777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16778 X"$0" : 'X\(//\)$' \| \
16779 X"$0" : 'X\(/\)$' \| \
16780 . : '\(.\)' 2>/dev/null ||
16782 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16783 /^X\/\(\/\/\)$/{ s//\1/; q; }
16784 /^X\/\(\/\).*/{ s//\1/; q; }
16788 # PATH needs CR, and LINENO needs CR and PATH.
16789 # Avoid depending upon Character Ranges.
16790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16793 as_cr_digits='0123456789'
16794 as_cr_alnum=$as_cr_Letters$as_cr_digits
16796 # The user is always right.
16797 if test "${PATH_SEPARATOR+set}" != set; then
16798 echo "#! /bin/sh" >conf$$.sh
16799 echo "exit 0" >>conf$$.sh
16801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 as_lineno_1=$LINENO
16811 as_lineno_2=$LINENO
16812 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16813 test "x$as_lineno_1" != "x$as_lineno_2" &&
16814 test "x$as_lineno_3" = "x$as_lineno_2" || {
16815 # Find who we are. Look in the path if we contain no path at all
16818 *[\\/]* ) as_myself=$0 ;;
16819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16823 test -z "$as_dir" && as_dir=.
16824 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16829 # We did not find ourselves, most probably we were run as `sh COMMAND'
16830 # in which case we are not to be found in the path.
16831 if test "x$as_myself" = x; then
16834 if test ! -f "$as_myself"; then
16835 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16836 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16837 { (exit 1); exit 1; }; }
16839 case $CONFIG_SHELL in
16841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16845 test -z "$as_dir" && as_dir=.
16846 for as_base in sh bash ksh sh5; do
16849 if ("$as_dir/$as_base" -c '
16850 as_lineno_1=$LINENO
16851 as_lineno_2=$LINENO
16852 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16853 test "x$as_lineno_1" != "x$as_lineno_2" &&
16854 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16855 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16856 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16857 CONFIG_SHELL=$as_dir/$as_base
16858 export CONFIG_SHELL
16859 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16868 # uniformly replaced by the line number. The first 'sed' inserts a
16869 # line-number line before each line; the second 'sed' does the real
16870 # work. The second script uses 'N' to pair each line-number line
16871 # with the numbered line, and appends trailing '-' during
16872 # substitution so that $LINENO is not a special case at line end.
16873 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16874 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16875 sed '=' <$as_myself |
16880 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16883 s,^['$as_cr_digits']*\n,,
16884 ' >$as_me.lineno &&
16885 chmod +x $as_me.lineno ||
16886 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16887 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16888 { (exit 1); exit 1; }; }
16890 # Don't try to exec as it changes $[0], causing all sort of problems
16891 # (the dirname of $[0] is not the place where we might find the
16892 # original and so on. Autoconf is especially sensible to this).
16894 # Exit status is that of the last command.
16899 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16900 *c*,-n*) ECHO_N= ECHO_C='
16902 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16903 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16906 if expr a : '\(a\)' >/dev/null 2>&1; then
16912 rm -f conf$$ conf$$.exe conf$$.file
16914 if ln -s conf$$.file conf$$ 2>/dev/null; then
16915 # We could just check for DJGPP; but this test a) works b) is more generic
16916 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16917 if test -f conf$$.exe; then
16918 # Don't use ln at all; we don't have any links
16923 elif ln conf$$.file conf$$ 2>/dev/null; then
16928 rm -f conf$$ conf$$.exe conf$$.file
16930 if mkdir -p . 2>/dev/null; then
16936 as_executable_p="test -f"
16938 # Sed expression to map a string onto a valid CPP name.
16939 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16941 # Sed expression to map a string onto a valid variable name.
16942 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16946 # We need space, tab and new line, in precisely that order.
16956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16957 # report actual input values of CONFIG_FILES etc. instead of their
16958 # values after options handling. Logging --version etc. is OK.
16962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16963 ## Running $as_me. ##
16968 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16969 generated by GNU Autoconf 2.57. Invocation command line was
16971 CONFIG_FILES = $CONFIG_FILES
16972 CONFIG_HEADERS = $CONFIG_HEADERS
16973 CONFIG_LINKS = $CONFIG_LINKS
16974 CONFIG_COMMANDS = $CONFIG_COMMANDS
16978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16982 # Files that config.status was made for.
16983 if test -n "$ac_config_files"; then
16984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16987 if test -n "$ac_config_headers"; then
16988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16991 if test -n "$ac_config_links"; then
16992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16995 if test -n "$ac_config_commands"; then
16996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16999 cat >>$CONFIG_STATUS <<\_ACEOF
17002 \`$as_me' instantiates files from templates according to the
17003 current configuration.
17005 Usage: $0 [OPTIONS] [FILE]...
17007 -h, --help print this help, then exit
17008 -V, --version print version number, then exit
17009 -q, --quiet do not print progress messages
17010 -d, --debug don't remove temporary files
17011 --recheck update $as_me by reconfiguring in the same conditions
17012 --file=FILE[:TEMPLATE]
17013 instantiate the configuration file FILE
17014 --header=FILE[:TEMPLATE]
17015 instantiate the configuration header FILE
17017 Configuration files:
17020 Configuration headers:
17023 Configuration commands:
17026 Report bugs to <bug-autoconf@gnu.org>."
17029 cat >>$CONFIG_STATUS <<_ACEOF
17031 TiMidity++ config.status 2.12.0-pre1b
17032 configured by $0, generated by GNU Autoconf 2.57,
17033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17035 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17036 Free Software Foundation, Inc.
17037 This config.status script is free software; the Free Software Foundation
17038 gives unlimited permission to copy, distribute and modify it."
17043 cat >>$CONFIG_STATUS <<\_ACEOF
17044 # If no file are specified by the user, then we need to provide default
17045 # value. By we need to know if files were specified by the user.
17051 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17052 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17060 *) # This is not an option, so the user has probably given explicit
17063 ac_need_defaults=false;;
17067 # Handling of the options.
17069 cat >>$CONFIG_STATUS <<\_ACEOF
17070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17072 --version | --vers* | -V )
17073 echo "$ac_cs_version"; exit 0 ;;
17075 # Conflict between --help and --header
17076 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17077 Try \`$0 --help' for more information." >&5
17078 echo "$as_me: error: ambiguous option: $1
17079 Try \`$0 --help' for more information." >&2;}
17080 { (exit 1); exit 1; }; };;
17081 --help | --hel | -h )
17082 echo "$ac_cs_usage"; exit 0 ;;
17083 --debug | --d* | -d )
17085 --file | --fil | --fi | --f )
17087 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17088 ac_need_defaults=false;;
17089 --header | --heade | --head | --hea )
17091 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17092 ac_need_defaults=false;;
17093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17097 # This is an error.
17098 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17099 Try \`$0 --help' for more information." >&5
17100 echo "$as_me: error: unrecognized option: $1
17101 Try \`$0 --help' for more information." >&2;}
17102 { (exit 1); exit 1; }; } ;;
17104 *) ac_config_targets="$ac_config_targets $1" ;;
17110 ac_configure_extra_args=
17112 if $ac_cs_silent; then
17114 ac_configure_extra_args="$ac_configure_extra_args --silent"
17118 cat >>$CONFIG_STATUS <<_ACEOF
17119 if \$ac_cs_recheck; then
17120 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17121 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17126 cat >>$CONFIG_STATUS <<_ACEOF
17128 # INIT-COMMANDS section.
17131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17137 cat >>$CONFIG_STATUS <<\_ACEOF
17138 for ac_config_target in $ac_config_targets
17140 case "$ac_config_target" in
17141 # Handling of arguments.
17142 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17143 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
17144 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
17145 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
17146 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17147 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
17148 "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
17149 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
17150 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
17151 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
17152 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
17153 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
17154 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
17155 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
17156 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17157 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
17158 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17159 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17160 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
17161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17163 { (exit 1); exit 1; }; };;
17167 # If the user did not use the arguments to specify the items to instantiate,
17168 # then the envvar interface is used. Set only those that are not.
17169 # We use the long form for the default assignment because of an extremely
17170 # bizarre bug on SunOS 4.1.3.
17171 if $ac_need_defaults; then
17172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17177 # Have a temporary directory for convenience. Make it in the build tree
17178 # simply because there is no reason to put it here, and in addition,
17179 # creating and moving files from /tmp can sometimes cause problems.
17180 # Create a temporary directory, and hook for its removal unless debugging.
17183 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17184 trap '{ (exit 1); exit 1; }' 1 2 13 15
17187 # Create a (secure) tmp directory for tmp files.
17190 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17191 test -n "$tmp" && test -d "$tmp"
17194 tmp=./confstat$$-$RANDOM
17195 (umask 077 && mkdir $tmp)
17198 echo "$me: cannot create a temporary directory in ." >&2
17199 { (exit 1); exit 1; }
17204 cat >>$CONFIG_STATUS <<_ACEOF
17207 # CONFIG_FILES section.
17210 # No need to generate the scripts if there are no CONFIG_FILES.
17211 # This happens for instance when ./config.status config.h
17212 if test -n "\$CONFIG_FILES"; then
17213 # Protect against being on the right side of a sed subst in config.status.
17214 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17215 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17216 s,@SHELL@,$SHELL,;t t
17217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17223 s,@exec_prefix@,$exec_prefix,;t t
17224 s,@prefix@,$prefix,;t t
17225 s,@program_transform_name@,$program_transform_name,;t t
17226 s,@bindir@,$bindir,;t t
17227 s,@sbindir@,$sbindir,;t t
17228 s,@libexecdir@,$libexecdir,;t t
17229 s,@datadir@,$datadir,;t t
17230 s,@sysconfdir@,$sysconfdir,;t t
17231 s,@sharedstatedir@,$sharedstatedir,;t t
17232 s,@localstatedir@,$localstatedir,;t t
17233 s,@libdir@,$libdir,;t t
17234 s,@includedir@,$includedir,;t t
17235 s,@oldincludedir@,$oldincludedir,;t t
17236 s,@infodir@,$infodir,;t t
17237 s,@mandir@,$mandir,;t t
17238 s,@build_alias@,$build_alias,;t t
17239 s,@host_alias@,$host_alias,;t t
17240 s,@target_alias@,$target_alias,;t t
17241 s,@DEFS@,$DEFS,;t t
17242 s,@ECHO_C@,$ECHO_C,;t t
17243 s,@ECHO_N@,$ECHO_N,;t t
17244 s,@ECHO_T@,$ECHO_T,;t t
17245 s,@LIBS@,$LIBS,;t t
17246 s,@build@,$build,;t t
17247 s,@build_cpu@,$build_cpu,;t t
17248 s,@build_vendor@,$build_vendor,;t t
17249 s,@build_os@,$build_os,;t t
17250 s,@host@,$host,;t t
17251 s,@host_cpu@,$host_cpu,;t t
17252 s,@host_vendor@,$host_vendor,;t t
17253 s,@host_os@,$host_os,;t t
17254 s,@target@,$target,;t t
17255 s,@target_cpu@,$target_cpu,;t t
17256 s,@target_vendor@,$target_vendor,;t t
17257 s,@target_os@,$target_os,;t t
17258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17259 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17260 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17261 s,@CYGPATH_W@,$CYGPATH_W,;t t
17262 s,@PACKAGE@,$PACKAGE,;t t
17263 s,@VERSION@,$VERSION,;t t
17264 s,@ACLOCAL@,$ACLOCAL,;t t
17265 s,@AUTOCONF@,$AUTOCONF,;t t
17266 s,@AUTOMAKE@,$AUTOMAKE,;t t
17267 s,@AUTOHEADER@,$AUTOHEADER,;t t
17268 s,@MAKEINFO@,$MAKEINFO,;t t
17269 s,@AMTAR@,$AMTAR,;t t
17270 s,@install_sh@,$install_sh,;t t
17271 s,@STRIP@,$STRIP,;t t
17272 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17273 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17275 s,@SET_MAKE@,$SET_MAKE,;t t
17276 s,@am__leading_dot@,$am__leading_dot,;t t
17277 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17278 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17279 s,@MAINT@,$MAINT,;t t
17280 s,@EMACS@,$EMACS,;t t
17281 s,@lispdir@,$lispdir,;t t
17283 s,@CFLAGS@,$CFLAGS,;t t
17284 s,@LDFLAGS@,$LDFLAGS,;t t
17285 s,@CPPFLAGS@,$CPPFLAGS,;t t
17286 s,@ac_ct_CC@,$ac_ct_CC,;t t
17287 s,@EXEEXT@,$EXEEXT,;t t
17288 s,@OBJEXT@,$OBJEXT,;t t
17289 s,@DEPDIR@,$DEPDIR,;t t
17290 s,@am__include@,$am__include,;t t
17291 s,@am__quote@,$am__quote,;t t
17292 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17293 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17294 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17295 s,@CCDEPMODE@,$CCDEPMODE,;t t
17296 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17297 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17299 s,@EGREP@,$EGREP,;t t
17300 s,@RANLIB@,$RANLIB,;t t
17301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17302 s,@LN_S@,$LN_S,;t t
17303 s,@X_CFLAGS@,$X_CFLAGS,;t t
17304 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17305 s,@X_LIBS@,$X_LIBS,;t t
17306 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17307 s,@LIBOBJS@,$LIBOBJS,;t t
17308 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
17309 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
17310 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
17311 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
17312 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
17313 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
17314 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
17315 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
17316 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
17317 s,@ESD_LIBS@,$ESD_LIBS,;t t
17318 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
17319 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
17320 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
17321 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
17322 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
17323 s,@OGG_LIBS@,$OGG_LIBS,;t t
17324 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
17325 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
17326 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
17327 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
17328 s,@n_so_libs@,$n_so_libs,;t t
17329 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
17330 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
17331 s,@s_so_libs@,$s_so_libs,;t t
17332 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
17333 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
17334 s,@m_so_libs@,$m_so_libs,;t t
17335 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
17336 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
17337 s,@k_so_libs@,$k_so_libs,;t t
17338 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17339 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17340 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17341 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17342 s,@e_so_libs@,$e_so_libs,;t t
17343 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17344 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17345 s,@T_so_libs@,$T_so_libs,;t t
17346 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17347 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17348 s,@a_so_libs@,$a_so_libs,;t t
17349 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17350 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17351 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17352 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17353 s,@i_so_libs@,$i_so_libs,;t t
17354 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17355 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17356 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17357 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17358 s,@GTK_LIBS@,$GTK_LIBS,;t t
17359 s,@g_so_libs@,$g_so_libs,;t t
17360 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17361 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17362 s,@r_so_libs@,$r_so_libs,;t t
17363 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17364 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17365 s,@A_so_libs@,$A_so_libs,;t t
17366 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17367 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17368 s,@W_so_libs@,$W_so_libs,;t t
17369 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17370 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17371 s,@P_so_libs@,$P_so_libs,;t t
17372 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17373 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17374 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17375 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17376 s,@w_so_libs@,$w_so_libs,;t t
17377 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17378 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17379 s,@p_so_libs@,$p_so_libs,;t t
17380 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17381 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17382 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17383 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17384 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17385 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17386 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17387 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17388 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17389 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17390 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17391 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17392 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17393 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17394 s,@EXTRALIBS@,$EXTRALIBS,;t t
17395 s,@NETSRCS@,$NETSRCS,;t t
17396 s,@ELFILES@,$ELFILES,;t t
17397 s,@SHLD@,$SHLD,;t t
17398 s,@SHCFLAGS@,$SHCFLAGS,;t t
17399 s,@dynamic_targets@,$dynamic_targets,;t t
17401 s,@WISH@,$WISH,;t t
17402 s,@tcltk_dep@,$tcltk_dep,;t t
17403 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17404 s,@pkgdatadir@,$pkgdatadir,;t t
17405 s,@pkglibdir@,$pkglibdir,;t t
17406 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17411 cat >>$CONFIG_STATUS <<\_ACEOF
17412 # Split the substitutions into bite-sized pieces for seds with
17413 # small command number limits, like on Digital OSF/1 and HP-UX.
17414 ac_max_sed_lines=48
17415 ac_sed_frag=1 # Number of current file.
17416 ac_beg=1 # First line for current file.
17417 ac_end=$ac_max_sed_lines # Line after last line for current file.
17420 while $ac_more_lines; do
17421 if test $ac_beg -gt 1; then
17422 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17424 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17426 if test ! -s $tmp/subs.frag; then
17427 ac_more_lines=false
17429 # The purpose of the label and of the branching condition is to
17430 # speed up the sed processing (if there are no `@' at all, there
17431 # is no need to browse any of the substitutions).
17432 # These are the two extra sed commands mentioned above.
17434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17435 if test -z "$ac_sed_cmds"; then
17436 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17438 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17440 ac_sed_frag=`expr $ac_sed_frag + 1`
17442 ac_end=`expr $ac_end + $ac_max_sed_lines`
17445 if test -z "$ac_sed_cmds"; then
17448 fi # test -n "$CONFIG_FILES"
17451 cat >>$CONFIG_STATUS <<\_ACEOF
17452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17455 - | *:- | *:-:* ) # input from stdin
17457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17461 * ) ac_file_in=$ac_file.in ;;
17464 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17465 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467 X"$ac_file" : 'X\(//\)[^/]' \| \
17468 X"$ac_file" : 'X\(//\)$' \| \
17469 X"$ac_file" : 'X\(/\)' \| \
17470 . : '\(.\)' 2>/dev/null ||
17472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17474 /^X\(\/\/\)$/{ s//\1/; q; }
17475 /^X\(\/\).*/{ s//\1/; q; }
17477 { if $as_mkdir_p; then
17482 while test ! -d "$as_dir"; do
17483 as_dirs="$as_dir $as_dirs"
17484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17486 X"$as_dir" : 'X\(//\)[^/]' \| \
17487 X"$as_dir" : 'X\(//\)$' \| \
17488 X"$as_dir" : 'X\(/\)' \| \
17489 . : '\(.\)' 2>/dev/null ||
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17493 /^X\(\/\/\)$/{ s//\1/; q; }
17494 /^X\(\/\).*/{ s//\1/; q; }
17497 test ! -n "$as_dirs" || mkdir $as_dirs
17498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17500 { (exit 1); exit 1; }; }; }
17504 if test "$ac_dir" != .; then
17505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17506 # A "../" for each directory in $ac_dir_suffix.
17507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17509 ac_dir_suffix= ac_top_builddir=
17513 .) # No --srcdir option. We are building in place.
17515 if test -z "$ac_top_builddir"; then
17518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17520 [\\/]* | ?:[\\/]* ) # Absolute path.
17521 ac_srcdir=$srcdir$ac_dir_suffix;
17522 ac_top_srcdir=$srcdir ;;
17523 *) # Relative path.
17524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17527 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17529 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17530 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17531 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17532 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17537 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17540 if test x"$ac_file" != x-; then
17541 { echo "$as_me:$LINENO: creating $ac_file" >&5
17542 echo "$as_me: creating $ac_file" >&6;}
17545 # Let's still pretend it is `configure' which instantiates (i.e., don't
17546 # use $as_me), people would be surprised to read:
17547 # /* config.h. Generated by config.status. */
17548 if test x"$ac_file" = x-; then
17551 configure_input="$ac_file. "
17553 configure_input=$configure_input"Generated from `echo $ac_file_in |
17554 sed 's,.*/,,'` by configure."
17556 # First look for the input files in the build tree, otherwise in the
17558 ac_file_inputs=`IFS=:
17559 for f in $ac_file_in; do
17561 -) echo $tmp/stdin ;;
17563 # Absolute (can't be DOS-style, as IFS=:)
17564 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17565 echo "$as_me: error: cannot find input file: $f" >&2;}
17566 { (exit 1); exit 1; }; }
17569 if test -f "$f"; then
17572 elif test -f "$srcdir/$f"; then
17577 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17578 echo "$as_me: error: cannot find input file: $f" >&2;}
17579 { (exit 1); exit 1; }; }
17582 done` || { (exit 1); exit 1; }
17584 cat >>$CONFIG_STATUS <<_ACEOF
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17591 s,@configure_input@,$configure_input,;t t
17592 s,@srcdir@,$ac_srcdir,;t t
17593 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17594 s,@top_srcdir@,$ac_top_srcdir,;t t
17595 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17596 s,@builddir@,$ac_builddir,;t t
17597 s,@abs_builddir@,$ac_abs_builddir,;t t
17598 s,@top_builddir@,$ac_top_builddir,;t t
17599 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17600 s,@INSTALL@,$ac_INSTALL,;t t
17601 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17603 if test x"$ac_file" != x-; then
17604 mv $tmp/out $ac_file
17612 cat >>$CONFIG_STATUS <<\_ACEOF
17615 # CONFIG_HEADER section.
17618 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17619 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17621 # ac_d sets the value in "#define NAME VALUE" lines.
17622 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17623 ac_dB='[ ].*$,\1#\2'
17626 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17627 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17628 ac_uB='$,\1#\2define\3'
17632 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17635 - | *:- | *:-:* ) # input from stdin
17637 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17639 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17641 * ) ac_file_in=$ac_file.in ;;
17644 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17645 echo "$as_me: creating $ac_file" >&6;}
17647 # First look for the input files in the build tree, otherwise in the
17649 ac_file_inputs=`IFS=:
17650 for f in $ac_file_in; do
17652 -) echo $tmp/stdin ;;
17654 # Absolute (can't be DOS-style, as IFS=:)
17655 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17656 echo "$as_me: error: cannot find input file: $f" >&2;}
17657 { (exit 1); exit 1; }; }
17660 if test -f "$f"; then
17663 elif test -f "$srcdir/$f"; then
17668 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17669 echo "$as_me: error: cannot find input file: $f" >&2;}
17670 { (exit 1); exit 1; }; }
17673 done` || { (exit 1); exit 1; }
17674 # Remove the trailing spaces.
17675 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17679 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17680 # `conftest.undefs', that substitutes the proper values into
17681 # config.h.in to produce config.h. The first handles `#define'
17682 # templates, and the second `#undef' templates.
17683 # And first: Protect against being on the right side of a sed subst in
17684 # config.status. Protect against being in an unquoted here document
17685 # in config.status.
17686 rm -f conftest.defines conftest.undefs
17687 # Using a here document instead of a string reduces the quoting nightmare.
17688 # Putting comments in sed scripts is not portable.
17690 # `end' is used to avoid that the second main sed command (meant for
17691 # 0-ary CPP macros) applies to n-ary macro definitions.
17692 # See the Autoconf documentation for `clear'.
17693 cat >confdef2sed.sed <<\_ACEOF
17698 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17700 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17703 # If some macros were called several times there might be several times
17704 # the same #defines, which is useless. Nevertheless, we may not want to
17705 # sort them, since we want the *last* AC-DEFINE to be honored.
17706 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17707 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17708 rm -f confdef2sed.sed
17710 # This sed command replaces #undef with comments. This is necessary, for
17711 # example, in the case of _POSIX_SOURCE, which is predefined and required
17712 # on some systems where configure will not decide to define it.
17713 cat >>conftest.undefs <<\_ACEOF
17714 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17717 # Break up conftest.defines because some shells have a limit on the size
17718 # of here documents, and old seds have small limits too (100 cmds).
17719 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17720 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17721 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17722 echo ' :' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.defines >/dev/null
17726 # Write a limited-size here document to $tmp/defines.sed.
17727 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#define' lines.
17729 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17735 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17737 mv $tmp/out $tmp/in
17739 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17740 rm -f conftest.defines
17741 mv conftest.tail conftest.defines
17743 rm -f conftest.defines
17744 echo ' fi # grep' >>$CONFIG_STATUS
17745 echo >>$CONFIG_STATUS
17747 # Break up conftest.undefs because some shells have a limit on the size
17748 # of here documents, and old seds have small limits too (100 cmds).
17749 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17750 rm -f conftest.tail
17751 while grep . conftest.undefs >/dev/null
17753 # Write a limited-size here document to $tmp/undefs.sed.
17754 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17755 # Speed up: don't consider the non `#undef'
17756 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17757 # Work around the forget-to-reset-the-flag bug.
17758 echo 't clr' >>$CONFIG_STATUS
17759 echo ': clr' >>$CONFIG_STATUS
17760 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17762 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17764 mv $tmp/out $tmp/in
17766 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17767 rm -f conftest.undefs
17768 mv conftest.tail conftest.undefs
17770 rm -f conftest.undefs
17772 cat >>$CONFIG_STATUS <<\_ACEOF
17773 # Let's still pretend it is `configure' which instantiates (i.e., don't
17774 # use $as_me), people would be surprised to read:
17775 # /* config.h. Generated by config.status. */
17776 if test x"$ac_file" = x-; then
17777 echo "/* Generated by configure. */" >$tmp/config.h
17779 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17781 cat $tmp/in >>$tmp/config.h
17783 if test x"$ac_file" != x-; then
17784 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17785 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17786 echo "$as_me: $ac_file is unchanged" >&6;}
17788 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17790 X"$ac_file" : 'X\(//\)[^/]' \| \
17791 X"$ac_file" : 'X\(//\)$' \| \
17792 X"$ac_file" : 'X\(/\)' \| \
17793 . : '\(.\)' 2>/dev/null ||
17795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17797 /^X\(\/\/\)$/{ s//\1/; q; }
17798 /^X\(\/\).*/{ s//\1/; q; }
17800 { if $as_mkdir_p; then
17805 while test ! -d "$as_dir"; do
17806 as_dirs="$as_dir $as_dirs"
17807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809 X"$as_dir" : 'X\(//\)[^/]' \| \
17810 X"$as_dir" : 'X\(//\)$' \| \
17811 X"$as_dir" : 'X\(/\)' \| \
17812 . : '\(.\)' 2>/dev/null ||
17814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17816 /^X\(\/\/\)$/{ s//\1/; q; }
17817 /^X\(\/\).*/{ s//\1/; q; }
17820 test ! -n "$as_dirs" || mkdir $as_dirs
17821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17823 { (exit 1); exit 1; }; }; }
17826 mv $tmp/config.h $ac_file
17830 rm -f $tmp/config.h
17832 # Compute $ac_file's index in $config_headers.
17834 for _am_header in $config_headers :; do
17835 case $_am_header in
17836 $ac_file | $ac_file:* )
17839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17842 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17843 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844 X$ac_file : 'X\(//\)[^/]' \| \
17845 X$ac_file : 'X\(//\)$' \| \
17846 X$ac_file : 'X\(/\)' \| \
17847 . : '\(.\)' 2>/dev/null ||
17849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17851 /^X\(\/\/\)$/{ s//\1/; q; }
17852 /^X\(\/\).*/{ s//\1/; q; }
17853 s/.*/./; q'`/stamp-h$_am_stamp_count
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17859 # CONFIG_COMMANDS section.
17861 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17862 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17863 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17864 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17865 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17866 X"$ac_dest" : 'X\(//\)[^/]' \| \
17867 X"$ac_dest" : 'X\(//\)$' \| \
17868 X"$ac_dest" : 'X\(/\)' \| \
17869 . : '\(.\)' 2>/dev/null ||
17871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17873 /^X\(\/\/\)$/{ s//\1/; q; }
17874 /^X\(\/\).*/{ s//\1/; q; }
17878 if test "$ac_dir" != .; then
17879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17880 # A "../" for each directory in $ac_dir_suffix.
17881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17883 ac_dir_suffix= ac_top_builddir=
17887 .) # No --srcdir option. We are building in place.
17889 if test -z "$ac_top_builddir"; then
17892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17894 [\\/]* | ?:[\\/]* ) # Absolute path.
17895 ac_srcdir=$srcdir$ac_dir_suffix;
17896 ac_top_srcdir=$srcdir ;;
17897 *) # Relative path.
17898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17904 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17909 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17910 echo "$as_me: executing $ac_dest commands" >&6;}
17912 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17913 # Strip MF so we end up with the name of the file.
17914 mf=`echo "$mf" | sed -e 's/:.*$//'`
17915 # Check whether this is an Automake generated Makefile or not.
17916 # We used to match only the files named `Makefile.in', but
17917 # some people rename them; so instead we look at the file content.
17918 # Grep'ing the first line is not enough: some people post-process
17919 # each Makefile.in and add a new line on top of each file to say so.
17920 # So let's grep whole file.
17921 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17922 dirpart=`(dirname "$mf") 2>/dev/null ||
17923 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17924 X"$mf" : 'X\(//\)[^/]' \| \
17925 X"$mf" : 'X\(//\)$' \| \
17926 X"$mf" : 'X\(/\)' \| \
17927 . : '\(.\)' 2>/dev/null ||
17929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17931 /^X\(\/\/\)$/{ s//\1/; q; }
17932 /^X\(\/\).*/{ s//\1/; q; }
17937 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17938 # Extract the definition of DEP_FILES from the Makefile without
17940 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17941 test -z "$DEPDIR" && continue
17942 # When using ansi2knr, U may be empty or an underscore; expand it
17943 U=`sed -n -e '/^U = / s///p' < "$mf"`
17944 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17945 # We invoke sed twice because it is the simplest approach to
17946 # changing $(DEPDIR) to its actual value in the expansion.
17947 for file in `sed -n -e '
17948 /^DEP_FILES = .*\\\\$/ {
17957 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17958 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17959 # Make sure the directory exists.
17960 test -f "$dirpart/$file" && continue
17961 fdir=`(dirname "$file") 2>/dev/null ||
17962 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17963 X"$file" : 'X\(//\)[^/]' \| \
17964 X"$file" : 'X\(//\)$' \| \
17965 X"$file" : 'X\(/\)' \| \
17966 . : '\(.\)' 2>/dev/null ||
17968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17970 /^X\(\/\/\)$/{ s//\1/; q; }
17971 /^X\(\/\).*/{ s//\1/; q; }
17973 { if $as_mkdir_p; then
17974 mkdir -p $dirpart/$fdir
17976 as_dir=$dirpart/$fdir
17978 while test ! -d "$as_dir"; do
17979 as_dirs="$as_dir $as_dirs"
17980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17982 X"$as_dir" : 'X\(//\)[^/]' \| \
17983 X"$as_dir" : 'X\(//\)$' \| \
17984 X"$as_dir" : 'X\(/\)' \| \
17985 . : '\(.\)' 2>/dev/null ||
17987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17989 /^X\(\/\/\)$/{ s//\1/; q; }
17990 /^X\(\/\).*/{ s//\1/; q; }
17993 test ! -n "$as_dirs" || mkdir $as_dirs
17994 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17995 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17996 { (exit 1); exit 1; }; }; }
17998 # echo "creating $dirpart/$file"
17999 echo '# dummy' > "$dirpart/$file"
18007 cat >>$CONFIG_STATUS <<\_ACEOF
18009 { (exit 0); exit 0; }
18011 chmod +x $CONFIG_STATUS
18012 ac_clean_files=$ac_clean_files_save
18015 # configure is writing to config.log, and then calls config.status.
18016 # config.status does its own redirection, appending to config.log.
18017 # Unfortunately, on DOS this fails, as config.log is still kept open
18018 # by configure, so config.status won't be able to write to it; its
18019 # output is simply discarded. So we exec the FD to /dev/null,
18020 # effectively closing config.log, so it can be properly (re)opened and
18021 # appended to by config.status. When coming back to configure, we
18022 # need to make the FD available again.
18023 if test "$no_create" != yes; then
18025 ac_config_status_args=
18026 test "$silent" = yes &&
18027 ac_config_status_args="$ac_config_status_args --quiet"
18029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18032 # would make configure fail if this is the last instruction.
18033 $ac_cs_success || { (exit 1); exit 1; }