1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for TiMidity++ 2.15.0. 4# 5# Report bugs to <timidity-talk@lists.sourceforge.net>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 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 \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 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 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 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 124 as_myself=$0 125 fi 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; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 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 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 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 | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 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; }; } 179 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). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if 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 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246# Name of the host. 247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248# so uname gets run too. 249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251exec 6>&1 252 253# 254# Initializations. 255# 256ac_default_prefix=/usr/local 257ac_config_libobj_dir=. 258cross_compiling=no 259subdirs= 260MFLAGS= 261MAKEFLAGS= 262SHELL=${CONFIG_SHELL-/bin/sh} 263 264# Maximum number of lines to put in a shell here document. 265# This variable seems obsolete. It should probably be removed, and 266# only ac_max_sed_lines should be used. 267: ${ac_max_here_lines=38} 268 269# Identity of this package. 270PACKAGE_NAME='TiMidity++' 271PACKAGE_TARNAME='TiMidity++' 272PACKAGE_VERSION='2.15.0' 273PACKAGE_STRING='TiMidity++ 2.15.0' 274PACKAGE_BUGREPORT='timidity-talk@lists.sourceforge.net' 275 276ac_unique_file="timidity/timidity.c" 277# Factoring default headers for most tests. 278ac_includes_default="\ 279#include <stdio.h> 280#if HAVE_SYS_TYPES_H 281# include <sys/types.h> 282#endif 283#if HAVE_SYS_STAT_H 284# include <sys/stat.h> 285#endif 286#if STDC_HEADERS 287# include <stdlib.h> 288# include <stddef.h> 289#else 290# if HAVE_STDLIB_H 291# include <stdlib.h> 292# endif 293#endif 294#if HAVE_STRING_H 295# if !STDC_HEADERS && HAVE_MEMORY_H 296# include <memory.h> 297# endif 298# include <string.h> 299#endif 300#if HAVE_STRINGS_H 301# include <strings.h> 302#endif 303#if HAVE_INTTYPES_H 304# include <inttypes.h> 305#else 306# if HAVE_STDINT_H 307# include <stdint.h> 308# endif 309#endif 310#if HAVE_UNISTD_H 311# include <unistd.h> 312#endif" 313 314ac_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 XAW_INSTALL_RESOURCE_FILES_TRUE XAW_INSTALL_RESOURCE_FILES_FALSE xawresdir 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 ARTSCCONFIG ARTSLIBS ARTSINCL ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_XDND_TRUE ENABLE_XDND_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 PKG_CONFIG 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_NPSYN_TRUE ENABLE_NPSYN_FALSE 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 W32G_GUI_TRUE W32G_GUI_FALSE WINDRV_TRUE WINDRV_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE POCC_TRUE POCC_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE DMC_TRUE DMC_FALSE MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS DMC_LDFLAGS VCPP_LDFLAGS POCC_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so TCLSH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS' 315ac_subst_files='' 316 317# Initialize some variables set by options. 318ac_init_help= 319ac_init_version=false 320# The variables have the same names as the options, with 321# dashes changed to underlines. 322cache_file=/dev/null 323exec_prefix=NONE 324no_create= 325no_recursion= 326prefix=NONE 327program_prefix=NONE 328program_suffix=NONE 329program_transform_name=s,x,x, 330silent= 331site= 332srcdir= 333verbose= 334x_includes=NONE 335x_libraries=NONE 336 337# Installation directory options. 338# These are left unexpanded so users can "make install exec_prefix=/foo" 339# and all the variables that are supposed to be based on exec_prefix 340# by default will actually change. 341# Use braces instead of parens because sh, perl, etc. also accept them. 342bindir='${exec_prefix}/bin' 343sbindir='${exec_prefix}/sbin' 344libexecdir='${exec_prefix}/libexec' 345datadir='${prefix}/share' 346sysconfdir='${prefix}/etc' 347sharedstatedir='${prefix}/com' 348localstatedir='${prefix}/var' 349libdir='${exec_prefix}/lib' 350includedir='${prefix}/include' 351oldincludedir='/usr/include' 352infodir='${prefix}/info' 353mandir='${prefix}/man' 354 355ac_prev= 356for ac_option 357do 358 # If the previous option needs an argument, assign it. 359 if test -n "$ac_prev"; then 360 eval "$ac_prev=\$ac_option" 361 ac_prev= 362 continue 363 fi 364 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 366 367 # Accept the important Cygnus configure options, so we can diagnose typos. 368 369 case $ac_option in 370 371 -bindir | --bindir | --bindi | --bind | --bin | --bi) 372 ac_prev=bindir ;; 373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 374 bindir=$ac_optarg ;; 375 376 -build | --build | --buil | --bui | --bu) 377 ac_prev=build_alias ;; 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 379 build_alias=$ac_optarg ;; 380 381 -cache-file | --cache-file | --cache-fil | --cache-fi \ 382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 383 ac_prev=cache_file ;; 384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 386 cache_file=$ac_optarg ;; 387 388 --config-cache | -C) 389 cache_file=config.cache ;; 390 391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 392 ac_prev=datadir ;; 393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 394 | --da=*) 395 datadir=$ac_optarg ;; 396 397 -disable-* | --disable-*) 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 399 # Reject names that are not valid shell variable names. 400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 402 { (exit 1); exit 1; }; } 403 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 404 eval "enable_$ac_feature=no" ;; 405 406 -enable-* | --enable-*) 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 408 # Reject names that are not valid shell variable names. 409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 411 { (exit 1); exit 1; }; } 412 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 413 case $ac_option in 414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 415 *) ac_optarg=yes ;; 416 esac 417 eval "enable_$ac_feature='$ac_optarg'" ;; 418 419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 421 | --exec | --exe | --ex) 422 ac_prev=exec_prefix ;; 423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 425 | --exec=* | --exe=* | --ex=*) 426 exec_prefix=$ac_optarg ;; 427 428 -gas | --gas | --ga | --g) 429 # Obsolete; use --with-gas. 430 with_gas=yes ;; 431 432 -help | --help | --hel | --he | -h) 433 ac_init_help=long ;; 434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 435 ac_init_help=recursive ;; 436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 437 ac_init_help=short ;; 438 439 -host | --host | --hos | --ho) 440 ac_prev=host_alias ;; 441 -host=* | --host=* | --hos=* | --ho=*) 442 host_alias=$ac_optarg ;; 443 444 -includedir | --includedir | --includedi | --included | --include \ 445 | --includ | --inclu | --incl | --inc) 446 ac_prev=includedir ;; 447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 448 | --includ=* | --inclu=* | --incl=* | --inc=*) 449 includedir=$ac_optarg ;; 450 451 -infodir | --infodir | --infodi | --infod | --info | --inf) 452 ac_prev=infodir ;; 453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 454 infodir=$ac_optarg ;; 455 456 -libdir | --libdir | --libdi | --libd) 457 ac_prev=libdir ;; 458 -libdir=* | --libdir=* | --libdi=* | --libd=*) 459 libdir=$ac_optarg ;; 460 461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 462 | --libexe | --libex | --libe) 463 ac_prev=libexecdir ;; 464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 465 | --libexe=* | --libex=* | --libe=*) 466 libexecdir=$ac_optarg ;; 467 468 -localstatedir | --localstatedir | --localstatedi | --localstated \ 469 | --localstate | --localstat | --localsta | --localst \ 470 | --locals | --local | --loca | --loc | --lo) 471 ac_prev=localstatedir ;; 472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 475 localstatedir=$ac_optarg ;; 476 477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 478 ac_prev=mandir ;; 479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 480 mandir=$ac_optarg ;; 481 482 -nfp | --nfp | --nf) 483 # Obsolete; use --without-fp. 484 with_fp=no ;; 485 486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 487 | --no-cr | --no-c | -n) 488 no_create=yes ;; 489 490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 492 no_recursion=yes ;; 493 494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 496 | --oldin | --oldi | --old | --ol | --o) 497 ac_prev=oldincludedir ;; 498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 501 oldincludedir=$ac_optarg ;; 502 503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 504 ac_prev=prefix ;; 505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 506 prefix=$ac_optarg ;; 507 508 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 509 | --program-pre | --program-pr | --program-p) 510 ac_prev=program_prefix ;; 511 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 513 program_prefix=$ac_optarg ;; 514 515 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 516 | --program-suf | --program-su | --program-s) 517 ac_prev=program_suffix ;; 518 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 520 program_suffix=$ac_optarg ;; 521 522 -program-transform-name | --program-transform-name \ 523 | --program-transform-nam | --program-transform-na \ 524 | --program-transform-n | --program-transform- \ 525 | --program-transform | --program-transfor \ 526 | --program-transfo | --program-transf \ 527 | --program-trans | --program-tran \ 528 | --progr-tra | --program-tr | --program-t) 529 ac_prev=program_transform_name ;; 530 -program-transform-name=* | --program-transform-name=* \ 531 | --program-transform-nam=* | --program-transform-na=* \ 532 | --program-transform-n=* | --program-transform-=* \ 533 | --program-transform=* | --program-transfor=* \ 534 | --program-transfo=* | --program-transf=* \ 535 | --program-trans=* | --program-tran=* \ 536 | --progr-tra=* | --program-tr=* | --program-t=*) 537 program_transform_name=$ac_optarg ;; 538 539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 540 | -silent | --silent | --silen | --sile | --sil) 541 silent=yes ;; 542 543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 544 ac_prev=sbindir ;; 545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 546 | --sbi=* | --sb=*) 547 sbindir=$ac_optarg ;; 548 549 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 551 | --sharedst | --shareds | --shared | --share | --shar \ 552 | --sha | --sh) 553 ac_prev=sharedstatedir ;; 554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 557 | --sha=* | --sh=*) 558 sharedstatedir=$ac_optarg ;; 559 560 -site | --site | --sit) 561 ac_prev=site ;; 562 -site=* | --site=* | --sit=*) 563 site=$ac_optarg ;; 564 565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 566 ac_prev=srcdir ;; 567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 568 srcdir=$ac_optarg ;; 569 570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 571 | --syscon | --sysco | --sysc | --sys | --sy) 572 ac_prev=sysconfdir ;; 573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 575 sysconfdir=$ac_optarg ;; 576 577 -target | --target | --targe | --targ | --tar | --ta | --t) 578 ac_prev=target_alias ;; 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 580 target_alias=$ac_optarg ;; 581 582 -v | -verbose | --verbose | --verbos | --verbo | --verb) 583 verbose=yes ;; 584 585 -version | --version | --versio | --versi | --vers | -V) 586 ac_init_version=: ;; 587 588 -with-* | --with-*) 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 590 # Reject names that are not valid shell variable names. 591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 592 { echo "$as_me: error: invalid package name: $ac_package" >&2 593 { (exit 1); exit 1; }; } 594 ac_package=`echo $ac_package| sed 's/-/_/g'` 595 case $ac_option in 596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 597 *) ac_optarg=yes ;; 598 esac 599 eval "with_$ac_package='$ac_optarg'" ;; 600 601 -without-* | --without-*) 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 603 # Reject names that are not valid shell variable names. 604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 605 { echo "$as_me: error: invalid package name: $ac_package" >&2 606 { (exit 1); exit 1; }; } 607 ac_package=`echo $ac_package | sed 's/-/_/g'` 608 eval "with_$ac_package=no" ;; 609 610 --x) 611 # Obsolete; use --with-x. 612 with_x=yes ;; 613 614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 615 | --x-incl | --x-inc | --x-in | --x-i) 616 ac_prev=x_includes ;; 617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 619 x_includes=$ac_optarg ;; 620 621 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 623 ac_prev=x_libraries ;; 624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 626 x_libraries=$ac_optarg ;; 627 628 -*) { echo "$as_me: error: unrecognized option: $ac_option 629Try \`$0 --help' for more information." >&2 630 { (exit 1); exit 1; }; } 631 ;; 632 633 *=*) 634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 635 # Reject names that are not valid shell variable names. 636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 638 { (exit 1); exit 1; }; } 639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 640 eval "$ac_envvar='$ac_optarg'" 641 export $ac_envvar ;; 642 643 *) 644 # FIXME: should be removed in autoconf 3.0. 645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 649 ;; 650 651 esac 652done 653 654if test -n "$ac_prev"; then 655 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 656 { echo "$as_me: error: missing argument to $ac_option" >&2 657 { (exit 1); exit 1; }; } 658fi 659 660# Be sure to have absolute paths. 661for ac_var in exec_prefix prefix 662do 663 eval ac_val=$`echo $ac_var` 664 case $ac_val in 665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 667 { (exit 1); exit 1; }; };; 668 esac 669done 670 671# Be sure to have absolute paths. 672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 673 localstatedir libdir includedir oldincludedir infodir mandir 674do 675 eval ac_val=$`echo $ac_var` 676 case $ac_val in 677 [\\/$]* | ?:[\\/]* ) ;; 678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 679 { (exit 1); exit 1; }; };; 680 esac 681done 682 683# There might be people who depend on the old broken behavior: `$host' 684# used to hold the argument of --host etc. 685# FIXME: To remove some day. 686build=$build_alias 687host=$host_alias 688target=$target_alias 689 690# FIXME: To remove some day. 691if test "x$host_alias" != x; then 692 if test "x$build_alias" = x; then 693 cross_compiling=maybe 694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 695 If a cross compiler is detected then cross compile mode will be used." >&2 696 elif test "x$build_alias" != "x$host_alias"; then 697 cross_compiling=yes 698 fi 699fi 700 701ac_tool_prefix= 702test -n "$host_alias" && ac_tool_prefix=$host_alias- 703 704test "$silent" = yes && exec 6>/dev/null 705 706 707# Find the source files, if location was not specified. 708if test -z "$srcdir"; then 709 ac_srcdir_defaulted=yes 710 # Try the directory containing this script, then its parent. 711 ac_confdir=`(dirname "$0") 2>/dev/null || 712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 713 X"$0" : 'X\(//\)[^/]' \| \ 714 X"$0" : 'X\(//\)$' \| \ 715 X"$0" : 'X\(/\)' \| \ 716 . : '\(.\)' 2>/dev/null || 717echo X"$0" | 718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 719 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 720 /^X\(\/\/\)$/{ s//\1/; q; } 721 /^X\(\/\).*/{ s//\1/; q; } 722 s/.*/./; q'` 723 srcdir=$ac_confdir 724 if test ! -r $srcdir/$ac_unique_file; then 725 srcdir=.. 726 fi 727else 728 ac_srcdir_defaulted=no 729fi 730if test ! -r $srcdir/$ac_unique_file; then 731 if test "$ac_srcdir_defaulted" = yes; then 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 733 { (exit 1); exit 1; }; } 734 else 735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 736 { (exit 1); exit 1; }; } 737 fi 738fi 739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 741 { (exit 1); exit 1; }; } 742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 743ac_env_build_alias_set=${build_alias+set} 744ac_env_build_alias_value=$build_alias 745ac_cv_env_build_alias_set=${build_alias+set} 746ac_cv_env_build_alias_value=$build_alias 747ac_env_host_alias_set=${host_alias+set} 748ac_env_host_alias_value=$host_alias 749ac_cv_env_host_alias_set=${host_alias+set} 750ac_cv_env_host_alias_value=$host_alias 751ac_env_target_alias_set=${target_alias+set} 752ac_env_target_alias_value=$target_alias 753ac_cv_env_target_alias_set=${target_alias+set} 754ac_cv_env_target_alias_value=$target_alias 755ac_env_CC_set=${CC+set} 756ac_env_CC_value=$CC 757ac_cv_env_CC_set=${CC+set} 758ac_cv_env_CC_value=$CC 759ac_env_CFLAGS_set=${CFLAGS+set} 760ac_env_CFLAGS_value=$CFLAGS 761ac_cv_env_CFLAGS_set=${CFLAGS+set} 762ac_cv_env_CFLAGS_value=$CFLAGS 763ac_env_LDFLAGS_set=${LDFLAGS+set} 764ac_env_LDFLAGS_value=$LDFLAGS 765ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 766ac_cv_env_LDFLAGS_value=$LDFLAGS 767ac_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_env_CPPFLAGS_value=$CPPFLAGS 769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 770ac_cv_env_CPPFLAGS_value=$CPPFLAGS 771ac_env_CPP_set=${CPP+set} 772ac_env_CPP_value=$CPP 773ac_cv_env_CPP_set=${CPP+set} 774ac_cv_env_CPP_value=$CPP 775 776# 777# Report the --help message. 778# 779if test "$ac_init_help" = "long"; then 780 # Omit some internal or obsolete options to make the list less imposing. 781 # This message is too long to be a string in the A/UX 3.1 sh. 782 cat <<_ACEOF 783\`configure' configures TiMidity++ 2.15.0 to adapt to many kinds of systems. 784 785Usage: $0 [OPTION]... [VAR=VALUE]... 786 787To assign environment variables (e.g., CC, CFLAGS...), specify them as 788VAR=VALUE. See below for descriptions of some of the useful variables. 789 790Defaults for the options are specified in brackets. 791 792Configuration: 793 -h, --help display this help and exit 794 --help=short display options specific to this package 795 --help=recursive display the short help of all the included packages 796 -V, --version display version information and exit 797 -q, --quiet, --silent do not print \`checking...' messages 798 --cache-file=FILE cache test results in FILE [disabled] 799 -C, --config-cache alias for \`--cache-file=config.cache' 800 -n, --no-create do not create output files 801 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 802 803_ACEOF 804 805 cat <<_ACEOF 806Installation directories: 807 --prefix=PREFIX install architecture-independent files in PREFIX 808 [$ac_default_prefix] 809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 810 [PREFIX] 811 812By default, \`make install' will install all the files in 813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 814an installation prefix other than \`$ac_default_prefix' using \`--prefix', 815for instance \`--prefix=\$HOME'. 816 817For better control, use the options below. 818 819Fine tuning of the installation directories: 820 --bindir=DIR user executables [EPREFIX/bin] 821 --sbindir=DIR system admin executables [EPREFIX/sbin] 822 --libexecdir=DIR program executables [EPREFIX/libexec] 823 --datadir=DIR read-only architecture-independent data [PREFIX/share] 824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 826 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 827 --libdir=DIR object code libraries [EPREFIX/lib] 828 --includedir=DIR C header files [PREFIX/include] 829 --oldincludedir=DIR C header files for non-gcc [/usr/include] 830 --infodir=DIR info documentation [PREFIX/info] 831 --mandir=DIR man documentation [PREFIX/man] 832_ACEOF 833 834 cat <<\_ACEOF 835 836Program names: 837 --program-prefix=PREFIX prepend PREFIX to installed program names 838 --program-suffix=SUFFIX append SUFFIX to installed program names 839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 840 841X features: 842 --x-includes=DIR X include files are in DIR 843 --x-libraries=DIR X library files are in DIR 844 845System types: 846 --build=BUILD configure for building on BUILD [guessed] 847 --host=HOST cross-compile to build programs to run on HOST [BUILD] 848 --target=TARGET configure for building compilers for TARGET [HOST] 849_ACEOF 850fi 851 852if test -n "$ac_init_help"; then 853 case $ac_init_help in 854 short | recursive ) echo "Configuration of TiMidity++ 2.15.0:";; 855 esac 856 cat <<\_ACEOF 857 858Optional Features: 859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 861 --enable-maintainer-mode enable make rules and dependencies not useful 862 (and sometimes confusing) to the casual installer 863 --enable-debug Build a debugging version. 864 --disable-dependency-tracking Speeds up one-time builds 865 --enable-dependency-tracking Do not reject slow dependency extractors 866 --enable-xft Enable use of Xft in X trace mode 867 --enable-audio=mode_list Enable audio (Specify comma separated mode list): 868 default: Automatically select audio device. 869 oss: OSS /dev/dsp 870 sun: SunOS /dev/audio 871 hpux: HPUX /dev/audio 872 irix: IRIX audio library 873 mme: OSF/1 MME 874 sb_dsp: BSD/OS 2.0 /dev/sb_dsp 875 w32: Windows MMS 876 darwin: Darwin CoreAudio 877 alsa: ALSA pcm device 878 alib: HPUX network audio (Alib) 879 nas: NAS - Network Audio System 880 arts: aRts 881 esd: EsounD - Enlightened Sound Daemon 882 portaudio: PortAudio 883 npipe: Named Pipe(windows) 884 jack: JACK 885 ao: Libao 886 vorbis: Ogg Vorbis 887 flac: FLAC / OggFLAC 888 speex: Ogg Speex 889 gogo: MP3 GOGO (Only Windows is supported) 890 891 --disable-alsatest Do not try to compile and run a test Alsa program 892 --disable-esdtest Do not try to compile and run a test ESD program 893 --disable-aotest Do not try to compile and run a test ao program 894 --disable-oggtest Do not try to compile and run a test Ogg program 895 --disable-vorbistest Do not try to compile and run a test Vorbis program 896 --disable-libFLACtest Do not try to compile and run a test libFLAC program 897 --disable-libOggFLACtest 898 Do not try to compile and run a test libOggFLAC 899 program 900 --enable-interface=interface_list 901 Comma separated interface list 902 --enable-dynamic Enable dynamic link interface (default is no) 903 --enable-dynamic=dynamic_list Comma separated dynamic interface list 904 905 --enable-xdnd Enable xdnd support (default is no) 906 --enable-ncurses Enable ncurses interface (default is no) 907 --enable-slang Enable slang interface (default is no) 908 --enable-motif Enable motif interface (default is no) 909 --enable-tcltk Enable tcltk interface (default is no) 910 --enable-emacs Enable emacs interface (default is no) 911 --enable-vt100 Enable VT100 interface (default is no) 912 --enable-xaw Enable athena interface (default is no) 913 --enable-xskin Enable X skin interface (default is no) 914 --enable-gtk Enable GTK+ interface (default is no) 915 --disable-gtktest do not try to compile and run a test GTK+ program 916 --disable-gtktest Do not try to compile and run a test GTK program 917 --enable-server Enable server interface (default is no) 918 --enable-alsaseq Enable ALSA sequencer server interface (default is 919 no) 920 --enable-winsyn Enable Windows Synthesizer interface (default is no) 921 --enable-portmidisyn Enable PortMIDI Synthesizer interface (default is 922 no) 923 --enable-npsyn Enable Windows Named Pipe Synthesizer interface 924 (default is no) 925 --enable-winsyng Enable Windows GUI Synthesizer interface (default is 926 no) 927 --enable-w32gui Enable Windows GUI interface (default is no) 928 --enable-ump UMP configuration (default is no) 929 --enable-windrv Windows Driver interface(requires winsyn) 930 --enable-offix Enable offix support (default is no) 931 --enable-network Enable network support (default is no) 932 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no) 933 --enable-spline=method Specify spline method. one of 934 no,linear,cubic,lagrange,newton,gauss (default is 935 linear) 936 --enable-wrd Enable WRD interface for X (default is no) 937 938Optional Packages: 939 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 940 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 941 --with-includes=DIR Specify include directories (colon separated) 942 --with-libraries=DIR Specify library directories (colon separated) 943 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity) 944 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity) 945 --with-xaw-resource-prefix=DIR 946 What prefix to install X resource files to 947 (optional, used by Xaw/Motif interfaces) 948 --with-lispdir Override the default lisp directory 949 --with-elf create ELF shared object instead of AOUT 950 --with-x use the X Window System 951 --with-xawlib=lib Try to link to these xaw widget libraries by the 952 order specified by the comma separated value list: 953 xaw: libXaw 954 xaw3d: Xaw3d 955 neXtaw: neXtaw 956 XawPlus: XawPlus 957 default is --with-xawlib=xaw3d,xaw 958 --with-tcl-includes=DIR Tcl include file path 959 --with-tcl-libs=DIR Tcl library file path 960 --with-tk-includes=DIR Tk include file path 961 --with-tk-libs=DIR Tk library file path 962 --with-offix-includes=DIR 963 Offix include file path 964 --with-offix-libs=DIR Offix include file path 965 --with-nas-library=library 966 NAS absolute library path(Don't use -laudio) 967 --with-nas-includes=DIR NAS include files are in dir 968 --with-default-output=<mode> 969 Specify default output mode (optional): 970 (default|alsa|alib|arts|nas| 971 esd|wav|au|aiff|list|vorbis|flac|speex| 972 gogo|portaudio|npipe|jack|ao) 973 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional) 974 --with-alsa-inc-prefix=PFX 975 Prefix where include libraries are (optional) 976 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 977 --with-esd-exec-prefix=PFX 978 Exec prefix where ESD is installed (optional) 979 --with-ao=PFX Prefix where libao is installed (optional) 980 --with-ao-libraries=DIR Directory where libao library is installed 981 (optional) 982 --with-ao-includes=DIR Directory where libao header files are installed 983 (optional) 984 --with-ogg=PFX Prefix where libogg is installed (optional) 985 --with-ogg-libraries=DIR 986 Directory where libogg library is installed 987 (optional) 988 --with-ogg-includes=DIR Directory where libogg header files are installed 989 (optional) 990 --with-vorbis=PFX Prefix where libvorbis is installed (optional) 991 --with-vorbis-libraries=DIR 992 Directory where libvorbis library is installed 993 (optional) 994 --with-vorbis-includes=DIR 995 Directory where libvorbis header files are installed 996 (optional) 997 --with-libFLAC=PFX Prefix where libFLAC is installed (optional) 998 --with-libFLAC-libraries=DIR 999 Directory where libFLAC library is installed 1000 (optional) 1001 --with-libFLAC-includes=DIR 1002 Directory where libFLAC header files are installed 1003 (optional) 1004 --with-libOggFLAC=PFX Prefix where libOggFLAC is installed (optional) 1005 --with-libOggFLAC-libraries=DIR 1006 Directory where libOggFLAC library is installed 1007 (optional) 1008 --with-libOggFLAC-includes=DIR 1009 Directory where libOggFLAC header files are 1010 installed (optional) 1011 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1012 --with-gtk-exec-prefix=PFX 1013 Exec prefix where GTK is installed (optional) 1014 1015Some influential environment variables: 1016 CC C compiler command 1017 CFLAGS C compiler flags 1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1019 nonstandard directory <lib dir> 1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1021 headers in a nonstandard directory <include dir> 1022 CPP C preprocessor 1023 1024Use these variables to override the choices made by `configure' or to help 1025it to find libraries and programs with nonstandard names/locations. 1026 1027Report bugs to <timidity-talk@lists.sourceforge.net>. 1028_ACEOF 1029fi 1030 1031if test "$ac_init_help" = "recursive"; then 1032 # If there are subdirs, report their specific --help. 1033 ac_popdir=`pwd` 1034 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1035 test -d $ac_dir || continue 1036 ac_builddir=. 1037 1038if test "$ac_dir" != .; then 1039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1040 # A "../" for each directory in $ac_dir_suffix. 1041 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1042else 1043 ac_dir_suffix= ac_top_builddir= 1044fi 1045 1046case $srcdir in 1047 .) # No --srcdir option. We are building in place. 1048 ac_srcdir=. 1049 if test -z "$ac_top_builddir"; then 1050 ac_top_srcdir=. 1051 else 1052 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1053 fi ;; 1054 [\\/]* | ?:[\\/]* ) # Absolute path. 1055 ac_srcdir=$srcdir$ac_dir_suffix; 1056 ac_top_srcdir=$srcdir ;; 1057 *) # Relative path. 1058 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1059 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1060esac 1061 1062# Do not use `cd foo && pwd` to compute absolute paths, because 1063# the directories may not exist. 1064case `pwd` in 1065.) ac_abs_builddir="$ac_dir";; 1066*) 1067 case "$ac_dir" in 1068 .) ac_abs_builddir=`pwd`;; 1069 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1070 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1071 esac;; 1072esac 1073case $ac_abs_builddir in 1074.) ac_abs_top_builddir=${ac_top_builddir}.;; 1075*) 1076 case ${ac_top_builddir}. in 1077 .) ac_abs_top_builddir=$ac_abs_builddir;; 1078 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1079 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1080 esac;; 1081esac 1082case $ac_abs_builddir in 1083.) ac_abs_srcdir=$ac_srcdir;; 1084*) 1085 case $ac_srcdir in 1086 .) ac_abs_srcdir=$ac_abs_builddir;; 1087 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1088 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1089 esac;; 1090esac 1091case $ac_abs_builddir in 1092.) ac_abs_top_srcdir=$ac_top_srcdir;; 1093*) 1094 case $ac_top_srcdir in 1095 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1096 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1097 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1098 esac;; 1099esac 1100 1101 cd $ac_dir 1102 # Check for guested configure; otherwise get Cygnus style configure. 1103 if test -f $ac_srcdir/configure.gnu; then 1104 echo 1105 $SHELL $ac_srcdir/configure.gnu --help=recursive 1106 elif test -f $ac_srcdir/configure; then 1107 echo 1108 $SHELL $ac_srcdir/configure --help=recursive 1109 elif test -f $ac_srcdir/configure.ac || 1110 test -f $ac_srcdir/configure.in; then 1111 echo 1112 $ac_configure --help 1113 else 1114 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1115 fi 1116 cd $ac_popdir 1117 done 1118fi 1119 1120test -n "$ac_init_help" && exit 0 1121if $ac_init_version; then 1122 cat <<\_ACEOF 1123TiMidity++ configure 2.15.0 1124generated by GNU Autoconf 2.59 1125 1126Copyright (C) 2003 Free Software Foundation, Inc. 1127This configure script is free software; the Free Software Foundation 1128gives unlimited permission to copy, distribute and modify it. 1129_ACEOF 1130 exit 0 1131fi 1132exec 5>config.log 1133cat >&5 <<_ACEOF 1134This file contains any messages produced by compilers while 1135running configure, to aid debugging if configure makes a mistake. 1136 1137It was created by TiMidity++ $as_me 2.15.0, which was 1138generated by GNU Autoconf 2.59. Invocation command line was 1139 1140 $ $0 $@ 1141 1142_ACEOF 1143{ 1144cat <<_ASUNAME 1145## --------- ## 1146## Platform. ## 1147## --------- ## 1148 1149hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1150uname -m = `(uname -m) 2>/dev/null || echo unknown` 1151uname -r = `(uname -r) 2>/dev/null || echo unknown` 1152uname -s = `(uname -s) 2>/dev/null || echo unknown` 1153uname -v = `(uname -v) 2>/dev/null || echo unknown` 1154 1155/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1156/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1157 1158/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1159/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1160/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1161hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1162/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1163/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1164/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1165 1166_ASUNAME 1167 1168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1169for as_dir in $PATH 1170do 1171 IFS=$as_save_IFS 1172 test -z "$as_dir" && as_dir=. 1173 echo "PATH: $as_dir" 1174done 1175 1176} >&5 1177 1178cat >&5 <<_ACEOF 1179 1180 1181## ----------- ## 1182## Core tests. ## 1183## ----------- ## 1184 1185_ACEOF 1186 1187 1188# Keep a trace of the command line. 1189# Strip out --no-create and --no-recursion so they do not pile up. 1190# Strip out --silent because we don't want to record it for future runs. 1191# Also quote any args containing shell meta-characters. 1192# Make two passes to allow for proper duplicate-argument suppression. 1193ac_configure_args= 1194ac_configure_args0= 1195ac_configure_args1= 1196ac_sep= 1197ac_must_keep_next=false 1198for ac_pass in 1 2 1199do 1200 for ac_arg 1201 do 1202 case $ac_arg in 1203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1205 | -silent | --silent | --silen | --sile | --sil) 1206 continue ;; 1207 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1208 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1209 esac 1210 case $ac_pass in 1211 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1212 2) 1213 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1214 if test $ac_must_keep_next = true; then 1215 ac_must_keep_next=false # Got value, back to normal. 1216 else 1217 case $ac_arg in 1218 *=* | --config-cache | -C | -disable-* | --disable-* \ 1219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1221 | -with-* | --with-* | -without-* | --without-* | --x) 1222 case "$ac_configure_args0 " in 1223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1224 esac 1225 ;; 1226 -* ) ac_must_keep_next=true ;; 1227 esac 1228 fi 1229 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1230 # Get rid of the leading space. 1231 ac_sep=" " 1232 ;; 1233 esac 1234 done 1235done 1236$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1237$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1238 1239# When interrupted or exit'd, cleanup temporary files, and complete 1240# config.log. We remove comments because anyway the quotes in there 1241# would cause problems or look ugly. 1242# WARNING: Be sure not to use single quotes in there, as some shells, 1243# such as our DU 5.0 friend, will then `close' the trap. 1244trap 'exit_status=$? 1245 # Save into config.log some information that might help in debugging. 1246 { 1247 echo 1248 1249 cat <<\_ASBOX 1250## ---------------- ## 1251## Cache variables. ## 1252## ---------------- ## 1253_ASBOX 1254 echo 1255 # The following way of writing the cache mishandles newlines in values, 1256{ 1257 (set) 2>&1 | 1258 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1259 *ac_space=\ *) 1260 sed -n \ 1261 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1263 ;; 1264 *) 1265 sed -n \ 1266 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1267 ;; 1268 esac; 1269} 1270 echo 1271 1272 cat <<\_ASBOX 1273## ----------------- ## 1274## Output variables. ## 1275## ----------------- ## 1276_ASBOX 1277 echo 1278 for ac_var in $ac_subst_vars 1279 do 1280 eval ac_val=$`echo $ac_var` 1281 echo "$ac_var='"'"'$ac_val'"'"'" 1282 done | sort 1283 echo 1284 1285 if test -n "$ac_subst_files"; then 1286 cat <<\_ASBOX 1287## ------------- ## 1288## Output files. ## 1289## ------------- ## 1290_ASBOX 1291 echo 1292 for ac_var in $ac_subst_files 1293 do 1294 eval ac_val=$`echo $ac_var` 1295 echo "$ac_var='"'"'$ac_val'"'"'" 1296 done | sort 1297 echo 1298 fi 1299 1300 if test -s confdefs.h; then 1301 cat <<\_ASBOX 1302## ----------- ## 1303## confdefs.h. ## 1304## ----------- ## 1305_ASBOX 1306 echo 1307 sed "/^$/d" confdefs.h | sort 1308 echo 1309 fi 1310 test "$ac_signal" != 0 && 1311 echo "$as_me: caught signal $ac_signal" 1312 echo "$as_me: exit $exit_status" 1313 } >&5 1314 rm -f core *.core && 1315 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1316 exit $exit_status 1317 ' 0 1318for ac_signal in 1 2 13 15; do 1319 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1320done 1321ac_signal=0 1322 1323# confdefs.h avoids OS command line length limits that DEFS can exceed. 1324rm -rf conftest* confdefs.h 1325# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1326echo >confdefs.h 1327 1328# Predefined preprocessor variables. 1329 1330cat >>confdefs.h <<_ACEOF 1331#define PACKAGE_NAME "$PACKAGE_NAME" 1332_ACEOF 1333 1334 1335cat >>confdefs.h <<_ACEOF 1336#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1337_ACEOF 1338 1339 1340cat >>confdefs.h <<_ACEOF 1341#define PACKAGE_VERSION "$PACKAGE_VERSION" 1342_ACEOF 1343 1344 1345cat >>confdefs.h <<_ACEOF 1346#define PACKAGE_STRING "$PACKAGE_STRING" 1347_ACEOF 1348 1349 1350cat >>confdefs.h <<_ACEOF 1351#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1352_ACEOF 1353 1354 1355# Let the site file select an alternate cache file if it wants to. 1356# Prefer explicitly selected file to automatically selected ones. 1357if test -z "$CONFIG_SITE"; then 1358 if test "x$prefix" != xNONE; then 1359 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1360 else 1361 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1362 fi 1363fi 1364for ac_site_file in $CONFIG_SITE; do 1365 if test -r "$ac_site_file"; then 1366 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1367echo "$as_me: loading site script $ac_site_file" >&6;} 1368 sed 's/^/| /' "$ac_site_file" >&5 1369 . "$ac_site_file" 1370 fi 1371done 1372 1373if test -r "$cache_file"; then 1374 # Some versions of bash will fail to source /dev/null (special 1375 # files actually), so we avoid doing that. 1376 if test -f "$cache_file"; then 1377 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1378echo "$as_me: loading cache $cache_file" >&6;} 1379 case $cache_file in 1380 [\\/]* | ?:[\\/]* ) . $cache_file;; 1381 *) . ./$cache_file;; 1382 esac 1383 fi 1384else 1385 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1386echo "$as_me: creating cache $cache_file" >&6;} 1387 >$cache_file 1388fi 1389 1390# Check that the precious variables saved in the cache have kept the same 1391# value. 1392ac_cache_corrupted=false 1393for ac_var in `(set) 2>&1 | 1394 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1395 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1396 eval ac_new_set=\$ac_env_${ac_var}_set 1397 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1398 eval ac_new_val="\$ac_env_${ac_var}_value" 1399 case $ac_old_set,$ac_new_set in 1400 set,) 1401 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1402echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1403 ac_cache_corrupted=: ;; 1404 ,set) 1405 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1406echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1407 ac_cache_corrupted=: ;; 1408 ,);; 1409 *) 1410 if test "x$ac_old_val" != "x$ac_new_val"; then 1411 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1412echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1413 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1414echo "$as_me: former value: $ac_old_val" >&2;} 1415 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1416echo "$as_me: current value: $ac_new_val" >&2;} 1417 ac_cache_corrupted=: 1418 fi;; 1419 esac 1420 # Pass precious variables to config.status. 1421 if test "$ac_new_set" = set; then 1422 case $ac_new_val in 1423 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1424 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1425 *) ac_arg=$ac_var=$ac_new_val ;; 1426 esac 1427 case " $ac_configure_args " in 1428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1429 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1430 esac 1431 fi 1432done 1433if $ac_cache_corrupted; then 1434 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1435echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1436 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1437echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1438 { (exit 1); exit 1; }; } 1439fi 1440 1441ac_ext=c 1442ac_cpp='$CPP $CPPFLAGS' 1443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1445ac_compiler_gnu=$ac_cv_c_compiler_gnu 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473ac_aux_dir= 1474for ac_dir in autoconf $srcdir/autoconf; do 1475 if test -f $ac_dir/install-sh; then 1476 ac_aux_dir=$ac_dir 1477 ac_install_sh="$ac_aux_dir/install-sh -c" 1478 break 1479 elif test -f $ac_dir/install.sh; then 1480 ac_aux_dir=$ac_dir 1481 ac_install_sh="$ac_aux_dir/install.sh -c" 1482 break 1483 elif test -f $ac_dir/shtool; then 1484 ac_aux_dir=$ac_dir 1485 ac_install_sh="$ac_aux_dir/shtool install -c" 1486 break 1487 fi 1488done 1489if test -z "$ac_aux_dir"; then 1490 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1491echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1492 { (exit 1); exit 1; }; } 1493fi 1494ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1495ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1496ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1497 1498# Make sure we can run config.sub. 1499$ac_config_sub sun4 >/dev/null 2>&1 || 1500 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1501echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1502 { (exit 1); exit 1; }; } 1503 1504echo "$as_me:$LINENO: checking build system type" >&5 1505echo $ECHO_N "checking build system type... $ECHO_C" >&6 1506if test "${ac_cv_build+set}" = set; then 1507 echo $ECHO_N "(cached) $ECHO_C" >&6 1508else 1509 ac_cv_build_alias=$build_alias 1510test -z "$ac_cv_build_alias" && 1511 ac_cv_build_alias=`$ac_config_guess` 1512test -z "$ac_cv_build_alias" && 1513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1514echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1515 { (exit 1); exit 1; }; } 1516ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1517 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1518echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1519 { (exit 1); exit 1; }; } 1520 1521fi 1522echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1523echo "${ECHO_T}$ac_cv_build" >&6 1524build=$ac_cv_build 1525build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1526build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1527build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1528 1529 1530echo "$as_me:$LINENO: checking host system type" >&5 1531echo $ECHO_N "checking host system type... $ECHO_C" >&6 1532if test "${ac_cv_host+set}" = set; then 1533 echo $ECHO_N "(cached) $ECHO_C" >&6 1534else 1535 ac_cv_host_alias=$host_alias 1536test -z "$ac_cv_host_alias" && 1537 ac_cv_host_alias=$ac_cv_build_alias 1538ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1540echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1541 { (exit 1); exit 1; }; } 1542 1543fi 1544echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1545echo "${ECHO_T}$ac_cv_host" >&6 1546host=$ac_cv_host 1547host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1548host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1549host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1550 1551 1552echo "$as_me:$LINENO: checking target system type" >&5 1553echo $ECHO_N "checking target system type... $ECHO_C" >&6 1554if test "${ac_cv_target+set}" = set; then 1555 echo $ECHO_N "(cached) $ECHO_C" >&6 1556else 1557 ac_cv_target_alias=$target_alias 1558test "x$ac_cv_target_alias" = "x" && 1559 ac_cv_target_alias=$ac_cv_host_alias 1560ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1562echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1563 { (exit 1); exit 1; }; } 1564 1565fi 1566echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1567echo "${ECHO_T}$ac_cv_target" >&6 1568target=$ac_cv_target 1569target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1570target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1571target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1572 1573 1574# The aliases save the names the user supplied, while $host etc. 1575# will get canonicalized. 1576test -n "$target_alias" && 1577 test "$program_prefix$program_suffix$program_transform_name" = \ 1578 NONENONEs,x,x, && 1579 program_prefix=${target_alias}- 1580am__api_version="1.7" 1581# Find a good install program. We prefer a C program (faster), 1582# so one script is as good as another. But avoid the broken or 1583# incompatible versions: 1584# SysV /etc/install, /usr/sbin/install 1585# SunOS /usr/etc/install 1586# IRIX /sbin/install 1587# AIX /bin/install 1588# AmigaOS /C/install, which installs bootblocks on floppy discs 1589# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1590# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1591# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1592# OS/2's system install, which has a completely different semantic 1593# ./install, which can be erroneously created by make from ./install.sh. 1594echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1595echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1596if test -z "$INSTALL"; then 1597if test "${ac_cv_path_install+set}" = set; then 1598 echo $ECHO_N "(cached) $ECHO_C" >&6 1599else 1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1601for as_dir in $PATH 1602do 1603 IFS=$as_save_IFS 1604 test -z "$as_dir" && as_dir=. 1605 # Account for people who put trailing slashes in PATH elements. 1606case $as_dir/ in 1607 ./ | .// | /cC/* | \ 1608 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1609 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1610 /usr/ucb/* ) ;; 1611 *) 1612 # OSF1 and SCO ODT 3.0 have their own names for install. 1613 # Don't use installbsd from OSF since it installs stuff as root 1614 # by default. 1615 for ac_prog in ginstall scoinst install; do 1616 for ac_exec_ext in '' $ac_executable_extensions; do 1617 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1618 if test $ac_prog = install && 1619 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1620 # AIX install. It has an incompatible calling convention. 1621 : 1622 elif test $ac_prog = install && 1623 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1624 # program-specific install script used by HP pwplus--don't use. 1625 : 1626 else 1627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1628 break 3 1629 fi 1630 fi 1631 done 1632 done 1633 ;; 1634esac 1635done 1636 1637 1638fi 1639 if test "${ac_cv_path_install+set}" = set; then 1640 INSTALL=$ac_cv_path_install 1641 else 1642 # As a last resort, use the slow shell script. We don't cache a 1643 # path for INSTALL within a source directory, because that will 1644 # break other packages using the cache if that directory is 1645 # removed, or if the path is relative. 1646 INSTALL=$ac_install_sh 1647 fi 1648fi 1649echo "$as_me:$LINENO: result: $INSTALL" >&5 1650echo "${ECHO_T}$INSTALL" >&6 1651 1652# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1653# It thinks the first close brace ends the variable substitution. 1654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1655 1656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1657 1658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1659 1660echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1661echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1662# Just in case 1663sleep 1 1664echo timestamp > conftest.file 1665# Do `set' in a subshell so we don't clobber the current shell's 1666# arguments. Must try -L first in case configure is actually a 1667# symlink; some systems play weird games with the mod time of symlinks 1668# (eg FreeBSD returns the mod time of the symlink's containing 1669# directory). 1670if ( 1671 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1672 if test "$*" = "X"; then 1673 # -L didn't work. 1674 set X `ls -t $srcdir/configure conftest.file` 1675 fi 1676 rm -f conftest.file 1677 if test "$*" != "X $srcdir/configure conftest.file" \ 1678 && test "$*" != "X conftest.file $srcdir/configure"; then 1679 1680 # If neither matched, then we have a broken ls. This can happen 1681 # if, for instance, CONFIG_SHELL is bash and it inherits a 1682 # broken ls alias from the environment. This has actually 1683 # happened. Such a system could not be considered "sane". 1684 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1685alias in your environment" >&5 1686echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1687alias in your environment" >&2;} 1688 { (exit 1); exit 1; }; } 1689 fi 1690 1691 test "$2" = conftest.file 1692 ) 1693then 1694 # Ok. 1695 : 1696else 1697 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1698Check your system clock" >&5 1699echo "$as_me: error: newly created file is older than distributed files! 1700Check your system clock" >&2;} 1701 { (exit 1); exit 1; }; } 1702fi 1703echo "$as_me:$LINENO: result: yes" >&5 1704echo "${ECHO_T}yes" >&6 1705test "$program_prefix" != NONE && 1706 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1707# Use a double $ so make ignores it. 1708test "$program_suffix" != NONE && 1709 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1710# Double any \ or $. echo might interpret backslashes. 1711# By default was `s,x,x', remove it if useless. 1712cat <<\_ACEOF >conftest.sed 1713s/[\\$]/&&/g;s/;s,x,x,$// 1714_ACEOF 1715program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1716rm conftest.sed 1717 1718 1719# expand $ac_aux_dir to an absolute path 1720am_aux_dir=`cd $ac_aux_dir && pwd` 1721 1722test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1723# Use eval to expand $SHELL 1724if eval "$MISSING --run true"; then 1725 am_missing_run="$MISSING --run " 1726else 1727 am_missing_run= 1728 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1729echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1730fi 1731 1732for ac_prog in gawk mawk nawk awk 1733do 1734 # Extract the first word of "$ac_prog", so it can be a program name with args. 1735set dummy $ac_prog; ac_word=$2 1736echo "$as_me:$LINENO: checking for $ac_word" >&5 1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1738if test "${ac_cv_prog_AWK+set}" = set; then 1739 echo $ECHO_N "(cached) $ECHO_C" >&6 1740else 1741 if test -n "$AWK"; then 1742 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1743else 1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1745for as_dir in $PATH 1746do 1747 IFS=$as_save_IFS 1748 test -z "$as_dir" && as_dir=. 1749 for ac_exec_ext in '' $ac_executable_extensions; do 1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1751 ac_cv_prog_AWK="$ac_prog" 1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1753 break 2 1754 fi 1755done 1756done 1757 1758fi 1759fi 1760AWK=$ac_cv_prog_AWK 1761if test -n "$AWK"; then 1762 echo "$as_me:$LINENO: result: $AWK" >&5 1763echo "${ECHO_T}$AWK" >&6 1764else 1765 echo "$as_me:$LINENO: result: no" >&5 1766echo "${ECHO_T}no" >&6 1767fi 1768 1769 test -n "$AWK" && break 1770done 1771 1772echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1773echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1774set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1775if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1776 echo $ECHO_N "(cached) $ECHO_C" >&6 1777else 1778 cat >conftest.make <<\_ACEOF 1779all: 1780 @echo 'ac_maketemp="$(MAKE)"' 1781_ACEOF 1782# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1783eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1784if test -n "$ac_maketemp"; then 1785 eval ac_cv_prog_make_${ac_make}_set=yes 1786else 1787 eval ac_cv_prog_make_${ac_make}_set=no 1788fi 1789rm -f conftest.make 1790fi 1791if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1792 echo "$as_me:$LINENO: result: yes" >&5 1793echo "${ECHO_T}yes" >&6 1794 SET_MAKE= 1795else 1796 echo "$as_me:$LINENO: result: no" >&5 1797echo "${ECHO_T}no" >&6 1798 SET_MAKE="MAKE=${MAKE-make}" 1799fi 1800 1801rm -rf .tst 2>/dev/null 1802mkdir .tst 2>/dev/null 1803if test -d .tst; then 1804 am__leading_dot=. 1805else 1806 am__leading_dot=_ 1807fi 1808rmdir .tst 2>/dev/null 1809 1810 # test to see if srcdir already configured 1811if test "`cd $srcdir && pwd`" != "`pwd`" && 1812 test -f $srcdir/config.status; then 1813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1814echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1815 { (exit 1); exit 1; }; } 1816fi 1817 1818# test whether we have cygpath 1819if test -z "$CYGPATH_W"; then 1820 if (cygpath --version) >/dev/null 2>/dev/null; then 1821 CYGPATH_W='cygpath -w' 1822 else 1823 CYGPATH_W=echo 1824 fi 1825fi 1826 1827 1828# Define the identity of the package. 1829 PACKAGE='TiMidity++' 1830 VERSION='2.15.0' 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE "$PACKAGE" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define VERSION "$VERSION" 1840_ACEOF 1841 1842# Some tools Automake needs. 1843 1844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1845 1846 1847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1848 1849 1850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1851 1852 1853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1854 1855 1856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1857 1858 1859AMTAR=${AMTAR-"${am_missing_run}tar"} 1860 1861install_sh=${install_sh-"$am_aux_dir/install-sh"} 1862 1863# Installed binaries are usually stripped using `strip' when the user 1864# run `make install-strip'. However `strip' might not be the right 1865# tool to use in cross-compilation environments, therefore Automake 1866# will honor the `STRIP' environment variable to overrule this program. 1867if test "$cross_compiling" != no; then 1868 if test -n "$ac_tool_prefix"; then 1869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1870set dummy ${ac_tool_prefix}strip; ac_word=$2 1871echo "$as_me:$LINENO: checking for $ac_word" >&5 1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1873if test "${ac_cv_prog_STRIP+set}" = set; then 1874 echo $ECHO_N "(cached) $ECHO_C" >&6 1875else 1876 if test -n "$STRIP"; then 1877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1878else 1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1880for as_dir in $PATH 1881do 1882 IFS=$as_save_IFS 1883 test -z "$as_dir" && as_dir=. 1884 for ac_exec_ext in '' $ac_executable_extensions; do 1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1886 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1888 break 2 1889 fi 1890done 1891done 1892 1893fi 1894fi 1895STRIP=$ac_cv_prog_STRIP 1896if test -n "$STRIP"; then 1897 echo "$as_me:$LINENO: result: $STRIP" >&5 1898echo "${ECHO_T}$STRIP" >&6 1899else 1900 echo "$as_me:$LINENO: result: no" >&5 1901echo "${ECHO_T}no" >&6 1902fi 1903 1904fi 1905if test -z "$ac_cv_prog_STRIP"; then 1906 ac_ct_STRIP=$STRIP 1907 # Extract the first word of "strip", so it can be a program name with args. 1908set dummy strip; ac_word=$2 1909echo "$as_me:$LINENO: checking for $ac_word" >&5 1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1911if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1912 echo $ECHO_N "(cached) $ECHO_C" >&6 1913else 1914 if test -n "$ac_ct_STRIP"; then 1915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1916else 1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1918for as_dir in $PATH 1919do 1920 IFS=$as_save_IFS 1921 test -z "$as_dir" && as_dir=. 1922 for ac_exec_ext in '' $ac_executable_extensions; do 1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1924 ac_cv_prog_ac_ct_STRIP="strip" 1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1926 break 2 1927 fi 1928done 1929done 1930 1931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1932fi 1933fi 1934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1935if test -n "$ac_ct_STRIP"; then 1936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1937echo "${ECHO_T}$ac_ct_STRIP" >&6 1938else 1939 echo "$as_me:$LINENO: result: no" >&5 1940echo "${ECHO_T}no" >&6 1941fi 1942 1943 STRIP=$ac_ct_STRIP 1944else 1945 STRIP="$ac_cv_prog_STRIP" 1946fi 1947 1948fi 1949INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1950 1951# We need awk for the "check" target. The system "awk" is bad on 1952# some platforms. 1953 1954 1955 1956 1957 ac_config_headers="$ac_config_headers config.h interface.h" 1958 1959echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1960echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1961 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1962if test "${enable_maintainer_mode+set}" = set; then 1963 enableval="$enable_maintainer_mode" 1964 USE_MAINTAINER_MODE=$enableval 1965else 1966 USE_MAINTAINER_MODE=no 1967fi; 1968 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1969echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1970 1971 1972if test $USE_MAINTAINER_MODE = yes; then 1973 MAINTAINER_MODE_TRUE= 1974 MAINTAINER_MODE_FALSE='#' 1975else 1976 MAINTAINER_MODE_TRUE='#' 1977 MAINTAINER_MODE_FALSE= 1978fi 1979 1980 MAINT=$MAINTAINER_MODE_TRUE 1981 1982 1983 1984SHELL=${CONFIG_SHELL-"/bin/sh"} 1985TCLSH=${TCLSH-"tclsh"} 1986 1987echo "$as_me:$LINENO: checking whether grep returns status" >&5 1988echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6 1989echo "grimblepritz" >grimble 1990if grep blurfldyick grimble >/dev/null 2>&1 ; then 1991 contains="./contains" 1992elif grep grimblepritz grimble >/dev/null 2>&1 ; then 1993 contains=grep 1994else 1995 contains="./contains" 1996fi 1997rm -f grimble 1998case "$contains" in 1999grep) echo "$as_me:$LINENO: result: yes" >&5 2000echo "${ECHO_T}yes" >&6 2001 ;; 2002./contains) 2003 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5 2004echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6 2005 cat >./contains <<'EOSS' 2006grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp 2007EOSS 2008 chmod +x "./contains" 2009 ;; 2010esac 2011 2012 2013# Check for compiler options -- such as debug flags. 2014 2015echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5 2016echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6 2017# Check whether --enable-debug or --disable-debug was given. 2018if test "${enable_debug+set}" = set; then 2019 enableval="$enable_debug" 2020 timidity_cv_debug="yes" 2021else 2022 timidity_cv_debug="no" 2023fi; 2024if test "x$timidity_cv_debug" = "xyes"; then 2025 2026cat >>confdefs.h <<\_ACEOF 2027#define DEBUG 1 2028_ACEOF 2029 2030 CFLAGS=${CFLAGS-"-g"} 2031fi 2032if test "x$timidity_cv_debug" = "xno"; then 2033 2034cat >>confdefs.h <<\_ACEOF 2035#define NDEBUG 1 2036_ACEOF 2037 2038fi 2039echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5 2040echo "${ECHO_T}$timidity_cv_debug" >&6 2041 2042if test "x$CFLAGS" = "x"; then 2043 NOCFLAGS="yes" 2044fi 2045 2046if test "x$with_x" = x; then 2047 with_x=yes 2048else 2049 x_config_flag=yes 2050fi 2051 2052# Checking gcc environment 2053for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do 2054 LDFLAGS="$LDFLAGS -L${i}" 2055done 2056for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do 2057 CPPFLAGS="$CPPFLAGS -I${i}" 2058done 2059 2060# add $prefix if specified. 2061if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then 2062 LDFLAGS="-L$prefix/lib $LDFLAGS" 2063 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS" 2064 CPPFLAGS="-I$prefix/include $CPPFLAGS" 2065fi 2066 2067 2068# Check whether --with-includes or --without-includes was given. 2069if test "${with_includes+set}" = set; then 2070 withval="$with_includes" 2071 j=' ' 2072 for i in `echo "$withval"|sed -e 's,:, ,g'`; do 2073 j="${j}-I${i} " 2074 done 2075 CPPFLAGS="$j$CPPFLAGS" 2076 2077fi; 2078 2079 2080# Check whether --with-libraries or --without-libraries was given. 2081if test "${with_libraries+set}" = set; then 2082 withval="$with_libraries" 2083 j=' ' 2084 for i in `echo "$withval"|sed -e 's,:, ,g'`; do 2085 j="${j}-L${i} " 2086 done 2087 LDFLAGS="$j$LDFLAGS" 2088 2089fi; 2090 2091 2092 2093# Check whether --with-default-path or --without-default-path was given. 2094if test "${with_default_path+set}" = set; then 2095 withval="$with_default_path" 2096 pkgdatadir=$withval 2097else 2098 2099 if test "x$prefix" != "xNONE"; then 2100 pkgdatadir='${prefix}/share/timidity' 2101 else 2102 pkgdatadir='/usr/local/share/timidity' 2103 fi 2104 2105fi; 2106tmpdefpath="`eval \"echo ${pkgdatadir}\"`" 2107 2108cat >>confdefs.h <<_ACEOF 2109#define DEFAULT_PATH "$tmpdefpath" 2110_ACEOF 2111 2112 2113cat >>confdefs.h <<\_ACEOF 2114#define PKGDATADIR DEFAULT_PATH 2115_ACEOF 2116 2117 2118 2119# Check whether --with-module-dir or --without-module-dir was given. 2120if test "${with_module_dir+set}" = set; then 2121 withval="$with_module_dir" 2122 pkglibdir=$withval 2123else 2124 2125 if test "x$prefix" != "xNONE"; then 2126 pkglibdir='${prefix}/lib/timidity' 2127 else 2128 pkglibdir='/usr/local/lib/timidity' 2129 fi 2130 2131fi; 2132tmplibdir="`eval \"echo ${pkglibdir}\"`" 2133 2134cat >>confdefs.h <<_ACEOF 2135#define PKGLIBDIR "$tmplibdir" 2136_ACEOF 2137 2138 2139 2140# Check whether --with-xaw-resource-prefix or --without-xaw-resource-prefix was given. 2141if test "${with_xaw_resource_prefix+set}" = set; then 2142 withval="$with_xaw_resource_prefix" 2143 xawresdir=$withval 2144fi; 2145 2146 2147if test "x$xawresdir" != "x"; then 2148 XAW_INSTALL_RESOURCE_FILES_TRUE= 2149 XAW_INSTALL_RESOURCE_FILES_FALSE='#' 2150else 2151 XAW_INSTALL_RESOURCE_FILES_TRUE='#' 2152 XAW_INSTALL_RESOURCE_FILES_FALSE= 2153fi 2154 2155 2156 2157# Checks for programs. 2158 2159# Check whether --with-lispdir or --without-lispdir was given. 2160if test "${with_lispdir+set}" = set; then 2161 withval="$with_lispdir" 2162 lispdir="$withval" 2163 echo "$as_me:$LINENO: checking where .elc files should go" >&5 2164echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6 2165 echo "$as_me:$LINENO: result: $lispdir" >&5 2166echo "${ECHO_T}$lispdir" >&6 2167else 2168 2169 # If set to t, that means we are running in a shell under Emacs. 2170 # If you have an Emacs named "t", then use the full path. 2171 test x"$EMACS" = xt && EMACS= 2172 for ac_prog in emacs xemacs 2173do 2174 # Extract the first word of "$ac_prog", so it can be a program name with args. 2175set dummy $ac_prog; ac_word=$2 2176echo "$as_me:$LINENO: checking for $ac_word" >&5 2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2178if test "${ac_cv_prog_EMACS+set}" = set; then 2179 echo $ECHO_N "(cached) $ECHO_C" >&6 2180else 2181 if test -n "$EMACS"; then 2182 ac_cv_prog_EMACS="$EMACS" # Let the user override the test. 2183else 2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2185for as_dir in $PATH 2186do 2187 IFS=$as_save_IFS 2188 test -z "$as_dir" && as_dir=. 2189 for ac_exec_ext in '' $ac_executable_extensions; do 2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2191 ac_cv_prog_EMACS="$ac_prog" 2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2193 break 2 2194 fi 2195done 2196done 2197 2198fi 2199fi 2200EMACS=$ac_cv_prog_EMACS 2201if test -n "$EMACS"; then 2202 echo "$as_me:$LINENO: result: $EMACS" >&5 2203echo "${ECHO_T}$EMACS" >&6 2204else 2205 echo "$as_me:$LINENO: result: no" >&5 2206echo "${ECHO_T}no" >&6 2207fi 2208 2209 test -n "$EMACS" && break 2210done 2211test -n "$EMACS" || EMACS="no" 2212 2213 if test $EMACS != "no"; then 2214 if test x${lispdir+set} != xset; then 2215 echo "$as_me:$LINENO: checking where .elc files should go" >&5 2216echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6 2217if test "${am_cv_lispdir+set}" = set; then 2218 echo $ECHO_N "(cached) $ECHO_C" >&6 2219else 2220 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly 2221 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit, 2222 # which is non-obvious for non-emacs users. 2223 # Redirecting /dev/null should help a bit; pity we can't detect "broken" 2224 # emacsen earlier and avoid running this altogether. 2225 { (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 2226 ($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 2227 ac_status=$? 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); } 2230 am_cv_lispdir=`sed -n \ 2231 -e 's,/$,,' \ 2232 -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \ 2233 -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \ 2234 conftest.out` 2235 rm conftest.out 2236 if test -z "$am_cv_lispdir"; then 2237 am_cv_lispdir='${datadir}/emacs/site-lisp' 2238 fi 2239 2240fi 2241echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 2242echo "${ECHO_T}$am_cv_lispdir" >&6 2243 lispdir="$am_cv_lispdir" 2244 fi 2245 fi 2246 2247fi; 2248 2249 2250ac_ext=c 2251ac_cpp='$CPP $CPPFLAGS' 2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2254ac_compiler_gnu=$ac_cv_c_compiler_gnu 2255if test -n "$ac_tool_prefix"; then 2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2257set dummy ${ac_tool_prefix}gcc; ac_word=$2 2258echo "$as_me:$LINENO: checking for $ac_word" >&5 2259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2260if test "${ac_cv_prog_CC+set}" = set; then 2261 echo $ECHO_N "(cached) $ECHO_C" >&6 2262else 2263 if test -n "$CC"; then 2264 ac_cv_prog_CC="$CC" # Let the user override the test. 2265else 2266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2267for as_dir in $PATH 2268do 2269 IFS=$as_save_IFS 2270 test -z "$as_dir" && as_dir=. 2271 for ac_exec_ext in '' $ac_executable_extensions; do 2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2273 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2275 break 2 2276 fi 2277done 2278done 2279 2280fi 2281fi 2282CC=$ac_cv_prog_CC 2283if test -n "$CC"; then 2284 echo "$as_me:$LINENO: result: $CC" >&5 2285echo "${ECHO_T}$CC" >&6 2286else 2287 echo "$as_me:$LINENO: result: no" >&5 2288echo "${ECHO_T}no" >&6 2289fi 2290 2291fi 2292if test -z "$ac_cv_prog_CC"; then 2293 ac_ct_CC=$CC 2294 # Extract the first word of "gcc", so it can be a program name with args. 2295set dummy gcc; ac_word=$2 2296echo "$as_me:$LINENO: checking for $ac_word" >&5 2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2298if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300else 2301 if test -n "$ac_ct_CC"; then 2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2303else 2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2305for as_dir in $PATH 2306do 2307 IFS=$as_save_IFS 2308 test -z "$as_dir" && as_dir=. 2309 for ac_exec_ext in '' $ac_executable_extensions; do 2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2311 ac_cv_prog_ac_ct_CC="gcc" 2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2313 break 2 2314 fi 2315done 2316done 2317 2318fi 2319fi 2320ac_ct_CC=$ac_cv_prog_ac_ct_CC 2321if test -n "$ac_ct_CC"; then 2322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2323echo "${ECHO_T}$ac_ct_CC" >&6 2324else 2325 echo "$as_me:$LINENO: result: no" >&5 2326echo "${ECHO_T}no" >&6 2327fi 2328 2329 CC=$ac_ct_CC 2330else 2331 CC="$ac_cv_prog_CC" 2332fi 2333 2334if test -z "$CC"; then 2335 if test -n "$ac_tool_prefix"; then 2336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2337set dummy ${ac_tool_prefix}cc; ac_word=$2 2338echo "$as_me:$LINENO: checking for $ac_word" >&5 2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2340if test "${ac_cv_prog_CC+set}" = set; then 2341 echo $ECHO_N "(cached) $ECHO_C" >&6 2342else 2343 if test -n "$CC"; then 2344 ac_cv_prog_CC="$CC" # Let the user override the test. 2345else 2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 for ac_exec_ext in '' $ac_executable_extensions; do 2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2353 ac_cv_prog_CC="${ac_tool_prefix}cc" 2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2355 break 2 2356 fi 2357done 2358done 2359 2360fi 2361fi 2362CC=$ac_cv_prog_CC 2363if test -n "$CC"; then 2364 echo "$as_me:$LINENO: result: $CC" >&5 2365echo "${ECHO_T}$CC" >&6 2366else 2367 echo "$as_me:$LINENO: result: no" >&5 2368echo "${ECHO_T}no" >&6 2369fi 2370 2371fi 2372if test -z "$ac_cv_prog_CC"; then 2373 ac_ct_CC=$CC 2374 # Extract the first word of "cc", so it can be a program name with args. 2375set dummy cc; ac_word=$2 2376echo "$as_me:$LINENO: checking for $ac_word" >&5 2377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2378if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2379 echo $ECHO_N "(cached) $ECHO_C" >&6 2380else 2381 if test -n "$ac_ct_CC"; then 2382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2383else 2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 for ac_exec_ext in '' $ac_executable_extensions; do 2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2391 ac_cv_prog_ac_ct_CC="cc" 2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2393 break 2 2394 fi 2395done 2396done 2397 2398fi 2399fi 2400ac_ct_CC=$ac_cv_prog_ac_ct_CC 2401if test -n "$ac_ct_CC"; then 2402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2403echo "${ECHO_T}$ac_ct_CC" >&6 2404else 2405 echo "$as_me:$LINENO: result: no" >&5 2406echo "${ECHO_T}no" >&6 2407fi 2408 2409 CC=$ac_ct_CC 2410else 2411 CC="$ac_cv_prog_CC" 2412fi 2413 2414fi 2415if test -z "$CC"; then 2416 # Extract the first word of "cc", so it can be a program name with args. 2417set dummy cc; ac_word=$2 2418echo "$as_me:$LINENO: checking for $ac_word" >&5 2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2420if test "${ac_cv_prog_CC+set}" = set; then 2421 echo $ECHO_N "(cached) $ECHO_C" >&6 2422else 2423 if test -n "$CC"; then 2424 ac_cv_prog_CC="$CC" # Let the user override the test. 2425else 2426 ac_prog_rejected=no 2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2428for as_dir in $PATH 2429do 2430 IFS=$as_save_IFS 2431 test -z "$as_dir" && as_dir=. 2432 for ac_exec_ext in '' $ac_executable_extensions; do 2433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2435 ac_prog_rejected=yes 2436 continue 2437 fi 2438 ac_cv_prog_CC="cc" 2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2440 break 2 2441 fi 2442done 2443done 2444 2445if test $ac_prog_rejected = yes; then 2446 # We found a bogon in the path, so make sure we never use it. 2447 set dummy $ac_cv_prog_CC 2448 shift 2449 if test $# != 0; then 2450 # We chose a different compiler from the bogus one. 2451 # However, it has the same basename, so the bogon will be chosen 2452 # first if we set CC to just the basename; use the full file name. 2453 shift 2454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2455 fi 2456fi 2457fi 2458fi 2459CC=$ac_cv_prog_CC 2460if test -n "$CC"; then 2461 echo "$as_me:$LINENO: result: $CC" >&5 2462echo "${ECHO_T}$CC" >&6 2463else 2464 echo "$as_me:$LINENO: result: no" >&5 2465echo "${ECHO_T}no" >&6 2466fi 2467 2468fi 2469if test -z "$CC"; then 2470 if test -n "$ac_tool_prefix"; then 2471 for ac_prog in cl 2472 do 2473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2474set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2475echo "$as_me:$LINENO: checking for $ac_word" >&5 2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2477if test "${ac_cv_prog_CC+set}" = set; then 2478 echo $ECHO_N "(cached) $ECHO_C" >&6 2479else 2480 if test -n "$CC"; then 2481 ac_cv_prog_CC="$CC" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495done 2496 2497fi 2498fi 2499CC=$ac_cv_prog_CC 2500if test -n "$CC"; then 2501 echo "$as_me:$LINENO: result: $CC" >&5 2502echo "${ECHO_T}$CC" >&6 2503else 2504 echo "$as_me:$LINENO: result: no" >&5 2505echo "${ECHO_T}no" >&6 2506fi 2507 2508 test -n "$CC" && break 2509 done 2510fi 2511if test -z "$CC"; then 2512 ac_ct_CC=$CC 2513 for ac_prog in cl 2514do 2515 # Extract the first word of "$ac_prog", so it can be a program name with args. 2516set dummy $ac_prog; ac_word=$2 2517echo "$as_me:$LINENO: checking for $ac_word" >&5 2518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2520 echo $ECHO_N "(cached) $ECHO_C" >&6 2521else 2522 if test -n "$ac_ct_CC"; then 2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2532 ac_cv_prog_ac_ct_CC="$ac_prog" 2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537done 2538 2539fi 2540fi 2541ac_ct_CC=$ac_cv_prog_ac_ct_CC 2542if test -n "$ac_ct_CC"; then 2543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2544echo "${ECHO_T}$ac_ct_CC" >&6 2545else 2546 echo "$as_me:$LINENO: result: no" >&5 2547echo "${ECHO_T}no" >&6 2548fi 2549 2550 test -n "$ac_ct_CC" && break 2551done 2552 2553 CC=$ac_ct_CC 2554fi 2555 2556fi 2557 2558 2559test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2560See \`config.log' for more details." >&5 2561echo "$as_me: error: no acceptable C compiler found in \$PATH 2562See \`config.log' for more details." >&2;} 2563 { (exit 1); exit 1; }; } 2564 2565# Provide some information about the compiler. 2566echo "$as_me:$LINENO:" \ 2567 "checking for C compiler version" >&5 2568ac_compiler=`set X $ac_compile; echo $2` 2569{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2570 (eval $ac_compiler --version </dev/null >&5) 2>&5 2571 ac_status=$? 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); } 2574{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2575 (eval $ac_compiler -v </dev/null >&5) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); } 2579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2580 (eval $ac_compiler -V </dev/null >&5) 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); } 2584 2585cat >conftest.$ac_ext <<_ACEOF 2586/* confdefs.h. */ 2587_ACEOF 2588cat confdefs.h >>conftest.$ac_ext 2589cat >>conftest.$ac_ext <<_ACEOF 2590/* end confdefs.h. */ 2591 2592int 2593main () 2594{ 2595 2596 ; 2597 return 0; 2598} 2599_ACEOF 2600ac_clean_files_save=$ac_clean_files 2601ac_clean_files="$ac_clean_files a.out a.exe b.out" 2602# Try to create an executable without -o first, disregard a.out. 2603# It will help us diagnose broken compilers, and finding out an intuition 2604# of exeext. 2605echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2606echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2607ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2608if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2609 (eval $ac_link_default) 2>&5 2610 ac_status=$? 2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2612 (exit $ac_status); }; then 2613 # Find the output, starting from the most likely. This scheme is 2614# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2615# resort. 2616 2617# Be careful to initialize this variable, since it used to be cached. 2618# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2619ac_cv_exeext= 2620# b.out is created by i960 compilers. 2621for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2622do 2623 test -f "$ac_file" || continue 2624 case $ac_file in 2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2626 ;; 2627 conftest.$ac_ext ) 2628 # This is the source file. 2629 ;; 2630 [ab].out ) 2631 # We found the default executable, but exeext='' is most 2632 # certainly right. 2633 break;; 2634 *.* ) 2635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2636 # FIXME: I believe we export ac_cv_exeext for Libtool, 2637 # but it would be cool to find out if it's true. Does anybody 2638 # maintain Libtool? --akim. 2639 export ac_cv_exeext 2640 break;; 2641 * ) 2642 break;; 2643 esac 2644done 2645else 2646 echo "$as_me: failed program was:" >&5 2647sed 's/^/| /' conftest.$ac_ext >&5 2648 2649{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2650See \`config.log' for more details." >&5 2651echo "$as_me: error: C compiler cannot create executables 2652See \`config.log' for more details." >&2;} 2653 { (exit 77); exit 77; }; } 2654fi 2655 2656ac_exeext=$ac_cv_exeext 2657echo "$as_me:$LINENO: result: $ac_file" >&5 2658echo "${ECHO_T}$ac_file" >&6 2659 2660# Check the compiler produces executables we can run. If not, either 2661# the compiler is broken, or we cross compile. 2662echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2663echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2664# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2665# If not cross compiling, check that we can run a simple program. 2666if test "$cross_compiling" != yes; then 2667 if { ac_try='./$ac_file' 2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2669 (eval $ac_try) 2>&5 2670 ac_status=$? 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); }; }; then 2673 cross_compiling=no 2674 else 2675 if test "$cross_compiling" = maybe; then 2676 cross_compiling=yes 2677 else 2678 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2679If you meant to cross compile, use \`--host'. 2680See \`config.log' for more details." >&5 2681echo "$as_me: error: cannot run C compiled programs. 2682If you meant to cross compile, use \`--host'. 2683See \`config.log' for more details." >&2;} 2684 { (exit 1); exit 1; }; } 2685 fi 2686 fi 2687fi 2688echo "$as_me:$LINENO: result: yes" >&5 2689echo "${ECHO_T}yes" >&6 2690 2691rm -f a.out a.exe conftest$ac_cv_exeext b.out 2692ac_clean_files=$ac_clean_files_save 2693# Check the compiler produces executables we can run. If not, either 2694# the compiler is broken, or we cross compile. 2695echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2696echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2697echo "$as_me:$LINENO: result: $cross_compiling" >&5 2698echo "${ECHO_T}$cross_compiling" >&6 2699 2700echo "$as_me:$LINENO: checking for suffix of executables" >&5 2701echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2703 (eval $ac_link) 2>&5 2704 ac_status=$? 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); }; then 2707 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2708# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2709# work properly (i.e., refer to `conftest.exe'), while it won't with 2710# `rm'. 2711for ac_file in conftest.exe conftest conftest.*; do 2712 test -f "$ac_file" || continue 2713 case $ac_file in 2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2716 export ac_cv_exeext 2717 break;; 2718 * ) break;; 2719 esac 2720done 2721else 2722 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2723See \`config.log' for more details." >&5 2724echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2725See \`config.log' for more details." >&2;} 2726 { (exit 1); exit 1; }; } 2727fi 2728 2729rm -f conftest$ac_cv_exeext 2730echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2731echo "${ECHO_T}$ac_cv_exeext" >&6 2732 2733rm -f conftest.$ac_ext 2734EXEEXT=$ac_cv_exeext 2735ac_exeext=$EXEEXT 2736echo "$as_me:$LINENO: checking for suffix of object files" >&5 2737echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2738if test "${ac_cv_objext+set}" = set; then 2739 echo $ECHO_N "(cached) $ECHO_C" >&6 2740else 2741 cat >conftest.$ac_ext <<_ACEOF 2742/* confdefs.h. */ 2743_ACEOF 2744cat confdefs.h >>conftest.$ac_ext 2745cat >>conftest.$ac_ext <<_ACEOF 2746/* end confdefs.h. */ 2747 2748int 2749main () 2750{ 2751 2752 ; 2753 return 0; 2754} 2755_ACEOF 2756rm -f conftest.o conftest.obj 2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2758 (eval $ac_compile) 2>&5 2759 ac_status=$? 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); }; then 2762 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2763 case $ac_file in 2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2766 break;; 2767 esac 2768done 2769else 2770 echo "$as_me: failed program was:" >&5 2771sed 's/^/| /' conftest.$ac_ext >&5 2772 2773{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2774See \`config.log' for more details." >&5 2775echo "$as_me: error: cannot compute suffix of object files: cannot compile 2776See \`config.log' for more details." >&2;} 2777 { (exit 1); exit 1; }; } 2778fi 2779 2780rm -f conftest.$ac_cv_objext conftest.$ac_ext 2781fi 2782echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2783echo "${ECHO_T}$ac_cv_objext" >&6 2784OBJEXT=$ac_cv_objext 2785ac_objext=$OBJEXT 2786echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2787echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2788if test "${ac_cv_c_compiler_gnu+set}" = set; then 2789 echo $ECHO_N "(cached) $ECHO_C" >&6 2790else 2791 cat >conftest.$ac_ext <<_ACEOF 2792/* confdefs.h. */ 2793_ACEOF 2794cat confdefs.h >>conftest.$ac_ext 2795cat >>conftest.$ac_ext <<_ACEOF 2796/* end confdefs.h. */ 2797 2798int 2799main () 2800{ 2801#ifndef __GNUC__ 2802 choke me 2803#endif 2804 2805 ; 2806 return 0; 2807} 2808_ACEOF 2809rm -f conftest.$ac_objext 2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2811 (eval $ac_compile) 2>conftest.er1 2812 ac_status=$? 2813 grep -v '^ *+' conftest.er1 >conftest.err 2814 rm -f conftest.er1 2815 cat conftest.err >&5 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2817 (exit $ac_status); } && 2818 { ac_try='test -z "$ac_c_werror_flag" 2819 || test ! -s conftest.err' 2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2821 (eval $ac_try) 2>&5 2822 ac_status=$? 2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2824 (exit $ac_status); }; } && 2825 { ac_try='test -s conftest.$ac_objext' 2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2827 (eval $ac_try) 2>&5 2828 ac_status=$? 2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2830 (exit $ac_status); }; }; then 2831 ac_compiler_gnu=yes 2832else 2833 echo "$as_me: failed program was:" >&5 2834sed 's/^/| /' conftest.$ac_ext >&5 2835 2836ac_compiler_gnu=no 2837fi 2838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2839ac_cv_c_compiler_gnu=$ac_compiler_gnu 2840 2841fi 2842echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2843echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2844GCC=`test $ac_compiler_gnu = yes && echo yes` 2845ac_test_CFLAGS=${CFLAGS+set} 2846ac_save_CFLAGS=$CFLAGS 2847CFLAGS="-g" 2848echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2849echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2850if test "${ac_cv_prog_cc_g+set}" = set; then 2851 echo $ECHO_N "(cached) $ECHO_C" >&6 2852else 2853 cat >conftest.$ac_ext <<_ACEOF 2854/* confdefs.h. */ 2855_ACEOF 2856cat confdefs.h >>conftest.$ac_ext 2857cat >>conftest.$ac_ext <<_ACEOF 2858/* end confdefs.h. */ 2859 2860int 2861main () 2862{ 2863 2864 ; 2865 return 0; 2866} 2867_ACEOF 2868rm -f conftest.$ac_objext 2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2870 (eval $ac_compile) 2>conftest.er1 2871 ac_status=$? 2872 grep -v '^ *+' conftest.er1 >conftest.err 2873 rm -f conftest.er1 2874 cat conftest.err >&5 2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2876 (exit $ac_status); } && 2877 { ac_try='test -z "$ac_c_werror_flag" 2878 || test ! -s conftest.err' 2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2880 (eval $ac_try) 2>&5 2881 ac_status=$? 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); }; } && 2884 { ac_try='test -s conftest.$ac_objext' 2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2886 (eval $ac_try) 2>&5 2887 ac_status=$? 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 ac_cv_prog_cc_g=yes 2891else 2892 echo "$as_me: failed program was:" >&5 2893sed 's/^/| /' conftest.$ac_ext >&5 2894 2895ac_cv_prog_cc_g=no 2896fi 2897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2898fi 2899echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2900echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2901if test "$ac_test_CFLAGS" = set; then 2902 CFLAGS=$ac_save_CFLAGS 2903elif test $ac_cv_prog_cc_g = yes; then 2904 if test "$GCC" = yes; then 2905 CFLAGS="-g -O2" 2906 else 2907 CFLAGS="-g" 2908 fi 2909else 2910 if test "$GCC" = yes; then 2911 CFLAGS="-O2" 2912 else 2913 CFLAGS= 2914 fi 2915fi 2916echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2917echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2918if test "${ac_cv_prog_cc_stdc+set}" = set; then 2919 echo $ECHO_N "(cached) $ECHO_C" >&6 2920else 2921 ac_cv_prog_cc_stdc=no 2922ac_save_CC=$CC 2923cat >conftest.$ac_ext <<_ACEOF 2924/* confdefs.h. */ 2925_ACEOF 2926cat confdefs.h >>conftest.$ac_ext 2927cat >>conftest.$ac_ext <<_ACEOF 2928/* end confdefs.h. */ 2929#include <stdarg.h> 2930#include <stdio.h> 2931#include <sys/types.h> 2932#include <sys/stat.h> 2933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2934struct buf { int x; }; 2935FILE * (*rcsopen) (struct buf *, struct stat *, int); 2936static char *e (p, i) 2937 char **p; 2938 int i; 2939{ 2940 return p[i]; 2941} 2942static char *f (char * (*g) (char **, int), char **p, ...) 2943{ 2944 char *s; 2945 va_list v; 2946 va_start (v,p); 2947 s = g (p, va_arg (v,int)); 2948 va_end (v); 2949 return s; 2950} 2951 2952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2953 function prototypes and stuff, but not '\xHH' hex character constants. 2954 These don't provoke an error unfortunately, instead are silently treated 2955 as 'x'. The following induces an error, until -std1 is added to get 2956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2957 array size at least. It's necessary to write '\x00'==0 to get something 2958 that's true only with -std1. */ 2959int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2960 2961int test (int i, double x); 2962struct s1 {int (*f) (int a);}; 2963struct s2 {int (*f) (double a);}; 2964int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2965int argc; 2966char **argv; 2967int 2968main () 2969{ 2970return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975# Don't try gcc -ansi; that turns off useful extensions and 2976# breaks some systems' header files. 2977# AIX -qlanglvl=ansi 2978# Ultrix and OSF/1 -std1 2979# HP-UX 10.20 and later -Ae 2980# HP-UX older versions -Aa -D_HPUX_SOURCE 2981# SVR4 -Xc -D__EXTENSIONS__ 2982for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2983do 2984 CC="$ac_save_CC $ac_arg" 2985 rm -f conftest.$ac_objext 2986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2987 (eval $ac_compile) 2>conftest.er1 2988 ac_status=$? 2989 grep -v '^ *+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -z "$ac_c_werror_flag" 2995 || test ! -s conftest.err' 2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2997 (eval $ac_try) 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; } && 3001 { ac_try='test -s conftest.$ac_objext' 3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3003 (eval $ac_try) 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 ac_cv_prog_cc_stdc=$ac_arg 3008break 3009else 3010 echo "$as_me: failed program was:" >&5 3011sed 's/^/| /' conftest.$ac_ext >&5 3012 3013fi 3014rm -f conftest.err conftest.$ac_objext 3015done 3016rm -f conftest.$ac_ext conftest.$ac_objext 3017CC=$ac_save_CC 3018 3019fi 3020 3021case "x$ac_cv_prog_cc_stdc" in 3022 x|xno) 3023 echo "$as_me:$LINENO: result: none needed" >&5 3024echo "${ECHO_T}none needed" >&6 ;; 3025 *) 3026 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3027echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3028 CC="$CC $ac_cv_prog_cc_stdc" ;; 3029esac 3030 3031# Some people use a C++ compiler to compile C. Since we use `exit', 3032# in C++ we need to declare it. In case someone uses the same compiler 3033# for both compiling C and C++ we need to have the C++ compiler decide 3034# the declaration of exit, since it's the most demanding environment. 3035cat >conftest.$ac_ext <<_ACEOF 3036#ifndef __cplusplus 3037 choke me 3038#endif 3039_ACEOF 3040rm -f conftest.$ac_objext 3041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3042 (eval $ac_compile) 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && 3049 { ac_try='test -z "$ac_c_werror_flag" 3050 || test ! -s conftest.err' 3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3052 (eval $ac_try) 2>&5 3053 ac_status=$? 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); }; } && 3056 { ac_try='test -s conftest.$ac_objext' 3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3058 (eval $ac_try) 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; }; then 3062 for ac_declaration in \ 3063 '' \ 3064 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3065 'extern "C" void std::exit (int); using std::exit;' \ 3066 'extern "C" void exit (int) throw ();' \ 3067 'extern "C" void exit (int);' \ 3068 'void exit (int);' 3069do 3070 cat >conftest.$ac_ext <<_ACEOF 3071/* confdefs.h. */ 3072_ACEOF 3073cat confdefs.h >>conftest.$ac_ext 3074cat >>conftest.$ac_ext <<_ACEOF 3075/* end confdefs.h. */ 3076$ac_declaration 3077#include <stdlib.h> 3078int 3079main () 3080{ 3081exit (42); 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086rm -f conftest.$ac_objext 3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3088 (eval $ac_compile) 2>conftest.er1 3089 ac_status=$? 3090 grep -v '^ *+' conftest.er1 >conftest.err 3091 rm -f conftest.er1 3092 cat conftest.err >&5 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); } && 3095 { ac_try='test -z "$ac_c_werror_flag" 3096 || test ! -s conftest.err' 3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; } && 3102 { ac_try='test -s conftest.$ac_objext' 3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3104 (eval $ac_try) 2>&5 3105 ac_status=$? 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); }; }; then 3108 : 3109else 3110 echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113continue 3114fi 3115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3116 cat >conftest.$ac_ext <<_ACEOF 3117/* confdefs.h. */ 3118_ACEOF 3119cat confdefs.h >>conftest.$ac_ext 3120cat >>conftest.$ac_ext <<_ACEOF 3121/* end confdefs.h. */ 3122$ac_declaration 3123int 3124main () 3125{ 3126exit (42); 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131rm -f conftest.$ac_objext 3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3133 (eval $ac_compile) 2>conftest.er1 3134 ac_status=$? 3135 grep -v '^ *+' conftest.er1 >conftest.err 3136 rm -f conftest.er1 3137 cat conftest.err >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 (exit $ac_status); } && 3140 { ac_try='test -z "$ac_c_werror_flag" 3141 || test ! -s conftest.err' 3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3143 (eval $ac_try) 2>&5 3144 ac_status=$? 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 (exit $ac_status); }; } && 3147 { ac_try='test -s conftest.$ac_objext' 3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3149 (eval $ac_try) 2>&5 3150 ac_status=$? 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 3153 break 3154else 3155 echo "$as_me: failed program was:" >&5 3156sed 's/^/| /' conftest.$ac_ext >&5 3157 3158fi 3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3160done 3161rm -f conftest* 3162if test -n "$ac_declaration"; then 3163 echo '#ifdef __cplusplus' >>confdefs.h 3164 echo $ac_declaration >>confdefs.h 3165 echo '#endif' >>confdefs.h 3166fi 3167 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172fi 3173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3174ac_ext=c 3175ac_cpp='$CPP $CPPFLAGS' 3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3178ac_compiler_gnu=$ac_cv_c_compiler_gnu 3179DEPDIR="${am__leading_dot}deps" 3180 3181 ac_config_commands="$ac_config_commands depfiles" 3182 3183 3184am_make=${MAKE-make} 3185cat > confinc << 'END' 3186am__doit: 3187 @echo done 3188.PHONY: am__doit 3189END 3190# If we don't find an include directive, just comment out the code. 3191echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3192echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3193am__include="#" 3194am__quote= 3195_am_result=none 3196# First try GNU make style include. 3197echo "include confinc" > confmf 3198# We grep out `Entering directory' and `Leaving directory' 3199# messages which can occur if `w' ends up in MAKEFLAGS. 3200# In particular we don't look at `^make:' because GNU make might 3201# be invoked under some other name (usually "gmake"), in which 3202# case it prints its new name instead of `make'. 3203if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3204 am__include=include 3205 am__quote= 3206 _am_result=GNU 3207fi 3208# Now try BSD make style include. 3209if test "$am__include" = "#"; then 3210 echo '.include "confinc"' > confmf 3211 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3212 am__include=.include 3213 am__quote="\"" 3214 _am_result=BSD 3215 fi 3216fi 3217 3218 3219echo "$as_me:$LINENO: result: $_am_result" >&5 3220echo "${ECHO_T}$_am_result" >&6 3221rm -f confinc confmf 3222 3223# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3224if test "${enable_dependency_tracking+set}" = set; then 3225 enableval="$enable_dependency_tracking" 3226 3227fi; 3228if test "x$enable_dependency_tracking" != xno; then 3229 am_depcomp="$ac_aux_dir/depcomp" 3230 AMDEPBACKSLASH='\' 3231fi 3232 3233 3234if test "x$enable_dependency_tracking" != xno; then 3235 AMDEP_TRUE= 3236 AMDEP_FALSE='#' 3237else 3238 AMDEP_TRUE='#' 3239 AMDEP_FALSE= 3240fi 3241 3242 3243 3244 3245depcc="$CC" am_compiler_list= 3246 3247echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3248echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3249if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3253 # We make a subdir and do the tests there. Otherwise we can end up 3254 # making bogus files that we don't know about and never remove. For 3255 # instance it was reported that on HP-UX the gcc test will end up 3256 # making a dummy file named `D' -- because `-MD' means `put the output 3257 # in D'. 3258 mkdir conftest.dir 3259 # Copy depcomp to subdir because otherwise we won't find it if we're 3260 # using a relative directory. 3261 cp "$am_depcomp" conftest.dir 3262 cd conftest.dir 3263 # We will build objects and dependencies in a subdirectory because 3264 # it helps to detect inapplicable dependency modes. For instance 3265 # both Tru64's cc and ICC support -MD to output dependencies as a 3266 # side effect of compilation, but ICC will put the dependencies in 3267 # the current directory while Tru64 will put them in the object 3268 # directory. 3269 mkdir sub 3270 3271 am_cv_CC_dependencies_compiler_type=none 3272 if test "$am_compiler_list" = ""; then 3273 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3274 fi 3275 for depmode in $am_compiler_list; do 3276 # Setup a source with many dependencies, because some compilers 3277 # like to wrap large dependency lists on column 80 (with \), and 3278 # we should not choose a depcomp mode which is confused by this. 3279 # 3280 # We need to recreate these files for each test, as the compiler may 3281 # overwrite some of them when testing with obscure command lines. 3282 # This happens at least with the AIX C compiler. 3283 : > sub/conftest.c 3284 for i in 1 2 3 4 5 6; do 3285 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3286 : > sub/conftst$i.h 3287 done 3288 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3289 3290 case $depmode in 3291 nosideeffect) 3292 # after this tag, mechanisms are not by side-effect, so they'll 3293 # only be used when explicitly requested 3294 if test "x$enable_dependency_tracking" = xyes; then 3295 continue 3296 else 3297 break 3298 fi 3299 ;; 3300 none) break ;; 3301 esac 3302 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3303 # mode. It turns out that the SunPro C++ compiler does not properly 3304 # handle `-M -o', and we need to detect this. 3305 if depmode=$depmode \ 3306 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3308 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3309 >/dev/null 2>conftest.err && 3310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3311 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3313 # icc doesn't choke on unknown options, it will just issue warnings 3314 # (even with -Werror). So we grep stderr for any message 3315 # that says an option was ignored. 3316 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3317 am_cv_CC_dependencies_compiler_type=$depmode 3318 break 3319 fi 3320 fi 3321 done 3322 3323 cd .. 3324 rm -rf conftest.dir 3325else 3326 am_cv_CC_dependencies_compiler_type=none 3327fi 3328 3329fi 3330echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3331echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3333 3334 3335 3336if 3337 test "x$enable_dependency_tracking" != xno \ 3338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3339 am__fastdepCC_TRUE= 3340 am__fastdepCC_FALSE='#' 3341else 3342 am__fastdepCC_TRUE='#' 3343 am__fastdepCC_FALSE= 3344fi 3345 3346 3347 3348ac_ext=c 3349ac_cpp='$CPP $CPPFLAGS' 3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3352ac_compiler_gnu=$ac_cv_c_compiler_gnu 3353echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3354echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3355# On Suns, sometimes $CPP names a directory. 3356if test -n "$CPP" && test -d "$CPP"; then 3357 CPP= 3358fi 3359if test -z "$CPP"; then 3360 if test "${ac_cv_prog_CPP+set}" = set; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 # Double quotes because CPP needs to be expanded 3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3365 do 3366 ac_preproc_ok=false 3367for ac_c_preproc_warn_flag in '' yes 3368do 3369 # Use a header file that comes with gcc, so configuring glibc 3370 # with a fresh cross-compiler works. 3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3372 # <limits.h> exists even on freestanding compilers. 3373 # On the NeXT, cc -E runs the code through the compiler's parser, 3374 # not just through cpp. "Syntax error" is here to catch this case. 3375 cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381#ifdef __STDC__ 3382# include <limits.h> 3383#else 3384# include <assert.h> 3385#endif 3386 Syntax error 3387_ACEOF 3388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3390 ac_status=$? 3391 grep -v '^ *+' conftest.er1 >conftest.err 3392 rm -f conftest.er1 3393 cat conftest.err >&5 3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3395 (exit $ac_status); } >/dev/null; then 3396 if test -s conftest.err; then 3397 ac_cpp_err=$ac_c_preproc_warn_flag 3398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3399 else 3400 ac_cpp_err= 3401 fi 3402else 3403 ac_cpp_err=yes 3404fi 3405if test -z "$ac_cpp_err"; then 3406 : 3407else 3408 echo "$as_me: failed program was:" >&5 3409sed 's/^/| /' conftest.$ac_ext >&5 3410 3411 # Broken: fails on valid input. 3412continue 3413fi 3414rm -f conftest.err conftest.$ac_ext 3415 3416 # OK, works on sane cases. Now check whether non-existent headers 3417 # can be detected and how. 3418 cat >conftest.$ac_ext <<_ACEOF 3419/* confdefs.h. */ 3420_ACEOF 3421cat confdefs.h >>conftest.$ac_ext 3422cat >>conftest.$ac_ext <<_ACEOF 3423/* end confdefs.h. */ 3424#include <ac_nonexistent.h> 3425_ACEOF 3426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3428 ac_status=$? 3429 grep -v '^ *+' conftest.er1 >conftest.err 3430 rm -f conftest.er1 3431 cat conftest.err >&5 3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3433 (exit $ac_status); } >/dev/null; then 3434 if test -s conftest.err; then 3435 ac_cpp_err=$ac_c_preproc_warn_flag 3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3437 else 3438 ac_cpp_err= 3439 fi 3440else 3441 ac_cpp_err=yes 3442fi 3443if test -z "$ac_cpp_err"; then 3444 # Broken: success on invalid input. 3445continue 3446else 3447 echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 # Passes both tests. 3451ac_preproc_ok=: 3452break 3453fi 3454rm -f conftest.err conftest.$ac_ext 3455 3456done 3457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3458rm -f conftest.err conftest.$ac_ext 3459if $ac_preproc_ok; then 3460 break 3461fi 3462 3463 done 3464 ac_cv_prog_CPP=$CPP 3465 3466fi 3467 CPP=$ac_cv_prog_CPP 3468else 3469 ac_cv_prog_CPP=$CPP 3470fi 3471echo "$as_me:$LINENO: result: $CPP" >&5 3472echo "${ECHO_T}$CPP" >&6 3473ac_preproc_ok=false 3474for ac_c_preproc_warn_flag in '' yes 3475do 3476 # Use a header file that comes with gcc, so configuring glibc 3477 # with a fresh cross-compiler works. 3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3479 # <limits.h> exists even on freestanding compilers. 3480 # On the NeXT, cc -E runs the code through the compiler's parser, 3481 # not just through cpp. "Syntax error" is here to catch this case. 3482 cat >conftest.$ac_ext <<_ACEOF 3483/* confdefs.h. */ 3484_ACEOF 3485cat confdefs.h >>conftest.$ac_ext 3486cat >>conftest.$ac_ext <<_ACEOF 3487/* end confdefs.h. */ 3488#ifdef __STDC__ 3489# include <limits.h> 3490#else 3491# include <assert.h> 3492#endif 3493 Syntax error 3494_ACEOF 3495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3497 ac_status=$? 3498 grep -v '^ *+' conftest.er1 >conftest.err 3499 rm -f conftest.er1 3500 cat conftest.err >&5 3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3502 (exit $ac_status); } >/dev/null; then 3503 if test -s conftest.err; then 3504 ac_cpp_err=$ac_c_preproc_warn_flag 3505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3506 else 3507 ac_cpp_err= 3508 fi 3509else 3510 ac_cpp_err=yes 3511fi 3512if test -z "$ac_cpp_err"; then 3513 : 3514else 3515 echo "$as_me: failed program was:" >&5 3516sed 's/^/| /' conftest.$ac_ext >&5 3517 3518 # Broken: fails on valid input. 3519continue 3520fi 3521rm -f conftest.err conftest.$ac_ext 3522 3523 # OK, works on sane cases. Now check whether non-existent headers 3524 # can be detected and how. 3525 cat >conftest.$ac_ext <<_ACEOF 3526/* confdefs.h. */ 3527_ACEOF 3528cat confdefs.h >>conftest.$ac_ext 3529cat >>conftest.$ac_ext <<_ACEOF 3530/* end confdefs.h. */ 3531#include <ac_nonexistent.h> 3532_ACEOF 3533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3535 ac_status=$? 3536 grep -v '^ *+' conftest.er1 >conftest.err 3537 rm -f conftest.er1 3538 cat conftest.err >&5 3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3540 (exit $ac_status); } >/dev/null; then 3541 if test -s conftest.err; then 3542 ac_cpp_err=$ac_c_preproc_warn_flag 3543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3544 else 3545 ac_cpp_err= 3546 fi 3547else 3548 ac_cpp_err=yes 3549fi 3550if test -z "$ac_cpp_err"; then 3551 # Broken: success on invalid input. 3552continue 3553else 3554 echo "$as_me: failed program was:" >&5 3555sed 's/^/| /' conftest.$ac_ext >&5 3556 3557 # Passes both tests. 3558ac_preproc_ok=: 3559break 3560fi 3561rm -f conftest.err conftest.$ac_ext 3562 3563done 3564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3565rm -f conftest.err conftest.$ac_ext 3566if $ac_preproc_ok; then 3567 : 3568else 3569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3570See \`config.log' for more details." >&5 3571echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3572See \`config.log' for more details." >&2;} 3573 { (exit 1); exit 1; }; } 3574fi 3575 3576ac_ext=c 3577ac_cpp='$CPP $CPPFLAGS' 3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581 3582 3583echo "$as_me:$LINENO: checking for egrep" >&5 3584echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3585if test "${ac_cv_prog_egrep+set}" = set; then 3586 echo $ECHO_N "(cached) $ECHO_C" >&6 3587else 3588 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3589 then ac_cv_prog_egrep='grep -E' 3590 else ac_cv_prog_egrep='egrep' 3591 fi 3592fi 3593echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3594echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3595 EGREP=$ac_cv_prog_egrep 3596 3597 3598if test $ac_cv_c_compiler_gnu = yes; then 3599 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3600echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3601if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3602 echo $ECHO_N "(cached) $ECHO_C" >&6 3603else 3604 ac_pattern="Autoconf.*'x'" 3605 cat >conftest.$ac_ext <<_ACEOF 3606/* confdefs.h. */ 3607_ACEOF 3608cat confdefs.h >>conftest.$ac_ext 3609cat >>conftest.$ac_ext <<_ACEOF 3610/* end confdefs.h. */ 3611#include <sgtty.h> 3612Autoconf TIOCGETP 3613_ACEOF 3614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3615 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3616 ac_cv_prog_gcc_traditional=yes 3617else 3618 ac_cv_prog_gcc_traditional=no 3619fi 3620rm -f conftest* 3621 3622 3623 if test $ac_cv_prog_gcc_traditional = no; then 3624 cat >conftest.$ac_ext <<_ACEOF 3625/* confdefs.h. */ 3626_ACEOF 3627cat confdefs.h >>conftest.$ac_ext 3628cat >>conftest.$ac_ext <<_ACEOF 3629/* end confdefs.h. */ 3630#include <termio.h> 3631Autoconf TCGETA 3632_ACEOF 3633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3634 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3635 ac_cv_prog_gcc_traditional=yes 3636fi 3637rm -f conftest* 3638 3639 fi 3640fi 3641echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3642echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3643 if test $ac_cv_prog_gcc_traditional = yes; then 3644 CC="$CC -traditional" 3645 fi 3646fi 3647 3648# Find a good install program. We prefer a C program (faster), 3649# so one script is as good as another. But avoid the broken or 3650# incompatible versions: 3651# SysV /etc/install, /usr/sbin/install 3652# SunOS /usr/etc/install 3653# IRIX /sbin/install 3654# AIX /bin/install 3655# AmigaOS /C/install, which installs bootblocks on floppy discs 3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3659# OS/2's system install, which has a completely different semantic 3660# ./install, which can be erroneously created by make from ./install.sh. 3661echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3663if test -z "$INSTALL"; then 3664if test "${ac_cv_path_install+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 # Account for people who put trailing slashes in PATH elements. 3673case $as_dir/ in 3674 ./ | .// | /cC/* | \ 3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3677 /usr/ucb/* ) ;; 3678 *) 3679 # OSF1 and SCO ODT 3.0 have their own names for install. 3680 # Don't use installbsd from OSF since it installs stuff as root 3681 # by default. 3682 for ac_prog in ginstall scoinst install; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3685 if test $ac_prog = install && 3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3687 # AIX install. It has an incompatible calling convention. 3688 : 3689 elif test $ac_prog = install && 3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3691 # program-specific install script used by HP pwplus--don't use. 3692 : 3693 else 3694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3695 break 3 3696 fi 3697 fi 3698 done 3699 done 3700 ;; 3701esac 3702done 3703 3704 3705fi 3706 if test "${ac_cv_path_install+set}" = set; then 3707 INSTALL=$ac_cv_path_install 3708 else 3709 # As a last resort, use the slow shell script. We don't cache a 3710 # path for INSTALL within a source directory, because that will 3711 # break other packages using the cache if that directory is 3712 # removed, or if the path is relative. 3713 INSTALL=$ac_install_sh 3714 fi 3715fi 3716echo "$as_me:$LINENO: result: $INSTALL" >&5 3717echo "${ECHO_T}$INSTALL" >&6 3718 3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3720# It thinks the first close brace ends the variable substitution. 3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3722 3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3724 3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3726 3727for ac_prog in gawk mawk nawk awk 3728do 3729 # Extract the first word of "$ac_prog", so it can be a program name with args. 3730set dummy $ac_prog; ac_word=$2 3731echo "$as_me:$LINENO: checking for $ac_word" >&5 3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3733if test "${ac_cv_prog_AWK+set}" = set; then 3734 echo $ECHO_N "(cached) $ECHO_C" >&6 3735else 3736 if test -n "$AWK"; then 3737 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3738else 3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3740for as_dir in $PATH 3741do 3742 IFS=$as_save_IFS 3743 test -z "$as_dir" && as_dir=. 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3746 ac_cv_prog_AWK="$ac_prog" 3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751done 3752 3753fi 3754fi 3755AWK=$ac_cv_prog_AWK 3756if test -n "$AWK"; then 3757 echo "$as_me:$LINENO: result: $AWK" >&5 3758echo "${ECHO_T}$AWK" >&6 3759else 3760 echo "$as_me:$LINENO: result: no" >&5 3761echo "${ECHO_T}no" >&6 3762fi 3763 3764 test -n "$AWK" && break 3765done 3766 3767if test -n "$ac_tool_prefix"; then 3768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3769set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3770echo "$as_me:$LINENO: checking for $ac_word" >&5 3771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3772if test "${ac_cv_prog_RANLIB+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 if test -n "$RANLIB"; then 3776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3777else 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 test -z "$as_dir" && as_dir=. 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3787 break 2 3788 fi 3789done 3790done 3791 3792fi 3793fi 3794RANLIB=$ac_cv_prog_RANLIB 3795if test -n "$RANLIB"; then 3796 echo "$as_me:$LINENO: result: $RANLIB" >&5 3797echo "${ECHO_T}$RANLIB" >&6 3798else 3799 echo "$as_me:$LINENO: result: no" >&5 3800echo "${ECHO_T}no" >&6 3801fi 3802 3803fi 3804if test -z "$ac_cv_prog_RANLIB"; then 3805 ac_ct_RANLIB=$RANLIB 3806 # Extract the first word of "ranlib", so it can be a program name with args. 3807set dummy ranlib; ac_word=$2 3808echo "$as_me:$LINENO: checking for $ac_word" >&5 3809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3810if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3812else 3813 if test -n "$ac_ct_RANLIB"; then 3814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3815else 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3823 ac_cv_prog_ac_ct_RANLIB="ranlib" 3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3825 break 2 3826 fi 3827done 3828done 3829 3830 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3831fi 3832fi 3833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3834if test -n "$ac_ct_RANLIB"; then 3835 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3836echo "${ECHO_T}$ac_ct_RANLIB" >&6 3837else 3838 echo "$as_me:$LINENO: result: no" >&5 3839echo "${ECHO_T}no" >&6 3840fi 3841 3842 RANLIB=$ac_ct_RANLIB 3843else 3844 RANLIB="$ac_cv_prog_RANLIB" 3845fi 3846 3847echo "$as_me:$LINENO: checking whether ln -s works" >&5 3848echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3849LN_S=$as_ln_s 3850if test "$LN_S" = "ln -s"; then 3851 echo "$as_me:$LINENO: result: yes" >&5 3852echo "${ECHO_T}yes" >&6 3853else 3854 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3855echo "${ECHO_T}no, using $LN_S" >&6 3856fi 3857 3858echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5 3859echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6 3860ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'` 3861if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then 3862 echo $ECHO_N "(cached) $ECHO_C" >&6 3863else 3864 cat > conftest.$ac_ext <<EOF 3865int main() {return 0;} 3866EOF 3867if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then 3868 if test -s conftest.out; then 3869 eval "timidity_cv_ccoption_$ac_ccoption=no" 3870 else 3871 eval "timidity_cv_ccoption_$ac_ccoption=yes" 3872 fi 3873else 3874 eval "timidity_cv_ccoption_$ac_ccoption=no" 3875fi 3876 3877fi 3878 3879if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then 3880 echo "$as_me:$LINENO: result: yes" >&5 3881echo "${ECHO_T}yes" >&6 3882 3883else 3884 echo "$as_me:$LINENO: result: no" >&5 3885echo "${ECHO_T}no" >&6 3886 3887fi 3888 3889 3890if test "x$NOCFLAGS" = "xyes"; then 3891 if test "x$GCC" = "xyes"; then 3892 CFLAGS="-O2" 3893 else 3894 CFLAGS="" 3895 fi 3896fi 3897 3898# Checks for target dependencies 3899 3900 3901# Check whether --with-elf or --without-elf was given. 3902if test "${with_elf+set}" = set; then 3903 withval="$with_elf" 3904 ELFFORMAT=$withval 3905else 3906 ELFFORMAT="yes" 3907fi; 3908 3909# AC_ARG_WITH(simd, 3910# AS_HELP_STRING([--with-simd], [create SIMD friendly binary (default is no) ]), 3911# [ SIMD=$withval ], [ SIMD="no" ]) 3912 3913case "$target" in 3914 *-*-hpux*) 3915 EXTRADEFS="-DHPUX" 3916 test -n "$SHLD" || SHLD="ld -b" 3917 so="sl" 3918 ;; 3919 *-sgi-irix*) 3920 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac 3921 test -n "$SHLD" || SHLD="cc -shared -all" 3922 so="so" 3923 ;; 3924 *-*-netbsd*) 3925 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles" 3926 so="so" 3927 ;; 3928 3929 *-*-freebsd2*) 3930 test -n "$SHLD" || SHLD="ld -Bshareable" 3931 so="so" 3932 ;; 3933 *-*-dragonfly*) 3934 [ -n "$SHLD" ] || SHLD="ld -Bshareable" 3935 so="so" 3936 ;; 3937 *-*-freebsd*) 3938 if test "$ELFFORMAT" = yes; then 3939 test -n "$SHLD" || SHLD="ld -Bshareable" 3940 else 3941 SHCFLAGS=-aou 3942 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS" 3943 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared" 3944 fi 3945 so="so" 3946 ;; 3947 3948# *-*-freebsd*) 3949# EXTRALIBS="$EXTRALIBS -lxpg4" 3950# test -n "$SHLD" || SHLD="ld -Bshareable" 3951# so="so" 3952# ;; 3953 3954 *-*-cygwin*|*-*-mingw*) 3955 EXTRADEFS="-D__W32__" 3956 # ?? 3957 case "x${CC} " in 3958 "xbcc32 "*|xbcc32) 3959# test -n "$SHLD" || SHLD="tlink32 -Tpd" 3960 test -n "$SHLD" || SHLD="BCC32 -WD" 3961 BORLANDC=yes 3962 BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib ws2_32.lib user32.lib shell32.lib cw32mt.lib" 3963 BORLANDC_START='C0X32.OBJ' 3964 CFLAGS="$CFLAGS -tWM -VM" 3965 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32" 3966 ;; 3967 "xcc "*|xcc) 3968 test -n "$SHLD" || SHLD="polink -DLL" 3969 POCC=yes 3970 case " $CFLAGS " in 3971 *" -MT "*) NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crt.lib -defaultlib:crtmt.lib" ;; 3972 *" -MD "*) NODEF="-nodefaultlib:crtmt.lib -nodefaultlib:crt.lib -defaultlib:pocrt.lib" ;; 3973 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crtmt.lib -defaultlib:crt.lib" ;; 3974 esac 3975 POCC_LDFLAGS="$NODEF winmm.lib ws2_32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib oldnames.lib" 3976 CFLAGS="$CFLAGS -Ze -D__POCC__OLDNAMES" 3977 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32" 3978 ;; 3979 "xdmc "*|xdmc) 3980 test -n "$SHLD" || SHLD="dmc -WD" 3981 DMC=yes 3982 DMC_LDFLAGS="winmm.lib ws2_32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib" 3983 CFLAGS="$CFLAGS -mn -j0" 3984 DLLFLAG=" " 3985 EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32" 3986 ;; 3987 "xwcc386_w.sh "*|xwcc386) 3988 WATCOM_C=yes 3989 CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H" 3990 DLLFLAG=" " 3991 WATCOM_LDFLAGS= 3992 EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib user32.lib shell32.lib" 3993 ;; 3994 "xcl "*|xcl) 3995 test -n "$SHLD" || SHLD="link -dll" 3996 VCPP=yes 3997 case " $CFLAGS " in 3998 *" -MT "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;; 3999 *" -MD "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;; 4000 *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;; 4001 *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;; 4002 *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib" ;; 4003 esac 4004 VCPP_LDFLAGS="-nologo -incremental:no $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib ws2_32.lib user32.lib shell32.lib" 4005 CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX -Ob2" 4006 EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX -FD -c" 4007 ;; 4008 x*gcc*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;; 4009 *) test -n "$SHLD" || SHLD="unknown" ;; 4010 esac 4011 so="dll" 4012 MSYS=yes 4013 lib_user32_test=-luser32 4014 ;; 4015 *-dec-*) 4016 EXTRADEFS="-DDEC" 4017 test -n "$SHLD" || SHLD="ld -Bdynamic -G" 4018 so="so" 4019 ;; 4020 *-*-solaris*) 4021 EXTRADEFS="-DSOLARIS" 4022 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G" 4023 so="so" 4024 ;; 4025 *-*-nextstep*) 4026 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G" 4027 so="so" 4028 ;; 4029 *-*-darwin*) 4030 if test "x$SIMD" = "xyes"; then 4031 4032cat >>confdefs.h <<\_ACEOF 4033#define USE_ALTIVEC 1 4034_ACEOF 4035 4036 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3. 4037 EXTRACFLAGS="$EXTRACFLAGS -faltivec" 4038 else 4039 4040cat >>confdefs.h <<\_ACEOF 4041#define USE_ALTIVEC 0 4042_ACEOF 4043 4044 fi 4045 CPPFLAGS="$CPPFLAGS -no-cpp-precomp" 4046 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS" 4047 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS" 4048 so="bundle" 4049 ;; 4050 *) 4051 test -n "$SHLD" || \ 4052 if test "x$GCC" = xyes; then 4053 SHLD="$CC -shared" 4054 else 4055 SHLD="ld -Bdynamic -G" 4056 fi 4057 so="so" 4058 ;; 4059esac 4060 4061 4062# Checks for libraries. 4063 4064echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 4065echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 4066if test "${ac_cv_lib_m_sqrt+set}" = set; then 4067 echo $ECHO_N "(cached) $ECHO_C" >&6 4068else 4069 ac_check_lib_save_LIBS=$LIBS 4070LIBS="-lm $LIBS" 4071cat >conftest.$ac_ext <<_ACEOF 4072/* confdefs.h. */ 4073_ACEOF 4074cat confdefs.h >>conftest.$ac_ext 4075cat >>conftest.$ac_ext <<_ACEOF 4076/* end confdefs.h. */ 4077 4078/* Override any gcc2 internal prototype to avoid an error. */ 4079#ifdef __cplusplus 4080extern "C" 4081#endif 4082/* We use char because int might match the return type of a gcc2 4083 builtin and then its argument prototype would still apply. */ 4084char sqrt (); 4085int 4086main () 4087{ 4088sqrt (); 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093rm -f conftest.$ac_objext conftest$ac_exeext 4094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4095 (eval $ac_link) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_c_werror_flag" 4103 || test ! -s conftest.err' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; } && 4109 { ac_try='test -s conftest$ac_exeext' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; }; then 4115 ac_cv_lib_m_sqrt=yes 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120ac_cv_lib_m_sqrt=no 4121fi 4122rm -f conftest.err conftest.$ac_objext \ 4123 conftest$ac_exeext conftest.$ac_ext 4124LIBS=$ac_check_lib_save_LIBS 4125fi 4126echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 4127echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 4128if test $ac_cv_lib_m_sqrt = yes; then 4129 cat >>confdefs.h <<_ACEOF 4130#define HAVE_LIBM 1 4131_ACEOF 4132 4133 LIBS="-lm $LIBS" 4134 4135fi 4136 4137 4138echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4139echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 4140if test "${ac_cv_lib_socket_socket+set}" = set; then 4141 echo $ECHO_N "(cached) $ECHO_C" >&6 4142else 4143 ac_check_lib_save_LIBS=$LIBS 4144LIBS="-lsocket $LIBS" 4145cat >conftest.$ac_ext <<_ACEOF 4146/* confdefs.h. */ 4147_ACEOF 4148cat confdefs.h >>conftest.$ac_ext 4149cat >>conftest.$ac_ext <<_ACEOF 4150/* end confdefs.h. */ 4151 4152/* Override any gcc2 internal prototype to avoid an error. */ 4153#ifdef __cplusplus 4154extern "C" 4155#endif 4156/* We use char because int might match the return type of a gcc2 4157 builtin and then its argument prototype would still apply. */ 4158char socket (); 4159int 4160main () 4161{ 4162socket (); 4163 ; 4164 return 0; 4165} 4166_ACEOF 4167rm -f conftest.$ac_objext conftest$ac_exeext 4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4169 (eval $ac_link) 2>conftest.er1 4170 ac_status=$? 4171 grep -v '^ *+' conftest.er1 >conftest.err 4172 rm -f conftest.er1 4173 cat conftest.err >&5 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && 4176 { ac_try='test -z "$ac_c_werror_flag" 4177 || test ! -s conftest.err' 4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4179 (eval $ac_try) 2>&5 4180 ac_status=$? 4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4182 (exit $ac_status); }; } && 4183 { ac_try='test -s conftest$ac_exeext' 4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4185 (eval $ac_try) 2>&5 4186 ac_status=$? 4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4188 (exit $ac_status); }; }; then 4189 ac_cv_lib_socket_socket=yes 4190else 4191 echo "$as_me: failed program was:" >&5 4192sed 's/^/| /' conftest.$ac_ext >&5 4193 4194ac_cv_lib_socket_socket=no 4195fi 4196rm -f conftest.err conftest.$ac_objext \ 4197 conftest$ac_exeext conftest.$ac_ext 4198LIBS=$ac_check_lib_save_LIBS 4199fi 4200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4201echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 4202if test $ac_cv_lib_socket_socket = yes; then 4203 cat >>confdefs.h <<_ACEOF 4204#define HAVE_LIBSOCKET 1 4205_ACEOF 4206 4207 LIBS="-lsocket $LIBS" 4208 4209fi 4210 4211echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4212echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4213if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4214 echo $ECHO_N "(cached) $ECHO_C" >&6 4215else 4216 ac_check_lib_save_LIBS=$LIBS 4217LIBS="-ldl $LIBS" 4218cat >conftest.$ac_ext <<_ACEOF 4219/* confdefs.h. */ 4220_ACEOF 4221cat confdefs.h >>conftest.$ac_ext 4222cat >>conftest.$ac_ext <<_ACEOF 4223/* end confdefs.h. */ 4224 4225/* Override any gcc2 internal prototype to avoid an error. */ 4226#ifdef __cplusplus 4227extern "C" 4228#endif 4229/* We use char because int might match the return type of a gcc2 4230 builtin and then its argument prototype would still apply. */ 4231char dlopen (); 4232int 4233main () 4234{ 4235dlopen (); 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240rm -f conftest.$ac_objext conftest$ac_exeext 4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4242 (eval $ac_link) 2>conftest.er1 4243 ac_status=$? 4244 grep -v '^ *+' conftest.er1 >conftest.err 4245 rm -f conftest.er1 4246 cat conftest.err >&5 4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4248 (exit $ac_status); } && 4249 { ac_try='test -z "$ac_c_werror_flag" 4250 || test ! -s conftest.err' 4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4252 (eval $ac_try) 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; } && 4256 { ac_try='test -s conftest$ac_exeext' 4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4258 (eval $ac_try) 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); }; }; then 4262 ac_cv_lib_dl_dlopen=yes 4263else 4264 echo "$as_me: failed program was:" >&5 4265sed 's/^/| /' conftest.$ac_ext >&5 4266 4267ac_cv_lib_dl_dlopen=no 4268fi 4269rm -f conftest.err conftest.$ac_objext \ 4270 conftest$ac_exeext conftest.$ac_ext 4271LIBS=$ac_check_lib_save_LIBS 4272fi 4273echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4274echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4275if test $ac_cv_lib_dl_dlopen = yes; then 4276 lib_dl_opt=-ldl 4277fi 4278 4279echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5 4280echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6 4281if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then 4282 echo $ECHO_N "(cached) $ECHO_C" >&6 4283else 4284 ac_check_lib_save_LIBS=$LIBS 4285LIBS="-lobjc $LIBS" 4286cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292 4293/* Override any gcc2 internal prototype to avoid an error. */ 4294#ifdef __cplusplus 4295extern "C" 4296#endif 4297/* We use char because int might match the return type of a gcc2 4298 builtin and then its argument prototype would still apply. */ 4299char NSLinkModule (); 4300int 4301main () 4302{ 4303NSLinkModule (); 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308rm -f conftest.$ac_objext conftest$ac_exeext 4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4310 (eval $ac_link) 2>conftest.er1 4311 ac_status=$? 4312 grep -v '^ *+' conftest.er1 >conftest.err 4313 rm -f conftest.er1 4314 cat conftest.err >&5 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } && 4317 { ac_try='test -z "$ac_c_werror_flag" 4318 || test ! -s conftest.err' 4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4320 (eval $ac_try) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); }; } && 4324 { ac_try='test -s conftest$ac_exeext' 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4326 (eval $ac_try) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); }; }; then 4330 ac_cv_lib_objc_NSLinkModule=yes 4331else 4332 echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335ac_cv_lib_objc_NSLinkModule=no 4336fi 4337rm -f conftest.err conftest.$ac_objext \ 4338 conftest$ac_exeext conftest.$ac_ext 4339LIBS=$ac_check_lib_save_LIBS 4340fi 4341echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5 4342echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6 4343if test $ac_cv_lib_objc_NSLinkModule = yes; then 4344 lib_dl_opt=-lobjc 4345fi 4346 # Mac OS X need this. 4347if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then 4348 4349echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 4350echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 4351if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 4352 echo $ECHO_N "(cached) $ECHO_C" >&6 4353else 4354 ac_check_lib_save_LIBS=$LIBS 4355LIBS="-lxpg4 $LIBS" 4356cat >conftest.$ac_ext <<_ACEOF 4357/* confdefs.h. */ 4358_ACEOF 4359cat confdefs.h >>conftest.$ac_ext 4360cat >>conftest.$ac_ext <<_ACEOF 4361/* end confdefs.h. */ 4362 4363/* Override any gcc2 internal prototype to avoid an error. */ 4364#ifdef __cplusplus 4365extern "C" 4366#endif 4367/* We use char because int might match the return type of a gcc2 4368 builtin and then its argument prototype would still apply. */ 4369char setlocale (); 4370int 4371main () 4372{ 4373setlocale (); 4374 ; 4375 return 0; 4376} 4377_ACEOF 4378rm -f conftest.$ac_objext conftest$ac_exeext 4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4380 (eval $ac_link) 2>conftest.er1 4381 ac_status=$? 4382 grep -v '^ *+' conftest.er1 >conftest.err 4383 rm -f conftest.er1 4384 cat conftest.err >&5 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); } && 4387 { ac_try='test -z "$ac_c_werror_flag" 4388 || test ! -s conftest.err' 4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4390 (eval $ac_try) 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); }; } && 4394 { ac_try='test -s conftest$ac_exeext' 4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4396 (eval $ac_try) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; }; then 4400 ac_cv_lib_xpg4_setlocale=yes 4401else 4402 echo "$as_me: failed program was:" >&5 4403sed 's/^/| /' conftest.$ac_ext >&5 4404 4405ac_cv_lib_xpg4_setlocale=no 4406fi 4407rm -f conftest.err conftest.$ac_objext \ 4408 conftest$ac_exeext conftest.$ac_ext 4409LIBS=$ac_check_lib_save_LIBS 4410fi 4411echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4412echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 4413if test $ac_cv_lib_xpg4_setlocale = yes; then 4414 cat >>confdefs.h <<_ACEOF 4415#define HAVE_LIBXPG4 1 4416_ACEOF 4417 4418 LIBS="-lxpg4 $LIBS" 4419 4420fi 4421 # Mac OS X (and maybe NetBSD) need this. 4422fi 4423 4424for ac_func in gethostbyname 4425do 4426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4427echo "$as_me:$LINENO: checking for $ac_func" >&5 4428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4429if eval "test \"\${$as_ac_var+set}\" = set"; then 4430 echo $ECHO_N "(cached) $ECHO_C" >&6 4431else 4432 cat >conftest.$ac_ext <<_ACEOF 4433/* confdefs.h. */ 4434_ACEOF 4435cat confdefs.h >>conftest.$ac_ext 4436cat >>conftest.$ac_ext <<_ACEOF 4437/* end confdefs.h. */ 4438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4439 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4440#define $ac_func innocuous_$ac_func 4441 4442/* System header to define __stub macros and hopefully few prototypes, 4443 which can conflict with char $ac_func (); below. 4444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4445 <limits.h> exists even on freestanding compilers. */ 4446 4447#ifdef __STDC__ 4448# include <limits.h> 4449#else 4450# include <assert.h> 4451#endif 4452 4453#undef $ac_func 4454 4455/* Override any gcc2 internal prototype to avoid an error. */ 4456#ifdef __cplusplus 4457extern "C" 4458{ 4459#endif 4460/* We use char because int might match the return type of a gcc2 4461 builtin and then its argument prototype would still apply. */ 4462char $ac_func (); 4463/* The GNU C library defines this for functions which it implements 4464 to always fail with ENOSYS. Some functions are actually named 4465 something starting with __ and the normal name is an alias. */ 4466#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4467choke me 4468#else 4469char (*f) () = $ac_func; 4470#endif 4471#ifdef __cplusplus 4472} 4473#endif 4474 4475int 4476main () 4477{ 4478return f != $ac_func; 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483rm -f conftest.$ac_objext conftest$ac_exeext 4484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4485 (eval $ac_link) 2>conftest.er1 4486 ac_status=$? 4487 grep -v '^ *+' conftest.er1 >conftest.err 4488 rm -f conftest.er1 4489 cat conftest.err >&5 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); } && 4492 { ac_try='test -z "$ac_c_werror_flag" 4493 || test ! -s conftest.err' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; } && 4499 { ac_try='test -s conftest$ac_exeext' 4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4501 (eval $ac_try) 2>&5 4502 ac_status=$? 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); }; }; then 4505 eval "$as_ac_var=yes" 4506else 4507 echo "$as_me: failed program was:" >&5 4508sed 's/^/| /' conftest.$ac_ext >&5 4509 4510eval "$as_ac_var=no" 4511fi 4512rm -f conftest.err conftest.$ac_objext \ 4513 conftest$ac_exeext conftest.$ac_ext 4514fi 4515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4517if test `eval echo '${'$as_ac_var'}'` = yes; then 4518 cat >>confdefs.h <<_ACEOF 4519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4520_ACEOF 4521 4522else 4523 4524echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4525echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4526if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4527 echo $ECHO_N "(cached) $ECHO_C" >&6 4528else 4529 ac_check_lib_save_LIBS=$LIBS 4530LIBS="-lnsl $LIBS" 4531cat >conftest.$ac_ext <<_ACEOF 4532/* confdefs.h. */ 4533_ACEOF 4534cat confdefs.h >>conftest.$ac_ext 4535cat >>conftest.$ac_ext <<_ACEOF 4536/* end confdefs.h. */ 4537 4538/* Override any gcc2 internal prototype to avoid an error. */ 4539#ifdef __cplusplus 4540extern "C" 4541#endif 4542/* We use char because int might match the return type of a gcc2 4543 builtin and then its argument prototype would still apply. */ 4544char gethostbyname (); 4545int 4546main () 4547{ 4548gethostbyname (); 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553rm -f conftest.$ac_objext conftest$ac_exeext 4554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4555 (eval $ac_link) 2>conftest.er1 4556 ac_status=$? 4557 grep -v '^ *+' conftest.er1 >conftest.err 4558 rm -f conftest.er1 4559 cat conftest.err >&5 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); } && 4562 { ac_try='test -z "$ac_c_werror_flag" 4563 || test ! -s conftest.err' 4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4565 (eval $ac_try) 2>&5 4566 ac_status=$? 4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4568 (exit $ac_status); }; } && 4569 { ac_try='test -s conftest$ac_exeext' 4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4571 (eval $ac_try) 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); }; }; then 4575 ac_cv_lib_nsl_gethostbyname=yes 4576else 4577 echo "$as_me: failed program was:" >&5 4578sed 's/^/| /' conftest.$ac_ext >&5 4579 4580ac_cv_lib_nsl_gethostbyname=no 4581fi 4582rm -f conftest.err conftest.$ac_objext \ 4583 conftest$ac_exeext conftest.$ac_ext 4584LIBS=$ac_check_lib_save_LIBS 4585fi 4586echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4587echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4588if test $ac_cv_lib_nsl_gethostbyname = yes; then 4589 cat >>confdefs.h <<_ACEOF 4590#define HAVE_LIBNSL 1 4591_ACEOF 4592 4593 LIBS="-lnsl $LIBS" 4594 4595fi 4596 4597fi 4598done 4599 4600echo "$as_me:$LINENO: checking for X" >&5 4601echo $ECHO_N "checking for X... $ECHO_C" >&6 4602 4603 4604# Check whether --with-x or --without-x was given. 4605if test "${with_x+set}" = set; then 4606 withval="$with_x" 4607 4608fi; 4609# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4610if test "x$with_x" = xno; then 4611 # The user explicitly disabled X. 4612 have_x=disabled 4613else 4614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 4615 # Both variables are already set. 4616 have_x=yes 4617 else 4618 if test "${ac_cv_have_x+set}" = set; then 4619 echo $ECHO_N "(cached) $ECHO_C" >&6 4620else 4621 # One or both of the vars are not set, and there is no cached value. 4622ac_x_includes=no ac_x_libraries=no 4623rm -fr conftest.dir 4624if mkdir conftest.dir; then 4625 cd conftest.dir 4626 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 4627 cat >Imakefile <<'_ACEOF' 4628acfindx: 4629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 4630_ACEOF 4631 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 4632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 4634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4635 for ac_extension in a so sl; do 4636 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 4637 test -f $ac_im_libdir/libX11.$ac_extension; then 4638 ac_im_usrlibdir=$ac_im_libdir; break 4639 fi 4640 done 4641 # Screen out bogus values from the imake configuration. They are 4642 # bogus both because they are the default anyway, and because 4643 # using them would break gcc on systems where it needs fixed includes. 4644 case $ac_im_incroot in 4645 /usr/include) ;; 4646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4647 esac 4648 case $ac_im_usrlibdir in 4649 /usr/lib | /lib) ;; 4650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4651 esac 4652 fi 4653 cd .. 4654 rm -fr conftest.dir 4655fi 4656 4657# Standard set of common directories for X headers. 4658# Check X11 before X11Rn because it is often a symlink to the current release. 4659ac_x_header_dirs=' 4660/usr/X11/include 4661/usr/X11R6/include 4662/usr/X11R5/include 4663/usr/X11R4/include 4664 4665/usr/include/X11 4666/usr/include/X11R6 4667/usr/include/X11R5 4668/usr/include/X11R4 4669 4670/usr/local/X11/include 4671/usr/local/X11R6/include 4672/usr/local/X11R5/include 4673/usr/local/X11R4/include 4674 4675/usr/local/include/X11 4676/usr/local/include/X11R6 4677/usr/local/include/X11R5 4678/usr/local/include/X11R4 4679 4680/usr/X386/include 4681/usr/x386/include 4682/usr/XFree86/include/X11 4683 4684/usr/include 4685/usr/local/include 4686/usr/unsupported/include 4687/usr/athena/include 4688/usr/local/x11r5/include 4689/usr/lpp/Xamples/include 4690 4691/usr/openwin/include 4692/usr/openwin/share/include' 4693 4694if test "$ac_x_includes" = no; then 4695 # Guess where to find include files, by looking for Intrinsic.h. 4696 # First, try using that file with no special directory specified. 4697 cat >conftest.$ac_ext <<_ACEOF 4698/* confdefs.h. */ 4699_ACEOF 4700cat confdefs.h >>conftest.$ac_ext 4701cat >>conftest.$ac_ext <<_ACEOF 4702/* end confdefs.h. */ 4703#include <X11/Intrinsic.h> 4704_ACEOF 4705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4707 ac_status=$? 4708 grep -v '^ *+' conftest.er1 >conftest.err 4709 rm -f conftest.er1 4710 cat conftest.err >&5 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); } >/dev/null; then 4713 if test -s conftest.err; then 4714 ac_cpp_err=$ac_c_preproc_warn_flag 4715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4716 else 4717 ac_cpp_err= 4718 fi 4719else 4720 ac_cpp_err=yes 4721fi 4722if test -z "$ac_cpp_err"; then 4723 # We can compile using X headers with no special include directory. 4724ac_x_includes= 4725else 4726 echo "$as_me: failed program was:" >&5 4727sed 's/^/| /' conftest.$ac_ext >&5 4728 4729 for ac_dir in $ac_x_header_dirs; do 4730 if test -r "$ac_dir/X11/Intrinsic.h"; then 4731 ac_x_includes=$ac_dir 4732 break 4733 fi 4734done 4735fi 4736rm -f conftest.err conftest.$ac_ext 4737fi # $ac_x_includes = no 4738 4739if test "$ac_x_libraries" = no; then 4740 # Check for the libraries. 4741 # See if we find them without any special options. 4742 # Don't add to $LIBS permanently. 4743 ac_save_LIBS=$LIBS 4744 LIBS="-lXt $LIBS" 4745 cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751#include <X11/Intrinsic.h> 4752int 4753main () 4754{ 4755XtMalloc (0) 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760rm -f conftest.$ac_objext conftest$ac_exeext 4761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4762 (eval $ac_link) 2>conftest.er1 4763 ac_status=$? 4764 grep -v '^ *+' conftest.er1 >conftest.err 4765 rm -f conftest.er1 4766 cat conftest.err >&5 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } && 4769 { ac_try='test -z "$ac_c_werror_flag" 4770 || test ! -s conftest.err' 4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4772 (eval $ac_try) 2>&5 4773 ac_status=$? 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); }; } && 4776 { ac_try='test -s conftest$ac_exeext' 4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4778 (eval $ac_try) 2>&5 4779 ac_status=$? 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); }; }; then 4782 LIBS=$ac_save_LIBS 4783# We can link X programs with no special library path. 4784ac_x_libraries= 4785else 4786 echo "$as_me: failed program was:" >&5 4787sed 's/^/| /' conftest.$ac_ext >&5 4788 4789LIBS=$ac_save_LIBS 4790for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4791do 4792 # Don't even attempt the hair of trying to link an X program! 4793 for ac_extension in a so sl; do 4794 if test -r $ac_dir/libXt.$ac_extension; then 4795 ac_x_libraries=$ac_dir 4796 break 2 4797 fi 4798 done 4799done 4800fi 4801rm -f conftest.err conftest.$ac_objext \ 4802 conftest$ac_exeext conftest.$ac_ext 4803fi # $ac_x_libraries = no 4804 4805if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 4806 # Didn't find X anywhere. Cache the known absence of X. 4807 ac_cv_have_x="have_x=no" 4808else 4809 # Record where we found X for the cache. 4810 ac_cv_have_x="have_x=yes \ 4811 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 4812fi 4813fi 4814 4815 fi 4816 eval "$ac_cv_have_x" 4817fi # $with_x != no 4818 4819if test "$have_x" != yes; then 4820 echo "$as_me:$LINENO: result: $have_x" >&5 4821echo "${ECHO_T}$have_x" >&6 4822 no_x=yes 4823else 4824 # If each of the values was on the command line, it overrides each guess. 4825 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4826 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4827 # Update the cache value to reflect the command line values. 4828 ac_cv_have_x="have_x=yes \ 4829 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4830 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4831echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 4832fi 4833 4834if test "$no_x" = yes; then 4835 # Not all programs may use this symbol, but it does not hurt to define it. 4836 4837cat >>confdefs.h <<\_ACEOF 4838#define X_DISPLAY_MISSING 1 4839_ACEOF 4840 4841 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4842else 4843 if test -n "$x_includes"; then 4844 X_CFLAGS="$X_CFLAGS -I$x_includes" 4845 fi 4846 4847 # It would also be nice to do this for all -L options, not just this one. 4848 if test -n "$x_libraries"; then 4849 X_LIBS="$X_LIBS -L$x_libraries" 4850 # For Solaris; some versions of Sun CC require a space after -R and 4851 # others require no space. Words are not sufficient . . . . 4852 case `(uname -sr) 2>/dev/null` in 4853 "SunOS 5"*) 4854 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 4855echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 4856 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4857 cat >conftest.$ac_ext <<_ACEOF 4858/* confdefs.h. */ 4859_ACEOF 4860cat confdefs.h >>conftest.$ac_ext 4861cat >>conftest.$ac_ext <<_ACEOF 4862/* end confdefs.h. */ 4863 4864int 4865main () 4866{ 4867 4868 ; 4869 return 0; 4870} 4871_ACEOF 4872rm -f conftest.$ac_objext conftest$ac_exeext 4873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4874 (eval $ac_link) 2>conftest.er1 4875 ac_status=$? 4876 grep -v '^ *+' conftest.er1 >conftest.err 4877 rm -f conftest.er1 4878 cat conftest.err >&5 4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4880 (exit $ac_status); } && 4881 { ac_try='test -z "$ac_c_werror_flag" 4882 || test ! -s conftest.err' 4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4884 (eval $ac_try) 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); }; } && 4888 { ac_try='test -s conftest$ac_exeext' 4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4890 (eval $ac_try) 2>&5 4891 ac_status=$? 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); }; }; then 4894 ac_R_nospace=yes 4895else 4896 echo "$as_me: failed program was:" >&5 4897sed 's/^/| /' conftest.$ac_ext >&5 4898 4899ac_R_nospace=no 4900fi 4901rm -f conftest.err conftest.$ac_objext \ 4902 conftest$ac_exeext conftest.$ac_ext 4903 if test $ac_R_nospace = yes; then 4904 echo "$as_me:$LINENO: result: no" >&5 4905echo "${ECHO_T}no" >&6 4906 X_LIBS="$X_LIBS -R$x_libraries" 4907 else 4908 LIBS="$ac_xsave_LIBS -R $x_libraries" 4909 cat >conftest.$ac_ext <<_ACEOF 4910/* confdefs.h. */ 4911_ACEOF 4912cat confdefs.h >>conftest.$ac_ext 4913cat >>conftest.$ac_ext <<_ACEOF 4914/* end confdefs.h. */ 4915 4916int 4917main () 4918{ 4919 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924rm -f conftest.$ac_objext conftest$ac_exeext 4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4926 (eval $ac_link) 2>conftest.er1 4927 ac_status=$? 4928 grep -v '^ *+' conftest.er1 >conftest.err 4929 rm -f conftest.er1 4930 cat conftest.err >&5 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); } && 4933 { ac_try='test -z "$ac_c_werror_flag" 4934 || test ! -s conftest.err' 4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4936 (eval $ac_try) 2>&5 4937 ac_status=$? 4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4939 (exit $ac_status); }; } && 4940 { ac_try='test -s conftest$ac_exeext' 4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4942 (eval $ac_try) 2>&5 4943 ac_status=$? 4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4945 (exit $ac_status); }; }; then 4946 ac_R_space=yes 4947else 4948 echo "$as_me: failed program was:" >&5 4949sed 's/^/| /' conftest.$ac_ext >&5 4950 4951ac_R_space=no 4952fi 4953rm -f conftest.err conftest.$ac_objext \ 4954 conftest$ac_exeext conftest.$ac_ext 4955 if test $ac_R_space = yes; then 4956 echo "$as_me:$LINENO: result: yes" >&5 4957echo "${ECHO_T}yes" >&6 4958 X_LIBS="$X_LIBS -R $x_libraries" 4959 else 4960 echo "$as_me:$LINENO: result: neither works" >&5 4961echo "${ECHO_T}neither works" >&6 4962 fi 4963 fi 4964 LIBS=$ac_xsave_LIBS 4965 esac 4966 fi 4967 4968 # Check for system-dependent libraries X programs must link with. 4969 # Do this before checking for the system-independent R6 libraries 4970 # (-lICE), since we may need -lsocket or whatever for X linking. 4971 4972 if test "$ISC" = yes; then 4973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 4974 else 4975 # Martyn Johnson says this is needed for Ultrix, if the X 4976 # libraries were built with DECnet support. And Karl Berry says 4977 # the Alpha needs dnet_stub (dnet does not exist). 4978 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 4979 cat >conftest.$ac_ext <<_ACEOF 4980/* confdefs.h. */ 4981_ACEOF 4982cat confdefs.h >>conftest.$ac_ext 4983cat >>conftest.$ac_ext <<_ACEOF 4984/* end confdefs.h. */ 4985 4986/* Override any gcc2 internal prototype to avoid an error. */ 4987#ifdef __cplusplus 4988extern "C" 4989#endif 4990/* We use char because int might match the return type of a gcc2 4991 builtin and then its argument prototype would still apply. */ 4992char XOpenDisplay (); 4993int 4994main () 4995{ 4996XOpenDisplay (); 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001rm -f conftest.$ac_objext conftest$ac_exeext 5002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5003 (eval $ac_link) 2>conftest.er1 5004 ac_status=$? 5005 grep -v '^ *+' conftest.er1 >conftest.err 5006 rm -f conftest.er1 5007 cat conftest.err >&5 5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); } && 5010 { ac_try='test -z "$ac_c_werror_flag" 5011 || test ! -s conftest.err' 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5013 (eval $ac_try) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); }; } && 5017 { ac_try='test -s conftest$ac_exeext' 5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); }; }; then 5023 : 5024else 5025 echo "$as_me: failed program was:" >&5 5026sed 's/^/| /' conftest.$ac_ext >&5 5027 5028echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5029echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 5030if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5031 echo $ECHO_N "(cached) $ECHO_C" >&6 5032else 5033 ac_check_lib_save_LIBS=$LIBS 5034LIBS="-ldnet $LIBS" 5035cat >conftest.$ac_ext <<_ACEOF 5036/* confdefs.h. */ 5037_ACEOF 5038cat confdefs.h >>conftest.$ac_ext 5039cat >>conftest.$ac_ext <<_ACEOF 5040/* end confdefs.h. */ 5041 5042/* Override any gcc2 internal prototype to avoid an error. */ 5043#ifdef __cplusplus 5044extern "C" 5045#endif 5046/* We use char because int might match the return type of a gcc2 5047 builtin and then its argument prototype would still apply. */ 5048char dnet_ntoa (); 5049int 5050main () 5051{ 5052dnet_ntoa (); 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057rm -f conftest.$ac_objext conftest$ac_exeext 5058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5059 (eval $ac_link) 2>conftest.er1 5060 ac_status=$? 5061 grep -v '^ *+' conftest.er1 >conftest.err 5062 rm -f conftest.er1 5063 cat conftest.err >&5 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); } && 5066 { ac_try='test -z "$ac_c_werror_flag" 5067 || test ! -s conftest.err' 5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5069 (eval $ac_try) 2>&5 5070 ac_status=$? 5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5072 (exit $ac_status); }; } && 5073 { ac_try='test -s conftest$ac_exeext' 5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5075 (eval $ac_try) 2>&5 5076 ac_status=$? 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); }; }; then 5079 ac_cv_lib_dnet_dnet_ntoa=yes 5080else 5081 echo "$as_me: failed program was:" >&5 5082sed 's/^/| /' conftest.$ac_ext >&5 5083 5084ac_cv_lib_dnet_dnet_ntoa=no 5085fi 5086rm -f conftest.err conftest.$ac_objext \ 5087 conftest$ac_exeext conftest.$ac_ext 5088LIBS=$ac_check_lib_save_LIBS 5089fi 5090echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5091echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 5092if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5093 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5094fi 5095 5096 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5098echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 5099if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5100 echo $ECHO_N "(cached) $ECHO_C" >&6 5101else 5102 ac_check_lib_save_LIBS=$LIBS 5103LIBS="-ldnet_stub $LIBS" 5104cat >conftest.$ac_ext <<_ACEOF 5105/* confdefs.h. */ 5106_ACEOF 5107cat confdefs.h >>conftest.$ac_ext 5108cat >>conftest.$ac_ext <<_ACEOF 5109/* end confdefs.h. */ 5110 5111/* Override any gcc2 internal prototype to avoid an error. */ 5112#ifdef __cplusplus 5113extern "C" 5114#endif 5115/* We use char because int might match the return type of a gcc2 5116 builtin and then its argument prototype would still apply. */ 5117char dnet_ntoa (); 5118int 5119main () 5120{ 5121dnet_ntoa (); 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126rm -f conftest.$ac_objext conftest$ac_exeext 5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5128 (eval $ac_link) 2>conftest.er1 5129 ac_status=$? 5130 grep -v '^ *+' conftest.er1 >conftest.err 5131 rm -f conftest.er1 5132 cat conftest.err >&5 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } && 5135 { ac_try='test -z "$ac_c_werror_flag" 5136 || test ! -s conftest.err' 5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5138 (eval $ac_try) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); }; } && 5142 { ac_try='test -s conftest$ac_exeext' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153ac_cv_lib_dnet_stub_dnet_ntoa=no 5154fi 5155rm -f conftest.err conftest.$ac_objext \ 5156 conftest$ac_exeext conftest.$ac_ext 5157LIBS=$ac_check_lib_save_LIBS 5158fi 5159echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5160echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 5161if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5162 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5163fi 5164 5165 fi 5166fi 5167rm -f conftest.err conftest.$ac_objext \ 5168 conftest$ac_exeext conftest.$ac_ext 5169 LIBS="$ac_xsave_LIBS" 5170 5171 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5172 # to get the SysV transport functions. 5173 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5174 # needs -lnsl. 5175 # The nsl library prevents programs from opening the X display 5176 # on Irix 5.2, according to T.E. Dickey. 5177 # The functions gethostbyname, getservbyname, and inet_addr are 5178 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5179 echo "$as_me:$LINENO: checking for gethostbyname" >&5 5180echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 5181if test "${ac_cv_func_gethostbyname+set}" = set; then 5182 echo $ECHO_N "(cached) $ECHO_C" >&6 5183else 5184 cat >conftest.$ac_ext <<_ACEOF 5185/* confdefs.h. */ 5186_ACEOF 5187cat confdefs.h >>conftest.$ac_ext 5188cat >>conftest.$ac_ext <<_ACEOF 5189/* end confdefs.h. */ 5190/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5192#define gethostbyname innocuous_gethostbyname 5193 5194/* System header to define __stub macros and hopefully few prototypes, 5195 which can conflict with char gethostbyname (); below. 5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5197 <limits.h> exists even on freestanding compilers. */ 5198 5199#ifdef __STDC__ 5200# include <limits.h> 5201#else 5202# include <assert.h> 5203#endif 5204 5205#undef gethostbyname 5206 5207/* Override any gcc2 internal prototype to avoid an error. */ 5208#ifdef __cplusplus 5209extern "C" 5210{ 5211#endif 5212/* We use char because int might match the return type of a gcc2 5213 builtin and then its argument prototype would still apply. */ 5214char gethostbyname (); 5215/* The GNU C library defines this for functions which it implements 5216 to always fail with ENOSYS. Some functions are actually named 5217 something starting with __ and the normal name is an alias. */ 5218#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 5219choke me 5220#else 5221char (*f) () = gethostbyname; 5222#endif 5223#ifdef __cplusplus 5224} 5225#endif 5226 5227int 5228main () 5229{ 5230return f != gethostbyname; 5231 ; 5232 return 0; 5233} 5234_ACEOF 5235rm -f conftest.$ac_objext conftest$ac_exeext 5236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5237 (eval $ac_link) 2>conftest.er1 5238 ac_status=$? 5239 grep -v '^ *+' conftest.er1 >conftest.err 5240 rm -f conftest.er1 5241 cat conftest.err >&5 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); } && 5244 { ac_try='test -z "$ac_c_werror_flag" 5245 || test ! -s conftest.err' 5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5247 (eval $ac_try) 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); }; } && 5251 { ac_try='test -s conftest$ac_exeext' 5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5253 (eval $ac_try) 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); }; }; then 5257 ac_cv_func_gethostbyname=yes 5258else 5259 echo "$as_me: failed program was:" >&5 5260sed 's/^/| /' conftest.$ac_ext >&5 5261 5262ac_cv_func_gethostbyname=no 5263fi 5264rm -f conftest.err conftest.$ac_objext \ 5265 conftest$ac_exeext conftest.$ac_ext 5266fi 5267echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5268echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 5269 5270 if test $ac_cv_func_gethostbyname = no; then 5271 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5272echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 5273if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5274 echo $ECHO_N "(cached) $ECHO_C" >&6 5275else 5276 ac_check_lib_save_LIBS=$LIBS 5277LIBS="-lnsl $LIBS" 5278cat >conftest.$ac_ext <<_ACEOF 5279/* confdefs.h. */ 5280_ACEOF 5281cat confdefs.h >>conftest.$ac_ext 5282cat >>conftest.$ac_ext <<_ACEOF 5283/* end confdefs.h. */ 5284 5285/* Override any gcc2 internal prototype to avoid an error. */ 5286#ifdef __cplusplus 5287extern "C" 5288#endif 5289/* We use char because int might match the return type of a gcc2 5290 builtin and then its argument prototype would still apply. */ 5291char gethostbyname (); 5292int 5293main () 5294{ 5295gethostbyname (); 5296 ; 5297 return 0; 5298} 5299_ACEOF 5300rm -f conftest.$ac_objext conftest$ac_exeext 5301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5302 (eval $ac_link) 2>conftest.er1 5303 ac_status=$? 5304 grep -v '^ *+' conftest.er1 >conftest.err 5305 rm -f conftest.er1 5306 cat conftest.err >&5 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); } && 5309 { ac_try='test -z "$ac_c_werror_flag" 5310 || test ! -s conftest.err' 5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5312 (eval $ac_try) 2>&5 5313 ac_status=$? 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5315 (exit $ac_status); }; } && 5316 { ac_try='test -s conftest$ac_exeext' 5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5318 (eval $ac_try) 2>&5 5319 ac_status=$? 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); }; }; then 5322 ac_cv_lib_nsl_gethostbyname=yes 5323else 5324 echo "$as_me: failed program was:" >&5 5325sed 's/^/| /' conftest.$ac_ext >&5 5326 5327ac_cv_lib_nsl_gethostbyname=no 5328fi 5329rm -f conftest.err conftest.$ac_objext \ 5330 conftest$ac_exeext conftest.$ac_ext 5331LIBS=$ac_check_lib_save_LIBS 5332fi 5333echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5334echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 5335if test $ac_cv_lib_nsl_gethostbyname = yes; then 5336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5337fi 5338 5339 if test $ac_cv_lib_nsl_gethostbyname = no; then 5340 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5341echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 5342if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5343 echo $ECHO_N "(cached) $ECHO_C" >&6 5344else 5345 ac_check_lib_save_LIBS=$LIBS 5346LIBS="-lbsd $LIBS" 5347cat >conftest.$ac_ext <<_ACEOF 5348/* confdefs.h. */ 5349_ACEOF 5350cat confdefs.h >>conftest.$ac_ext 5351cat >>conftest.$ac_ext <<_ACEOF 5352/* end confdefs.h. */ 5353 5354/* Override any gcc2 internal prototype to avoid an error. */ 5355#ifdef __cplusplus 5356extern "C" 5357#endif 5358/* We use char because int might match the return type of a gcc2 5359 builtin and then its argument prototype would still apply. */ 5360char gethostbyname (); 5361int 5362main () 5363{ 5364gethostbyname (); 5365 ; 5366 return 0; 5367} 5368_ACEOF 5369rm -f conftest.$ac_objext conftest$ac_exeext 5370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5371 (eval $ac_link) 2>conftest.er1 5372 ac_status=$? 5373 grep -v '^ *+' conftest.er1 >conftest.err 5374 rm -f conftest.er1 5375 cat conftest.err >&5 5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5377 (exit $ac_status); } && 5378 { ac_try='test -z "$ac_c_werror_flag" 5379 || test ! -s conftest.err' 5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5381 (eval $ac_try) 2>&5 5382 ac_status=$? 5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5384 (exit $ac_status); }; } && 5385 { ac_try='test -s conftest$ac_exeext' 5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5387 (eval $ac_try) 2>&5 5388 ac_status=$? 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); }; }; then 5391 ac_cv_lib_bsd_gethostbyname=yes 5392else 5393 echo "$as_me: failed program was:" >&5 5394sed 's/^/| /' conftest.$ac_ext >&5 5395 5396ac_cv_lib_bsd_gethostbyname=no 5397fi 5398rm -f conftest.err conftest.$ac_objext \ 5399 conftest$ac_exeext conftest.$ac_ext 5400LIBS=$ac_check_lib_save_LIBS 5401fi 5402echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 5403echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 5404if test $ac_cv_lib_bsd_gethostbyname = yes; then 5405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5406fi 5407 5408 fi 5409 fi 5410 5411 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5412 # socket/setsockopt and other routines are undefined under SCO ODT 5413 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5414 # on later versions), says Simon Leinen: it contains gethostby* 5415 # variants that don't use the name server (or something). -lsocket 5416 # must be given before -lnsl if both are needed. We assume that 5417 # if connect needs -lnsl, so does gethostbyname. 5418 echo "$as_me:$LINENO: checking for connect" >&5 5419echo $ECHO_N "checking for connect... $ECHO_C" >&6 5420if test "${ac_cv_func_connect+set}" = set; then 5421 echo $ECHO_N "(cached) $ECHO_C" >&6 5422else 5423 cat >conftest.$ac_ext <<_ACEOF 5424/* confdefs.h. */ 5425_ACEOF 5426cat confdefs.h >>conftest.$ac_ext 5427cat >>conftest.$ac_ext <<_ACEOF 5428/* end confdefs.h. */ 5429/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5430 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5431#define connect innocuous_connect 5432 5433/* System header to define __stub macros and hopefully few prototypes, 5434 which can conflict with char connect (); below. 5435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5436 <limits.h> exists even on freestanding compilers. */ 5437 5438#ifdef __STDC__ 5439# include <limits.h> 5440#else 5441# include <assert.h> 5442#endif 5443 5444#undef connect 5445 5446/* Override any gcc2 internal prototype to avoid an error. */ 5447#ifdef __cplusplus 5448extern "C" 5449{ 5450#endif 5451/* We use char because int might match the return type of a gcc2 5452 builtin and then its argument prototype would still apply. */ 5453char connect (); 5454/* The GNU C library defines this for functions which it implements 5455 to always fail with ENOSYS. Some functions are actually named 5456 something starting with __ and the normal name is an alias. */ 5457#if defined (__stub_connect) || defined (__stub___connect) 5458choke me 5459#else 5460char (*f) () = connect; 5461#endif 5462#ifdef __cplusplus 5463} 5464#endif 5465 5466int 5467main () 5468{ 5469return f != connect; 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474rm -f conftest.$ac_objext conftest$ac_exeext 5475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5476 (eval $ac_link) 2>conftest.er1 5477 ac_status=$? 5478 grep -v '^ *+' conftest.er1 >conftest.err 5479 rm -f conftest.er1 5480 cat conftest.err >&5 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5482 (exit $ac_status); } && 5483 { ac_try='test -z "$ac_c_werror_flag" 5484 || test ! -s conftest.err' 5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5486 (eval $ac_try) 2>&5 5487 ac_status=$? 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); }; } && 5490 { ac_try='test -s conftest$ac_exeext' 5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5492 (eval $ac_try) 2>&5 5493 ac_status=$? 5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5495 (exit $ac_status); }; }; then 5496 ac_cv_func_connect=yes 5497else 5498 echo "$as_me: failed program was:" >&5 5499sed 's/^/| /' conftest.$ac_ext >&5 5500 5501ac_cv_func_connect=no 5502fi 5503rm -f conftest.err conftest.$ac_objext \ 5504 conftest$ac_exeext conftest.$ac_ext 5505fi 5506echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5507echo "${ECHO_T}$ac_cv_func_connect" >&6 5508 5509 if test $ac_cv_func_connect = no; then 5510 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 5511echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 5512if test "${ac_cv_lib_socket_connect+set}" = set; then 5513 echo $ECHO_N "(cached) $ECHO_C" >&6 5514else 5515 ac_check_lib_save_LIBS=$LIBS 5516LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5517cat >conftest.$ac_ext <<_ACEOF 5518/* confdefs.h. */ 5519_ACEOF 5520cat confdefs.h >>conftest.$ac_ext 5521cat >>conftest.$ac_ext <<_ACEOF 5522/* end confdefs.h. */ 5523 5524/* Override any gcc2 internal prototype to avoid an error. */ 5525#ifdef __cplusplus 5526extern "C" 5527#endif 5528/* We use char because int might match the return type of a gcc2 5529 builtin and then its argument prototype would still apply. */ 5530char connect (); 5531int 5532main () 5533{ 5534connect (); 5535 ; 5536 return 0; 5537} 5538_ACEOF 5539rm -f conftest.$ac_objext conftest$ac_exeext 5540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5541 (eval $ac_link) 2>conftest.er1 5542 ac_status=$? 5543 grep -v '^ *+' conftest.er1 >conftest.err 5544 rm -f conftest.er1 5545 cat conftest.err >&5 5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5547 (exit $ac_status); } && 5548 { ac_try='test -z "$ac_c_werror_flag" 5549 || test ! -s conftest.err' 5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5551 (eval $ac_try) 2>&5 5552 ac_status=$? 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); }; } && 5555 { ac_try='test -s conftest$ac_exeext' 5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5557 (eval $ac_try) 2>&5 5558 ac_status=$? 5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5560 (exit $ac_status); }; }; then 5561 ac_cv_lib_socket_connect=yes 5562else 5563 echo "$as_me: failed program was:" >&5 5564sed 's/^/| /' conftest.$ac_ext >&5 5565 5566ac_cv_lib_socket_connect=no 5567fi 5568rm -f conftest.err conftest.$ac_objext \ 5569 conftest$ac_exeext conftest.$ac_ext 5570LIBS=$ac_check_lib_save_LIBS 5571fi 5572echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 5573echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 5574if test $ac_cv_lib_socket_connect = yes; then 5575 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5576fi 5577 5578 fi 5579 5580 # Guillermo Gomez says -lposix is necessary on A/UX. 5581 echo "$as_me:$LINENO: checking for remove" >&5 5582echo $ECHO_N "checking for remove... $ECHO_C" >&6 5583if test "${ac_cv_func_remove+set}" = set; then 5584 echo $ECHO_N "(cached) $ECHO_C" >&6 5585else 5586 cat >conftest.$ac_ext <<_ACEOF 5587/* confdefs.h. */ 5588_ACEOF 5589cat confdefs.h >>conftest.$ac_ext 5590cat >>conftest.$ac_ext <<_ACEOF 5591/* end confdefs.h. */ 5592/* Define remove to an innocuous variant, in case <limits.h> declares remove. 5593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5594#define remove innocuous_remove 5595 5596/* System header to define __stub macros and hopefully few prototypes, 5597 which can conflict with char remove (); below. 5598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5599 <limits.h> exists even on freestanding compilers. */ 5600 5601#ifdef __STDC__ 5602# include <limits.h> 5603#else 5604# include <assert.h> 5605#endif 5606 5607#undef remove 5608 5609/* Override any gcc2 internal prototype to avoid an error. */ 5610#ifdef __cplusplus 5611extern "C" 5612{ 5613#endif 5614/* We use char because int might match the return type of a gcc2 5615 builtin and then its argument prototype would still apply. */ 5616char remove (); 5617/* The GNU C library defines this for functions which it implements 5618 to always fail with ENOSYS. Some functions are actually named 5619 something starting with __ and the normal name is an alias. */ 5620#if defined (__stub_remove) || defined (__stub___remove) 5621choke me 5622#else 5623char (*f) () = remove; 5624#endif 5625#ifdef __cplusplus 5626} 5627#endif 5628 5629int 5630main () 5631{ 5632return f != remove; 5633 ; 5634 return 0; 5635} 5636_ACEOF 5637rm -f conftest.$ac_objext conftest$ac_exeext 5638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5639 (eval $ac_link) 2>conftest.er1 5640 ac_status=$? 5641 grep -v '^ *+' conftest.er1 >conftest.err 5642 rm -f conftest.er1 5643 cat conftest.err >&5 5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5645 (exit $ac_status); } && 5646 { ac_try='test -z "$ac_c_werror_flag" 5647 || test ! -s conftest.err' 5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5649 (eval $ac_try) 2>&5 5650 ac_status=$? 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); }; } && 5653 { ac_try='test -s conftest$ac_exeext' 5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5655 (eval $ac_try) 2>&5 5656 ac_status=$? 5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); }; }; then 5659 ac_cv_func_remove=yes 5660else 5661 echo "$as_me: failed program was:" >&5 5662sed 's/^/| /' conftest.$ac_ext >&5 5663 5664ac_cv_func_remove=no 5665fi 5666rm -f conftest.err conftest.$ac_objext \ 5667 conftest$ac_exeext conftest.$ac_ext 5668fi 5669echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 5670echo "${ECHO_T}$ac_cv_func_remove" >&6 5671 5672 if test $ac_cv_func_remove = no; then 5673 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 5674echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 5675if test "${ac_cv_lib_posix_remove+set}" = set; then 5676 echo $ECHO_N "(cached) $ECHO_C" >&6 5677else 5678 ac_check_lib_save_LIBS=$LIBS 5679LIBS="-lposix $LIBS" 5680cat >conftest.$ac_ext <<_ACEOF 5681/* confdefs.h. */ 5682_ACEOF 5683cat confdefs.h >>conftest.$ac_ext 5684cat >>conftest.$ac_ext <<_ACEOF 5685/* end confdefs.h. */ 5686 5687/* Override any gcc2 internal prototype to avoid an error. */ 5688#ifdef __cplusplus 5689extern "C" 5690#endif 5691/* We use char because int might match the return type of a gcc2 5692 builtin and then its argument prototype would still apply. */ 5693char remove (); 5694int 5695main () 5696{ 5697remove (); 5698 ; 5699 return 0; 5700} 5701_ACEOF 5702rm -f conftest.$ac_objext conftest$ac_exeext 5703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5704 (eval $ac_link) 2>conftest.er1 5705 ac_status=$? 5706 grep -v '^ *+' conftest.er1 >conftest.err 5707 rm -f conftest.er1 5708 cat conftest.err >&5 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); } && 5711 { ac_try='test -z "$ac_c_werror_flag" 5712 || test ! -s conftest.err' 5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5714 (eval $ac_try) 2>&5 5715 ac_status=$? 5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5717 (exit $ac_status); }; } && 5718 { ac_try='test -s conftest$ac_exeext' 5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5720 (eval $ac_try) 2>&5 5721 ac_status=$? 5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); }; }; then 5724 ac_cv_lib_posix_remove=yes 5725else 5726 echo "$as_me: failed program was:" >&5 5727sed 's/^/| /' conftest.$ac_ext >&5 5728 5729ac_cv_lib_posix_remove=no 5730fi 5731rm -f conftest.err conftest.$ac_objext \ 5732 conftest$ac_exeext conftest.$ac_ext 5733LIBS=$ac_check_lib_save_LIBS 5734fi 5735echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 5736echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 5737if test $ac_cv_lib_posix_remove = yes; then 5738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5739fi 5740 5741 fi 5742 5743 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5744 echo "$as_me:$LINENO: checking for shmat" >&5 5745echo $ECHO_N "checking for shmat... $ECHO_C" >&6 5746if test "${ac_cv_func_shmat+set}" = set; then 5747 echo $ECHO_N "(cached) $ECHO_C" >&6 5748else 5749 cat >conftest.$ac_ext <<_ACEOF 5750/* confdefs.h. */ 5751_ACEOF 5752cat confdefs.h >>conftest.$ac_ext 5753cat >>conftest.$ac_ext <<_ACEOF 5754/* end confdefs.h. */ 5755/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 5756 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5757#define shmat innocuous_shmat 5758 5759/* System header to define __stub macros and hopefully few prototypes, 5760 which can conflict with char shmat (); below. 5761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5762 <limits.h> exists even on freestanding compilers. */ 5763 5764#ifdef __STDC__ 5765# include <limits.h> 5766#else 5767# include <assert.h> 5768#endif 5769 5770#undef shmat 5771 5772/* Override any gcc2 internal prototype to avoid an error. */ 5773#ifdef __cplusplus 5774extern "C" 5775{ 5776#endif 5777/* We use char because int might match the return type of a gcc2 5778 builtin and then its argument prototype would still apply. */ 5779char shmat (); 5780/* The GNU C library defines this for functions which it implements 5781 to always fail with ENOSYS. Some functions are actually named 5782 something starting with __ and the normal name is an alias. */ 5783#if defined (__stub_shmat) || defined (__stub___shmat) 5784choke me 5785#else 5786char (*f) () = shmat; 5787#endif 5788#ifdef __cplusplus 5789} 5790#endif 5791 5792int 5793main () 5794{ 5795return f != shmat; 5796 ; 5797 return 0; 5798} 5799_ACEOF 5800rm -f conftest.$ac_objext conftest$ac_exeext 5801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5802 (eval $ac_link) 2>conftest.er1 5803 ac_status=$? 5804 grep -v '^ *+' conftest.er1 >conftest.err 5805 rm -f conftest.er1 5806 cat conftest.err >&5 5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5808 (exit $ac_status); } && 5809 { ac_try='test -z "$ac_c_werror_flag" 5810 || test ! -s conftest.err' 5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5812 (eval $ac_try) 2>&5 5813 ac_status=$? 5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5815 (exit $ac_status); }; } && 5816 { ac_try='test -s conftest$ac_exeext' 5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5818 (eval $ac_try) 2>&5 5819 ac_status=$? 5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5821 (exit $ac_status); }; }; then 5822 ac_cv_func_shmat=yes 5823else 5824 echo "$as_me: failed program was:" >&5 5825sed 's/^/| /' conftest.$ac_ext >&5 5826 5827ac_cv_func_shmat=no 5828fi 5829rm -f conftest.err conftest.$ac_objext \ 5830 conftest$ac_exeext conftest.$ac_ext 5831fi 5832echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 5833echo "${ECHO_T}$ac_cv_func_shmat" >&6 5834 5835 if test $ac_cv_func_shmat = no; then 5836 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 5837echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 5838if test "${ac_cv_lib_ipc_shmat+set}" = set; then 5839 echo $ECHO_N "(cached) $ECHO_C" >&6 5840else 5841 ac_check_lib_save_LIBS=$LIBS 5842LIBS="-lipc $LIBS" 5843cat >conftest.$ac_ext <<_ACEOF 5844/* confdefs.h. */ 5845_ACEOF 5846cat confdefs.h >>conftest.$ac_ext 5847cat >>conftest.$ac_ext <<_ACEOF 5848/* end confdefs.h. */ 5849 5850/* Override any gcc2 internal prototype to avoid an error. */ 5851#ifdef __cplusplus 5852extern "C" 5853#endif 5854/* We use char because int might match the return type of a gcc2 5855 builtin and then its argument prototype would still apply. */ 5856char shmat (); 5857int 5858main () 5859{ 5860shmat (); 5861 ; 5862 return 0; 5863} 5864_ACEOF 5865rm -f conftest.$ac_objext conftest$ac_exeext 5866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5867 (eval $ac_link) 2>conftest.er1 5868 ac_status=$? 5869 grep -v '^ *+' conftest.er1 >conftest.err 5870 rm -f conftest.er1 5871 cat conftest.err >&5 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); } && 5874 { ac_try='test -z "$ac_c_werror_flag" 5875 || test ! -s conftest.err' 5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5877 (eval $ac_try) 2>&5 5878 ac_status=$? 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); }; } && 5881 { ac_try='test -s conftest$ac_exeext' 5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5883 (eval $ac_try) 2>&5 5884 ac_status=$? 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); }; }; then 5887 ac_cv_lib_ipc_shmat=yes 5888else 5889 echo "$as_me: failed program was:" >&5 5890sed 's/^/| /' conftest.$ac_ext >&5 5891 5892ac_cv_lib_ipc_shmat=no 5893fi 5894rm -f conftest.err conftest.$ac_objext \ 5895 conftest$ac_exeext conftest.$ac_ext 5896LIBS=$ac_check_lib_save_LIBS 5897fi 5898echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 5899echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 5900if test $ac_cv_lib_ipc_shmat = yes; then 5901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5902fi 5903 5904 fi 5905 fi 5906 5907 # Check for libraries that X11R6 Xt/Xaw programs need. 5908 ac_save_LDFLAGS=$LDFLAGS 5909 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5910 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5911 # check for ICE first), but we must link in the order -lSM -lICE or 5912 # we get undefined symbols. So assume we have SM if we have ICE. 5913 # These have to be linked with before -lX11, unlike the other 5914 # libraries we check for below, so use a different variable. 5915 # John Interrante, Karl Berry 5916 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 5917echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 5918if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 5919 echo $ECHO_N "(cached) $ECHO_C" >&6 5920else 5921 ac_check_lib_save_LIBS=$LIBS 5922LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5923cat >conftest.$ac_ext <<_ACEOF 5924/* confdefs.h. */ 5925_ACEOF 5926cat confdefs.h >>conftest.$ac_ext 5927cat >>conftest.$ac_ext <<_ACEOF 5928/* end confdefs.h. */ 5929 5930/* Override any gcc2 internal prototype to avoid an error. */ 5931#ifdef __cplusplus 5932extern "C" 5933#endif 5934/* We use char because int might match the return type of a gcc2 5935 builtin and then its argument prototype would still apply. */ 5936char IceConnectionNumber (); 5937int 5938main () 5939{ 5940IceConnectionNumber (); 5941 ; 5942 return 0; 5943} 5944_ACEOF 5945rm -f conftest.$ac_objext conftest$ac_exeext 5946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5947 (eval $ac_link) 2>conftest.er1 5948 ac_status=$? 5949 grep -v '^ *+' conftest.er1 >conftest.err 5950 rm -f conftest.er1 5951 cat conftest.err >&5 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); } && 5954 { ac_try='test -z "$ac_c_werror_flag" 5955 || test ! -s conftest.err' 5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5957 (eval $ac_try) 2>&5 5958 ac_status=$? 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); }; } && 5961 { ac_try='test -s conftest$ac_exeext' 5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5963 (eval $ac_try) 2>&5 5964 ac_status=$? 5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5966 (exit $ac_status); }; }; then 5967 ac_cv_lib_ICE_IceConnectionNumber=yes 5968else 5969 echo "$as_me: failed program was:" >&5 5970sed 's/^/| /' conftest.$ac_ext >&5 5971 5972ac_cv_lib_ICE_IceConnectionNumber=no 5973fi 5974rm -f conftest.err conftest.$ac_objext \ 5975 conftest$ac_exeext conftest.$ac_ext 5976LIBS=$ac_check_lib_save_LIBS 5977fi 5978echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 5979echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 5980if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 5981 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 5982fi 5983 5984 LDFLAGS=$ac_save_LDFLAGS 5985 5986fi 5987 5988 5989# Check whether --enable-xft or --disable-xft was given. 5990if test "${enable_xft+set}" = set; then 5991 enableval="$enable_xft" 5992 5993fi; 5994 5995 5996# Check whether --with-xawlib or --without-xawlib was given. 5997if test "${with_xawlib+set}" = set; then 5998 withval="$with_xawlib" 5999 with_xawlib="$withval" 6000else 6001 with_xawlib="xaw3d,xaw" 6002fi; 6003 6004# Checks for X 6005if test "x$with_x" = xyes; then 6006 if test "x$have_x" = xno; then 6007 if test "x$x_config_flag" = xyes; then 6008 { { echo "$as_me:$LINENO: error: Could not configure X" >&5 6009echo "$as_me: error: Could not configure X" >&2;} 6010 { (exit 1); exit 1; }; } 6011 else 6012 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5 6013echo "$as_me: WARNING: Could not configure X" >&2;} 6014 fi 6015 fi 6016fi 6017if test "x$with_x" = xyes -a "x$have_x" = xyes; then 6018 if test "x$x_libraries" != x; then 6019 ldflags_x_opt="-L$x_libraries" 6020 LDFLAGS="$LDFLAGS $ldflags_x_opt" 6021 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt" 6022 else 6023 ldflags_x_opt= 6024 fi 6025 if test "x$x_includes" != x; then 6026 CPPFLAGS="$CPPFLAGS -I$x_includes" 6027 fi 6028 6029 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 6030echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 6031if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 6032 echo $ECHO_N "(cached) $ECHO_C" >&6 6033else 6034 ac_check_lib_save_LIBS=$LIBS 6035LIBS="-lX11 $LIBS" 6036cat >conftest.$ac_ext <<_ACEOF 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042 6043/* Override any gcc2 internal prototype to avoid an error. */ 6044#ifdef __cplusplus 6045extern "C" 6046#endif 6047/* We use char because int might match the return type of a gcc2 6048 builtin and then its argument prototype would still apply. */ 6049char XOpenDisplay (); 6050int 6051main () 6052{ 6053XOpenDisplay (); 6054 ; 6055 return 0; 6056} 6057_ACEOF 6058rm -f conftest.$ac_objext conftest$ac_exeext 6059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6060 (eval $ac_link) 2>conftest.er1 6061 ac_status=$? 6062 grep -v '^ *+' conftest.er1 >conftest.err 6063 rm -f conftest.er1 6064 cat conftest.err >&5 6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6066 (exit $ac_status); } && 6067 { ac_try='test -z "$ac_c_werror_flag" 6068 || test ! -s conftest.err' 6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6070 (eval $ac_try) 2>&5 6071 ac_status=$? 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); }; } && 6074 { ac_try='test -s conftest$ac_exeext' 6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6076 (eval $ac_try) 2>&5 6077 ac_status=$? 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); }; }; then 6080 ac_cv_lib_X11_XOpenDisplay=yes 6081else 6082 echo "$as_me: failed program was:" >&5 6083sed 's/^/| /' conftest.$ac_ext >&5 6084 6085ac_cv_lib_X11_XOpenDisplay=no 6086fi 6087rm -f conftest.err conftest.$ac_objext \ 6088 conftest$ac_exeext conftest.$ac_ext 6089LIBS=$ac_check_lib_save_LIBS 6090fi 6091echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5 6092echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 6093if test $ac_cv_lib_X11_XOpenDisplay = yes; then 6094 6095cat >>confdefs.h <<\_ACEOF 6096#define HAVE_LIBX11 1 6097_ACEOF 6098 6099fi 6100 6101 echo "$as_me:$LINENO: checking X11 version 6" >&5 6102echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 6103 if test "${timidity_cv_x11_version_6+set}" = set; then 6104 echo $ECHO_N "(cached) $ECHO_C" >&6 6105else 6106 cat >conftest.$ac_ext <<_ACEOF 6107/* confdefs.h. */ 6108_ACEOF 6109cat confdefs.h >>conftest.$ac_ext 6110cat >>conftest.$ac_ext <<_ACEOF 6111/* end confdefs.h. */ 6112#include <X11/Xlib.h> 6113int 6114main () 6115{ 6116 6117#if XlibSpecificationRelease < 6 6118fail; 6119#endif 6120 6121 ; 6122 return 0; 6123} 6124_ACEOF 6125rm -f conftest.$ac_objext conftest$ac_exeext 6126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6127 (eval $ac_link) 2>conftest.er1 6128 ac_status=$? 6129 grep -v '^ *+' conftest.er1 >conftest.err 6130 rm -f conftest.er1 6131 cat conftest.err >&5 6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6133 (exit $ac_status); } && 6134 { ac_try='test -z "$ac_c_werror_flag" 6135 || test ! -s conftest.err' 6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6137 (eval $ac_try) 2>&5 6138 ac_status=$? 6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6140 (exit $ac_status); }; } && 6141 { ac_try='test -s conftest$ac_exeext' 6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6143 (eval $ac_try) 2>&5 6144 ac_status=$? 6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6146 (exit $ac_status); }; }; then 6147 timidity_cv_x11_version_6=yes 6148else 6149 echo "$as_me: failed program was:" >&5 6150sed 's/^/| /' conftest.$ac_ext >&5 6151 6152timidity_cv_x11_version_6=no 6153fi 6154rm -f conftest.err conftest.$ac_objext \ 6155 conftest$ac_exeext conftest.$ac_ext 6156fi 6157 6158 if test "$timidity_cv_x11_version_6" = "yes"; then 6159 echo "$as_me:$LINENO: result: 6 or newer" >&5 6160echo "${ECHO_T}6 or newer" >&6 6161 else 6162 echo "$as_me:$LINENO: result: before 6" >&5 6163echo "${ECHO_T}before 6" >&6 6164 fi 6165 6166 KEEPLIBS=$LIBS 6167 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5 6168echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6 6169if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then 6170 echo $ECHO_N "(cached) $ECHO_C" >&6 6171else 6172 ac_check_lib_save_LIBS=$LIBS 6173LIBS="-lXext $LIBS" 6174cat >conftest.$ac_ext <<_ACEOF 6175/* confdefs.h. */ 6176_ACEOF 6177cat confdefs.h >>conftest.$ac_ext 6178cat >>conftest.$ac_ext <<_ACEOF 6179/* end confdefs.h. */ 6180 6181/* Override any gcc2 internal prototype to avoid an error. */ 6182#ifdef __cplusplus 6183extern "C" 6184#endif 6185/* We use char because int might match the return type of a gcc2 6186 builtin and then its argument prototype would still apply. */ 6187char XShapeCombineMask (); 6188int 6189main () 6190{ 6191XShapeCombineMask (); 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196rm -f conftest.$ac_objext conftest$ac_exeext 6197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6198 (eval $ac_link) 2>conftest.er1 6199 ac_status=$? 6200 grep -v '^ *+' conftest.er1 >conftest.err 6201 rm -f conftest.er1 6202 cat conftest.err >&5 6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 (exit $ac_status); } && 6205 { ac_try='test -z "$ac_c_werror_flag" 6206 || test ! -s conftest.err' 6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6208 (eval $ac_try) 2>&5 6209 ac_status=$? 6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6211 (exit $ac_status); }; } && 6212 { ac_try='test -s conftest$ac_exeext' 6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6214 (eval $ac_try) 2>&5 6215 ac_status=$? 6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6217 (exit $ac_status); }; }; then 6218 ac_cv_lib_Xext_XShapeCombineMask=yes 6219else 6220 echo "$as_me: failed program was:" >&5 6221sed 's/^/| /' conftest.$ac_ext >&5 6222 6223ac_cv_lib_Xext_XShapeCombineMask=no 6224fi 6225rm -f conftest.err conftest.$ac_objext \ 6226 conftest$ac_exeext conftest.$ac_ext 6227LIBS=$ac_check_lib_save_LIBS 6228fi 6229echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 6230echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6 6231if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then 6232 have_xext=yes; LIBS="-lXext $LIBS" 6233else 6234 have_xext=no 6235fi 6236 6237 6238echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6239echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 6240if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6241 echo $ECHO_N "(cached) $ECHO_C" >&6 6242else 6243 ac_check_lib_save_LIBS=$LIBS 6244LIBS="-lICE $LIBS" 6245cat >conftest.$ac_ext <<_ACEOF 6246/* confdefs.h. */ 6247_ACEOF 6248cat confdefs.h >>conftest.$ac_ext 6249cat >>conftest.$ac_ext <<_ACEOF 6250/* end confdefs.h. */ 6251 6252/* Override any gcc2 internal prototype to avoid an error. */ 6253#ifdef __cplusplus 6254extern "C" 6255#endif 6256/* We use char because int might match the return type of a gcc2 6257 builtin and then its argument prototype would still apply. */ 6258char IceConnectionNumber (); 6259int 6260main () 6261{ 6262IceConnectionNumber (); 6263 ; 6264 return 0; 6265} 6266_ACEOF 6267rm -f conftest.$ac_objext conftest$ac_exeext 6268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6269 (eval $ac_link) 2>conftest.er1 6270 ac_status=$? 6271 grep -v '^ *+' conftest.er1 >conftest.err 6272 rm -f conftest.er1 6273 cat conftest.err >&5 6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6275 (exit $ac_status); } && 6276 { ac_try='test -z "$ac_c_werror_flag" 6277 || test ! -s conftest.err' 6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6279 (eval $ac_try) 2>&5 6280 ac_status=$? 6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6282 (exit $ac_status); }; } && 6283 { ac_try='test -s conftest$ac_exeext' 6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6285 (eval $ac_try) 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); }; }; then 6289 ac_cv_lib_ICE_IceConnectionNumber=yes 6290else 6291 echo "$as_me: failed program was:" >&5 6292sed 's/^/| /' conftest.$ac_ext >&5 6293 6294ac_cv_lib_ICE_IceConnectionNumber=no 6295fi 6296rm -f conftest.err conftest.$ac_objext \ 6297 conftest$ac_exeext conftest.$ac_ext 6298LIBS=$ac_check_lib_save_LIBS 6299fi 6300echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6301echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 6302if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6303 cat >>confdefs.h <<_ACEOF 6304#define HAVE_LIBICE 1 6305_ACEOF 6306 6307 LIBS="-lICE $LIBS" 6308 6309fi 6310 6311 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 6312echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 6313if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 6314 echo $ECHO_N "(cached) $ECHO_C" >&6 6315else 6316 ac_check_lib_save_LIBS=$LIBS 6317LIBS="-lSM $LIBS" 6318cat >conftest.$ac_ext <<_ACEOF 6319/* confdefs.h. */ 6320_ACEOF 6321cat confdefs.h >>conftest.$ac_ext 6322cat >>conftest.$ac_ext <<_ACEOF 6323/* end confdefs.h. */ 6324 6325/* Override any gcc2 internal prototype to avoid an error. */ 6326#ifdef __cplusplus 6327extern "C" 6328#endif 6329/* We use char because int might match the return type of a gcc2 6330 builtin and then its argument prototype would still apply. */ 6331char SmcOpenConnection (); 6332int 6333main () 6334{ 6335SmcOpenConnection (); 6336 ; 6337 return 0; 6338} 6339_ACEOF 6340rm -f conftest.$ac_objext conftest$ac_exeext 6341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6342 (eval $ac_link) 2>conftest.er1 6343 ac_status=$? 6344 grep -v '^ *+' conftest.er1 >conftest.err 6345 rm -f conftest.er1 6346 cat conftest.err >&5 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6348 (exit $ac_status); } && 6349 { ac_try='test -z "$ac_c_werror_flag" 6350 || test ! -s conftest.err' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; } && 6356 { ac_try='test -s conftest$ac_exeext' 6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6358 (eval $ac_try) 2>&5 6359 ac_status=$? 6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6361 (exit $ac_status); }; }; then 6362 ac_cv_lib_SM_SmcOpenConnection=yes 6363else 6364 echo "$as_me: failed program was:" >&5 6365sed 's/^/| /' conftest.$ac_ext >&5 6366 6367ac_cv_lib_SM_SmcOpenConnection=no 6368fi 6369rm -f conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371LIBS=$ac_check_lib_save_LIBS 6372fi 6373echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 6374echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 6375if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 6376 have_xprelibs=yes; LIBS="-lSM $LIBS" 6377else 6378 have_xprelibs=no 6379fi 6380 6381 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5 6382echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6 6383if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then 6384 echo $ECHO_N "(cached) $ECHO_C" >&6 6385else 6386 ac_check_lib_save_LIBS=$LIBS 6387LIBS="-lXt $LIBS" 6388cat >conftest.$ac_ext <<_ACEOF 6389/* confdefs.h. */ 6390_ACEOF 6391cat confdefs.h >>conftest.$ac_ext 6392cat >>conftest.$ac_ext <<_ACEOF 6393/* end confdefs.h. */ 6394 6395/* Override any gcc2 internal prototype to avoid an error. */ 6396#ifdef __cplusplus 6397extern "C" 6398#endif 6399/* We use char because int might match the return type of a gcc2 6400 builtin and then its argument prototype would still apply. */ 6401char XtVaAppInitialize (); 6402int 6403main () 6404{ 6405XtVaAppInitialize (); 6406 ; 6407 return 0; 6408} 6409_ACEOF 6410rm -f conftest.$ac_objext conftest$ac_exeext 6411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6412 (eval $ac_link) 2>conftest.er1 6413 ac_status=$? 6414 grep -v '^ *+' conftest.er1 >conftest.err 6415 rm -f conftest.er1 6416 cat conftest.err >&5 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && 6419 { ac_try='test -z "$ac_c_werror_flag" 6420 || test ! -s conftest.err' 6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6422 (eval $ac_try) 2>&5 6423 ac_status=$? 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); }; } && 6426 { ac_try='test -s conftest$ac_exeext' 6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6428 (eval $ac_try) 2>&5 6429 ac_status=$? 6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6431 (exit $ac_status); }; }; then 6432 ac_cv_lib_Xt_XtVaAppInitialize=yes 6433else 6434 echo "$as_me: failed program was:" >&5 6435sed 's/^/| /' conftest.$ac_ext >&5 6436 6437ac_cv_lib_Xt_XtVaAppInitialize=no 6438fi 6439rm -f conftest.err conftest.$ac_objext \ 6440 conftest$ac_exeext conftest.$ac_ext 6441LIBS=$ac_check_lib_save_LIBS 6442fi 6443echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5 6444echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6 6445if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then 6446 have_xt=yes; LIBS="-lXt $LIBS" 6447else 6448 have_xt=no 6449fi 6450 6451 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5 6452echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6 6453if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 ac_check_lib_save_LIBS=$LIBS 6457LIBS="-lXmu $LIBS" 6458cat >conftest.$ac_ext <<_ACEOF 6459/* confdefs.h. */ 6460_ACEOF 6461cat confdefs.h >>conftest.$ac_ext 6462cat >>conftest.$ac_ext <<_ACEOF 6463/* end confdefs.h. */ 6464 6465/* Override any gcc2 internal prototype to avoid an error. */ 6466#ifdef __cplusplus 6467extern "C" 6468#endif 6469/* We use char because int might match the return type of a gcc2 6470 builtin and then its argument prototype would still apply. */ 6471char XmuInternAtom (); 6472int 6473main () 6474{ 6475XmuInternAtom (); 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480rm -f conftest.$ac_objext conftest$ac_exeext 6481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6482 (eval $ac_link) 2>conftest.er1 6483 ac_status=$? 6484 grep -v '^ *+' conftest.er1 >conftest.err 6485 rm -f conftest.er1 6486 cat conftest.err >&5 6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6488 (exit $ac_status); } && 6489 { ac_try='test -z "$ac_c_werror_flag" 6490 || test ! -s conftest.err' 6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6492 (eval $ac_try) 2>&5 6493 ac_status=$? 6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6495 (exit $ac_status); }; } && 6496 { ac_try='test -s conftest$ac_exeext' 6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6498 (eval $ac_try) 2>&5 6499 ac_status=$? 6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); }; }; then 6502 ac_cv_lib_Xmu_XmuInternAtom=yes 6503else 6504 echo "$as_me: failed program was:" >&5 6505sed 's/^/| /' conftest.$ac_ext >&5 6506 6507ac_cv_lib_Xmu_XmuInternAtom=no 6508fi 6509rm -f conftest.err conftest.$ac_objext \ 6510 conftest$ac_exeext conftest.$ac_ext 6511LIBS=$ac_check_lib_save_LIBS 6512fi 6513echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5 6514echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6 6515if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then 6516 LIBS="-lXmu $LIBS" 6517fi 6518 6519 6520for ac_func in XmuRegisterExternalAgent 6521do 6522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6523echo "$as_me:$LINENO: checking for $ac_func" >&5 6524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6525if eval "test \"\${$as_ac_var+set}\" = set"; then 6526 echo $ECHO_N "(cached) $ECHO_C" >&6 6527else 6528 cat >conftest.$ac_ext <<_ACEOF 6529/* confdefs.h. */ 6530_ACEOF 6531cat confdefs.h >>conftest.$ac_ext 6532cat >>conftest.$ac_ext <<_ACEOF 6533/* end confdefs.h. */ 6534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6535 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6536#define $ac_func innocuous_$ac_func 6537 6538/* System header to define __stub macros and hopefully few prototypes, 6539 which can conflict with char $ac_func (); below. 6540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6541 <limits.h> exists even on freestanding compilers. */ 6542 6543#ifdef __STDC__ 6544# include <limits.h> 6545#else 6546# include <assert.h> 6547#endif 6548 6549#undef $ac_func 6550 6551/* Override any gcc2 internal prototype to avoid an error. */ 6552#ifdef __cplusplus 6553extern "C" 6554{ 6555#endif 6556/* We use char because int might match the return type of a gcc2 6557 builtin and then its argument prototype would still apply. */ 6558char $ac_func (); 6559/* The GNU C library defines this for functions which it implements 6560 to always fail with ENOSYS. Some functions are actually named 6561 something starting with __ and the normal name is an alias. */ 6562#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6563choke me 6564#else 6565char (*f) () = $ac_func; 6566#endif 6567#ifdef __cplusplus 6568} 6569#endif 6570 6571int 6572main () 6573{ 6574return f != $ac_func; 6575 ; 6576 return 0; 6577} 6578_ACEOF 6579rm -f conftest.$ac_objext conftest$ac_exeext 6580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6581 (eval $ac_link) 2>conftest.er1 6582 ac_status=$? 6583 grep -v '^ *+' conftest.er1 >conftest.err 6584 rm -f conftest.er1 6585 cat conftest.err >&5 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6587 (exit $ac_status); } && 6588 { ac_try='test -z "$ac_c_werror_flag" 6589 || test ! -s conftest.err' 6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6591 (eval $ac_try) 2>&5 6592 ac_status=$? 6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6594 (exit $ac_status); }; } && 6595 { ac_try='test -s conftest$ac_exeext' 6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6597 (eval $ac_try) 2>&5 6598 ac_status=$? 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6600 (exit $ac_status); }; }; then 6601 eval "$as_ac_var=yes" 6602else 6603 echo "$as_me: failed program was:" >&5 6604sed 's/^/| /' conftest.$ac_ext >&5 6605 6606eval "$as_ac_var=no" 6607fi 6608rm -f conftest.err conftest.$ac_objext \ 6609 conftest$ac_exeext conftest.$ac_ext 6610fi 6611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6613if test `eval echo '${'$as_ac_var'}'` = yes; then 6614 cat >>confdefs.h <<_ACEOF 6615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6616_ACEOF 6617 6618fi 6619done 6620 6621 if test "x$enable_xft" = "xyes"; then 6622 echo "$as_me:$LINENO: checking for XftInit in -lXft" >&5 6623echo $ECHO_N "checking for XftInit in -lXft... $ECHO_C" >&6 6624if test "${ac_cv_lib_Xft_XftInit+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626else 6627 ac_check_lib_save_LIBS=$LIBS 6628LIBS="-lXft $LIBS" 6629cat >conftest.$ac_ext <<_ACEOF 6630/* confdefs.h. */ 6631_ACEOF 6632cat confdefs.h >>conftest.$ac_ext 6633cat >>conftest.$ac_ext <<_ACEOF 6634/* end confdefs.h. */ 6635 6636/* Override any gcc2 internal prototype to avoid an error. */ 6637#ifdef __cplusplus 6638extern "C" 6639#endif 6640/* We use char because int might match the return type of a gcc2 6641 builtin and then its argument prototype would still apply. */ 6642char XftInit (); 6643int 6644main () 6645{ 6646XftInit (); 6647 ; 6648 return 0; 6649} 6650_ACEOF 6651rm -f conftest.$ac_objext conftest$ac_exeext 6652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6653 (eval $ac_link) 2>conftest.er1 6654 ac_status=$? 6655 grep -v '^ *+' conftest.er1 >conftest.err 6656 rm -f conftest.er1 6657 cat conftest.err >&5 6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6659 (exit $ac_status); } && 6660 { ac_try='test -z "$ac_c_werror_flag" 6661 || test ! -s conftest.err' 6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6663 (eval $ac_try) 2>&5 6664 ac_status=$? 6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6666 (exit $ac_status); }; } && 6667 { ac_try='test -s conftest$ac_exeext' 6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6669 (eval $ac_try) 2>&5 6670 ac_status=$? 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); }; }; then 6673 ac_cv_lib_Xft_XftInit=yes 6674else 6675 echo "$as_me: failed program was:" >&5 6676sed 's/^/| /' conftest.$ac_ext >&5 6677 6678ac_cv_lib_Xft_XftInit=no 6679fi 6680rm -f conftest.err conftest.$ac_objext \ 6681 conftest$ac_exeext conftest.$ac_ext 6682LIBS=$ac_check_lib_save_LIBS 6683fi 6684echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftInit" >&5 6685echo "${ECHO_T}$ac_cv_lib_Xft_XftInit" >&6 6686if test $ac_cv_lib_Xft_XftInit = yes; then 6687 6688cat >>confdefs.h <<\_ACEOF 6689#define HAVE_LIBXFT 1 6690_ACEOF 6691 6692else 6693 enable_xft=no 6694fi 6695 6696 fi 6697 for i in `echo $with_xawlib | sed 's/,/ /g'`; do 6698 case "$i" in 6699 "xaw") 6700 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5 6701echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6 6702if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then 6703 echo $ECHO_N "(cached) $ECHO_C" >&6 6704else 6705 ac_check_lib_save_LIBS=$LIBS 6706LIBS="-lXaw $LIBS" 6707cat >conftest.$ac_ext <<_ACEOF 6708/* confdefs.h. */ 6709_ACEOF 6710cat confdefs.h >>conftest.$ac_ext 6711cat >>conftest.$ac_ext <<_ACEOF 6712/* end confdefs.h. */ 6713 6714/* Override any gcc2 internal prototype to avoid an error. */ 6715#ifdef __cplusplus 6716extern "C" 6717#endif 6718/* We use char because int might match the return type of a gcc2 6719 builtin and then its argument prototype would still apply. */ 6720char XawInitializeWidgetSet (); 6721int 6722main () 6723{ 6724XawInitializeWidgetSet (); 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729rm -f conftest.$ac_objext conftest$ac_exeext 6730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6731 (eval $ac_link) 2>conftest.er1 6732 ac_status=$? 6733 grep -v '^ *+' conftest.er1 >conftest.err 6734 rm -f conftest.er1 6735 cat conftest.err >&5 6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6737 (exit $ac_status); } && 6738 { ac_try='test -z "$ac_c_werror_flag" 6739 || test ! -s conftest.err' 6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6741 (eval $ac_try) 2>&5 6742 ac_status=$? 6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6744 (exit $ac_status); }; } && 6745 { ac_try='test -s conftest$ac_exeext' 6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6747 (eval $ac_try) 2>&5 6748 ac_status=$? 6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6750 (exit $ac_status); }; }; then 6751 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes 6752else 6753 echo "$as_me: failed program was:" >&5 6754sed 's/^/| /' conftest.$ac_ext >&5 6755 6756ac_cv_lib_Xaw_XawInitializeWidgetSet=no 6757fi 6758rm -f conftest.err conftest.$ac_objext \ 6759 conftest$ac_exeext conftest.$ac_ext 6760LIBS=$ac_check_lib_save_LIBS 6761fi 6762echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5 6763echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6 6764if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then 6765 have_xaw=yes 6766else 6767 have_xaw=no 6768fi 6769 6770 ;; 6771 "xaw3d") 6772 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6773echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6774if test "${ac_cv_header_stdc+set}" = set; then 6775 echo $ECHO_N "(cached) $ECHO_C" >&6 6776else 6777 cat >conftest.$ac_ext <<_ACEOF 6778/* confdefs.h. */ 6779_ACEOF 6780cat confdefs.h >>conftest.$ac_ext 6781cat >>conftest.$ac_ext <<_ACEOF 6782/* end confdefs.h. */ 6783#include <stdlib.h> 6784#include <stdarg.h> 6785#include <string.h> 6786#include <float.h> 6787 6788int 6789main () 6790{ 6791 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796rm -f conftest.$ac_objext 6797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6798 (eval $ac_compile) 2>conftest.er1 6799 ac_status=$? 6800 grep -v '^ *+' conftest.er1 >conftest.err 6801 rm -f conftest.er1 6802 cat conftest.err >&5 6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6804 (exit $ac_status); } && 6805 { ac_try='test -z "$ac_c_werror_flag" 6806 || test ! -s conftest.err' 6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6808 (eval $ac_try) 2>&5 6809 ac_status=$? 6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6811 (exit $ac_status); }; } && 6812 { ac_try='test -s conftest.$ac_objext' 6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6814 (eval $ac_try) 2>&5 6815 ac_status=$? 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 (exit $ac_status); }; }; then 6818 ac_cv_header_stdc=yes 6819else 6820 echo "$as_me: failed program was:" >&5 6821sed 's/^/| /' conftest.$ac_ext >&5 6822 6823ac_cv_header_stdc=no 6824fi 6825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6826 6827if test $ac_cv_header_stdc = yes; then 6828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6829 cat >conftest.$ac_ext <<_ACEOF 6830/* confdefs.h. */ 6831_ACEOF 6832cat confdefs.h >>conftest.$ac_ext 6833cat >>conftest.$ac_ext <<_ACEOF 6834/* end confdefs.h. */ 6835#include <string.h> 6836 6837_ACEOF 6838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6839 $EGREP "memchr" >/dev/null 2>&1; then 6840 : 6841else 6842 ac_cv_header_stdc=no 6843fi 6844rm -f conftest* 6845 6846fi 6847 6848if test $ac_cv_header_stdc = yes; then 6849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6850 cat >conftest.$ac_ext <<_ACEOF 6851/* confdefs.h. */ 6852_ACEOF 6853cat confdefs.h >>conftest.$ac_ext 6854cat >>conftest.$ac_ext <<_ACEOF 6855/* end confdefs.h. */ 6856#include <stdlib.h> 6857 6858_ACEOF 6859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6860 $EGREP "free" >/dev/null 2>&1; then 6861 : 6862else 6863 ac_cv_header_stdc=no 6864fi 6865rm -f conftest* 6866 6867fi 6868 6869if test $ac_cv_header_stdc = yes; then 6870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6871 if test "$cross_compiling" = yes; then 6872 : 6873else 6874 cat >conftest.$ac_ext <<_ACEOF 6875/* confdefs.h. */ 6876_ACEOF 6877cat confdefs.h >>conftest.$ac_ext 6878cat >>conftest.$ac_ext <<_ACEOF 6879/* end confdefs.h. */ 6880#include <ctype.h> 6881#if ((' ' & 0x0FF) == 0x020) 6882# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6883# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6884#else 6885# define ISLOWER(c) \ 6886 (('a' <= (c) && (c) <= 'i') \ 6887 || ('j' <= (c) && (c) <= 'r') \ 6888 || ('s' <= (c) && (c) <= 'z')) 6889# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6890#endif 6891 6892#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6893int 6894main () 6895{ 6896 int i; 6897 for (i = 0; i < 256; i++) 6898 if (XOR (islower (i), ISLOWER (i)) 6899 || toupper (i) != TOUPPER (i)) 6900 exit(2); 6901 exit (0); 6902} 6903_ACEOF 6904rm -f conftest$ac_exeext 6905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6906 (eval $ac_link) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6911 (eval $ac_try) 2>&5 6912 ac_status=$? 6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6914 (exit $ac_status); }; }; then 6915 : 6916else 6917 echo "$as_me: program exited with status $ac_status" >&5 6918echo "$as_me: failed program was:" >&5 6919sed 's/^/| /' conftest.$ac_ext >&5 6920 6921( exit $ac_status ) 6922ac_cv_header_stdc=no 6923fi 6924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6925fi 6926fi 6927fi 6928echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6929echo "${ECHO_T}$ac_cv_header_stdc" >&6 6930if test $ac_cv_header_stdc = yes; then 6931 6932cat >>confdefs.h <<\_ACEOF 6933#define STDC_HEADERS 1 6934_ACEOF 6935 6936fi 6937 6938# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6949 inttypes.h stdint.h unistd.h 6950do 6951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6952echo "$as_me:$LINENO: checking for $ac_header" >&5 6953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6954if eval "test \"\${$as_ac_Header+set}\" = set"; then 6955 echo $ECHO_N "(cached) $ECHO_C" >&6 6956else 6957 cat >conftest.$ac_ext <<_ACEOF 6958/* confdefs.h. */ 6959_ACEOF 6960cat confdefs.h >>conftest.$ac_ext 6961cat >>conftest.$ac_ext <<_ACEOF 6962/* end confdefs.h. */ 6963$ac_includes_default 6964 6965#include <$ac_header> 6966_ACEOF 6967rm -f conftest.$ac_objext 6968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6969 (eval $ac_compile) 2>conftest.er1 6970 ac_status=$? 6971 grep -v '^ *+' conftest.er1 >conftest.err 6972 rm -f conftest.er1 6973 cat conftest.err >&5 6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6975 (exit $ac_status); } && 6976 { ac_try='test -z "$ac_c_werror_flag" 6977 || test ! -s conftest.err' 6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6979 (eval $ac_try) 2>&5 6980 ac_status=$? 6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6982 (exit $ac_status); }; } && 6983 { ac_try='test -s conftest.$ac_objext' 6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6985 (eval $ac_try) 2>&5 6986 ac_status=$? 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); }; }; then 6989 eval "$as_ac_Header=yes" 6990else 6991 echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994eval "$as_ac_Header=no" 6995fi 6996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6997fi 6998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7000if test `eval echo '${'$as_ac_Header'}'` = yes; then 7001 cat >>confdefs.h <<_ACEOF 7002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7003_ACEOF 7004 7005fi 7006 7007done 7008 7009 7010echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5 7011echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6 7012if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 ac_check_lib_save_LIBS=$LIBS 7016LIBS="-lXaw3d $LIBS" 7017cat >conftest.$ac_ext <<_ACEOF 7018/* confdefs.h. */ 7019_ACEOF 7020cat confdefs.h >>conftest.$ac_ext 7021cat >>conftest.$ac_ext <<_ACEOF 7022/* end confdefs.h. */ 7023 7024/* Override any gcc2 internal prototype to avoid an error. */ 7025#ifdef __cplusplus 7026extern "C" 7027#endif 7028/* We use char because int might match the return type of a gcc2 7029 builtin and then its argument prototype would still apply. */ 7030char XawInitializeWidgetSet (); 7031int 7032main () 7033{ 7034XawInitializeWidgetSet (); 7035 ; 7036 return 0; 7037} 7038_ACEOF 7039rm -f conftest.$ac_objext conftest$ac_exeext 7040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7041 (eval $ac_link) 2>conftest.er1 7042 ac_status=$? 7043 grep -v '^ *+' conftest.er1 >conftest.err 7044 rm -f conftest.er1 7045 cat conftest.err >&5 7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); } && 7048 { ac_try='test -z "$ac_c_werror_flag" 7049 || test ! -s conftest.err' 7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7051 (eval $ac_try) 2>&5 7052 ac_status=$? 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); }; } && 7055 { ac_try='test -s conftest$ac_exeext' 7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7057 (eval $ac_try) 2>&5 7058 ac_status=$? 7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7060 (exit $ac_status); }; }; then 7061 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes 7062else 7063 echo "$as_me: failed program was:" >&5 7064sed 's/^/| /' conftest.$ac_ext >&5 7065 7066ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no 7067fi 7068rm -f conftest.err conftest.$ac_objext \ 7069 conftest$ac_exeext conftest.$ac_ext 7070LIBS=$ac_check_lib_save_LIBS 7071fi 7072echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5 7073echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6 7074if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then 7075 have_xaw=3d; 7076 if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then 7077 echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5 7078echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6 7079if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then 7080 echo $ECHO_N "(cached) $ECHO_C" >&6 7081fi 7082echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5 7083echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6 7084else 7085 # Is the header compilable? 7086echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h usability" >&5 7087echo $ECHO_N "checking X11/Xaw3d/Tip.h usability... $ECHO_C" >&6 7088cat >conftest.$ac_ext <<_ACEOF 7089/* confdefs.h. */ 7090_ACEOF 7091cat confdefs.h >>conftest.$ac_ext 7092cat >>conftest.$ac_ext <<_ACEOF 7093/* end confdefs.h. */ 7094$ac_includes_default 7095#include <X11/Xaw3d/Tip.h> 7096_ACEOF 7097rm -f conftest.$ac_objext 7098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7099 (eval $ac_compile) 2>conftest.er1 7100 ac_status=$? 7101 grep -v '^ *+' conftest.er1 >conftest.err 7102 rm -f conftest.er1 7103 cat conftest.err >&5 7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 (exit $ac_status); } && 7106 { ac_try='test -z "$ac_c_werror_flag" 7107 || test ! -s conftest.err' 7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7109 (eval $ac_try) 2>&5 7110 ac_status=$? 7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7112 (exit $ac_status); }; } && 7113 { ac_try='test -s conftest.$ac_objext' 7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7115 (eval $ac_try) 2>&5 7116 ac_status=$? 7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7118 (exit $ac_status); }; }; then 7119 ac_header_compiler=yes 7120else 7121 echo "$as_me: failed program was:" >&5 7122sed 's/^/| /' conftest.$ac_ext >&5 7123 7124ac_header_compiler=no 7125fi 7126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7128echo "${ECHO_T}$ac_header_compiler" >&6 7129 7130# Is the header present? 7131echo "$as_me:$LINENO: checking X11/Xaw3d/Tip.h presence" >&5 7132echo $ECHO_N "checking X11/Xaw3d/Tip.h presence... $ECHO_C" >&6 7133cat >conftest.$ac_ext <<_ACEOF 7134/* confdefs.h. */ 7135_ACEOF 7136cat confdefs.h >>conftest.$ac_ext 7137cat >>conftest.$ac_ext <<_ACEOF 7138/* end confdefs.h. */ 7139#include <X11/Xaw3d/Tip.h> 7140_ACEOF 7141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7143 ac_status=$? 7144 grep -v '^ *+' conftest.er1 >conftest.err 7145 rm -f conftest.er1 7146 cat conftest.err >&5 7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7148 (exit $ac_status); } >/dev/null; then 7149 if test -s conftest.err; then 7150 ac_cpp_err=$ac_c_preproc_warn_flag 7151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7152 else 7153 ac_cpp_err= 7154 fi 7155else 7156 ac_cpp_err=yes 7157fi 7158if test -z "$ac_cpp_err"; then 7159 ac_header_preproc=yes 7160else 7161 echo "$as_me: failed program was:" >&5 7162sed 's/^/| /' conftest.$ac_ext >&5 7163 7164 ac_header_preproc=no 7165fi 7166rm -f conftest.err conftest.$ac_ext 7167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7168echo "${ECHO_T}$ac_header_preproc" >&6 7169 7170# So? What about this header? 7171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7172 yes:no: ) 7173 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&5 7174echo "$as_me: WARNING: X11/Xaw3d/Tip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7175 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&5 7176echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the compiler's result" >&2;} 7177 ac_header_preproc=yes 7178 ;; 7179 no:yes:* ) 7180 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&5 7181echo "$as_me: WARNING: X11/Xaw3d/Tip.h: present but cannot be compiled" >&2;} 7182 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: check for missing prerequisite headers?" >&5 7183echo "$as_me: WARNING: X11/Xaw3d/Tip.h: check for missing prerequisite headers?" >&2;} 7184 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&5 7185echo "$as_me: WARNING: X11/Xaw3d/Tip.h: see the Autoconf documentation" >&2;} 7186 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: section \"Present But Cannot Be Compiled\"" >&5 7187echo "$as_me: WARNING: X11/Xaw3d/Tip.h: section \"Present But Cannot Be Compiled\"" >&2;} 7188 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&5 7189echo "$as_me: WARNING: X11/Xaw3d/Tip.h: proceeding with the preprocessor's result" >&2;} 7190 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&5 7191echo "$as_me: WARNING: X11/Xaw3d/Tip.h: in the future, the compiler will take precedence" >&2;} 7192 ( 7193 cat <<\_ASBOX 7194## -------------------------------------------------- ## 7195## Report this to timidity-talk@lists.sourceforge.net ## 7196## -------------------------------------------------- ## 7197_ASBOX 7198 ) | 7199 sed "s/^/$as_me: WARNING: /" >&2 7200 ;; 7201esac 7202echo "$as_me:$LINENO: checking for X11/Xaw3d/Tip.h" >&5 7203echo $ECHO_N "checking for X11/Xaw3d/Tip.h... $ECHO_C" >&6 7204if test "${ac_cv_header_X11_Xaw3d_Tip_h+set}" = set; then 7205 echo $ECHO_N "(cached) $ECHO_C" >&6 7206else 7207 ac_cv_header_X11_Xaw3d_Tip_h=$ac_header_preproc 7208fi 7209echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Tip_h" >&5 7210echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Tip_h" >&6 7211 7212fi 7213if test $ac_cv_header_X11_Xaw3d_Tip_h = yes; then 7214 7215cat >>confdefs.h <<\_ACEOF 7216#define HAVE_XAW3D_TIP 1 7217_ACEOF 7218 7219fi 7220 7221 7222 7223else 7224 have_xaw=no 7225 7226fi 7227 7228 ;; 7229 "neXtaw") 7230 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lneXtaw" >&5 7231echo $ECHO_N "checking for XawInitializeWidgetSet in -lneXtaw... $ECHO_C" >&6 7232if test "${ac_cv_lib_neXtaw_XawInitializeWidgetSet+set}" = set; then 7233 echo $ECHO_N "(cached) $ECHO_C" >&6 7234else 7235 ac_check_lib_save_LIBS=$LIBS 7236LIBS="-lneXtaw $LIBS" 7237cat >conftest.$ac_ext <<_ACEOF 7238/* confdefs.h. */ 7239_ACEOF 7240cat confdefs.h >>conftest.$ac_ext 7241cat >>conftest.$ac_ext <<_ACEOF 7242/* end confdefs.h. */ 7243 7244/* Override any gcc2 internal prototype to avoid an error. */ 7245#ifdef __cplusplus 7246extern "C" 7247#endif 7248/* We use char because int might match the return type of a gcc2 7249 builtin and then its argument prototype would still apply. */ 7250char XawInitializeWidgetSet (); 7251int 7252main () 7253{ 7254XawInitializeWidgetSet (); 7255 ; 7256 return 0; 7257} 7258_ACEOF 7259rm -f conftest.$ac_objext conftest$ac_exeext 7260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7261 (eval $ac_link) 2>conftest.er1 7262 ac_status=$? 7263 grep -v '^ *+' conftest.er1 >conftest.err 7264 rm -f conftest.er1 7265 cat conftest.err >&5 7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); } && 7268 { ac_try='test -z "$ac_c_werror_flag" 7269 || test ! -s conftest.err' 7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7271 (eval $ac_try) 2>&5 7272 ac_status=$? 7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7274 (exit $ac_status); }; } && 7275 { ac_try='test -s conftest$ac_exeext' 7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7277 (eval $ac_try) 2>&5 7278 ac_status=$? 7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7280 (exit $ac_status); }; }; then 7281 ac_cv_lib_neXtaw_XawInitializeWidgetSet=yes 7282else 7283 echo "$as_me: failed program was:" >&5 7284sed 's/^/| /' conftest.$ac_ext >&5 7285 7286ac_cv_lib_neXtaw_XawInitializeWidgetSet=no 7287fi 7288rm -f conftest.err conftest.$ac_objext \ 7289 conftest$ac_exeext conftest.$ac_ext 7290LIBS=$ac_check_lib_save_LIBS 7291fi 7292echo "$as_me:$LINENO: result: $ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&5 7293echo "${ECHO_T}$ac_cv_lib_neXtaw_XawInitializeWidgetSet" >&6 7294if test $ac_cv_lib_neXtaw_XawInitializeWidgetSet = yes; then 7295 have_xaw=next 7296else 7297 have_xaw=no 7298fi 7299 7300 ;; 7301 "XawPlus") 7302 7303echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 7304echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 7305if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 7306 echo $ECHO_N "(cached) $ECHO_C" >&6 7307else 7308 ac_check_lib_save_LIBS=$LIBS 7309LIBS="-lXpm $LIBS" 7310cat >conftest.$ac_ext <<_ACEOF 7311/* confdefs.h. */ 7312_ACEOF 7313cat confdefs.h >>conftest.$ac_ext 7314cat >>conftest.$ac_ext <<_ACEOF 7315/* end confdefs.h. */ 7316 7317/* Override any gcc2 internal prototype to avoid an error. */ 7318#ifdef __cplusplus 7319extern "C" 7320#endif 7321/* We use char because int might match the return type of a gcc2 7322 builtin and then its argument prototype would still apply. */ 7323char XpmCreatePixmapFromData (); 7324int 7325main () 7326{ 7327XpmCreatePixmapFromData (); 7328 ; 7329 return 0; 7330} 7331_ACEOF 7332rm -f conftest.$ac_objext conftest$ac_exeext 7333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7334 (eval $ac_link) 2>conftest.er1 7335 ac_status=$? 7336 grep -v '^ *+' conftest.er1 >conftest.err 7337 rm -f conftest.er1 7338 cat conftest.err >&5 7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7340 (exit $ac_status); } && 7341 { ac_try='test -z "$ac_c_werror_flag" 7342 || test ! -s conftest.err' 7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7344 (eval $ac_try) 2>&5 7345 ac_status=$? 7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7347 (exit $ac_status); }; } && 7348 { ac_try='test -s conftest$ac_exeext' 7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7350 (eval $ac_try) 2>&5 7351 ac_status=$? 7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7353 (exit $ac_status); }; }; then 7354 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 7355else 7356 echo "$as_me: failed program was:" >&5 7357sed 's/^/| /' conftest.$ac_ext >&5 7358 7359ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 7360fi 7361rm -f conftest.err conftest.$ac_objext \ 7362 conftest$ac_exeext conftest.$ac_ext 7363LIBS=$ac_check_lib_save_LIBS 7364fi 7365echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 7366echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 7367if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 7368 cat >>confdefs.h <<_ACEOF 7369#define HAVE_LIBXPM 1 7370_ACEOF 7371 7372 LIBS="-lXpm $LIBS" 7373 7374fi 7375 7376 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXawPlus" >&5 7377echo $ECHO_N "checking for XawInitializeWidgetSet in -lXawPlus... $ECHO_C" >&6 7378if test "${ac_cv_lib_XawPlus_XawInitializeWidgetSet+set}" = set; then 7379 echo $ECHO_N "(cached) $ECHO_C" >&6 7380else 7381 ac_check_lib_save_LIBS=$LIBS 7382LIBS="-lXawPlus $LIBS" 7383cat >conftest.$ac_ext <<_ACEOF 7384/* confdefs.h. */ 7385_ACEOF 7386cat confdefs.h >>conftest.$ac_ext 7387cat >>conftest.$ac_ext <<_ACEOF 7388/* end confdefs.h. */ 7389 7390/* Override any gcc2 internal prototype to avoid an error. */ 7391#ifdef __cplusplus 7392extern "C" 7393#endif 7394/* We use char because int might match the return type of a gcc2 7395 builtin and then its argument prototype would still apply. */ 7396char XawInitializeWidgetSet (); 7397int 7398main () 7399{ 7400XawInitializeWidgetSet (); 7401 ; 7402 return 0; 7403} 7404_ACEOF 7405rm -f conftest.$ac_objext conftest$ac_exeext 7406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7407 (eval $ac_link) 2>conftest.er1 7408 ac_status=$? 7409 grep -v '^ *+' conftest.er1 >conftest.err 7410 rm -f conftest.er1 7411 cat conftest.err >&5 7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7413 (exit $ac_status); } && 7414 { ac_try='test -z "$ac_c_werror_flag" 7415 || test ! -s conftest.err' 7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7417 (eval $ac_try) 2>&5 7418 ac_status=$? 7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7420 (exit $ac_status); }; } && 7421 { ac_try='test -s conftest$ac_exeext' 7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7423 (eval $ac_try) 2>&5 7424 ac_status=$? 7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7426 (exit $ac_status); }; }; then 7427 ac_cv_lib_XawPlus_XawInitializeWidgetSet=yes 7428else 7429 echo "$as_me: failed program was:" >&5 7430sed 's/^/| /' conftest.$ac_ext >&5 7431 7432ac_cv_lib_XawPlus_XawInitializeWidgetSet=no 7433fi 7434rm -f conftest.err conftest.$ac_objext \ 7435 conftest$ac_exeext conftest.$ac_ext 7436LIBS=$ac_check_lib_save_LIBS 7437fi 7438echo "$as_me:$LINENO: result: $ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&5 7439echo "${ECHO_T}$ac_cv_lib_XawPlus_XawInitializeWidgetSet" >&6 7440if test $ac_cv_lib_XawPlus_XawInitializeWidgetSet = yes; then 7441 have_xaw=plus 7442else 7443 have_xaw=no 7444fi 7445 7446 ;; 7447 *) 7448 have_xaw=no 7449 ;; 7450 esac 7451 if test "x$have_xaw" != "xno"; then break; fi 7452 done 7453 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5 7454echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6 7455if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then 7456 echo $ECHO_N "(cached) $ECHO_C" >&6 7457else 7458 ac_check_lib_save_LIBS=$LIBS 7459LIBS="-lXm $LIBS" 7460cat >conftest.$ac_ext <<_ACEOF 7461/* confdefs.h. */ 7462_ACEOF 7463cat confdefs.h >>conftest.$ac_ext 7464cat >>conftest.$ac_ext <<_ACEOF 7465/* end confdefs.h. */ 7466 7467/* Override any gcc2 internal prototype to avoid an error. */ 7468#ifdef __cplusplus 7469extern "C" 7470#endif 7471/* We use char because int might match the return type of a gcc2 7472 builtin and then its argument prototype would still apply. */ 7473char XmCreateForm (); 7474int 7475main () 7476{ 7477XmCreateForm (); 7478 ; 7479 return 0; 7480} 7481_ACEOF 7482rm -f conftest.$ac_objext conftest$ac_exeext 7483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7484 (eval $ac_link) 2>conftest.er1 7485 ac_status=$? 7486 grep -v '^ *+' conftest.er1 >conftest.err 7487 rm -f conftest.er1 7488 cat conftest.err >&5 7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7490 (exit $ac_status); } && 7491 { ac_try='test -z "$ac_c_werror_flag" 7492 || test ! -s conftest.err' 7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7494 (eval $ac_try) 2>&5 7495 ac_status=$? 7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7497 (exit $ac_status); }; } && 7498 { ac_try='test -s conftest$ac_exeext' 7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7500 (eval $ac_try) 2>&5 7501 ac_status=$? 7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7503 (exit $ac_status); }; }; then 7504 ac_cv_lib_Xm_XmCreateForm=yes 7505else 7506 echo "$as_me: failed program was:" >&5 7507sed 's/^/| /' conftest.$ac_ext >&5 7508 7509ac_cv_lib_Xm_XmCreateForm=no 7510fi 7511rm -f conftest.err conftest.$ac_objext \ 7512 conftest$ac_exeext conftest.$ac_ext 7513LIBS=$ac_check_lib_save_LIBS 7514fi 7515echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5 7516echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6 7517if test $ac_cv_lib_Xm_XmCreateForm = yes; then 7518 have_xm=yes 7519else 7520 have_xm=no 7521fi 7522 7523 7524for ac_func in XShmCreatePixmap 7525do 7526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7527echo "$as_me:$LINENO: checking for $ac_func" >&5 7528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7529if eval "test \"\${$as_ac_var+set}\" = set"; then 7530 echo $ECHO_N "(cached) $ECHO_C" >&6 7531else 7532 cat >conftest.$ac_ext <<_ACEOF 7533/* confdefs.h. */ 7534_ACEOF 7535cat confdefs.h >>conftest.$ac_ext 7536cat >>conftest.$ac_ext <<_ACEOF 7537/* end confdefs.h. */ 7538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7539 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7540#define $ac_func innocuous_$ac_func 7541 7542/* System header to define __stub macros and hopefully few prototypes, 7543 which can conflict with char $ac_func (); below. 7544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7545 <limits.h> exists even on freestanding compilers. */ 7546 7547#ifdef __STDC__ 7548# include <limits.h> 7549#else 7550# include <assert.h> 7551#endif 7552 7553#undef $ac_func 7554 7555/* Override any gcc2 internal prototype to avoid an error. */ 7556#ifdef __cplusplus 7557extern "C" 7558{ 7559#endif 7560/* We use char because int might match the return type of a gcc2 7561 builtin and then its argument prototype would still apply. */ 7562char $ac_func (); 7563/* The GNU C library defines this for functions which it implements 7564 to always fail with ENOSYS. Some functions are actually named 7565 something starting with __ and the normal name is an alias. */ 7566#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7567choke me 7568#else 7569char (*f) () = $ac_func; 7570#endif 7571#ifdef __cplusplus 7572} 7573#endif 7574 7575int 7576main () 7577{ 7578return f != $ac_func; 7579 ; 7580 return 0; 7581} 7582_ACEOF 7583rm -f conftest.$ac_objext conftest$ac_exeext 7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7585 (eval $ac_link) 2>conftest.er1 7586 ac_status=$? 7587 grep -v '^ *+' conftest.er1 >conftest.err 7588 rm -f conftest.er1 7589 cat conftest.err >&5 7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7591 (exit $ac_status); } && 7592 { ac_try='test -z "$ac_c_werror_flag" 7593 || test ! -s conftest.err' 7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7595 (eval $ac_try) 2>&5 7596 ac_status=$? 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); }; } && 7599 { ac_try='test -s conftest$ac_exeext' 7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7601 (eval $ac_try) 2>&5 7602 ac_status=$? 7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7604 (exit $ac_status); }; }; then 7605 eval "$as_ac_var=yes" 7606else 7607 echo "$as_me: failed program was:" >&5 7608sed 's/^/| /' conftest.$ac_ext >&5 7609 7610eval "$as_ac_var=no" 7611fi 7612rm -f conftest.err conftest.$ac_objext \ 7613 conftest$ac_exeext conftest.$ac_ext 7614fi 7615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7617if test `eval echo '${'$as_ac_var'}'` = yes; then 7618 cat >>confdefs.h <<_ACEOF 7619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7620_ACEOF 7621 7622fi 7623done 7624 7625 LIBS=$KEEPLIBS 7626fi 7627 7628# Checks for header files. 7629echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7630echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7631if test "${ac_cv_header_stdc+set}" = set; then 7632 echo $ECHO_N "(cached) $ECHO_C" >&6 7633else 7634 cat >conftest.$ac_ext <<_ACEOF 7635/* confdefs.h. */ 7636_ACEOF 7637cat confdefs.h >>conftest.$ac_ext 7638cat >>conftest.$ac_ext <<_ACEOF 7639/* end confdefs.h. */ 7640#include <stdlib.h> 7641#include <stdarg.h> 7642#include <string.h> 7643#include <float.h> 7644 7645int 7646main () 7647{ 7648 7649 ; 7650 return 0; 7651} 7652_ACEOF 7653rm -f conftest.$ac_objext 7654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7655 (eval $ac_compile) 2>conftest.er1 7656 ac_status=$? 7657 grep -v '^ *+' conftest.er1 >conftest.err 7658 rm -f conftest.er1 7659 cat conftest.err >&5 7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7661 (exit $ac_status); } && 7662 { ac_try='test -z "$ac_c_werror_flag" 7663 || test ! -s conftest.err' 7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7665 (eval $ac_try) 2>&5 7666 ac_status=$? 7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7668 (exit $ac_status); }; } && 7669 { ac_try='test -s conftest.$ac_objext' 7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7671 (eval $ac_try) 2>&5 7672 ac_status=$? 7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7674 (exit $ac_status); }; }; then 7675 ac_cv_header_stdc=yes 7676else 7677 echo "$as_me: failed program was:" >&5 7678sed 's/^/| /' conftest.$ac_ext >&5 7679 7680ac_cv_header_stdc=no 7681fi 7682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7683 7684if test $ac_cv_header_stdc = yes; then 7685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7686 cat >conftest.$ac_ext <<_ACEOF 7687/* confdefs.h. */ 7688_ACEOF 7689cat confdefs.h >>conftest.$ac_ext 7690cat >>conftest.$ac_ext <<_ACEOF 7691/* end confdefs.h. */ 7692#include <string.h> 7693 7694_ACEOF 7695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7696 $EGREP "memchr" >/dev/null 2>&1; then 7697 : 7698else 7699 ac_cv_header_stdc=no 7700fi 7701rm -f conftest* 7702 7703fi 7704 7705if test $ac_cv_header_stdc = yes; then 7706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7707 cat >conftest.$ac_ext <<_ACEOF 7708/* confdefs.h. */ 7709_ACEOF 7710cat confdefs.h >>conftest.$ac_ext 7711cat >>conftest.$ac_ext <<_ACEOF 7712/* end confdefs.h. */ 7713#include <stdlib.h> 7714 7715_ACEOF 7716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7717 $EGREP "free" >/dev/null 2>&1; then 7718 : 7719else 7720 ac_cv_header_stdc=no 7721fi 7722rm -f conftest* 7723 7724fi 7725 7726if test $ac_cv_header_stdc = yes; then 7727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7728 if test "$cross_compiling" = yes; then 7729 : 7730else 7731 cat >conftest.$ac_ext <<_ACEOF 7732/* confdefs.h. */ 7733_ACEOF 7734cat confdefs.h >>conftest.$ac_ext 7735cat >>conftest.$ac_ext <<_ACEOF 7736/* end confdefs.h. */ 7737#include <ctype.h> 7738#if ((' ' & 0x0FF) == 0x020) 7739# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7740# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7741#else 7742# define ISLOWER(c) \ 7743 (('a' <= (c) && (c) <= 'i') \ 7744 || ('j' <= (c) && (c) <= 'r') \ 7745 || ('s' <= (c) && (c) <= 'z')) 7746# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7747#endif 7748 7749#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7750int 7751main () 7752{ 7753 int i; 7754 for (i = 0; i < 256; i++) 7755 if (XOR (islower (i), ISLOWER (i)) 7756 || toupper (i) != TOUPPER (i)) 7757 exit(2); 7758 exit (0); 7759} 7760_ACEOF 7761rm -f conftest$ac_exeext 7762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7763 (eval $ac_link) 2>&5 7764 ac_status=$? 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7768 (eval $ac_try) 2>&5 7769 ac_status=$? 7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7771 (exit $ac_status); }; }; then 7772 : 7773else 7774 echo "$as_me: program exited with status $ac_status" >&5 7775echo "$as_me: failed program was:" >&5 7776sed 's/^/| /' conftest.$ac_ext >&5 7777 7778( exit $ac_status ) 7779ac_cv_header_stdc=no 7780fi 7781rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7782fi 7783fi 7784fi 7785echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7786echo "${ECHO_T}$ac_cv_header_stdc" >&6 7787if test $ac_cv_header_stdc = yes; then 7788 7789cat >>confdefs.h <<\_ACEOF 7790#define STDC_HEADERS 1 7791_ACEOF 7792 7793fi 7794 7795#AC_HEADER_STDBOOL 7796echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 7797echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 7798if test "${ac_cv_header_sys_wait_h+set}" = set; then 7799 echo $ECHO_N "(cached) $ECHO_C" >&6 7800else 7801 cat >conftest.$ac_ext <<_ACEOF 7802/* confdefs.h. */ 7803_ACEOF 7804cat confdefs.h >>conftest.$ac_ext 7805cat >>conftest.$ac_ext <<_ACEOF 7806/* end confdefs.h. */ 7807#include <sys/types.h> 7808#include <sys/wait.h> 7809#ifndef WEXITSTATUS 7810# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7811#endif 7812#ifndef WIFEXITED 7813# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7814#endif 7815 7816int 7817main () 7818{ 7819 int s; 7820 wait (&s); 7821 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826rm -f conftest.$ac_objext 7827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7828 (eval $ac_compile) 2>conftest.er1 7829 ac_status=$? 7830 grep -v '^ *+' conftest.er1 >conftest.err 7831 rm -f conftest.er1 7832 cat conftest.err >&5 7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7834 (exit $ac_status); } && 7835 { ac_try='test -z "$ac_c_werror_flag" 7836 || test ! -s conftest.err' 7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7838 (eval $ac_try) 2>&5 7839 ac_status=$? 7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7841 (exit $ac_status); }; } && 7842 { ac_try='test -s conftest.$ac_objext' 7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7844 (eval $ac_try) 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; }; then 7848 ac_cv_header_sys_wait_h=yes 7849else 7850 echo "$as_me: failed program was:" >&5 7851sed 's/^/| /' conftest.$ac_ext >&5 7852 7853ac_cv_header_sys_wait_h=no 7854fi 7855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7856fi 7857echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 7858echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 7859if test $ac_cv_header_sys_wait_h = yes; then 7860 7861cat >>confdefs.h <<\_ACEOF 7862#define HAVE_SYS_WAIT_H 1 7863_ACEOF 7864 7865fi 7866 7867if test "x$WATCOM_C" != xyes ; then 7868echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 7869echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 7870if test "${ac_cv_header_time+set}" = set; then 7871 echo $ECHO_N "(cached) $ECHO_C" >&6 7872else 7873 cat >conftest.$ac_ext <<_ACEOF 7874/* confdefs.h. */ 7875_ACEOF 7876cat confdefs.h >>conftest.$ac_ext 7877cat >>conftest.$ac_ext <<_ACEOF 7878/* end confdefs.h. */ 7879#include <sys/types.h> 7880#include <sys/time.h> 7881#include <time.h> 7882 7883int 7884main () 7885{ 7886if ((struct tm *) 0) 7887return 0; 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892rm -f conftest.$ac_objext 7893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7894 (eval $ac_compile) 2>conftest.er1 7895 ac_status=$? 7896 grep -v '^ *+' conftest.er1 >conftest.err 7897 rm -f conftest.er1 7898 cat conftest.err >&5 7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7900 (exit $ac_status); } && 7901 { ac_try='test -z "$ac_c_werror_flag" 7902 || test ! -s conftest.err' 7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7904 (eval $ac_try) 2>&5 7905 ac_status=$? 7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7907 (exit $ac_status); }; } && 7908 { ac_try='test -s conftest.$ac_objext' 7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7910 (eval $ac_try) 2>&5 7911 ac_status=$? 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7913 (exit $ac_status); }; }; then 7914 ac_cv_header_time=yes 7915else 7916 echo "$as_me: failed program was:" >&5 7917sed 's/^/| /' conftest.$ac_ext >&5 7918 7919ac_cv_header_time=no 7920fi 7921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7922fi 7923echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 7924echo "${ECHO_T}$ac_cv_header_time" >&6 7925if test $ac_cv_header_time = yes; then 7926 7927cat >>confdefs.h <<\_ACEOF 7928#define TIME_WITH_SYS_TIME 1 7929_ACEOF 7930 7931fi 7932 7933fi 7934 7935 7936 7937 7938 7939ac_header_dirent=no 7940for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7942echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 7943echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 7944if eval "test \"\${$as_ac_Header+set}\" = set"; then 7945 echo $ECHO_N "(cached) $ECHO_C" >&6 7946else 7947 cat >conftest.$ac_ext <<_ACEOF 7948/* confdefs.h. */ 7949_ACEOF 7950cat confdefs.h >>conftest.$ac_ext 7951cat >>conftest.$ac_ext <<_ACEOF 7952/* end confdefs.h. */ 7953#include <sys/types.h> 7954#include <$ac_hdr> 7955 7956int 7957main () 7958{ 7959if ((DIR *) 0) 7960return 0; 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965rm -f conftest.$ac_objext 7966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7967 (eval $ac_compile) 2>conftest.er1 7968 ac_status=$? 7969 grep -v '^ *+' conftest.er1 >conftest.err 7970 rm -f conftest.er1 7971 cat conftest.err >&5 7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7973 (exit $ac_status); } && 7974 { ac_try='test -z "$ac_c_werror_flag" 7975 || test ! -s conftest.err' 7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7977 (eval $ac_try) 2>&5 7978 ac_status=$? 7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 (exit $ac_status); }; } && 7981 { ac_try='test -s conftest.$ac_objext' 7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7983 (eval $ac_try) 2>&5 7984 ac_status=$? 7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7986 (exit $ac_status); }; }; then 7987 eval "$as_ac_Header=yes" 7988else 7989 echo "$as_me: failed program was:" >&5 7990sed 's/^/| /' conftest.$ac_ext >&5 7991 7992eval "$as_ac_Header=no" 7993fi 7994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7995fi 7996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7998if test `eval echo '${'$as_ac_Header'}'` = yes; then 7999 cat >>confdefs.h <<_ACEOF 8000#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8001_ACEOF 8002 8003ac_header_dirent=$ac_hdr; break 8004fi 8005 8006done 8007# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8008if test $ac_header_dirent = dirent.h; then 8009 echo "$as_me:$LINENO: checking for library containing opendir" >&5 8010echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 8011if test "${ac_cv_search_opendir+set}" = set; then 8012 echo $ECHO_N "(cached) $ECHO_C" >&6 8013else 8014 ac_func_search_save_LIBS=$LIBS 8015ac_cv_search_opendir=no 8016cat >conftest.$ac_ext <<_ACEOF 8017/* confdefs.h. */ 8018_ACEOF 8019cat confdefs.h >>conftest.$ac_ext 8020cat >>conftest.$ac_ext <<_ACEOF 8021/* end confdefs.h. */ 8022 8023/* Override any gcc2 internal prototype to avoid an error. */ 8024#ifdef __cplusplus 8025extern "C" 8026#endif 8027/* We use char because int might match the return type of a gcc2 8028 builtin and then its argument prototype would still apply. */ 8029char opendir (); 8030int 8031main () 8032{ 8033opendir (); 8034 ; 8035 return 0; 8036} 8037_ACEOF 8038rm -f conftest.$ac_objext conftest$ac_exeext 8039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8040 (eval $ac_link) 2>conftest.er1 8041 ac_status=$? 8042 grep -v '^ *+' conftest.er1 >conftest.err 8043 rm -f conftest.er1 8044 cat conftest.err >&5 8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8046 (exit $ac_status); } && 8047 { ac_try='test -z "$ac_c_werror_flag" 8048 || test ! -s conftest.err' 8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8050 (eval $ac_try) 2>&5 8051 ac_status=$? 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 (exit $ac_status); }; } && 8054 { ac_try='test -s conftest$ac_exeext' 8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8056 (eval $ac_try) 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; }; then 8060 ac_cv_search_opendir="none required" 8061else 8062 echo "$as_me: failed program was:" >&5 8063sed 's/^/| /' conftest.$ac_ext >&5 8064 8065fi 8066rm -f conftest.err conftest.$ac_objext \ 8067 conftest$ac_exeext conftest.$ac_ext 8068if test "$ac_cv_search_opendir" = no; then 8069 for ac_lib in dir; do 8070 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8071 cat >conftest.$ac_ext <<_ACEOF 8072/* confdefs.h. */ 8073_ACEOF 8074cat confdefs.h >>conftest.$ac_ext 8075cat >>conftest.$ac_ext <<_ACEOF 8076/* end confdefs.h. */ 8077 8078/* Override any gcc2 internal prototype to avoid an error. */ 8079#ifdef __cplusplus 8080extern "C" 8081#endif 8082/* We use char because int might match the return type of a gcc2 8083 builtin and then its argument prototype would still apply. */ 8084char opendir (); 8085int 8086main () 8087{ 8088opendir (); 8089 ; 8090 return 0; 8091} 8092_ACEOF 8093rm -f conftest.$ac_objext conftest$ac_exeext 8094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8095 (eval $ac_link) 2>conftest.er1 8096 ac_status=$? 8097 grep -v '^ *+' conftest.er1 >conftest.err 8098 rm -f conftest.er1 8099 cat conftest.err >&5 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); } && 8102 { ac_try='test -z "$ac_c_werror_flag" 8103 || test ! -s conftest.err' 8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8105 (eval $ac_try) 2>&5 8106 ac_status=$? 8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 (exit $ac_status); }; } && 8109 { ac_try='test -s conftest$ac_exeext' 8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8111 (eval $ac_try) 2>&5 8112 ac_status=$? 8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8114 (exit $ac_status); }; }; then 8115 ac_cv_search_opendir="-l$ac_lib" 8116break 8117else 8118 echo "$as_me: failed program was:" >&5 8119sed 's/^/| /' conftest.$ac_ext >&5 8120 8121fi 8122rm -f conftest.err conftest.$ac_objext \ 8123 conftest$ac_exeext conftest.$ac_ext 8124 done 8125fi 8126LIBS=$ac_func_search_save_LIBS 8127fi 8128echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8129echo "${ECHO_T}$ac_cv_search_opendir" >&6 8130if test "$ac_cv_search_opendir" != no; then 8131 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 8132 8133fi 8134 8135else 8136 echo "$as_me:$LINENO: checking for library containing opendir" >&5 8137echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 8138if test "${ac_cv_search_opendir+set}" = set; then 8139 echo $ECHO_N "(cached) $ECHO_C" >&6 8140else 8141 ac_func_search_save_LIBS=$LIBS 8142ac_cv_search_opendir=no 8143cat >conftest.$ac_ext <<_ACEOF 8144/* confdefs.h. */ 8145_ACEOF 8146cat confdefs.h >>conftest.$ac_ext 8147cat >>conftest.$ac_ext <<_ACEOF 8148/* end confdefs.h. */ 8149 8150/* Override any gcc2 internal prototype to avoid an error. */ 8151#ifdef __cplusplus 8152extern "C" 8153#endif 8154/* We use char because int might match the return type of a gcc2 8155 builtin and then its argument prototype would still apply. */ 8156char opendir (); 8157int 8158main () 8159{ 8160opendir (); 8161 ; 8162 return 0; 8163} 8164_ACEOF 8165rm -f conftest.$ac_objext conftest$ac_exeext 8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8167 (eval $ac_link) 2>conftest.er1 8168 ac_status=$? 8169 grep -v '^ *+' conftest.er1 >conftest.err 8170 rm -f conftest.er1 8171 cat conftest.err >&5 8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8173 (exit $ac_status); } && 8174 { ac_try='test -z "$ac_c_werror_flag" 8175 || test ! -s conftest.err' 8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8177 (eval $ac_try) 2>&5 8178 ac_status=$? 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8180 (exit $ac_status); }; } && 8181 { ac_try='test -s conftest$ac_exeext' 8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8183 (eval $ac_try) 2>&5 8184 ac_status=$? 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); }; }; then 8187 ac_cv_search_opendir="none required" 8188else 8189 echo "$as_me: failed program was:" >&5 8190sed 's/^/| /' conftest.$ac_ext >&5 8191 8192fi 8193rm -f conftest.err conftest.$ac_objext \ 8194 conftest$ac_exeext conftest.$ac_ext 8195if test "$ac_cv_search_opendir" = no; then 8196 for ac_lib in x; do 8197 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8198 cat >conftest.$ac_ext <<_ACEOF 8199/* confdefs.h. */ 8200_ACEOF 8201cat confdefs.h >>conftest.$ac_ext 8202cat >>conftest.$ac_ext <<_ACEOF 8203/* end confdefs.h. */ 8204 8205/* Override any gcc2 internal prototype to avoid an error. */ 8206#ifdef __cplusplus 8207extern "C" 8208#endif 8209/* We use char because int might match the return type of a gcc2 8210 builtin and then its argument prototype would still apply. */ 8211char opendir (); 8212int 8213main () 8214{ 8215opendir (); 8216 ; 8217 return 0; 8218} 8219_ACEOF 8220rm -f conftest.$ac_objext conftest$ac_exeext 8221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8222 (eval $ac_link) 2>conftest.er1 8223 ac_status=$? 8224 grep -v '^ *+' conftest.er1 >conftest.err 8225 rm -f conftest.er1 8226 cat conftest.err >&5 8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8228 (exit $ac_status); } && 8229 { ac_try='test -z "$ac_c_werror_flag" 8230 || test ! -s conftest.err' 8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8232 (eval $ac_try) 2>&5 8233 ac_status=$? 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 (exit $ac_status); }; } && 8236 { ac_try='test -s conftest$ac_exeext' 8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8238 (eval $ac_try) 2>&5 8239 ac_status=$? 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8241 (exit $ac_status); }; }; then 8242 ac_cv_search_opendir="-l$ac_lib" 8243break 8244else 8245 echo "$as_me: failed program was:" >&5 8246sed 's/^/| /' conftest.$ac_ext >&5 8247 8248fi 8249rm -f conftest.err conftest.$ac_objext \ 8250 conftest$ac_exeext conftest.$ac_ext 8251 done 8252fi 8253LIBS=$ac_func_search_save_LIBS 8254fi 8255echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8256echo "${ECHO_T}$ac_cv_search_opendir" >&6 8257if test "$ac_cv_search_opendir" != no; then 8258 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 8259 8260fi 8261 8262fi 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302for ac_header in \ 8303 arpa/inet.h \ 8304 errno.h \ 8305 getopt.h \ 8306 glob.h \ 8307 dlfcn.h \ 8308 fcntl.h \ 8309 inttypes.h \ 8310 limits.h \ 8311 machine/endian.h \ 8312 malloc.h \ 8313 memory.h \ 8314 netdb.h \ 8315 netinet/in.h \ 8316 nlist.h \ 8317 stddef.h \ 8318 stdlib.h \ 8319 stdint.h \ 8320 string.h \ 8321 strings.h \ 8322 stropts.h \ 8323 soundcard.h \ 8324 alsa/asoundlib.h \ 8325 sys/asoundlib.h \ 8326 sys/audioio.h \ 8327 sys/awe_voice.h\ 8328 sys/ioctl.h \ 8329 sys/ipc.h \ 8330 sys/param.h \ 8331 sys/shm.h \ 8332 sys/socket.h \ 8333 sys/soundcard.h \ 8334 sys/param.h \ 8335 sys/time.h \ 8336 sys/types.h \ 8337 sys/stat.h \ 8338 sys/sysctl.h \ 8339 termios.h \ 8340 X11/Xlib.h 8341do 8342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8343if eval "test \"\${$as_ac_Header+set}\" = set"; then 8344 echo "$as_me:$LINENO: checking for $ac_header" >&5 8345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8346if eval "test \"\${$as_ac_Header+set}\" = set"; then 8347 echo $ECHO_N "(cached) $ECHO_C" >&6 8348fi 8349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8351else 8352 # Is the header compilable? 8353echo "$as_me:$LINENO: checking $ac_header usability" >&5 8354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8355cat >conftest.$ac_ext <<_ACEOF 8356/* confdefs.h. */ 8357_ACEOF 8358cat confdefs.h >>conftest.$ac_ext 8359cat >>conftest.$ac_ext <<_ACEOF 8360/* end confdefs.h. */ 8361$ac_includes_default 8362#include <$ac_header> 8363_ACEOF 8364rm -f conftest.$ac_objext 8365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8366 (eval $ac_compile) 2>conftest.er1 8367 ac_status=$? 8368 grep -v '^ *+' conftest.er1 >conftest.err 8369 rm -f conftest.er1 8370 cat conftest.err >&5 8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 (exit $ac_status); } && 8373 { ac_try='test -z "$ac_c_werror_flag" 8374 || test ! -s conftest.err' 8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 (eval $ac_try) 2>&5 8377 ac_status=$? 8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 (exit $ac_status); }; } && 8380 { ac_try='test -s conftest.$ac_objext' 8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8382 (eval $ac_try) 2>&5 8383 ac_status=$? 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8385 (exit $ac_status); }; }; then 8386 ac_header_compiler=yes 8387else 8388 echo "$as_me: failed program was:" >&5 8389sed 's/^/| /' conftest.$ac_ext >&5 8390 8391ac_header_compiler=no 8392fi 8393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8395echo "${ECHO_T}$ac_header_compiler" >&6 8396 8397# Is the header present? 8398echo "$as_me:$LINENO: checking $ac_header presence" >&5 8399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8400cat >conftest.$ac_ext <<_ACEOF 8401/* confdefs.h. */ 8402_ACEOF 8403cat confdefs.h >>conftest.$ac_ext 8404cat >>conftest.$ac_ext <<_ACEOF 8405/* end confdefs.h. */ 8406#include <$ac_header> 8407_ACEOF 8408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8410 ac_status=$? 8411 grep -v '^ *+' conftest.er1 >conftest.err 8412 rm -f conftest.er1 8413 cat conftest.err >&5 8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8415 (exit $ac_status); } >/dev/null; then 8416 if test -s conftest.err; then 8417 ac_cpp_err=$ac_c_preproc_warn_flag 8418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8419 else 8420 ac_cpp_err= 8421 fi 8422else 8423 ac_cpp_err=yes 8424fi 8425if test -z "$ac_cpp_err"; then 8426 ac_header_preproc=yes 8427else 8428 echo "$as_me: failed program was:" >&5 8429sed 's/^/| /' conftest.$ac_ext >&5 8430 8431 ac_header_preproc=no 8432fi 8433rm -f conftest.err conftest.$ac_ext 8434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8435echo "${ECHO_T}$ac_header_preproc" >&6 8436 8437# So? What about this header? 8438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8439 yes:no: ) 8440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8444 ac_header_preproc=yes 8445 ;; 8446 no:yes:* ) 8447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8459 ( 8460 cat <<\_ASBOX 8461## -------------------------------------------------- ## 8462## Report this to timidity-talk@lists.sourceforge.net ## 8463## -------------------------------------------------- ## 8464_ASBOX 8465 ) | 8466 sed "s/^/$as_me: WARNING: /" >&2 8467 ;; 8468esac 8469echo "$as_me:$LINENO: checking for $ac_header" >&5 8470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8471if eval "test \"\${$as_ac_Header+set}\" = set"; then 8472 echo $ECHO_N "(cached) $ECHO_C" >&6 8473else 8474 eval "$as_ac_Header=\$ac_header_preproc" 8475fi 8476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8478 8479fi 8480if test `eval echo '${'$as_ac_Header'}'` = yes; then 8481 cat >>confdefs.h <<_ACEOF 8482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8483_ACEOF 8484 8485fi 8486 8487done 8488 8489 8490if test "x$DMC" != xyes ; then 8491 8492for ac_header in \ 8493 unistd.h \ 8494 8495do 8496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8497if eval "test \"\${$as_ac_Header+set}\" = set"; then 8498 echo "$as_me:$LINENO: checking for $ac_header" >&5 8499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8500if eval "test \"\${$as_ac_Header+set}\" = set"; then 8501 echo $ECHO_N "(cached) $ECHO_C" >&6 8502fi 8503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8505else 8506 # Is the header compilable? 8507echo "$as_me:$LINENO: checking $ac_header usability" >&5 8508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8509cat >conftest.$ac_ext <<_ACEOF 8510/* confdefs.h. */ 8511_ACEOF 8512cat confdefs.h >>conftest.$ac_ext 8513cat >>conftest.$ac_ext <<_ACEOF 8514/* end confdefs.h. */ 8515$ac_includes_default 8516#include <$ac_header> 8517_ACEOF 8518rm -f conftest.$ac_objext 8519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8520 (eval $ac_compile) 2>conftest.er1 8521 ac_status=$? 8522 grep -v '^ *+' conftest.er1 >conftest.err 8523 rm -f conftest.er1 8524 cat conftest.err >&5 8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 (exit $ac_status); } && 8527 { ac_try='test -z "$ac_c_werror_flag" 8528 || test ! -s conftest.err' 8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8530 (eval $ac_try) 2>&5 8531 ac_status=$? 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); }; } && 8534 { ac_try='test -s conftest.$ac_objext' 8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8536 (eval $ac_try) 2>&5 8537 ac_status=$? 8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8539 (exit $ac_status); }; }; then 8540 ac_header_compiler=yes 8541else 8542 echo "$as_me: failed program was:" >&5 8543sed 's/^/| /' conftest.$ac_ext >&5 8544 8545ac_header_compiler=no 8546fi 8547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8549echo "${ECHO_T}$ac_header_compiler" >&6 8550 8551# Is the header present? 8552echo "$as_me:$LINENO: checking $ac_header presence" >&5 8553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8554cat >conftest.$ac_ext <<_ACEOF 8555/* confdefs.h. */ 8556_ACEOF 8557cat confdefs.h >>conftest.$ac_ext 8558cat >>conftest.$ac_ext <<_ACEOF 8559/* end confdefs.h. */ 8560#include <$ac_header> 8561_ACEOF 8562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8564 ac_status=$? 8565 grep -v '^ *+' conftest.er1 >conftest.err 8566 rm -f conftest.er1 8567 cat conftest.err >&5 8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8569 (exit $ac_status); } >/dev/null; then 8570 if test -s conftest.err; then 8571 ac_cpp_err=$ac_c_preproc_warn_flag 8572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8573 else 8574 ac_cpp_err= 8575 fi 8576else 8577 ac_cpp_err=yes 8578fi 8579if test -z "$ac_cpp_err"; then 8580 ac_header_preproc=yes 8581else 8582 echo "$as_me: failed program was:" >&5 8583sed 's/^/| /' conftest.$ac_ext >&5 8584 8585 ac_header_preproc=no 8586fi 8587rm -f conftest.err conftest.$ac_ext 8588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8589echo "${ECHO_T}$ac_header_preproc" >&6 8590 8591# So? What about this header? 8592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8593 yes:no: ) 8594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8597echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8598 ac_header_preproc=yes 8599 ;; 8600 no:yes:* ) 8601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8606echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8608echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8610echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8612echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8613 ( 8614 cat <<\_ASBOX 8615## -------------------------------------------------- ## 8616## Report this to timidity-talk@lists.sourceforge.net ## 8617## -------------------------------------------------- ## 8618_ASBOX 8619 ) | 8620 sed "s/^/$as_me: WARNING: /" >&2 8621 ;; 8622esac 8623echo "$as_me:$LINENO: checking for $ac_header" >&5 8624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8625if eval "test \"\${$as_ac_Header+set}\" = set"; then 8626 echo $ECHO_N "(cached) $ECHO_C" >&6 8627else 8628 eval "$as_ac_Header=\$ac_header_preproc" 8629fi 8630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8632 8633fi 8634if test `eval echo '${'$as_ac_Header'}'` = yes; then 8635 cat >>confdefs.h <<_ACEOF 8636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8637_ACEOF 8638 8639fi 8640 8641done 8642 8643fi 8644 8645 8646 8647for ac_header in \ 8648 X11/extensions/XShm.h X11/Xmu/ExtAgent.h 8649do 8650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8651echo "$as_me:$LINENO: checking for $ac_header" >&5 8652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8653if eval "test \"\${$as_ac_Header+set}\" = set"; then 8654 echo $ECHO_N "(cached) $ECHO_C" >&6 8655else 8656 cat >conftest.$ac_ext <<_ACEOF 8657/* confdefs.h. */ 8658_ACEOF 8659cat confdefs.h >>conftest.$ac_ext 8660cat >>conftest.$ac_ext <<_ACEOF 8661/* end confdefs.h. */ 8662 8663#ifdef HAVE_X11_XLIB_H 8664#include <X11/Xlib.h> 8665#endif 8666 8667 8668#include <$ac_header> 8669_ACEOF 8670rm -f conftest.$ac_objext 8671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8672 (eval $ac_compile) 2>conftest.er1 8673 ac_status=$? 8674 grep -v '^ *+' conftest.er1 >conftest.err 8675 rm -f conftest.er1 8676 cat conftest.err >&5 8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8678 (exit $ac_status); } && 8679 { ac_try='test -z "$ac_c_werror_flag" 8680 || test ! -s conftest.err' 8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8682 (eval $ac_try) 2>&5 8683 ac_status=$? 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); }; } && 8686 { ac_try='test -s conftest.$ac_objext' 8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8688 (eval $ac_try) 2>&5 8689 ac_status=$? 8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8691 (exit $ac_status); }; }; then 8692 eval "$as_ac_Header=yes" 8693else 8694 echo "$as_me: failed program was:" >&5 8695sed 's/^/| /' conftest.$ac_ext >&5 8696 8697eval "$as_ac_Header=no" 8698fi 8699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8700fi 8701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8703if test `eval echo '${'$as_ac_Header'}'` = yes; then 8704 cat >>confdefs.h <<_ACEOF 8705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8706_ACEOF 8707 8708fi 8709 8710done 8711 8712if test "${ac_cv_header_string_h+set}" = set; then 8713 echo "$as_me:$LINENO: checking for string.h" >&5 8714echo $ECHO_N "checking for string.h... $ECHO_C" >&6 8715if test "${ac_cv_header_string_h+set}" = set; then 8716 echo $ECHO_N "(cached) $ECHO_C" >&6 8717fi 8718echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 8719echo "${ECHO_T}$ac_cv_header_string_h" >&6 8720else 8721 # Is the header compilable? 8722echo "$as_me:$LINENO: checking string.h usability" >&5 8723echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 8724cat >conftest.$ac_ext <<_ACEOF 8725/* confdefs.h. */ 8726_ACEOF 8727cat confdefs.h >>conftest.$ac_ext 8728cat >>conftest.$ac_ext <<_ACEOF 8729/* end confdefs.h. */ 8730$ac_includes_default 8731#include <string.h> 8732_ACEOF 8733rm -f conftest.$ac_objext 8734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8735 (eval $ac_compile) 2>conftest.er1 8736 ac_status=$? 8737 grep -v '^ *+' conftest.er1 >conftest.err 8738 rm -f conftest.er1 8739 cat conftest.err >&5 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); } && 8742 { ac_try='test -z "$ac_c_werror_flag" 8743 || test ! -s conftest.err' 8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8745 (eval $ac_try) 2>&5 8746 ac_status=$? 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); }; } && 8749 { ac_try='test -s conftest.$ac_objext' 8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8751 (eval $ac_try) 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); }; }; then 8755 ac_header_compiler=yes 8756else 8757 echo "$as_me: failed program was:" >&5 8758sed 's/^/| /' conftest.$ac_ext >&5 8759 8760ac_header_compiler=no 8761fi 8762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8764echo "${ECHO_T}$ac_header_compiler" >&6 8765 8766# Is the header present? 8767echo "$as_me:$LINENO: checking string.h presence" >&5 8768echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 8769cat >conftest.$ac_ext <<_ACEOF 8770/* confdefs.h. */ 8771_ACEOF 8772cat confdefs.h >>conftest.$ac_ext 8773cat >>conftest.$ac_ext <<_ACEOF 8774/* end confdefs.h. */ 8775#include <string.h> 8776_ACEOF 8777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8779 ac_status=$? 8780 grep -v '^ *+' conftest.er1 >conftest.err 8781 rm -f conftest.er1 8782 cat conftest.err >&5 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 (exit $ac_status); } >/dev/null; then 8785 if test -s conftest.err; then 8786 ac_cpp_err=$ac_c_preproc_warn_flag 8787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8788 else 8789 ac_cpp_err= 8790 fi 8791else 8792 ac_cpp_err=yes 8793fi 8794if test -z "$ac_cpp_err"; then 8795 ac_header_preproc=yes 8796else 8797 echo "$as_me: failed program was:" >&5 8798sed 's/^/| /' conftest.$ac_ext >&5 8799 8800 ac_header_preproc=no 8801fi 8802rm -f conftest.err conftest.$ac_ext 8803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8804echo "${ECHO_T}$ac_header_preproc" >&6 8805 8806# So? What about this header? 8807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8808 yes:no: ) 8809 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 8810echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8811 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 8812echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 8813 ac_header_preproc=yes 8814 ;; 8815 no:yes:* ) 8816 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 8817echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 8818 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 8819echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 8820 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 8821echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 8822 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 8823echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 8824 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 8825echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 8826 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 8827echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 8828 ( 8829 cat <<\_ASBOX 8830## -------------------------------------------------- ## 8831## Report this to timidity-talk@lists.sourceforge.net ## 8832## -------------------------------------------------- ## 8833_ASBOX 8834 ) | 8835 sed "s/^/$as_me: WARNING: /" >&2 8836 ;; 8837esac 8838echo "$as_me:$LINENO: checking for string.h" >&5 8839echo $ECHO_N "checking for string.h... $ECHO_C" >&6 8840if test "${ac_cv_header_string_h+set}" = set; then 8841 echo $ECHO_N "(cached) $ECHO_C" >&6 8842else 8843 ac_cv_header_string_h=$ac_header_preproc 8844fi 8845echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 8846echo "${ECHO_T}$ac_cv_header_string_h" >&6 8847 8848fi 8849if test $ac_cv_header_string_h = yes; then 8850 : 8851else 8852 8853cat >>confdefs.h <<\_ACEOF 8854#define NO_STRING_H 1 8855_ACEOF 8856 8857fi 8858 8859 8860 8861# Checks for typedefs, structures, and compiler characteristics. 8862if test "x$WATCOM_C" != xyes ; then 8863echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 8864echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 8865if test "${ac_cv_c_bigendian+set}" = set; then 8866 echo $ECHO_N "(cached) $ECHO_C" >&6 8867else 8868 # See if sys/param.h defines the BYTE_ORDER macro. 8869cat >conftest.$ac_ext <<_ACEOF 8870/* confdefs.h. */ 8871_ACEOF 8872cat confdefs.h >>conftest.$ac_ext 8873cat >>conftest.$ac_ext <<_ACEOF 8874/* end confdefs.h. */ 8875#include <sys/types.h> 8876#include <sys/param.h> 8877 8878int 8879main () 8880{ 8881#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8882 bogus endian macros 8883#endif 8884 8885 ; 8886 return 0; 8887} 8888_ACEOF 8889rm -f conftest.$ac_objext 8890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8891 (eval $ac_compile) 2>conftest.er1 8892 ac_status=$? 8893 grep -v '^ *+' conftest.er1 >conftest.err 8894 rm -f conftest.er1 8895 cat conftest.err >&5 8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 (exit $ac_status); } && 8898 { ac_try='test -z "$ac_c_werror_flag" 8899 || test ! -s conftest.err' 8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8901 (eval $ac_try) 2>&5 8902 ac_status=$? 8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8904 (exit $ac_status); }; } && 8905 { ac_try='test -s conftest.$ac_objext' 8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8907 (eval $ac_try) 2>&5 8908 ac_status=$? 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8910 (exit $ac_status); }; }; then 8911 # It does; now see whether it defined to BIG_ENDIAN or not. 8912cat >conftest.$ac_ext <<_ACEOF 8913/* confdefs.h. */ 8914_ACEOF 8915cat confdefs.h >>conftest.$ac_ext 8916cat >>conftest.$ac_ext <<_ACEOF 8917/* end confdefs.h. */ 8918#include <sys/types.h> 8919#include <sys/param.h> 8920 8921int 8922main () 8923{ 8924#if BYTE_ORDER != BIG_ENDIAN 8925 not big endian 8926#endif 8927 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932rm -f conftest.$ac_objext 8933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8934 (eval $ac_compile) 2>conftest.er1 8935 ac_status=$? 8936 grep -v '^ *+' conftest.er1 >conftest.err 8937 rm -f conftest.er1 8938 cat conftest.err >&5 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 (exit $ac_status); } && 8941 { ac_try='test -z "$ac_c_werror_flag" 8942 || test ! -s conftest.err' 8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8944 (eval $ac_try) 2>&5 8945 ac_status=$? 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 (exit $ac_status); }; } && 8948 { ac_try='test -s conftest.$ac_objext' 8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8950 (eval $ac_try) 2>&5 8951 ac_status=$? 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); }; }; then 8954 ac_cv_c_bigendian=yes 8955else 8956 echo "$as_me: failed program was:" >&5 8957sed 's/^/| /' conftest.$ac_ext >&5 8958 8959ac_cv_c_bigendian=no 8960fi 8961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8962else 8963 echo "$as_me: failed program was:" >&5 8964sed 's/^/| /' conftest.$ac_ext >&5 8965 8966# It does not; compile a test program. 8967if test "$cross_compiling" = yes; then 8968 # try to guess the endianness by grepping values into an object file 8969 ac_cv_c_bigendian=unknown 8970 cat >conftest.$ac_ext <<_ACEOF 8971/* confdefs.h. */ 8972_ACEOF 8973cat confdefs.h >>conftest.$ac_ext 8974cat >>conftest.$ac_ext <<_ACEOF 8975/* end confdefs.h. */ 8976short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8977short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8978void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8979short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8980short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8981void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8982int 8983main () 8984{ 8985 _ascii (); _ebcdic (); 8986 ; 8987 return 0; 8988} 8989_ACEOF 8990rm -f conftest.$ac_objext 8991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8992 (eval $ac_compile) 2>conftest.er1 8993 ac_status=$? 8994 grep -v '^ *+' conftest.er1 >conftest.err 8995 rm -f conftest.er1 8996 cat conftest.err >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } && 8999 { ac_try='test -z "$ac_c_werror_flag" 9000 || test ! -s conftest.err' 9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9002 (eval $ac_try) 2>&5 9003 ac_status=$? 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); }; } && 9006 { ac_try='test -s conftest.$ac_objext' 9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9008 (eval $ac_try) 2>&5 9009 ac_status=$? 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 (exit $ac_status); }; }; then 9012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 9013 ac_cv_c_bigendian=yes 9014fi 9015if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9016 if test "$ac_cv_c_bigendian" = unknown; then 9017 ac_cv_c_bigendian=no 9018 else 9019 # finding both strings is unlikely to happen, but who knows? 9020 ac_cv_c_bigendian=unknown 9021 fi 9022fi 9023else 9024 echo "$as_me: failed program was:" >&5 9025sed 's/^/| /' conftest.$ac_ext >&5 9026 9027fi 9028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9029else 9030 cat >conftest.$ac_ext <<_ACEOF 9031/* confdefs.h. */ 9032_ACEOF 9033cat confdefs.h >>conftest.$ac_ext 9034cat >>conftest.$ac_ext <<_ACEOF 9035/* end confdefs.h. */ 9036int 9037main () 9038{ 9039 /* Are we little or big endian? From Harbison&Steele. */ 9040 union 9041 { 9042 long l; 9043 char c[sizeof (long)]; 9044 } u; 9045 u.l = 1; 9046 exit (u.c[sizeof (long) - 1] == 1); 9047} 9048_ACEOF 9049rm -f conftest$ac_exeext 9050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9051 (eval $ac_link) 2>&5 9052 ac_status=$? 9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9056 (eval $ac_try) 2>&5 9057 ac_status=$? 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9059 (exit $ac_status); }; }; then 9060 ac_cv_c_bigendian=no 9061else 9062 echo "$as_me: program exited with status $ac_status" >&5 9063echo "$as_me: failed program was:" >&5 9064sed 's/^/| /' conftest.$ac_ext >&5 9065 9066( exit $ac_status ) 9067ac_cv_c_bigendian=yes 9068fi 9069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9070fi 9071fi 9072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9073fi 9074echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 9075echo "${ECHO_T}$ac_cv_c_bigendian" >&6 9076case $ac_cv_c_bigendian in 9077 yes) 9078 9079cat >>confdefs.h <<\_ACEOF 9080#define WORDS_BIGENDIAN 1 9081_ACEOF 9082 ;; 9083 no) 9084 ;; 9085 *) 9086 { { echo "$as_me:$LINENO: error: unknown endianness 9087presetting ac_cv_c_bigendian=no (or yes) will help" >&5 9088echo "$as_me: error: unknown endianness 9089presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 9090 { (exit 1); exit 1; }; } ;; 9091esac 9092 9093fi 9094 9095echo "$as_me:$LINENO: checking whether char is unsigned" >&5 9096echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 9097if test "${ac_cv_c_char_unsigned+set}" = set; then 9098 echo $ECHO_N "(cached) $ECHO_C" >&6 9099else 9100 cat >conftest.$ac_ext <<_ACEOF 9101/* confdefs.h. */ 9102_ACEOF 9103cat confdefs.h >>conftest.$ac_ext 9104cat >>conftest.$ac_ext <<_ACEOF 9105/* end confdefs.h. */ 9106$ac_includes_default 9107int 9108main () 9109{ 9110static int test_array [1 - 2 * !(((char) -1) < 0)]; 9111test_array [0] = 0 9112 9113 ; 9114 return 0; 9115} 9116_ACEOF 9117rm -f conftest.$ac_objext 9118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9119 (eval $ac_compile) 2>conftest.er1 9120 ac_status=$? 9121 grep -v '^ *+' conftest.er1 >conftest.err 9122 rm -f conftest.er1 9123 cat conftest.err >&5 9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9125 (exit $ac_status); } && 9126 { ac_try='test -z "$ac_c_werror_flag" 9127 || test ! -s conftest.err' 9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9129 (eval $ac_try) 2>&5 9130 ac_status=$? 9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9132 (exit $ac_status); }; } && 9133 { ac_try='test -s conftest.$ac_objext' 9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9135 (eval $ac_try) 2>&5 9136 ac_status=$? 9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 (exit $ac_status); }; }; then 9139 ac_cv_c_char_unsigned=no 9140else 9141 echo "$as_me: failed program was:" >&5 9142sed 's/^/| /' conftest.$ac_ext >&5 9143 9144ac_cv_c_char_unsigned=yes 9145fi 9146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9147fi 9148echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 9149echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 9150if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9151 cat >>confdefs.h <<\_ACEOF 9152#define __CHAR_UNSIGNED__ 1 9153_ACEOF 9154 9155fi 9156 9157echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 9158echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 9159if test "${ac_cv_c_const+set}" = set; then 9160 echo $ECHO_N "(cached) $ECHO_C" >&6 9161else 9162 cat >conftest.$ac_ext <<_ACEOF 9163/* confdefs.h. */ 9164_ACEOF 9165cat confdefs.h >>conftest.$ac_ext 9166cat >>conftest.$ac_ext <<_ACEOF 9167/* end confdefs.h. */ 9168 9169int 9170main () 9171{ 9172/* FIXME: Include the comments suggested by Paul. */ 9173#ifndef __cplusplus 9174 /* Ultrix mips cc rejects this. */ 9175 typedef int charset[2]; 9176 const charset x; 9177 /* SunOS 4.1.1 cc rejects this. */ 9178 char const *const *ccp; 9179 char **p; 9180 /* NEC SVR4.0.2 mips cc rejects this. */ 9181 struct point {int x, y;}; 9182 static struct point const zero = {0,0}; 9183 /* AIX XL C 1.02.0.0 rejects this. 9184 It does not let you subtract one const X* pointer from another in 9185 an arm of an if-expression whose if-part is not a constant 9186 expression */ 9187 const char *g = "string"; 9188 ccp = &g + (g ? g-g : 0); 9189 /* HPUX 7.0 cc rejects these. */ 9190 ++ccp; 9191 p = (char**) ccp; 9192 ccp = (char const *const *) p; 9193 { /* SCO 3.2v4 cc rejects this. */ 9194 char *t; 9195 char const *s = 0 ? (char *) 0 : (char const *) 0; 9196 9197 *t++ = 0; 9198 } 9199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9200 int x[] = {25, 17}; 9201 const int *foo = &x[0]; 9202 ++foo; 9203 } 9204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9205 typedef const int *iptr; 9206 iptr p = 0; 9207 ++p; 9208 } 9209 { /* AIX XL C 1.02.0.0 rejects this saying 9210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9211 struct s { int j; const int *ap[3]; }; 9212 struct s *b; b->j = 5; 9213 } 9214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9215 const int foo = 10; 9216 } 9217#endif 9218 9219 ; 9220 return 0; 9221} 9222_ACEOF 9223rm -f conftest.$ac_objext 9224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9225 (eval $ac_compile) 2>conftest.er1 9226 ac_status=$? 9227 grep -v '^ *+' conftest.er1 >conftest.err 9228 rm -f conftest.er1 9229 cat conftest.err >&5 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9231 (exit $ac_status); } && 9232 { ac_try='test -z "$ac_c_werror_flag" 9233 || test ! -s conftest.err' 9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9235 (eval $ac_try) 2>&5 9236 ac_status=$? 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9238 (exit $ac_status); }; } && 9239 { ac_try='test -s conftest.$ac_objext' 9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9241 (eval $ac_try) 2>&5 9242 ac_status=$? 9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9244 (exit $ac_status); }; }; then 9245 ac_cv_c_const=yes 9246else 9247 echo "$as_me: failed program was:" >&5 9248sed 's/^/| /' conftest.$ac_ext >&5 9249 9250ac_cv_c_const=no 9251fi 9252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9253fi 9254echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9255echo "${ECHO_T}$ac_cv_c_const" >&6 9256if test $ac_cv_c_const = no; then 9257 9258cat >>confdefs.h <<\_ACEOF 9259#define const 9260_ACEOF 9261 9262fi 9263 9264echo "$as_me:$LINENO: checking for inline" >&5 9265echo $ECHO_N "checking for inline... $ECHO_C" >&6 9266if test "${ac_cv_c_inline+set}" = set; then 9267 echo $ECHO_N "(cached) $ECHO_C" >&6 9268else 9269 ac_cv_c_inline=no 9270for ac_kw in inline __inline__ __inline; do 9271 cat >conftest.$ac_ext <<_ACEOF 9272/* confdefs.h. */ 9273_ACEOF 9274cat confdefs.h >>conftest.$ac_ext 9275cat >>conftest.$ac_ext <<_ACEOF 9276/* end confdefs.h. */ 9277#ifndef __cplusplus 9278typedef int foo_t; 9279static $ac_kw foo_t static_foo () {return 0; } 9280$ac_kw foo_t foo () {return 0; } 9281#endif 9282 9283_ACEOF 9284rm -f conftest.$ac_objext 9285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9286 (eval $ac_compile) 2>conftest.er1 9287 ac_status=$? 9288 grep -v '^ *+' conftest.er1 >conftest.err 9289 rm -f conftest.er1 9290 cat conftest.err >&5 9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9292 (exit $ac_status); } && 9293 { ac_try='test -z "$ac_c_werror_flag" 9294 || test ! -s conftest.err' 9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9296 (eval $ac_try) 2>&5 9297 ac_status=$? 9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9299 (exit $ac_status); }; } && 9300 { ac_try='test -s conftest.$ac_objext' 9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9302 (eval $ac_try) 2>&5 9303 ac_status=$? 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9305 (exit $ac_status); }; }; then 9306 ac_cv_c_inline=$ac_kw; break 9307else 9308 echo "$as_me: failed program was:" >&5 9309sed 's/^/| /' conftest.$ac_ext >&5 9310 9311fi 9312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9313done 9314 9315fi 9316echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 9317echo "${ECHO_T}$ac_cv_c_inline" >&6 9318 9319 9320case $ac_cv_c_inline in 9321 inline | yes) ;; 9322 *) 9323 case $ac_cv_c_inline in 9324 no) ac_val=;; 9325 *) ac_val=$ac_cv_c_inline;; 9326 esac 9327 cat >>confdefs.h <<_ACEOF 9328#ifndef __cplusplus 9329#define inline $ac_val 9330#endif 9331_ACEOF 9332 ;; 9333esac 9334 9335echo "$as_me:$LINENO: checking for working volatile" >&5 9336echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 9337if test "${ac_cv_c_volatile+set}" = set; then 9338 echo $ECHO_N "(cached) $ECHO_C" >&6 9339else 9340 cat >conftest.$ac_ext <<_ACEOF 9341/* confdefs.h. */ 9342_ACEOF 9343cat confdefs.h >>conftest.$ac_ext 9344cat >>conftest.$ac_ext <<_ACEOF 9345/* end confdefs.h. */ 9346 9347int 9348main () 9349{ 9350 9351volatile int x; 9352int * volatile y; 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357rm -f conftest.$ac_objext 9358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9359 (eval $ac_compile) 2>conftest.er1 9360 ac_status=$? 9361 grep -v '^ *+' conftest.er1 >conftest.err 9362 rm -f conftest.er1 9363 cat conftest.err >&5 9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9365 (exit $ac_status); } && 9366 { ac_try='test -z "$ac_c_werror_flag" 9367 || test ! -s conftest.err' 9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9369 (eval $ac_try) 2>&5 9370 ac_status=$? 9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9372 (exit $ac_status); }; } && 9373 { ac_try='test -s conftest.$ac_objext' 9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9375 (eval $ac_try) 2>&5 9376 ac_status=$? 9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9378 (exit $ac_status); }; }; then 9379 ac_cv_c_volatile=yes 9380else 9381 echo "$as_me: failed program was:" >&5 9382sed 's/^/| /' conftest.$ac_ext >&5 9383 9384ac_cv_c_volatile=no 9385fi 9386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9387fi 9388echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 9389echo "${ECHO_T}$ac_cv_c_volatile" >&6 9390if test $ac_cv_c_volatile = no; then 9391 9392cat >>confdefs.h <<\_ACEOF 9393#define volatile 9394_ACEOF 9395 9396fi 9397 9398echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 9399echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6 9400if test "${ac_cv_c_stringize+set}" = set; then 9401 echo $ECHO_N "(cached) $ECHO_C" >&6 9402else 9403 cat >conftest.$ac_ext <<_ACEOF 9404/* confdefs.h. */ 9405_ACEOF 9406cat confdefs.h >>conftest.$ac_ext 9407cat >>conftest.$ac_ext <<_ACEOF 9408/* end confdefs.h. */ 9409#define x(y) #y 9410 9411char *s = x(teststring); 9412_ACEOF 9413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9414 $EGREP "#teststring" >/dev/null 2>&1; then 9415 ac_cv_c_stringize=no 9416else 9417 ac_cv_c_stringize=yes 9418fi 9419rm -f conftest* 9420 9421fi 9422echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 9423echo "${ECHO_T}$ac_cv_c_stringize" >&6 9424if test $ac_cv_c_stringize = yes; then 9425 9426cat >>confdefs.h <<\_ACEOF 9427#define HAVE_STRINGIZE 1 9428_ACEOF 9429 9430fi 9431 9432echo "$as_me:$LINENO: checking for function prototypes" >&5 9433echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 9434if test "$ac_cv_prog_cc_stdc" != no; then 9435 echo "$as_me:$LINENO: result: yes" >&5 9436echo "${ECHO_T}yes" >&6 9437 9438cat >>confdefs.h <<\_ACEOF 9439#define PROTOTYPES 1 9440_ACEOF 9441 9442 9443cat >>confdefs.h <<\_ACEOF 9444#define __PROTOTYPES 1 9445_ACEOF 9446 9447else 9448 echo "$as_me:$LINENO: result: no" >&5 9449echo "${ECHO_T}no" >&6 9450fi 9451 9452echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 9453echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 9454if test "${ac_cv_struct_tm+set}" = set; then 9455 echo $ECHO_N "(cached) $ECHO_C" >&6 9456else 9457 cat >conftest.$ac_ext <<_ACEOF 9458/* confdefs.h. */ 9459_ACEOF 9460cat confdefs.h >>conftest.$ac_ext 9461cat >>conftest.$ac_ext <<_ACEOF 9462/* end confdefs.h. */ 9463#include <sys/types.h> 9464#include <time.h> 9465 9466int 9467main () 9468{ 9469struct tm *tp; tp->tm_sec; 9470 ; 9471 return 0; 9472} 9473_ACEOF 9474rm -f conftest.$ac_objext 9475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9476 (eval $ac_compile) 2>conftest.er1 9477 ac_status=$? 9478 grep -v '^ *+' conftest.er1 >conftest.err 9479 rm -f conftest.er1 9480 cat conftest.err >&5 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 (exit $ac_status); } && 9483 { ac_try='test -z "$ac_c_werror_flag" 9484 || test ! -s conftest.err' 9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9486 (eval $ac_try) 2>&5 9487 ac_status=$? 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 (exit $ac_status); }; } && 9490 { ac_try='test -s conftest.$ac_objext' 9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9492 (eval $ac_try) 2>&5 9493 ac_status=$? 9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9495 (exit $ac_status); }; }; then 9496 ac_cv_struct_tm=time.h 9497else 9498 echo "$as_me: failed program was:" >&5 9499sed 's/^/| /' conftest.$ac_ext >&5 9500 9501ac_cv_struct_tm=sys/time.h 9502fi 9503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9504fi 9505echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 9506echo "${ECHO_T}$ac_cv_struct_tm" >&6 9507if test $ac_cv_struct_tm = sys/time.h; then 9508 9509cat >>confdefs.h <<\_ACEOF 9510#define TM_IN_SYS_TIME 1 9511_ACEOF 9512 9513fi 9514 9515if test "x$DMC" != xyes ; then 9516echo "$as_me:$LINENO: checking for size_t" >&5 9517echo $ECHO_N "checking for size_t... $ECHO_C" >&6 9518if test "${ac_cv_type_size_t+set}" = set; then 9519 echo $ECHO_N "(cached) $ECHO_C" >&6 9520else 9521 cat >conftest.$ac_ext <<_ACEOF 9522/* confdefs.h. */ 9523_ACEOF 9524cat confdefs.h >>conftest.$ac_ext 9525cat >>conftest.$ac_ext <<_ACEOF 9526/* end confdefs.h. */ 9527$ac_includes_default 9528int 9529main () 9530{ 9531if ((size_t *) 0) 9532 return 0; 9533if (sizeof (size_t)) 9534 return 0; 9535 ; 9536 return 0; 9537} 9538_ACEOF 9539rm -f conftest.$ac_objext 9540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9541 (eval $ac_compile) 2>conftest.er1 9542 ac_status=$? 9543 grep -v '^ *+' conftest.er1 >conftest.err 9544 rm -f conftest.er1 9545 cat conftest.err >&5 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); } && 9548 { ac_try='test -z "$ac_c_werror_flag" 9549 || test ! -s conftest.err' 9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9551 (eval $ac_try) 2>&5 9552 ac_status=$? 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 (exit $ac_status); }; } && 9555 { ac_try='test -s conftest.$ac_objext' 9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9557 (eval $ac_try) 2>&5 9558 ac_status=$? 9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); }; }; then 9561 ac_cv_type_size_t=yes 9562else 9563 echo "$as_me: failed program was:" >&5 9564sed 's/^/| /' conftest.$ac_ext >&5 9565 9566ac_cv_type_size_t=no 9567fi 9568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 9571echo "${ECHO_T}$ac_cv_type_size_t" >&6 9572if test $ac_cv_type_size_t = yes; then 9573 : 9574else 9575 9576cat >>confdefs.h <<_ACEOF 9577#define size_t unsigned 9578_ACEOF 9579 9580fi 9581 9582fi 9583if test "x$POCC" != xyes ; then 9584echo "$as_me:$LINENO: checking for off_t" >&5 9585echo $ECHO_N "checking for off_t... $ECHO_C" >&6 9586if test "${ac_cv_type_off_t+set}" = set; then 9587 echo $ECHO_N "(cached) $ECHO_C" >&6 9588else 9589 cat >conftest.$ac_ext <<_ACEOF 9590/* confdefs.h. */ 9591_ACEOF 9592cat confdefs.h >>conftest.$ac_ext 9593cat >>conftest.$ac_ext <<_ACEOF 9594/* end confdefs.h. */ 9595$ac_includes_default 9596int 9597main () 9598{ 9599if ((off_t *) 0) 9600 return 0; 9601if (sizeof (off_t)) 9602 return 0; 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607rm -f conftest.$ac_objext 9608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9609 (eval $ac_compile) 2>conftest.er1 9610 ac_status=$? 9611 grep -v '^ *+' conftest.er1 >conftest.err 9612 rm -f conftest.er1 9613 cat conftest.err >&5 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } && 9616 { ac_try='test -z "$ac_c_werror_flag" 9617 || test ! -s conftest.err' 9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 (eval $ac_try) 2>&5 9620 ac_status=$? 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 (exit $ac_status); }; } && 9623 { ac_try='test -s conftest.$ac_objext' 9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9625 (eval $ac_try) 2>&5 9626 ac_status=$? 9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9628 (exit $ac_status); }; }; then 9629 ac_cv_type_off_t=yes 9630else 9631 echo "$as_me: failed program was:" >&5 9632sed 's/^/| /' conftest.$ac_ext >&5 9633 9634ac_cv_type_off_t=no 9635fi 9636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9637fi 9638echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 9639echo "${ECHO_T}$ac_cv_type_off_t" >&6 9640if test $ac_cv_type_off_t = yes; then 9641 : 9642else 9643 9644cat >>confdefs.h <<_ACEOF 9645#define off_t long 9646_ACEOF 9647 9648fi 9649 9650echo "$as_me:$LINENO: checking for pid_t" >&5 9651echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 9652if test "${ac_cv_type_pid_t+set}" = set; then 9653 echo $ECHO_N "(cached) $ECHO_C" >&6 9654else 9655 cat >conftest.$ac_ext <<_ACEOF 9656/* confdefs.h. */ 9657_ACEOF 9658cat confdefs.h >>conftest.$ac_ext 9659cat >>conftest.$ac_ext <<_ACEOF 9660/* end confdefs.h. */ 9661$ac_includes_default 9662int 9663main () 9664{ 9665if ((pid_t *) 0) 9666 return 0; 9667if (sizeof (pid_t)) 9668 return 0; 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673rm -f conftest.$ac_objext 9674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9675 (eval $ac_compile) 2>conftest.er1 9676 ac_status=$? 9677 grep -v '^ *+' conftest.er1 >conftest.err 9678 rm -f conftest.er1 9679 cat conftest.err >&5 9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9681 (exit $ac_status); } && 9682 { ac_try='test -z "$ac_c_werror_flag" 9683 || test ! -s conftest.err' 9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9685 (eval $ac_try) 2>&5 9686 ac_status=$? 9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9688 (exit $ac_status); }; } && 9689 { ac_try='test -s conftest.$ac_objext' 9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9691 (eval $ac_try) 2>&5 9692 ac_status=$? 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9694 (exit $ac_status); }; }; then 9695 ac_cv_type_pid_t=yes 9696else 9697 echo "$as_me: failed program was:" >&5 9698sed 's/^/| /' conftest.$ac_ext >&5 9699 9700ac_cv_type_pid_t=no 9701fi 9702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9703fi 9704echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 9705echo "${ECHO_T}$ac_cv_type_pid_t" >&6 9706if test $ac_cv_type_pid_t = yes; then 9707 : 9708else 9709 9710cat >>confdefs.h <<_ACEOF 9711#define pid_t int 9712_ACEOF 9713 9714fi 9715 9716fi 9717 9718# Older versions of MinGW do not define ssize_t in sys/types 9719echo "$as_me:$LINENO: checking for ssize_t" >&5 9720echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 9721if eval "test \"\${ac_cv_type_$1+set}\" = set"; then 9722 echo $ECHO_N "(cached) $ECHO_C" >&6 9723else 9724 cat >conftest.$ac_ext <<_ACEOF 9725/* confdefs.h. */ 9726_ACEOF 9727cat confdefs.h >>conftest.$ac_ext 9728cat >>conftest.$ac_ext <<_ACEOF 9729/* end confdefs.h. */ 9730#include <sys/types.h> 9731#if STDC_HEADERS 9732#include <stdlib.h> 9733#include <stddef.h> 9734#endif 9735_ACEOF 9736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9737 $EGREP "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 9738 ac_cv_type_ssize_t=yes 9739else 9740 ac_cv_type_ssize_t=no 9741fi 9742rm -f conftest* 9743 9744fi 9745 9746 9747echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 9748echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 9749if test $ac_cv_type_ssize_t = yes; then 9750 9751cat >>confdefs.h <<\_ACEOF 9752#define HAVE_SSIZE_T 1 9753_ACEOF 9754 9755fi 9756 9757echo "$as_me:$LINENO: checking volatile declaration" >&5 9758echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6 9759if test "${timidity_cv_type_volatile+set}" = set; then 9760 echo $ECHO_N "(cached) $ECHO_C" >&6 9761else 9762 cat >conftest.$ac_ext <<_ACEOF 9763/* confdefs.h. */ 9764_ACEOF 9765cat confdefs.h >>conftest.$ac_ext 9766cat >>conftest.$ac_ext <<_ACEOF 9767/* end confdefs.h. */ 9768 9769int 9770main () 9771{ 9772volatile int x 9773 ; 9774 return 0; 9775} 9776_ACEOF 9777rm -f conftest.$ac_objext 9778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9779 (eval $ac_compile) 2>conftest.er1 9780 ac_status=$? 9781 grep -v '^ *+' conftest.er1 >conftest.err 9782 rm -f conftest.er1 9783 cat conftest.err >&5 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 (exit $ac_status); } && 9786 { ac_try='test -z "$ac_c_werror_flag" 9787 || test ! -s conftest.err' 9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9789 (eval $ac_try) 2>&5 9790 ac_status=$? 9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9792 (exit $ac_status); }; } && 9793 { ac_try='test -s conftest.$ac_objext' 9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9795 (eval $ac_try) 2>&5 9796 ac_status=$? 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); }; }; then 9799 timidity_cv_type_volatile=yes 9800else 9801 echo "$as_me: failed program was:" >&5 9802sed 's/^/| /' conftest.$ac_ext >&5 9803 9804timidity_cv_type_volatile=no 9805fi 9806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9807fi 9808echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5 9809echo "${ECHO_T}$timidity_cv_type_volatile" >&6 9810if test $timidity_cv_type_volatile = no; then 9811 9812cat >>confdefs.h <<\_ACEOF 9813#define NO_VOLATILE 1 9814_ACEOF 9815 9816fi 9817 9818echo "$as_me:$LINENO: checking union semun declaration" >&5 9819echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6 9820if test "${timidity_cv_type_union_semun+set}" = set; then 9821 echo $ECHO_N "(cached) $ECHO_C" >&6 9822else 9823 cat >conftest.$ac_ext <<_ACEOF 9824/* confdefs.h. */ 9825_ACEOF 9826cat confdefs.h >>conftest.$ac_ext 9827cat >>conftest.$ac_ext <<_ACEOF 9828/* end confdefs.h. */ 9829 9830#include <sys/types.h> 9831#include <sys/ipc.h> 9832#include <sys/sem.h> 9833 9834int 9835main () 9836{ 9837union semun x 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842rm -f conftest.$ac_objext 9843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9844 (eval $ac_compile) 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && 9851 { ac_try='test -z "$ac_c_werror_flag" 9852 || test ! -s conftest.err' 9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9854 (eval $ac_try) 2>&5 9855 ac_status=$? 9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9857 (exit $ac_status); }; } && 9858 { ac_try='test -s conftest.$ac_objext' 9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9860 (eval $ac_try) 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); }; }; then 9864 timidity_cv_type_union_semun=yes 9865else 9866 echo "$as_me: failed program was:" >&5 9867sed 's/^/| /' conftest.$ac_ext >&5 9868 9869timidity_cv_type_union_semun=no 9870fi 9871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9872fi 9873echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5 9874echo "${ECHO_T}$timidity_cv_type_union_semun" >&6 9875if test $timidity_cv_type_union_semun = yes; then 9876 9877cat >>confdefs.h <<\_ACEOF 9878#define HAVE_UNION_SEMUN 1 9879_ACEOF 9880 9881fi 9882 9883if test "x$MSYS" = xyes ; then 9884 case "x${CC}" in 9885 "xgcc"*) 9886 msnative_struct='' 9887 echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5 9888echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6 9889 if test -z "$ac_cv_prog_CC"; then 9890 our_gcc="$CC" 9891 else 9892 our_gcc="$ac_cv_prog_CC" 9893 fi 9894 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in 9895 2.) 9896 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then 9897 msnative_struct='-fnative-struct' 9898 fi 9899 ;; 9900 *) 9901 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then 9902 msnative_struct='-mms-bitfields' 9903 fi 9904 ;; 9905 esac 9906 if test x"$msnative_struct" = x ; then 9907 echo "$as_me:$LINENO: result: no way" >&5 9908echo "${ECHO_T}no way" >&6 9909 { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5 9910echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;} 9911 else 9912 CFLAGS="$CFLAGS $msnative_struct" 9913 CPPFLAGS="$CPPFLAGS $msnative_struct" 9914 echo "$as_me:$LINENO: result: ${msnative_struct}" >&5 9915echo "${ECHO_T}${msnative_struct}" >&6 9916 fi 9917 ;; 9918 *) 9919 ;; 9920 esac 9921fi 9922if test "x$MSYS" = xyes ; then 9923 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5 9924echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6 9925if test "${timidity_cv_header_new_mmsystem+set}" = set; then 9926 echo $ECHO_N "(cached) $ECHO_C" >&6 9927else 9928 cat >conftest.$ac_ext <<_ACEOF 9929/* confdefs.h. */ 9930_ACEOF 9931cat confdefs.h >>conftest.$ac_ext 9932cat >>conftest.$ac_ext <<_ACEOF 9933/* end confdefs.h. */ 9934 9935#include <windows.h> 9936#include <mmsystem.h> 9937 9938int 9939main () 9940{ 9941return WOM_OPEN != 0x3BB 9942 ; 9943 return 0; 9944} 9945_ACEOF 9946rm -f conftest.$ac_objext 9947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9948 (eval $ac_compile) 2>conftest.er1 9949 ac_status=$? 9950 grep -v '^ *+' conftest.er1 >conftest.err 9951 rm -f conftest.er1 9952 cat conftest.err >&5 9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9954 (exit $ac_status); } && 9955 { ac_try='test -z "$ac_c_werror_flag" 9956 || test ! -s conftest.err' 9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9958 (eval $ac_try) 2>&5 9959 ac_status=$? 9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 (exit $ac_status); }; } && 9962 { ac_try='test -s conftest.$ac_objext' 9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9964 (eval $ac_try) 2>&5 9965 ac_status=$? 9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9967 (exit $ac_status); }; }; then 9968 timidity_cv_header_new_mmsystem=yes 9969else 9970 echo "$as_me: failed program was:" >&5 9971sed 's/^/| /' conftest.$ac_ext >&5 9972 9973timidity_cv_header_new_mmsystem=no 9974fi 9975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9976fi 9977echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5 9978echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6 9979 if test $timidity_cv_header_new_mmsystem = yes; then 9980 9981cat >>confdefs.h <<\_ACEOF 9982#define HAVE_NEW_MMSYSTEM 1 9983_ACEOF 9984 9985 fi 9986fi 9987 9988# Checks for library functions. 9989echo "$as_me:$LINENO: checking for error_at_line" >&5 9990echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6 9991if test "${ac_cv_lib_error_at_line+set}" = set; then 9992 echo $ECHO_N "(cached) $ECHO_C" >&6 9993else 9994 cat >conftest.$ac_ext <<_ACEOF 9995/* confdefs.h. */ 9996_ACEOF 9997cat confdefs.h >>conftest.$ac_ext 9998cat >>conftest.$ac_ext <<_ACEOF 9999/* end confdefs.h. */ 10000$ac_includes_default 10001int 10002main () 10003{ 10004error_at_line (0, 0, "", 0, ""); 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009rm -f conftest.$ac_objext conftest$ac_exeext 10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10011 (eval $ac_link) 2>conftest.er1 10012 ac_status=$? 10013 grep -v '^ *+' conftest.er1 >conftest.err 10014 rm -f conftest.er1 10015 cat conftest.err >&5 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); } && 10018 { ac_try='test -z "$ac_c_werror_flag" 10019 || test ! -s conftest.err' 10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10021 (eval $ac_try) 2>&5 10022 ac_status=$? 10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10024 (exit $ac_status); }; } && 10025 { ac_try='test -s conftest$ac_exeext' 10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10027 (eval $ac_try) 2>&5 10028 ac_status=$? 10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10030 (exit $ac_status); }; }; then 10031 ac_cv_lib_error_at_line=yes 10032else 10033 echo "$as_me: failed program was:" >&5 10034sed 's/^/| /' conftest.$ac_ext >&5 10035 10036ac_cv_lib_error_at_line=no 10037fi 10038rm -f conftest.err conftest.$ac_objext \ 10039 conftest$ac_exeext conftest.$ac_ext 10040fi 10041echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 10042echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6 10043if test $ac_cv_lib_error_at_line = no; then 10044 case $LIBOBJS in 10045 "error.$ac_objext" | \ 10046 *" error.$ac_objext" | \ 10047 "error.$ac_objext "* | \ 10048 *" error.$ac_objext "* ) ;; 10049 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 10050esac 10051 10052fi 10053 10054if test "x$DMC" != xyes ; then 10055 10056 10057for ac_header in unistd.h vfork.h 10058do 10059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10060if eval "test \"\${$as_ac_Header+set}\" = set"; then 10061 echo "$as_me:$LINENO: checking for $ac_header" >&5 10062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10063if eval "test \"\${$as_ac_Header+set}\" = set"; then 10064 echo $ECHO_N "(cached) $ECHO_C" >&6 10065fi 10066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10068else 10069 # Is the header compilable? 10070echo "$as_me:$LINENO: checking $ac_header usability" >&5 10071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10072cat >conftest.$ac_ext <<_ACEOF 10073/* confdefs.h. */ 10074_ACEOF 10075cat confdefs.h >>conftest.$ac_ext 10076cat >>conftest.$ac_ext <<_ACEOF 10077/* end confdefs.h. */ 10078$ac_includes_default 10079#include <$ac_header> 10080_ACEOF 10081rm -f conftest.$ac_objext 10082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10083 (eval $ac_compile) 2>conftest.er1 10084 ac_status=$? 10085 grep -v '^ *+' conftest.er1 >conftest.err 10086 rm -f conftest.er1 10087 cat conftest.err >&5 10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10089 (exit $ac_status); } && 10090 { ac_try='test -z "$ac_c_werror_flag" 10091 || test ! -s conftest.err' 10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10093 (eval $ac_try) 2>&5 10094 ac_status=$? 10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); }; } && 10097 { ac_try='test -s conftest.$ac_objext' 10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; }; then 10103 ac_header_compiler=yes 10104else 10105 echo "$as_me: failed program was:" >&5 10106sed 's/^/| /' conftest.$ac_ext >&5 10107 10108ac_header_compiler=no 10109fi 10110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10112echo "${ECHO_T}$ac_header_compiler" >&6 10113 10114# Is the header present? 10115echo "$as_me:$LINENO: checking $ac_header presence" >&5 10116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10117cat >conftest.$ac_ext <<_ACEOF 10118/* confdefs.h. */ 10119_ACEOF 10120cat confdefs.h >>conftest.$ac_ext 10121cat >>conftest.$ac_ext <<_ACEOF 10122/* end confdefs.h. */ 10123#include <$ac_header> 10124_ACEOF 10125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10127 ac_status=$? 10128 grep -v '^ *+' conftest.er1 >conftest.err 10129 rm -f conftest.er1 10130 cat conftest.err >&5 10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10132 (exit $ac_status); } >/dev/null; then 10133 if test -s conftest.err; then 10134 ac_cpp_err=$ac_c_preproc_warn_flag 10135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10136 else 10137 ac_cpp_err= 10138 fi 10139else 10140 ac_cpp_err=yes 10141fi 10142if test -z "$ac_cpp_err"; then 10143 ac_header_preproc=yes 10144else 10145 echo "$as_me: failed program was:" >&5 10146sed 's/^/| /' conftest.$ac_ext >&5 10147 10148 ac_header_preproc=no 10149fi 10150rm -f conftest.err conftest.$ac_ext 10151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10152echo "${ECHO_T}$ac_header_preproc" >&6 10153 10154# So? What about this header? 10155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10156 yes:no: ) 10157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10161 ac_header_preproc=yes 10162 ;; 10163 no:yes:* ) 10164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10176 ( 10177 cat <<\_ASBOX 10178## -------------------------------------------------- ## 10179## Report this to timidity-talk@lists.sourceforge.net ## 10180## -------------------------------------------------- ## 10181_ASBOX 10182 ) | 10183 sed "s/^/$as_me: WARNING: /" >&2 10184 ;; 10185esac 10186echo "$as_me:$LINENO: checking for $ac_header" >&5 10187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10188if eval "test \"\${$as_ac_Header+set}\" = set"; then 10189 echo $ECHO_N "(cached) $ECHO_C" >&6 10190else 10191 eval "$as_ac_Header=\$ac_header_preproc" 10192fi 10193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10195 10196fi 10197if test `eval echo '${'$as_ac_Header'}'` = yes; then 10198 cat >>confdefs.h <<_ACEOF 10199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10200_ACEOF 10201 10202fi 10203 10204done 10205 10206 10207 10208for ac_func in fork vfork 10209do 10210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10211echo "$as_me:$LINENO: checking for $ac_func" >&5 10212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10213if eval "test \"\${$as_ac_var+set}\" = set"; then 10214 echo $ECHO_N "(cached) $ECHO_C" >&6 10215else 10216 cat >conftest.$ac_ext <<_ACEOF 10217/* confdefs.h. */ 10218_ACEOF 10219cat confdefs.h >>conftest.$ac_ext 10220cat >>conftest.$ac_ext <<_ACEOF 10221/* end confdefs.h. */ 10222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10223 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10224#define $ac_func innocuous_$ac_func 10225 10226/* System header to define __stub macros and hopefully few prototypes, 10227 which can conflict with char $ac_func (); below. 10228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10229 <limits.h> exists even on freestanding compilers. */ 10230 10231#ifdef __STDC__ 10232# include <limits.h> 10233#else 10234# include <assert.h> 10235#endif 10236 10237#undef $ac_func 10238 10239/* Override any gcc2 internal prototype to avoid an error. */ 10240#ifdef __cplusplus 10241extern "C" 10242{ 10243#endif 10244/* We use char because int might match the return type of a gcc2 10245 builtin and then its argument prototype would still apply. */ 10246char $ac_func (); 10247/* The GNU C library defines this for functions which it implements 10248 to always fail with ENOSYS. Some functions are actually named 10249 something starting with __ and the normal name is an alias. */ 10250#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10251choke me 10252#else 10253char (*f) () = $ac_func; 10254#endif 10255#ifdef __cplusplus 10256} 10257#endif 10258 10259int 10260main () 10261{ 10262return f != $ac_func; 10263 ; 10264 return 0; 10265} 10266_ACEOF 10267rm -f conftest.$ac_objext conftest$ac_exeext 10268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10269 (eval $ac_link) 2>conftest.er1 10270 ac_status=$? 10271 grep -v '^ *+' conftest.er1 >conftest.err 10272 rm -f conftest.er1 10273 cat conftest.err >&5 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10275 (exit $ac_status); } && 10276 { ac_try='test -z "$ac_c_werror_flag" 10277 || test ! -s conftest.err' 10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10279 (eval $ac_try) 2>&5 10280 ac_status=$? 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 (exit $ac_status); }; } && 10283 { ac_try='test -s conftest$ac_exeext' 10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10285 (eval $ac_try) 2>&5 10286 ac_status=$? 10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10288 (exit $ac_status); }; }; then 10289 eval "$as_ac_var=yes" 10290else 10291 echo "$as_me: failed program was:" >&5 10292sed 's/^/| /' conftest.$ac_ext >&5 10293 10294eval "$as_ac_var=no" 10295fi 10296rm -f conftest.err conftest.$ac_objext \ 10297 conftest$ac_exeext conftest.$ac_ext 10298fi 10299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10301if test `eval echo '${'$as_ac_var'}'` = yes; then 10302 cat >>confdefs.h <<_ACEOF 10303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10304_ACEOF 10305 10306fi 10307done 10308 10309if test "x$ac_cv_func_fork" = xyes; then 10310 echo "$as_me:$LINENO: checking for working fork" >&5 10311echo $ECHO_N "checking for working fork... $ECHO_C" >&6 10312if test "${ac_cv_func_fork_works+set}" = set; then 10313 echo $ECHO_N "(cached) $ECHO_C" >&6 10314else 10315 if test "$cross_compiling" = yes; then 10316 ac_cv_func_fork_works=cross 10317else 10318 cat >conftest.$ac_ext <<_ACEOF 10319/* By Ruediger Kuhlmann. */ 10320 #include <sys/types.h> 10321 #if HAVE_UNISTD_H 10322 # include <unistd.h> 10323 #endif 10324 /* Some systems only have a dummy stub for fork() */ 10325 int main () 10326 { 10327 if (fork() < 0) 10328 exit (1); 10329 exit (0); 10330 } 10331_ACEOF 10332rm -f conftest$ac_exeext 10333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10334 (eval $ac_link) 2>&5 10335 ac_status=$? 10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10339 (eval $ac_try) 2>&5 10340 ac_status=$? 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10342 (exit $ac_status); }; }; then 10343 ac_cv_func_fork_works=yes 10344else 10345 echo "$as_me: program exited with status $ac_status" >&5 10346echo "$as_me: failed program was:" >&5 10347sed 's/^/| /' conftest.$ac_ext >&5 10348 10349( exit $ac_status ) 10350ac_cv_func_fork_works=no 10351fi 10352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10353fi 10354fi 10355echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 10356echo "${ECHO_T}$ac_cv_func_fork_works" >&6 10357 10358else 10359 ac_cv_func_fork_works=$ac_cv_func_fork 10360fi 10361if test "x$ac_cv_func_fork_works" = xcross; then 10362 case $host in 10363 *-*-amigaos* | *-*-msdosdjgpp*) 10364 # Override, as these systems have only a dummy fork() stub 10365 ac_cv_func_fork_works=no 10366 ;; 10367 *) 10368 ac_cv_func_fork_works=yes 10369 ;; 10370 esac 10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10372echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10373fi 10374ac_cv_func_vfork_works=$ac_cv_func_vfork 10375if test "x$ac_cv_func_vfork" = xyes; then 10376 echo "$as_me:$LINENO: checking for working vfork" >&5 10377echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 10378if test "${ac_cv_func_vfork_works+set}" = set; then 10379 echo $ECHO_N "(cached) $ECHO_C" >&6 10380else 10381 if test "$cross_compiling" = yes; then 10382 ac_cv_func_vfork_works=cross 10383else 10384 cat >conftest.$ac_ext <<_ACEOF 10385/* confdefs.h. */ 10386_ACEOF 10387cat confdefs.h >>conftest.$ac_ext 10388cat >>conftest.$ac_ext <<_ACEOF 10389/* end confdefs.h. */ 10390/* Thanks to Paul Eggert for this test. */ 10391#include <stdio.h> 10392#include <stdlib.h> 10393#include <sys/types.h> 10394#include <sys/stat.h> 10395#include <sys/wait.h> 10396#if HAVE_UNISTD_H 10397# include <unistd.h> 10398#endif 10399#if HAVE_VFORK_H 10400# include <vfork.h> 10401#endif 10402/* On some sparc systems, changes by the child to local and incoming 10403 argument registers are propagated back to the parent. The compiler 10404 is told about this with #include <vfork.h>, but some compilers 10405 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10406 static variable whose address is put into a register that is 10407 clobbered by the vfork. */ 10408static void 10409#ifdef __cplusplus 10410sparc_address_test (int arg) 10411# else 10412sparc_address_test (arg) int arg; 10413#endif 10414{ 10415 static pid_t child; 10416 if (!child) { 10417 child = vfork (); 10418 if (child < 0) { 10419 perror ("vfork"); 10420 _exit(2); 10421 } 10422 if (!child) { 10423 arg = getpid(); 10424 write(-1, "", 0); 10425 _exit (arg); 10426 } 10427 } 10428} 10429 10430int 10431main () 10432{ 10433 pid_t parent = getpid (); 10434 pid_t child; 10435 10436 sparc_address_test (0); 10437 10438 child = vfork (); 10439 10440 if (child == 0) { 10441 /* Here is another test for sparc vfork register problems. This 10442 test uses lots of local variables, at least as many local 10443 variables as main has allocated so far including compiler 10444 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 10445 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 10446 reuse the register of parent for one of the local variables, 10447 since it will think that parent can't possibly be used any more 10448 in this routine. Assigning to the local variable will thus 10449 munge parent in the parent process. */ 10450 pid_t 10451 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 10452 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 10453 /* Convince the compiler that p..p7 are live; otherwise, it might 10454 use the same hardware register for all 8 local variables. */ 10455 if (p != p1 || p != p2 || p != p3 || p != p4 10456 || p != p5 || p != p6 || p != p7) 10457 _exit(1); 10458 10459 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 10460 from child file descriptors. If the child closes a descriptor 10461 before it execs or exits, this munges the parent's descriptor 10462 as well. Test for this by closing stdout in the child. */ 10463 _exit(close(fileno(stdout)) != 0); 10464 } else { 10465 int status; 10466 struct stat st; 10467 10468 while (wait(&status) != child) 10469 ; 10470 exit( 10471 /* Was there some problem with vforking? */ 10472 child < 0 10473 10474 /* Did the child fail? (This shouldn't happen.) */ 10475 || status 10476 10477 /* Did the vfork/compiler bug occur? */ 10478 || parent != getpid() 10479 10480 /* Did the file descriptor bug occur? */ 10481 || fstat(fileno(stdout), &st) != 0 10482 ); 10483 } 10484} 10485_ACEOF 10486rm -f conftest$ac_exeext 10487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10488 (eval $ac_link) 2>&5 10489 ac_status=$? 10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10493 (eval $ac_try) 2>&5 10494 ac_status=$? 10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10496 (exit $ac_status); }; }; then 10497 ac_cv_func_vfork_works=yes 10498else 10499 echo "$as_me: program exited with status $ac_status" >&5 10500echo "$as_me: failed program was:" >&5 10501sed 's/^/| /' conftest.$ac_ext >&5 10502 10503( exit $ac_status ) 10504ac_cv_func_vfork_works=no 10505fi 10506rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10507fi 10508fi 10509echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 10510echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 10511 10512fi; 10513if test "x$ac_cv_func_fork_works" = xcross; then 10514 ac_cv_func_vfork_works=$ac_cv_func_vfork 10515 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 10516echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 10517fi 10518 10519if test "x$ac_cv_func_vfork_works" = xyes; then 10520 10521cat >>confdefs.h <<\_ACEOF 10522#define HAVE_WORKING_VFORK 1 10523_ACEOF 10524 10525else 10526 10527cat >>confdefs.h <<\_ACEOF 10528#define vfork fork 10529_ACEOF 10530 10531fi 10532if test "x$ac_cv_func_fork_works" = xyes; then 10533 10534cat >>confdefs.h <<\_ACEOF 10535#define HAVE_WORKING_FORK 1 10536_ACEOF 10537 10538fi 10539 10540fi 10541echo "$as_me:$LINENO: checking for working memcmp" >&5 10542echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 10543if test "${ac_cv_func_memcmp_working+set}" = set; then 10544 echo $ECHO_N "(cached) $ECHO_C" >&6 10545else 10546 if test "$cross_compiling" = yes; then 10547 ac_cv_func_memcmp_working=no 10548else 10549 cat >conftest.$ac_ext <<_ACEOF 10550/* confdefs.h. */ 10551_ACEOF 10552cat confdefs.h >>conftest.$ac_ext 10553cat >>conftest.$ac_ext <<_ACEOF 10554/* end confdefs.h. */ 10555$ac_includes_default 10556int 10557main () 10558{ 10559 10560 /* Some versions of memcmp are not 8-bit clean. */ 10561 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 10562 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 10563 exit (1); 10564 10565 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 10566 or more and with at least one buffer not starting on a 4-byte boundary. 10567 William Lewis provided this test program. */ 10568 { 10569 char foo[21]; 10570 char bar[21]; 10571 int i; 10572 for (i = 0; i < 4; i++) 10573 { 10574 char *a = foo + i; 10575 char *b = bar + i; 10576 strcpy (a, "--------01111111"); 10577 strcpy (b, "--------10000000"); 10578 if (memcmp (a, b, 16) >= 0) 10579 exit (1); 10580 } 10581 exit (0); 10582 } 10583 10584 ; 10585 return 0; 10586} 10587_ACEOF 10588rm -f conftest$ac_exeext 10589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10590 (eval $ac_link) 2>&5 10591 ac_status=$? 10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10595 (eval $ac_try) 2>&5 10596 ac_status=$? 10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10598 (exit $ac_status); }; }; then 10599 ac_cv_func_memcmp_working=yes 10600else 10601 echo "$as_me: program exited with status $ac_status" >&5 10602echo "$as_me: failed program was:" >&5 10603sed 's/^/| /' conftest.$ac_ext >&5 10604 10605( exit $ac_status ) 10606ac_cv_func_memcmp_working=no 10607fi 10608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10609fi 10610fi 10611echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 10612echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 10613test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 10614 "memcmp.$ac_objext" | \ 10615 *" memcmp.$ac_objext" | \ 10616 "memcmp.$ac_objext "* | \ 10617 *" memcmp.$ac_objext "* ) ;; 10618 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 10619esac 10620 10621 10622if test "x$DMC" != xyes ; then 10623 10624 10625for ac_header in stdlib.h unistd.h 10626do 10627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10628if eval "test \"\${$as_ac_Header+set}\" = set"; then 10629 echo "$as_me:$LINENO: checking for $ac_header" >&5 10630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10631if eval "test \"\${$as_ac_Header+set}\" = set"; then 10632 echo $ECHO_N "(cached) $ECHO_C" >&6 10633fi 10634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10636else 10637 # Is the header compilable? 10638echo "$as_me:$LINENO: checking $ac_header usability" >&5 10639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10640cat >conftest.$ac_ext <<_ACEOF 10641/* confdefs.h. */ 10642_ACEOF 10643cat confdefs.h >>conftest.$ac_ext 10644cat >>conftest.$ac_ext <<_ACEOF 10645/* end confdefs.h. */ 10646$ac_includes_default 10647#include <$ac_header> 10648_ACEOF 10649rm -f conftest.$ac_objext 10650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10651 (eval $ac_compile) 2>conftest.er1 10652 ac_status=$? 10653 grep -v '^ *+' conftest.er1 >conftest.err 10654 rm -f conftest.er1 10655 cat conftest.err >&5 10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10657 (exit $ac_status); } && 10658 { ac_try='test -z "$ac_c_werror_flag" 10659 || test ! -s conftest.err' 10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10661 (eval $ac_try) 2>&5 10662 ac_status=$? 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10664 (exit $ac_status); }; } && 10665 { ac_try='test -s conftest.$ac_objext' 10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10667 (eval $ac_try) 2>&5 10668 ac_status=$? 10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 (exit $ac_status); }; }; then 10671 ac_header_compiler=yes 10672else 10673 echo "$as_me: failed program was:" >&5 10674sed 's/^/| /' conftest.$ac_ext >&5 10675 10676ac_header_compiler=no 10677fi 10678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10680echo "${ECHO_T}$ac_header_compiler" >&6 10681 10682# Is the header present? 10683echo "$as_me:$LINENO: checking $ac_header presence" >&5 10684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10685cat >conftest.$ac_ext <<_ACEOF 10686/* confdefs.h. */ 10687_ACEOF 10688cat confdefs.h >>conftest.$ac_ext 10689cat >>conftest.$ac_ext <<_ACEOF 10690/* end confdefs.h. */ 10691#include <$ac_header> 10692_ACEOF 10693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10695 ac_status=$? 10696 grep -v '^ *+' conftest.er1 >conftest.err 10697 rm -f conftest.er1 10698 cat conftest.err >&5 10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10700 (exit $ac_status); } >/dev/null; then 10701 if test -s conftest.err; then 10702 ac_cpp_err=$ac_c_preproc_warn_flag 10703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10704 else 10705 ac_cpp_err= 10706 fi 10707else 10708 ac_cpp_err=yes 10709fi 10710if test -z "$ac_cpp_err"; then 10711 ac_header_preproc=yes 10712else 10713 echo "$as_me: failed program was:" >&5 10714sed 's/^/| /' conftest.$ac_ext >&5 10715 10716 ac_header_preproc=no 10717fi 10718rm -f conftest.err conftest.$ac_ext 10719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10720echo "${ECHO_T}$ac_header_preproc" >&6 10721 10722# So? What about this header? 10723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10724 yes:no: ) 10725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10729 ac_header_preproc=yes 10730 ;; 10731 no:yes:* ) 10732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10744 ( 10745 cat <<\_ASBOX 10746## -------------------------------------------------- ## 10747## Report this to timidity-talk@lists.sourceforge.net ## 10748## -------------------------------------------------- ## 10749_ASBOX 10750 ) | 10751 sed "s/^/$as_me: WARNING: /" >&2 10752 ;; 10753esac 10754echo "$as_me:$LINENO: checking for $ac_header" >&5 10755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10756if eval "test \"\${$as_ac_Header+set}\" = set"; then 10757 echo $ECHO_N "(cached) $ECHO_C" >&6 10758else 10759 eval "$as_ac_Header=\$ac_header_preproc" 10760fi 10761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10763 10764fi 10765if test `eval echo '${'$as_ac_Header'}'` = yes; then 10766 cat >>confdefs.h <<_ACEOF 10767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10768_ACEOF 10769 10770fi 10771 10772done 10773 10774 10775for ac_func in getpagesize 10776do 10777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10778echo "$as_me:$LINENO: checking for $ac_func" >&5 10779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10780if eval "test \"\${$as_ac_var+set}\" = set"; then 10781 echo $ECHO_N "(cached) $ECHO_C" >&6 10782else 10783 cat >conftest.$ac_ext <<_ACEOF 10784/* confdefs.h. */ 10785_ACEOF 10786cat confdefs.h >>conftest.$ac_ext 10787cat >>conftest.$ac_ext <<_ACEOF 10788/* end confdefs.h. */ 10789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10791#define $ac_func innocuous_$ac_func 10792 10793/* System header to define __stub macros and hopefully few prototypes, 10794 which can conflict with char $ac_func (); below. 10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10796 <limits.h> exists even on freestanding compilers. */ 10797 10798#ifdef __STDC__ 10799# include <limits.h> 10800#else 10801# include <assert.h> 10802#endif 10803 10804#undef $ac_func 10805 10806/* Override any gcc2 internal prototype to avoid an error. */ 10807#ifdef __cplusplus 10808extern "C" 10809{ 10810#endif 10811/* We use char because int might match the return type of a gcc2 10812 builtin and then its argument prototype would still apply. */ 10813char $ac_func (); 10814/* The GNU C library defines this for functions which it implements 10815 to always fail with ENOSYS. Some functions are actually named 10816 something starting with __ and the normal name is an alias. */ 10817#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10818choke me 10819#else 10820char (*f) () = $ac_func; 10821#endif 10822#ifdef __cplusplus 10823} 10824#endif 10825 10826int 10827main () 10828{ 10829return f != $ac_func; 10830 ; 10831 return 0; 10832} 10833_ACEOF 10834rm -f conftest.$ac_objext conftest$ac_exeext 10835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10836 (eval $ac_link) 2>conftest.er1 10837 ac_status=$? 10838 grep -v '^ *+' conftest.er1 >conftest.err 10839 rm -f conftest.er1 10840 cat conftest.err >&5 10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10842 (exit $ac_status); } && 10843 { ac_try='test -z "$ac_c_werror_flag" 10844 || test ! -s conftest.err' 10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10846 (eval $ac_try) 2>&5 10847 ac_status=$? 10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10849 (exit $ac_status); }; } && 10850 { ac_try='test -s conftest$ac_exeext' 10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10852 (eval $ac_try) 2>&5 10853 ac_status=$? 10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10855 (exit $ac_status); }; }; then 10856 eval "$as_ac_var=yes" 10857else 10858 echo "$as_me: failed program was:" >&5 10859sed 's/^/| /' conftest.$ac_ext >&5 10860 10861eval "$as_ac_var=no" 10862fi 10863rm -f conftest.err conftest.$ac_objext \ 10864 conftest$ac_exeext conftest.$ac_ext 10865fi 10866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10868if test `eval echo '${'$as_ac_var'}'` = yes; then 10869 cat >>confdefs.h <<_ACEOF 10870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10871_ACEOF 10872 10873fi 10874done 10875 10876echo "$as_me:$LINENO: checking for working mmap" >&5 10877echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 10878if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 10879 echo $ECHO_N "(cached) $ECHO_C" >&6 10880else 10881 if test "$cross_compiling" = yes; then 10882 ac_cv_func_mmap_fixed_mapped=no 10883else 10884 cat >conftest.$ac_ext <<_ACEOF 10885/* confdefs.h. */ 10886_ACEOF 10887cat confdefs.h >>conftest.$ac_ext 10888cat >>conftest.$ac_ext <<_ACEOF 10889/* end confdefs.h. */ 10890$ac_includes_default 10891/* malloc might have been renamed as rpl_malloc. */ 10892#undef malloc 10893 10894/* Thanks to Mike Haertel and Jim Avera for this test. 10895 Here is a matrix of mmap possibilities: 10896 mmap private not fixed 10897 mmap private fixed at somewhere currently unmapped 10898 mmap private fixed at somewhere already mapped 10899 mmap shared not fixed 10900 mmap shared fixed at somewhere currently unmapped 10901 mmap shared fixed at somewhere already mapped 10902 For private mappings, we should verify that changes cannot be read() 10903 back from the file, nor mmap's back from the file at a different 10904 address. (There have been systems where private was not correctly 10905 implemented like the infamous i386 svr4.0, and systems where the 10906 VM page cache was not coherent with the file system buffer cache 10907 like early versions of FreeBSD and possibly contemporary NetBSD.) 10908 For shared mappings, we should conversely verify that changes get 10909 propagated back to all the places they're supposed to be. 10910 10911 Grep wants private fixed already mapped. 10912 The main things grep needs to know about mmap are: 10913 * does it exist and is it safe to write into the mmap'd area 10914 * how to use it (BSD variants) */ 10915 10916#include <fcntl.h> 10917#include <sys/mman.h> 10918 10919#if !STDC_HEADERS && !HAVE_STDLIB_H 10920char *malloc (); 10921#endif 10922 10923/* This mess was copied from the GNU getpagesize.h. */ 10924#if !HAVE_GETPAGESIZE 10925/* Assume that all systems that can run configure have sys/param.h. */ 10926# if !HAVE_SYS_PARAM_H 10927# define HAVE_SYS_PARAM_H 1 10928# endif 10929 10930# ifdef _SC_PAGESIZE 10931# define getpagesize() sysconf(_SC_PAGESIZE) 10932# else /* no _SC_PAGESIZE */ 10933# if HAVE_SYS_PARAM_H 10934# include <sys/param.h> 10935# ifdef EXEC_PAGESIZE 10936# define getpagesize() EXEC_PAGESIZE 10937# else /* no EXEC_PAGESIZE */ 10938# ifdef NBPG 10939# define getpagesize() NBPG * CLSIZE 10940# ifndef CLSIZE 10941# define CLSIZE 1 10942# endif /* no CLSIZE */ 10943# else /* no NBPG */ 10944# ifdef NBPC 10945# define getpagesize() NBPC 10946# else /* no NBPC */ 10947# ifdef PAGESIZE 10948# define getpagesize() PAGESIZE 10949# endif /* PAGESIZE */ 10950# endif /* no NBPC */ 10951# endif /* no NBPG */ 10952# endif /* no EXEC_PAGESIZE */ 10953# else /* no HAVE_SYS_PARAM_H */ 10954# define getpagesize() 8192 /* punt totally */ 10955# endif /* no HAVE_SYS_PARAM_H */ 10956# endif /* no _SC_PAGESIZE */ 10957 10958#endif /* no HAVE_GETPAGESIZE */ 10959 10960int 10961main () 10962{ 10963 char *data, *data2, *data3; 10964 int i, pagesize; 10965 int fd; 10966 10967 pagesize = getpagesize (); 10968 10969 /* First, make a file with some known garbage in it. */ 10970 data = (char *) malloc (pagesize); 10971 if (!data) 10972 exit (1); 10973 for (i = 0; i < pagesize; ++i) 10974 *(data + i) = rand (); 10975 umask (0); 10976 fd = creat ("conftest.mmap", 0600); 10977 if (fd < 0) 10978 exit (1); 10979 if (write (fd, data, pagesize) != pagesize) 10980 exit (1); 10981 close (fd); 10982 10983 /* Next, try to mmap the file at a fixed address which already has 10984 something else allocated at it. If we can, also make sure that 10985 we see the same garbage. */ 10986 fd = open ("conftest.mmap", O_RDWR); 10987 if (fd < 0) 10988 exit (1); 10989 data2 = (char *) malloc (2 * pagesize); 10990 if (!data2) 10991 exit (1); 10992 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 10993 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10994 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10995 exit (1); 10996 for (i = 0; i < pagesize; ++i) 10997 if (*(data + i) != *(data2 + i)) 10998 exit (1); 10999 11000 /* Finally, make sure that changes to the mapped area do not 11001 percolate back to the file as seen by read(). (This is a bug on 11002 some variants of i386 svr4.0.) */ 11003 for (i = 0; i < pagesize; ++i) 11004 *(data2 + i) = *(data2 + i) + 1; 11005 data3 = (char *) malloc (pagesize); 11006 if (!data3) 11007 exit (1); 11008 if (read (fd, data3, pagesize) != pagesize) 11009 exit (1); 11010 for (i = 0; i < pagesize; ++i) 11011 if (*(data + i) != *(data3 + i)) 11012 exit (1); 11013 close (fd); 11014 exit (0); 11015} 11016_ACEOF 11017rm -f conftest$ac_exeext 11018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11019 (eval $ac_link) 2>&5 11020 ac_status=$? 11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11024 (eval $ac_try) 2>&5 11025 ac_status=$? 11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11027 (exit $ac_status); }; }; then 11028 ac_cv_func_mmap_fixed_mapped=yes 11029else 11030 echo "$as_me: program exited with status $ac_status" >&5 11031echo "$as_me: failed program was:" >&5 11032sed 's/^/| /' conftest.$ac_ext >&5 11033 11034( exit $ac_status ) 11035ac_cv_func_mmap_fixed_mapped=no 11036fi 11037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11038fi 11039fi 11040echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 11041echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 11042if test $ac_cv_func_mmap_fixed_mapped = yes; then 11043 11044cat >>confdefs.h <<\_ACEOF 11045#define HAVE_MMAP 1 11046_ACEOF 11047 11048fi 11049rm -f conftest.mmap 11050 11051fi 11052echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 11053echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 11054if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 11055 echo $ECHO_N "(cached) $ECHO_C" >&6 11056else 11057 ac_cv_func_setvbuf_reversed=no 11058 cat >conftest.$ac_ext <<_ACEOF 11059/* confdefs.h. */ 11060_ACEOF 11061cat confdefs.h >>conftest.$ac_ext 11062cat >>conftest.$ac_ext <<_ACEOF 11063/* end confdefs.h. */ 11064#include <stdio.h> 11065# if PROTOTYPES 11066 int (setvbuf) (FILE *, int, char *, size_t); 11067# endif 11068int 11069main () 11070{ 11071char buf; return setvbuf (stdout, _IOLBF, &buf, 1); 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076rm -f conftest.$ac_objext conftest$ac_exeext 11077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11078 (eval $ac_link) 2>conftest.er1 11079 ac_status=$? 11080 grep -v '^ *+' conftest.er1 >conftest.err 11081 rm -f conftest.er1 11082 cat conftest.err >&5 11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11084 (exit $ac_status); } && 11085 { ac_try='test -z "$ac_c_werror_flag" 11086 || test ! -s conftest.err' 11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11088 (eval $ac_try) 2>&5 11089 ac_status=$? 11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11091 (exit $ac_status); }; } && 11092 { ac_try='test -s conftest$ac_exeext' 11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 (eval $ac_try) 2>&5 11095 ac_status=$? 11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 (exit $ac_status); }; }; then 11098 cat >conftest.$ac_ext <<_ACEOF 11099/* confdefs.h. */ 11100_ACEOF 11101cat confdefs.h >>conftest.$ac_ext 11102cat >>conftest.$ac_ext <<_ACEOF 11103/* end confdefs.h. */ 11104#include <stdio.h> 11105# if PROTOTYPES 11106 int (setvbuf) (FILE *, int, char *, size_t); 11107# endif 11108int 11109main () 11110{ 11111char buf; return setvbuf (stdout, &buf, _IOLBF, 1); 11112 ; 11113 return 0; 11114} 11115_ACEOF 11116rm -f conftest.$ac_objext conftest$ac_exeext 11117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11118 (eval $ac_link) 2>conftest.er1 11119 ac_status=$? 11120 grep -v '^ *+' conftest.er1 >conftest.err 11121 rm -f conftest.er1 11122 cat conftest.err >&5 11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11124 (exit $ac_status); } && 11125 { ac_try='test -z "$ac_c_werror_flag" 11126 || test ! -s conftest.err' 11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11128 (eval $ac_try) 2>&5 11129 ac_status=$? 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11131 (exit $ac_status); }; } && 11132 { ac_try='test -s conftest$ac_exeext' 11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11134 (eval $ac_try) 2>&5 11135 ac_status=$? 11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11137 (exit $ac_status); }; }; then 11138 # It compiles and links either way, so it must not be declared 11139 # with a prototype and most likely this is a K&R C compiler. 11140 # Try running it. 11141 if test "$cross_compiling" = yes; then 11142 : # Assume setvbuf is not reversed when cross-compiling. 11143else 11144 cat >conftest.$ac_ext <<_ACEOF 11145/* confdefs.h. */ 11146_ACEOF 11147cat confdefs.h >>conftest.$ac_ext 11148cat >>conftest.$ac_ext <<_ACEOF 11149/* end confdefs.h. */ 11150#include <stdio.h> 11151int 11152main () 11153{ 11154/* This call has the arguments reversed. 11155 A reversed system may check and see that the address of buf 11156 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 11157 char buf; 11158 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) 11159 exit (1); 11160 putchar ('\r'); 11161 exit (0); /* Non-reversed systems SEGV here. */ 11162 ; 11163 return 0; 11164} 11165_ACEOF 11166rm -f conftest$ac_exeext 11167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11168 (eval $ac_link) 2>&5 11169 ac_status=$? 11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 (eval $ac_try) 2>&5 11174 ac_status=$? 11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 (exit $ac_status); }; }; then 11177 ac_cv_func_setvbuf_reversed=yes 11178else 11179 echo "$as_me: program exited with status $ac_status" >&5 11180echo "$as_me: failed program was:" >&5 11181sed 's/^/| /' conftest.$ac_ext >&5 11182 11183( exit $ac_status ) 11184rm -f core *.core 11185fi 11186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11187fi 11188 ac_cv_func_setvbuf_reversed=yes 11189else 11190 echo "$as_me: failed program was:" >&5 11191sed 's/^/| /' conftest.$ac_ext >&5 11192 11193fi 11194rm -f conftest.err conftest.$ac_objext \ 11195 conftest$ac_exeext conftest.$ac_ext 11196else 11197 echo "$as_me: failed program was:" >&5 11198sed 's/^/| /' conftest.$ac_ext >&5 11199 11200fi 11201rm -f conftest.err conftest.$ac_objext \ 11202 conftest$ac_exeext conftest.$ac_ext 11203fi 11204echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 11205echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 11206if test $ac_cv_func_setvbuf_reversed = yes; then 11207 11208cat >>confdefs.h <<\_ACEOF 11209#define SETVBUF_REVERSED 1 11210_ACEOF 11211 11212fi 11213 11214echo "$as_me:$LINENO: checking return type of signal handlers" >&5 11215echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 11216if test "${ac_cv_type_signal+set}" = set; then 11217 echo $ECHO_N "(cached) $ECHO_C" >&6 11218else 11219 cat >conftest.$ac_ext <<_ACEOF 11220/* confdefs.h. */ 11221_ACEOF 11222cat confdefs.h >>conftest.$ac_ext 11223cat >>conftest.$ac_ext <<_ACEOF 11224/* end confdefs.h. */ 11225#include <sys/types.h> 11226#include <signal.h> 11227#ifdef signal 11228# undef signal 11229#endif 11230#ifdef __cplusplus 11231extern "C" void (*signal (int, void (*)(int)))(int); 11232#else 11233void (*signal ()) (); 11234#endif 11235 11236int 11237main () 11238{ 11239int i; 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244rm -f conftest.$ac_objext 11245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11246 (eval $ac_compile) 2>conftest.er1 11247 ac_status=$? 11248 grep -v '^ *+' conftest.er1 >conftest.err 11249 rm -f conftest.er1 11250 cat conftest.err >&5 11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11252 (exit $ac_status); } && 11253 { ac_try='test -z "$ac_c_werror_flag" 11254 || test ! -s conftest.err' 11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11256 (eval $ac_try) 2>&5 11257 ac_status=$? 11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11259 (exit $ac_status); }; } && 11260 { ac_try='test -s conftest.$ac_objext' 11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11262 (eval $ac_try) 2>&5 11263 ac_status=$? 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); }; }; then 11266 ac_cv_type_signal=void 11267else 11268 echo "$as_me: failed program was:" >&5 11269sed 's/^/| /' conftest.$ac_ext >&5 11270 11271ac_cv_type_signal=int 11272fi 11273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11274fi 11275echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 11276echo "${ECHO_T}$ac_cv_type_signal" >&6 11277 11278cat >>confdefs.h <<_ACEOF 11279#define RETSIGTYPE $ac_cv_type_signal 11280_ACEOF 11281 11282 11283if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then 11284 11285for ac_func in vprintf 11286do 11287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11288echo "$as_me:$LINENO: checking for $ac_func" >&5 11289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11290if eval "test \"\${$as_ac_var+set}\" = set"; then 11291 echo $ECHO_N "(cached) $ECHO_C" >&6 11292else 11293 cat >conftest.$ac_ext <<_ACEOF 11294/* confdefs.h. */ 11295_ACEOF 11296cat confdefs.h >>conftest.$ac_ext 11297cat >>conftest.$ac_ext <<_ACEOF 11298/* end confdefs.h. */ 11299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11301#define $ac_func innocuous_$ac_func 11302 11303/* System header to define __stub macros and hopefully few prototypes, 11304 which can conflict with char $ac_func (); below. 11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11306 <limits.h> exists even on freestanding compilers. */ 11307 11308#ifdef __STDC__ 11309# include <limits.h> 11310#else 11311# include <assert.h> 11312#endif 11313 11314#undef $ac_func 11315 11316/* Override any gcc2 internal prototype to avoid an error. */ 11317#ifdef __cplusplus 11318extern "C" 11319{ 11320#endif 11321/* We use char because int might match the return type of a gcc2 11322 builtin and then its argument prototype would still apply. */ 11323char $ac_func (); 11324/* The GNU C library defines this for functions which it implements 11325 to always fail with ENOSYS. Some functions are actually named 11326 something starting with __ and the normal name is an alias. */ 11327#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11328choke me 11329#else 11330char (*f) () = $ac_func; 11331#endif 11332#ifdef __cplusplus 11333} 11334#endif 11335 11336int 11337main () 11338{ 11339return f != $ac_func; 11340 ; 11341 return 0; 11342} 11343_ACEOF 11344rm -f conftest.$ac_objext conftest$ac_exeext 11345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11346 (eval $ac_link) 2>conftest.er1 11347 ac_status=$? 11348 grep -v '^ *+' conftest.er1 >conftest.err 11349 rm -f conftest.er1 11350 cat conftest.err >&5 11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); } && 11353 { ac_try='test -z "$ac_c_werror_flag" 11354 || test ! -s conftest.err' 11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11356 (eval $ac_try) 2>&5 11357 ac_status=$? 11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11359 (exit $ac_status); }; } && 11360 { ac_try='test -s conftest$ac_exeext' 11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11362 (eval $ac_try) 2>&5 11363 ac_status=$? 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); }; }; then 11366 eval "$as_ac_var=yes" 11367else 11368 echo "$as_me: failed program was:" >&5 11369sed 's/^/| /' conftest.$ac_ext >&5 11370 11371eval "$as_ac_var=no" 11372fi 11373rm -f conftest.err conftest.$ac_objext \ 11374 conftest$ac_exeext conftest.$ac_ext 11375fi 11376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11378if test `eval echo '${'$as_ac_var'}'` = yes; then 11379 cat >>confdefs.h <<_ACEOF 11380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11381_ACEOF 11382 11383echo "$as_me:$LINENO: checking for _doprnt" >&5 11384echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 11385if test "${ac_cv_func__doprnt+set}" = set; then 11386 echo $ECHO_N "(cached) $ECHO_C" >&6 11387else 11388 cat >conftest.$ac_ext <<_ACEOF 11389/* confdefs.h. */ 11390_ACEOF 11391cat confdefs.h >>conftest.$ac_ext 11392cat >>conftest.$ac_ext <<_ACEOF 11393/* end confdefs.h. */ 11394/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11396#define _doprnt innocuous__doprnt 11397 11398/* System header to define __stub macros and hopefully few prototypes, 11399 which can conflict with char _doprnt (); below. 11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11401 <limits.h> exists even on freestanding compilers. */ 11402 11403#ifdef __STDC__ 11404# include <limits.h> 11405#else 11406# include <assert.h> 11407#endif 11408 11409#undef _doprnt 11410 11411/* Override any gcc2 internal prototype to avoid an error. */ 11412#ifdef __cplusplus 11413extern "C" 11414{ 11415#endif 11416/* We use char because int might match the return type of a gcc2 11417 builtin and then its argument prototype would still apply. */ 11418char _doprnt (); 11419/* The GNU C library defines this for functions which it implements 11420 to always fail with ENOSYS. Some functions are actually named 11421 something starting with __ and the normal name is an alias. */ 11422#if defined (__stub__doprnt) || defined (__stub____doprnt) 11423choke me 11424#else 11425char (*f) () = _doprnt; 11426#endif 11427#ifdef __cplusplus 11428} 11429#endif 11430 11431int 11432main () 11433{ 11434return f != _doprnt; 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439rm -f conftest.$ac_objext conftest$ac_exeext 11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11441 (eval $ac_link) 2>conftest.er1 11442 ac_status=$? 11443 grep -v '^ *+' conftest.er1 >conftest.err 11444 rm -f conftest.er1 11445 cat conftest.err >&5 11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11447 (exit $ac_status); } && 11448 { ac_try='test -z "$ac_c_werror_flag" 11449 || test ! -s conftest.err' 11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11451 (eval $ac_try) 2>&5 11452 ac_status=$? 11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11454 (exit $ac_status); }; } && 11455 { ac_try='test -s conftest$ac_exeext' 11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11457 (eval $ac_try) 2>&5 11458 ac_status=$? 11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11460 (exit $ac_status); }; }; then 11461 ac_cv_func__doprnt=yes 11462else 11463 echo "$as_me: failed program was:" >&5 11464sed 's/^/| /' conftest.$ac_ext >&5 11465 11466ac_cv_func__doprnt=no 11467fi 11468rm -f conftest.err conftest.$ac_objext \ 11469 conftest$ac_exeext conftest.$ac_ext 11470fi 11471echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 11472echo "${ECHO_T}$ac_cv_func__doprnt" >&6 11473if test $ac_cv_func__doprnt = yes; then 11474 11475cat >>confdefs.h <<\_ACEOF 11476#define HAVE_DOPRNT 1 11477_ACEOF 11478 11479fi 11480 11481fi 11482done 11483 11484 11485fi 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522for ac_func in \ 11523 alarm \ 11524 dup2 \ 11525 floor \ 11526 getcwd \ 11527 gethostbyname \ 11528 getopt \ 11529 gettimeofday \ 11530 getwd \ 11531 isatty \ 11532 memchr \ 11533 memmove \ 11534 memset \ 11535 mkstemp \ 11536 modf \ 11537 munmap \ 11538 popen \ 11539 pow \ 11540 select \ 11541 signal \ 11542 socket \ 11543 sleep \ 11544 vsnprintf \ 11545 snprintf \ 11546 sqrt \ 11547 strchr \ 11548 strdup \ 11549 strstr \ 11550 strerror \ 11551 strcasecmp \ 11552 strncasecmp \ 11553 strrchr \ 11554 strstr \ 11555 strtol \ 11556 strlcat \ 11557 strlcpy \ 11558 usleep 11559do 11560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11561echo "$as_me:$LINENO: checking for $ac_func" >&5 11562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11563if eval "test \"\${$as_ac_var+set}\" = set"; then 11564 echo $ECHO_N "(cached) $ECHO_C" >&6 11565else 11566 cat >conftest.$ac_ext <<_ACEOF 11567/* confdefs.h. */ 11568_ACEOF 11569cat confdefs.h >>conftest.$ac_ext 11570cat >>conftest.$ac_ext <<_ACEOF 11571/* end confdefs.h. */ 11572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11574#define $ac_func innocuous_$ac_func 11575 11576/* System header to define __stub macros and hopefully few prototypes, 11577 which can conflict with char $ac_func (); below. 11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11579 <limits.h> exists even on freestanding compilers. */ 11580 11581#ifdef __STDC__ 11582# include <limits.h> 11583#else 11584# include <assert.h> 11585#endif 11586 11587#undef $ac_func 11588 11589/* Override any gcc2 internal prototype to avoid an error. */ 11590#ifdef __cplusplus 11591extern "C" 11592{ 11593#endif 11594/* We use char because int might match the return type of a gcc2 11595 builtin and then its argument prototype would still apply. */ 11596char $ac_func (); 11597/* The GNU C library defines this for functions which it implements 11598 to always fail with ENOSYS. Some functions are actually named 11599 something starting with __ and the normal name is an alias. */ 11600#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11601choke me 11602#else 11603char (*f) () = $ac_func; 11604#endif 11605#ifdef __cplusplus 11606} 11607#endif 11608 11609int 11610main () 11611{ 11612return f != $ac_func; 11613 ; 11614 return 0; 11615} 11616_ACEOF 11617rm -f conftest.$ac_objext conftest$ac_exeext 11618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11619 (eval $ac_link) 2>conftest.er1 11620 ac_status=$? 11621 grep -v '^ *+' conftest.er1 >conftest.err 11622 rm -f conftest.er1 11623 cat conftest.err >&5 11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 (exit $ac_status); } && 11626 { ac_try='test -z "$ac_c_werror_flag" 11627 || test ! -s conftest.err' 11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 (eval $ac_try) 2>&5 11630 ac_status=$? 11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 (exit $ac_status); }; } && 11633 { ac_try='test -s conftest$ac_exeext' 11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11635 (eval $ac_try) 2>&5 11636 ac_status=$? 11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); }; }; then 11639 eval "$as_ac_var=yes" 11640else 11641 echo "$as_me: failed program was:" >&5 11642sed 's/^/| /' conftest.$ac_ext >&5 11643 11644eval "$as_ac_var=no" 11645fi 11646rm -f conftest.err conftest.$ac_objext \ 11647 conftest$ac_exeext conftest.$ac_ext 11648fi 11649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11651if test `eval echo '${'$as_ac_var'}'` = yes; then 11652 cat >>confdefs.h <<_ACEOF 11653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11654_ACEOF 11655 11656fi 11657done 11658 11659if test "x$VCPP" = xyes; then 11660 cat >>confdefs.h <<\_ACEOF 11661#define RETSIGTYPE int 11662_ACEOF 11663 11664 cat >>confdefs.h <<\_ACEOF 11665#define HAVE_GETCWD 1 11666_ACEOF 11667 11668fi 11669if test "x$POCC" = xyes; then 11670 cat >>confdefs.h <<\_ACEOF 11671#define HAVE_GETCWD 1 11672_ACEOF 11673 11674 cat >>confdefs.h <<\_ACEOF 11675#define HAVE_GETHOSTBYNAME 1 11676_ACEOF 11677 11678 cat >>confdefs.h <<\_ACEOF 11679#define HAVE_POPEN 1 11680_ACEOF 11681 11682 cat >>confdefs.h <<\_ACEOF 11683#define HAVE_SELECT 1 11684_ACEOF 11685 11686 cat >>confdefs.h <<\_ACEOF 11687#define HAVE_SNPRINTF 1 11688_ACEOF 11689 11690 cat >>confdefs.h <<\_ACEOF 11691#define HAVE_STRDUP 1 11692_ACEOF 11693 11694 cat >>confdefs.h <<\_ACEOF 11695#define HAVE_STRERROR 1 11696_ACEOF 11697 11698 cat >>confdefs.h <<\_ACEOF 11699#define HAVE_STRCASECMP 1 11700_ACEOF 11701 11702 cat >>confdefs.h <<\_ACEOF 11703#define HAVE_STRSTR 1 11704_ACEOF 11705 11706 cat >>confdefs.h <<\_ACEOF 11707#define HAVE_SOCKET 1 11708_ACEOF 11709 11710 cat >>confdefs.h <<\_ACEOF 11711#define HAVE_VSNPRINTF 1 11712_ACEOF 11713 11714 cat >>confdefs.h <<\_ACEOF 11715#define HAVE_GETOPT 1 11716_ACEOF 11717 11718 11719cat >>confdefs.h <<\_ACEOF 11720#define TIMID_VERSION $(PACKAGE_VERSION) 11721_ACEOF 11722 11723fi 11724if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then 11725 cat >>confdefs.h <<\_ACEOF 11726#define HAVE_GETHOSTBYNAME 1 11727_ACEOF 11728 11729 cat >>confdefs.h <<\_ACEOF 11730#define HAVE_POPEN 1 11731_ACEOF 11732 11733 11734cat >>confdefs.h <<\_ACEOF 11735#define popen _popen 11736_ACEOF 11737 11738 11739cat >>confdefs.h <<\_ACEOF 11740#define pclose _pclose 11741_ACEOF 11742 11743 cat >>confdefs.h <<\_ACEOF 11744#define HAVE_SELECT 1 11745_ACEOF 11746 11747 cat >>confdefs.h <<\_ACEOF 11748#define HAVE_SNPRINTF 1 11749_ACEOF 11750 11751 cat >>confdefs.h <<\_ACEOF 11752#define HAVE_STRDUP 1 11753_ACEOF 11754 11755 cat >>confdefs.h <<\_ACEOF 11756#define HAVE_STRERROR 1 11757_ACEOF 11758 11759 cat >>confdefs.h <<\_ACEOF 11760#define HAVE_STRNCASECMP 1 11761_ACEOF 11762 11763 cat >>confdefs.h <<\_ACEOF 11764#define HAVE_STRSTR 1 11765_ACEOF 11766 11767 11768cat >>confdefs.h <<\_ACEOF 11769#define snprintf _snprintf 11770_ACEOF 11771 11772 cat >>confdefs.h <<\_ACEOF 11773#define HAVE_SOCKET 1 11774_ACEOF 11775 11776 cat >>confdefs.h <<\_ACEOF 11777#define HAVE_VSNPRINTF 1 11778_ACEOF 11779 11780 11781cat >>confdefs.h <<\_ACEOF 11782#define TIMID_VERSION $(PACKAGE_VERSION) 11783_ACEOF 11784 11785fi 11786 11787echo "$as_me:$LINENO: checking for getopt_long" >&5 11788echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6 11789if test "${ac_cv_func_getopt_long+set}" = set; then 11790 echo $ECHO_N "(cached) $ECHO_C" >&6 11791else 11792 cat >conftest.$ac_ext <<_ACEOF 11793/* confdefs.h. */ 11794_ACEOF 11795cat confdefs.h >>conftest.$ac_ext 11796cat >>conftest.$ac_ext <<_ACEOF 11797/* end confdefs.h. */ 11798/* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long. 11799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11800#define getopt_long innocuous_getopt_long 11801 11802/* System header to define __stub macros and hopefully few prototypes, 11803 which can conflict with char getopt_long (); below. 11804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11805 <limits.h> exists even on freestanding compilers. */ 11806 11807#ifdef __STDC__ 11808# include <limits.h> 11809#else 11810# include <assert.h> 11811#endif 11812 11813#undef getopt_long 11814 11815/* Override any gcc2 internal prototype to avoid an error. */ 11816#ifdef __cplusplus 11817extern "C" 11818{ 11819#endif 11820/* We use char because int might match the return type of a gcc2 11821 builtin and then its argument prototype would still apply. */ 11822char getopt_long (); 11823/* The GNU C library defines this for functions which it implements 11824 to always fail with ENOSYS. Some functions are actually named 11825 something starting with __ and the normal name is an alias. */ 11826#if defined (__stub_getopt_long) || defined (__stub___getopt_long) 11827choke me 11828#else 11829char (*f) () = getopt_long; 11830#endif 11831#ifdef __cplusplus 11832} 11833#endif 11834 11835int 11836main () 11837{ 11838return f != getopt_long; 11839 ; 11840 return 0; 11841} 11842_ACEOF 11843rm -f conftest.$ac_objext conftest$ac_exeext 11844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11845 (eval $ac_link) 2>conftest.er1 11846 ac_status=$? 11847 grep -v '^ *+' conftest.er1 >conftest.err 11848 rm -f conftest.er1 11849 cat conftest.err >&5 11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11851 (exit $ac_status); } && 11852 { ac_try='test -z "$ac_c_werror_flag" 11853 || test ! -s conftest.err' 11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11855 (eval $ac_try) 2>&5 11856 ac_status=$? 11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11858 (exit $ac_status); }; } && 11859 { ac_try='test -s conftest$ac_exeext' 11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11861 (eval $ac_try) 2>&5 11862 ac_status=$? 11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11864 (exit $ac_status); }; }; then 11865 ac_cv_func_getopt_long=yes 11866else 11867 echo "$as_me: failed program was:" >&5 11868sed 's/^/| /' conftest.$ac_ext >&5 11869 11870ac_cv_func_getopt_long=no 11871fi 11872rm -f conftest.err conftest.$ac_objext \ 11873 conftest$ac_exeext conftest.$ac_ext 11874fi 11875echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 11876echo "${ECHO_T}$ac_cv_func_getopt_long" >&6 11877if test $ac_cv_func_getopt_long = yes; then 11878 11879cat >>confdefs.h <<\_ACEOF 11880#define HAVE_GETOPT_LONG 1 11881_ACEOF 11882 11883 tm_cv_needgetopt="no" 11884else 11885 tm_cv_needgetopt="yes" 11886fi 11887 11888 11889 11890if test "x$tm_cv_needgetopt" = "xyes"; then 11891 NEEDGETOPT_TRUE= 11892 NEEDGETOPT_FALSE='#' 11893else 11894 NEEDGETOPT_TRUE='#' 11895 NEEDGETOPT_FALSE= 11896fi 11897 11898 11899echo "$as_me:$LINENO: checking for open_memstream" >&5 11900echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6 11901if test "${ac_cv_func_open_memstream+set}" = set; then 11902 echo $ECHO_N "(cached) $ECHO_C" >&6 11903else 11904 cat >conftest.$ac_ext <<_ACEOF 11905/* confdefs.h. */ 11906_ACEOF 11907cat confdefs.h >>conftest.$ac_ext 11908cat >>conftest.$ac_ext <<_ACEOF 11909/* end confdefs.h. */ 11910/* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream. 11911 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11912#define open_memstream innocuous_open_memstream 11913 11914/* System header to define __stub macros and hopefully few prototypes, 11915 which can conflict with char open_memstream (); below. 11916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11917 <limits.h> exists even on freestanding compilers. */ 11918 11919#ifdef __STDC__ 11920# include <limits.h> 11921#else 11922# include <assert.h> 11923#endif 11924 11925#undef open_memstream 11926 11927/* Override any gcc2 internal prototype to avoid an error. */ 11928#ifdef __cplusplus 11929extern "C" 11930{ 11931#endif 11932/* We use char because int might match the return type of a gcc2 11933 builtin and then its argument prototype would still apply. */ 11934char open_memstream (); 11935/* The GNU C library defines this for functions which it implements 11936 to always fail with ENOSYS. Some functions are actually named 11937 something starting with __ and the normal name is an alias. */ 11938#if defined (__stub_open_memstream) || defined (__stub___open_memstream) 11939choke me 11940#else 11941char (*f) () = open_memstream; 11942#endif 11943#ifdef __cplusplus 11944} 11945#endif 11946 11947int 11948main () 11949{ 11950return f != open_memstream; 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955rm -f conftest.$ac_objext conftest$ac_exeext 11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11957 (eval $ac_link) 2>conftest.er1 11958 ac_status=$? 11959 grep -v '^ *+' conftest.er1 >conftest.err 11960 rm -f conftest.er1 11961 cat conftest.err >&5 11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11963 (exit $ac_status); } && 11964 { ac_try='test -z "$ac_c_werror_flag" 11965 || test ! -s conftest.err' 11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11967 (eval $ac_try) 2>&5 11968 ac_status=$? 11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11970 (exit $ac_status); }; } && 11971 { ac_try='test -s conftest$ac_exeext' 11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11973 (eval $ac_try) 2>&5 11974 ac_status=$? 11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 (exit $ac_status); }; }; then 11977 ac_cv_func_open_memstream=yes 11978else 11979 echo "$as_me: failed program was:" >&5 11980sed 's/^/| /' conftest.$ac_ext >&5 11981 11982ac_cv_func_open_memstream=no 11983fi 11984rm -f conftest.err conftest.$ac_objext \ 11985 conftest$ac_exeext conftest.$ac_ext 11986fi 11987echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5 11988echo "${ECHO_T}$ac_cv_func_open_memstream" >&6 11989if test $ac_cv_func_open_memstream = yes; then 11990 11991 11992cat >>confdefs.h <<\_ACEOF 11993#define HAVE_OPEN_MEMSTREAM 1 11994_ACEOF 11995 11996 11997fi 11998 11999 12000 12001echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5 12002echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6 12003if test "${lib_cv_va_copy+set}" = set; then 12004 echo $ECHO_N "(cached) $ECHO_C" >&6 12005else 12006 12007 if test "$cross_compiling" = yes; then 12008 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12009See \`config.log' for more details." >&5 12010echo "$as_me: error: cannot run test program while cross compiling 12011See \`config.log' for more details." >&2;} 12012 { (exit 1); exit 1; }; } 12013else 12014 cat >conftest.$ac_ext <<_ACEOF 12015/* confdefs.h. */ 12016_ACEOF 12017cat confdefs.h >>conftest.$ac_ext 12018cat >>conftest.$ac_ext <<_ACEOF 12019/* end confdefs.h. */ 12020 12021 #include <stdarg.h> 12022 void f (int i, ...) { 12023 va_list args1, args2; 12024 va_start (args1, i); 12025 va_copy (args2, args1); 12026 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 12027 exit (1); 12028 va_end (args1); va_end (args2); 12029 } 12030 int main() { 12031 f (0, 42); 12032 return 0; 12033 } 12034_ACEOF 12035rm -f conftest$ac_exeext 12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12037 (eval $ac_link) 2>&5 12038 ac_status=$? 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12042 (eval $ac_try) 2>&5 12043 ac_status=$? 12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12045 (exit $ac_status); }; }; then 12046 lib_cv_va_copy=yes 12047else 12048 echo "$as_me: program exited with status $ac_status" >&5 12049echo "$as_me: failed program was:" >&5 12050sed 's/^/| /' conftest.$ac_ext >&5 12051 12052( exit $ac_status ) 12053lib_cv_va_copy=no 12054fi 12055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12056fi 12057 12058fi 12059echo "$as_me:$LINENO: result: $lib_cv_va_copy" >&5 12060echo "${ECHO_T}$lib_cv_va_copy" >&6 12061 12062echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5 12063echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6 12064if test "${lib_cv___va_copy+set}" = set; then 12065 echo $ECHO_N "(cached) $ECHO_C" >&6 12066else 12067 12068 if test "$cross_compiling" = yes; then 12069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12070See \`config.log' for more details." >&5 12071echo "$as_me: error: cannot run test program while cross compiling 12072See \`config.log' for more details." >&2;} 12073 { (exit 1); exit 1; }; } 12074else 12075 cat >conftest.$ac_ext <<_ACEOF 12076/* confdefs.h. */ 12077_ACEOF 12078cat confdefs.h >>conftest.$ac_ext 12079cat >>conftest.$ac_ext <<_ACEOF 12080/* end confdefs.h. */ 12081 12082 #include <stdarg.h> 12083 void f (int i, ...) { 12084 va_list args1, args2; 12085 va_start (args1, i); 12086 __va_copy (args2, args1); 12087 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 12088 exit (1); 12089 va_end (args1); va_end (args2); 12090 } 12091 int main() { 12092 f (0, 42); 12093 return 0; 12094 } 12095_ACEOF 12096rm -f conftest$ac_exeext 12097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12098 (eval $ac_link) 2>&5 12099 ac_status=$? 12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12103 (eval $ac_try) 2>&5 12104 ac_status=$? 12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12106 (exit $ac_status); }; }; then 12107 lib_cv___va_copy=yes 12108else 12109 echo "$as_me: program exited with status $ac_status" >&5 12110echo "$as_me: failed program was:" >&5 12111sed 's/^/| /' conftest.$ac_ext >&5 12112 12113( exit $ac_status ) 12114lib_cv___va_copy=no 12115fi 12116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12117fi 12118 12119fi 12120echo "$as_me:$LINENO: result: $lib_cv___va_copy" >&5 12121echo "${ECHO_T}$lib_cv___va_copy" >&6 12122 12123if test "x$lib_cv_va_copy" = "xyes"; then 12124 va_copy_func=va_copy 12125else if test "x$lib_cv___va_copy" = "xyes"; then 12126 va_copy_func=__va_copy 12127fi 12128fi 12129 12130if test -n "$va_copy_func"; then 12131 12132cat >>confdefs.h <<_ACEOF 12133#define VA_COPY $va_copy_func 12134_ACEOF 12135 12136fi 12137 12138echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5 12139echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6 12140if test "${lib_cv_va_val_copy+set}" = set; then 12141 echo $ECHO_N "(cached) $ECHO_C" >&6 12142else 12143 12144 if test "$cross_compiling" = yes; then 12145 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12146See \`config.log' for more details." >&5 12147echo "$as_me: error: cannot run test program while cross compiling 12148See \`config.log' for more details." >&2;} 12149 { (exit 1); exit 1; }; } 12150else 12151 cat >conftest.$ac_ext <<_ACEOF 12152/* confdefs.h. */ 12153_ACEOF 12154cat confdefs.h >>conftest.$ac_ext 12155cat >>conftest.$ac_ext <<_ACEOF 12156/* end confdefs.h. */ 12157 12158 #include <stdarg.h> 12159 void f (int i, ...) { 12160 va_list args1, args2; 12161 va_start (args1, i); 12162 args2 = args1; 12163 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 12164 exit (1); 12165 va_end (args1); va_end (args2); 12166 } 12167 int main() { 12168 f (0, 42); 12169 return 0; 12170 } 12171_ACEOF 12172rm -f conftest$ac_exeext 12173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12174 (eval $ac_link) 2>&5 12175 ac_status=$? 12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12179 (eval $ac_try) 2>&5 12180 ac_status=$? 12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); }; }; then 12183 lib_cv_va_val_copy=yes 12184else 12185 echo "$as_me: program exited with status $ac_status" >&5 12186echo "$as_me: failed program was:" >&5 12187sed 's/^/| /' conftest.$ac_ext >&5 12188 12189( exit $ac_status ) 12190lib_cv_va_val_copy=no 12191fi 12192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12193fi 12194 12195fi 12196echo "$as_me:$LINENO: result: $lib_cv_va_val_copy" >&5 12197echo "${ECHO_T}$lib_cv_va_val_copy" >&6 12198 12199if test "x$lib_cv_va_val_copy" = "xno"; then 12200 12201cat >>confdefs.h <<\_ACEOF 12202#define VA_COPY_AS_ARRAY 1 12203_ACEOF 12204 12205fi 12206 12207# Checks on cygnus and MSYS 12208if test "x$MSYS" = xyes ; then 12209 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 12210 *yes*) 12211 echo "$as_me:$LINENO: checking for opendir" >&5 12212echo $ECHO_N "checking for opendir... $ECHO_C" >&6 12213if test "${ac_cv_func_opendir+set}" = set; then 12214 echo $ECHO_N "(cached) $ECHO_C" >&6 12215else 12216 cat >conftest.$ac_ext <<_ACEOF 12217/* confdefs.h. */ 12218_ACEOF 12219cat confdefs.h >>conftest.$ac_ext 12220cat >>conftest.$ac_ext <<_ACEOF 12221/* end confdefs.h. */ 12222/* Define opendir to an innocuous variant, in case <limits.h> declares opendir. 12223 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12224#define opendir innocuous_opendir 12225 12226/* System header to define __stub macros and hopefully few prototypes, 12227 which can conflict with char opendir (); below. 12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12229 <limits.h> exists even on freestanding compilers. */ 12230 12231#ifdef __STDC__ 12232# include <limits.h> 12233#else 12234# include <assert.h> 12235#endif 12236 12237#undef opendir 12238 12239/* Override any gcc2 internal prototype to avoid an error. */ 12240#ifdef __cplusplus 12241extern "C" 12242{ 12243#endif 12244/* We use char because int might match the return type of a gcc2 12245 builtin and then its argument prototype would still apply. */ 12246char opendir (); 12247/* The GNU C library defines this for functions which it implements 12248 to always fail with ENOSYS. Some functions are actually named 12249 something starting with __ and the normal name is an alias. */ 12250#if defined (__stub_opendir) || defined (__stub___opendir) 12251choke me 12252#else 12253char (*f) () = opendir; 12254#endif 12255#ifdef __cplusplus 12256} 12257#endif 12258 12259int 12260main () 12261{ 12262return f != opendir; 12263 ; 12264 return 0; 12265} 12266_ACEOF 12267rm -f conftest.$ac_objext conftest$ac_exeext 12268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12269 (eval $ac_link) 2>conftest.er1 12270 ac_status=$? 12271 grep -v '^ *+' conftest.er1 >conftest.err 12272 rm -f conftest.er1 12273 cat conftest.err >&5 12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12275 (exit $ac_status); } && 12276 { ac_try='test -z "$ac_c_werror_flag" 12277 || test ! -s conftest.err' 12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12279 (eval $ac_try) 2>&5 12280 ac_status=$? 12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12282 (exit $ac_status); }; } && 12283 { ac_try='test -s conftest$ac_exeext' 12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12285 (eval $ac_try) 2>&5 12286 ac_status=$? 12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12288 (exit $ac_status); }; }; then 12289 ac_cv_func_opendir=yes 12290else 12291 echo "$as_me: failed program was:" >&5 12292sed 's/^/| /' conftest.$ac_ext >&5 12293 12294ac_cv_func_opendir=no 12295fi 12296rm -f conftest.err conftest.$ac_objext \ 12297 conftest$ac_exeext conftest.$ac_ext 12298fi 12299echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5 12300echo "${ECHO_T}$ac_cv_func_opendir" >&6 12301if test $ac_cv_func_opendir = yes; then 12302 : 12303else 12304 EXTRADEFS="$EXTRADEFS -D__W32READDIR__" 12305 W32READDIR=yes 12306fi 12307 12308 ;; 12309 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__" 12310 W32READDIR=yes 12311 ;; 12312 esac 12313 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then 12314 EXTRALIBS="$EXTRALIBS ws2_32.lib" 12315 EXTRADEFS="$EXTRADEFS -DWINSOCK" 12316 else 12317 echo "$as_me:$LINENO: checking for socket" >&5 12318echo $ECHO_N "checking for socket... $ECHO_C" >&6 12319if test "${ac_cv_func_socket+set}" = set; then 12320 echo $ECHO_N "(cached) $ECHO_C" >&6 12321else 12322 cat >conftest.$ac_ext <<_ACEOF 12323/* confdefs.h. */ 12324_ACEOF 12325cat confdefs.h >>conftest.$ac_ext 12326cat >>conftest.$ac_ext <<_ACEOF 12327/* end confdefs.h. */ 12328/* Define socket to an innocuous variant, in case <limits.h> declares socket. 12329 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12330#define socket innocuous_socket 12331 12332/* System header to define __stub macros and hopefully few prototypes, 12333 which can conflict with char socket (); below. 12334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12335 <limits.h> exists even on freestanding compilers. */ 12336 12337#ifdef __STDC__ 12338# include <limits.h> 12339#else 12340# include <assert.h> 12341#endif 12342 12343#undef socket 12344 12345/* Override any gcc2 internal prototype to avoid an error. */ 12346#ifdef __cplusplus 12347extern "C" 12348{ 12349#endif 12350/* We use char because int might match the return type of a gcc2 12351 builtin and then its argument prototype would still apply. */ 12352char socket (); 12353/* The GNU C library defines this for functions which it implements 12354 to always fail with ENOSYS. Some functions are actually named 12355 something starting with __ and the normal name is an alias. */ 12356#if defined (__stub_socket) || defined (__stub___socket) 12357choke me 12358#else 12359char (*f) () = socket; 12360#endif 12361#ifdef __cplusplus 12362} 12363#endif 12364 12365int 12366main () 12367{ 12368return f != socket; 12369 ; 12370 return 0; 12371} 12372_ACEOF 12373rm -f conftest.$ac_objext conftest$ac_exeext 12374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12375 (eval $ac_link) 2>conftest.er1 12376 ac_status=$? 12377 grep -v '^ *+' conftest.er1 >conftest.err 12378 rm -f conftest.er1 12379 cat conftest.err >&5 12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12381 (exit $ac_status); } && 12382 { ac_try='test -z "$ac_c_werror_flag" 12383 || test ! -s conftest.err' 12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12385 (eval $ac_try) 2>&5 12386 ac_status=$? 12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12388 (exit $ac_status); }; } && 12389 { ac_try='test -s conftest$ac_exeext' 12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12391 (eval $ac_try) 2>&5 12392 ac_status=$? 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); }; }; then 12395 ac_cv_func_socket=yes 12396else 12397 echo "$as_me: failed program was:" >&5 12398sed 's/^/| /' conftest.$ac_ext >&5 12399 12400ac_cv_func_socket=no 12401fi 12402rm -f conftest.err conftest.$ac_objext \ 12403 conftest$ac_exeext conftest.$ac_ext 12404fi 12405echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 12406echo "${ECHO_T}$ac_cv_func_socket" >&6 12407if test $ac_cv_func_socket = yes; then 12408 : 12409else 12410 echo "$as_me:$LINENO: checking for WSAStartup in -lws2_32" >&5 12411echo $ECHO_N "checking for WSAStartup in -lws2_32... $ECHO_C" >&6 12412ac_lib_var=`echo ws2_32'_'WSAStartup | sed 'y%./+-%__p_%'` 12413if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then 12414 echo $ECHO_N "(cached) $ECHO_C" >&6 12415else 12416 ac_save_LIBS="$LIBS" 12417LIBS="-lws2_32 $LIBS" 12418cat >conftest.$ac_ext <<_ACEOF 12419/* confdefs.h. */ 12420_ACEOF 12421cat confdefs.h >>conftest.$ac_ext 12422cat >>conftest.$ac_ext <<_ACEOF 12423/* end confdefs.h. */ 12424#include <windows.h> 12425#include <winsock.h> 12426 12427int 12428main () 12429{ 12430WSAStartup(0,0); 12431 ; 12432 return 0; 12433} 12434_ACEOF 12435rm -f conftest.$ac_objext conftest$ac_exeext 12436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12437 (eval $ac_link) 2>conftest.er1 12438 ac_status=$? 12439 grep -v '^ *+' conftest.er1 >conftest.err 12440 rm -f conftest.er1 12441 cat conftest.err >&5 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); } && 12444 { ac_try='test -z "$ac_c_werror_flag" 12445 || test ! -s conftest.err' 12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12447 (eval $ac_try) 2>&5 12448 ac_status=$? 12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12450 (exit $ac_status); }; } && 12451 { ac_try='test -s conftest$ac_exeext' 12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12453 (eval $ac_try) 2>&5 12454 ac_status=$? 12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12456 (exit $ac_status); }; }; then 12457 eval "wapi_cv_lib_$ac_lib_var=yes" 12458else 12459 echo "$as_me: failed program was:" >&5 12460sed 's/^/| /' conftest.$ac_ext >&5 12461 12462eval "wapi_cv_lib_$ac_lib_var=no" 12463fi 12464rm -f conftest.err conftest.$ac_objext \ 12465 conftest$ac_exeext conftest.$ac_ext 12466LIBS="$ac_save_LIBS" 12467 12468fi 12469if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then 12470 echo "$as_me:$LINENO: result: yes" >&5 12471echo "${ECHO_T}yes" >&6 12472 EXTRALIBS="$EXTRALIBS -lws2_32" 12473 EXTRADEFS="$EXTRADEFS -DWINSOCK" 12474 12475else 12476 echo "$as_me:$LINENO: result: no" >&5 12477echo "${ECHO_T}no" >&6 12478fi 12479 12480 12481fi 12482 12483 fi 12484fi 12485 12486# Checks on extra paths 12487 12488 12489# Check whether --with-tcl-includes or --without-tcl-includes was given. 12490if test "${with_tcl_includes+set}" = set; then 12491 withval="$with_tcl_includes" 12492 if test ! -d $withval; then 12493 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12494echo "$as_me: WARNING: $withval is not found." >&2;} 12495 fi 12496 tcl_include_dir="-I$withval" 12497 12498fi; 12499 12500# Check whether --with-tcl-libs or --without-tcl-libs was given. 12501if test "${with_tcl_libs+set}" = set; then 12502 withval="$with_tcl_libs" 12503 if test ! -d $withval; then 12504 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12505echo "$as_me: WARNING: $withval is not found." >&2;} 12506 fi 12507 tcl_libdir="-L$withval" 12508fi; 12509 12510# Check whether --with-tk-includes or --without-tk-includes was given. 12511if test "${with_tk_includes+set}" = set; then 12512 withval="$with_tk_includes" 12513 if test ! -d $withval; then 12514 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12515echo "$as_me: WARNING: $withval is not found." >&2;} 12516 fi 12517 tk_includes="-I$withval" 12518fi; 12519 12520# Check whether --with-tk-libs or --without-tk-libs was given. 12521if test "${with_tk_libs+set}" = set; then 12522 withval="$with_tk_libs" 12523 if test ! -d $withval; then 12524 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12525echo "$as_me: WARNING: $withval is not found." >&2;} 12526 fi 12527 tk_libdir="-L$withval" 12528fi; 12529 12530 12531# Check whether --with-offix-includes or --without-offix-includes was given. 12532if test "${with_offix_includes+set}" = set; then 12533 withval="$with_offix_includes" 12534 if test ! -d $withval; then 12535 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12536echo "$as_me: WARNING: $withval is not found." >&2;} 12537 fi 12538 offix_include_dir="-I$withval" 12539fi; 12540 12541# Check whether --with-offix-libs or --without-offix-libs was given. 12542if test "${with_offix_libs+set}" = set; then 12543 withval="$with_offix_libs" 12544 if test ! -d $withval; then 12545 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5 12546echo "$as_me: WARNING: $withval is not found." >&2;} 12547 fi 12548 offix_lib_dir="-L$withval" 12549fi; 12550 12551 12552# 12553# audio section 12554# 12555 12556audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio npipe jack ao' 12557 12558 12559# Check whether --with-nas-library or --without-nas-library was given. 12560if test "${with_nas_library+set}" = set; then 12561 withval="$with_nas_library" 12562 12563fi; 12564 12565# Check whether --with-nas-includes or --without-nas-includes was given. 12566if test "${with_nas_includes+set}" = set; then 12567 withval="$with_nas_includes" 12568 12569fi; 12570 12571 12572# Check whether --enable-audio or --disable-audio was given. 12573if test "${enable_audio+set}" = set; then 12574 enableval="$enable_audio" 12575 enable_audio=$enableval 12576 have_audio_opt=yes 12577else 12578 enable_audio=yes 12579 have_audio_opt=no 12580fi; 12581 12582test "x$enable_audio" = xyes && enable_audio=default 12583 12584if test "x$enable_audio" != xno; then 12585 for i in `echo $enable_audio | sed 's/,/ /g'`; do 12586 eval "au_enable_$i=yes" 12587 done 12588fi 12589 12590DEFAULT_PLAYMODE= 12591 12592# Check whether --with-default-output or --without-default-output was given. 12593if test "${with_default_output+set}" = set; then 12594 withval="$with_default_output" 12595 if test "$enable_audio" != no; then 12596 DEFAULT_PLAYMODE=$withval 12597 eval "au_enable_$DEFAULT_PLAYMODE=yes" 12598 else 12599 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5 12600echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;} 12601 fi 12602fi; 12603 12604 12605if test "x$au_enable_default" = xyes; then 12606 case "$target" in 12607 *-*-linux*|*-*-freebsd*|*-*-dragonfly*) 12608 au_enable_oss=yes 12609 ;; 12610 *-*-bsdi2.0) 12611 au_enable_sb_dsp=yes 12612 ;; 12613 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?) 12614 au_enable_oss=yes 12615 ;; 12616 *-*-hpux*) 12617 au_enable_hpux=yes 12618 ;; 12619 *-dec-*) 12620 au_enable_mme=yes 12621 ;; 12622 *irix*) 12623 au_enable_irix=yes 12624 ;; 12625 *-*-sunos4*) 12626 au_enable_sun=yes 12627 ;; 12628 *-*-solaris*) 12629 au_enable_sun=yes 12630 ;; 12631 *-*-netbsd*) 12632 au_enable_sun=yes 12633 ;; 12634 *-*-openbsd*) 12635 au_enable_sun=yes 12636 ;; 12637 *-*-cygwin*) 12638 au_enable_w32=yes 12639 ;; 12640 *-*-mingw*) 12641 au_enable_w32=yes 12642 ;; 12643 *-*-darwin*) 12644 au_enable_darwin=yes 12645 ;; 12646 *) 12647 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5 12648echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;} 12649 ;; 12650 esac 12651fi 12652 12653 12654# Each audio mode's configurations 12655echo "$as_me:$LINENO: checking enable_audio=oss" >&5 12656echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6 12657if test "x$au_enable_oss" = xyes; then 12658 EXTRADEFS="$EXTRADEFS -DAU_OSS" 12659 SYSEXTRAS="$SYSEXTRAS oss_a.c" 12660 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then 12661 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5 12662echo "${ECHO_T}yes - <sys/soundcard.h>" >&6 12663 else 12664 case "$target" in 12665 *linux*|*freebsd*|*dragonfly*) 12666 echo "$as_me:$LINENO: result: yes" >&5 12667echo "${ECHO_T}yes" >&6 12668 ;; 12669 *) 12670 if test "x$ac_cv_header_soundcard_h" = xyes; then 12671 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5 12672echo "${ECHO_T}yes - <soundcard.h>" >&6 12673 else 12674 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5 12675echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;} 12676 fi 12677 ;; 12678 esac 12679 fi 12680 12681echo "$as_me:$LINENO: checking for open in -lossaudio" >&5 12682echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6 12683if test "${ac_cv_lib_ossaudio_open+set}" = set; then 12684 echo $ECHO_N "(cached) $ECHO_C" >&6 12685else 12686 ac_check_lib_save_LIBS=$LIBS 12687LIBS="-lossaudio $LIBS" 12688cat >conftest.$ac_ext <<_ACEOF 12689/* confdefs.h. */ 12690_ACEOF 12691cat confdefs.h >>conftest.$ac_ext 12692cat >>conftest.$ac_ext <<_ACEOF 12693/* end confdefs.h. */ 12694 12695/* Override any gcc2 internal prototype to avoid an error. */ 12696#ifdef __cplusplus 12697extern "C" 12698#endif 12699/* We use char because int might match the return type of a gcc2 12700 builtin and then its argument prototype would still apply. */ 12701char open (); 12702int 12703main () 12704{ 12705open (); 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710rm -f conftest.$ac_objext conftest$ac_exeext 12711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12712 (eval $ac_link) 2>conftest.er1 12713 ac_status=$? 12714 grep -v '^ *+' conftest.er1 >conftest.err 12715 rm -f conftest.er1 12716 cat conftest.err >&5 12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); } && 12719 { ac_try='test -z "$ac_c_werror_flag" 12720 || test ! -s conftest.err' 12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12722 (eval $ac_try) 2>&5 12723 ac_status=$? 12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); }; } && 12726 { ac_try='test -s conftest$ac_exeext' 12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12728 (eval $ac_try) 2>&5 12729 ac_status=$? 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12731 (exit $ac_status); }; }; then 12732 ac_cv_lib_ossaudio_open=yes 12733else 12734 echo "$as_me: failed program was:" >&5 12735sed 's/^/| /' conftest.$ac_ext >&5 12736 12737ac_cv_lib_ossaudio_open=no 12738fi 12739rm -f conftest.err conftest.$ac_objext \ 12740 conftest$ac_exeext conftest.$ac_ext 12741LIBS=$ac_check_lib_save_LIBS 12742fi 12743echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5 12744echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6 12745if test $ac_cv_lib_ossaudio_open = yes; then 12746 cat >>confdefs.h <<_ACEOF 12747#define HAVE_LIBOSSAUDIO 1 12748_ACEOF 12749 12750 LIBS="-lossaudio $LIBS" 12751 12752fi 12753 12754 12755 case "$target" in 12756 *openbsd*) 12757 if test ! -e "/dev/dsp"; then 12758 oss_device=/dev/audio 12759 fi 12760 ;; 12761 esac 12762else 12763 echo "$as_me:$LINENO: result: no" >&5 12764echo "${ECHO_T}no" >&6 12765fi 12766 12767echo "$as_me:$LINENO: checking enable_audio=sun" >&5 12768echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6 12769if test "x$au_enable_sun" = xyes; then 12770 case "$target" in 12771 *-*-sunos4*) 12772 if test -f /usr/demo/SOUND/libaudio.a; then 12773 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a" 12774 echo "$as_me:$LINENO: result: yes" >&5 12775echo "${ECHO_T}yes" >&6 12776 else 12777 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5 12778echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6 12779 fi 12780 ;; 12781 *-*-solaris*) 12782 if test -f /usr/demo/SOUND/lib/libaudio.a; then 12783 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a" 12784 echo "$as_me:$LINENO: result: yes" >&5 12785echo "${ECHO_T}yes" >&6 12786 else 12787 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5 12788echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6 12789 fi 12790 ;; 12791 *) echo "$as_me:$LINENO: result: yes" >&5 12792echo "${ECHO_T}yes" >&6 12793 ;; 12794 esac 12795 EXTRADEFS="$EXTRADEFS -DAU_SUN" 12796 SYSEXTRAS="$SYSEXTRAS sun_a.c" 12797else 12798 echo "$as_me:$LINENO: result: no" >&5 12799echo "${ECHO_T}no" >&6 12800fi 12801 12802echo "$as_me:$LINENO: checking enable_audio=hpux" >&5 12803echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6 12804if test "x$au_enable_hpux" = xyes; then 12805 case "$target" in 12806 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5 12807echo "${ECHO_T}yes" >&6 ;; 12808 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12809echo "$as_me: WARNING: may not work on $target" >&2;} ;; 12810 esac 12811 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO" 12812 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c" 12813else 12814 echo "$as_me:$LINENO: result: no" >&5 12815echo "${ECHO_T}no" >&6 12816fi 12817 12818echo "$as_me:$LINENO: checking enable_audio=irix" >&5 12819echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6 12820if test "x$au_enable_irix" = xyes; then 12821 case "$target" in 12822 *-sgi-irix5*|*-sgi-irix6.2) 12823 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL" 12824 echo "$as_me:$LINENO: result: yes" >&5 12825echo "${ECHO_T}yes" >&6 12826 ;; 12827 *-sgi-irix6*) 12828 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL" 12829 echo "$as_me:$LINENO: result: yes" >&5 12830echo "${ECHO_T}yes" >&6 12831 ;; 12832 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12833echo "$as_me: WARNING: may not work on $target" >&2;} ;; 12834 esac 12835 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c" 12836 EXTRALIBS="$EXTRASLIBS -laudio" 12837else 12838 echo "$as_me:$LINENO: result: no" >&5 12839echo "${ECHO_T}no" >&6 12840fi 12841 12842echo "$as_me:$LINENO: checking enable_audio=mme" >&5 12843echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6 12844if test "x$au_enable_mme" = xyes; then 12845 case "$target" in 12846 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5 12847echo "${ECHO_T}yes" >&6 ;; 12848 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12849echo "$as_me: WARNING: may not work on $target" >&2;} ;; 12850 esac 12851 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV" 12852 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c" 12853 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include" 12854 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a" 12855else 12856 echo "$as_me:$LINENO: result: no" >&5 12857echo "${ECHO_T}no" >&6 12858fi 12859 12860echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5 12861echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6 12862if test "x$au_enable_sb_dsp" = xyes; then 12863 case "$target" in 12864 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5 12865echo "${ECHO_T}yes" >&6 ;; 12866 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12867echo "$as_me: WARNING: may not work on $target" >&2;} ;; 12868 esac 12869 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500" 12870 SYSEXTRAS="$SYSEXTRAS bsd20_a.c" 12871else 12872 echo "$as_me:$LINENO: result: no" >&5 12873echo "${ECHO_T}no" >&6 12874fi 12875 12876echo "$as_me:$LINENO: checking enable_audio=w32" >&5 12877echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6 12878if test "x$au_enable_w32" = xyes; then 12879 case "$target" in 12880 *-*-cygwin*) 12881 echo "$as_me:$LINENO: result: yes" >&5 12882echo "${ECHO_T}yes" >&6 12883 ;; 12884 *-*-mingw32) 12885 echo "$as_me:$LINENO: result: yes" >&5 12886echo "${ECHO_T}yes" >&6 12887 ;; 12888 *) 12889 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12890echo "$as_me: WARNING: may not work on $target" >&2;} 12891 ;; 12892 esac 12893 SYSEXTRAS="$SYSEXTRAS w32_a.c" 12894 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then 12895 EXTRALIBS="$EXTRALIBS winmm.lib" 12896 else 12897 EXTRALIBS="$EXTRALIBS -lwinmm" 12898 fi 12899 EXTRADEFS="$EXTRADEFS -DAU_W32" 12900else 12901 echo "$as_me:$LINENO: result: no" >&5 12902echo "${ECHO_T}no" >&6 12903fi 12904 12905echo "$as_me:$LINENO: checking enable_audio=darwin" >&5 12906echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6 12907if test "x$au_enable_darwin" = xyes; then 12908 EXTRADEFS="$EXTRADEFS -DAU_DARWIN" 12909 SYSEXTRAS="$SYSEXTRAS darwin_a.c" 12910 EXTRALIBS="$EXTRALIBS -framework CoreAudio" 12911 case "$target" in 12912 *-*-darwin*) 12913 echo "$as_me:$LINENO: result: yes" >&5 12914echo "${ECHO_T}yes" >&6;; 12915 *) 12916 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 12917echo "$as_me: WARNING: may not work on $target" >&2;} 12918 ;; 12919 esac 12920else 12921 echo "$as_me:$LINENO: result: no" >&5 12922echo "${ECHO_T}no" >&6 12923fi 12924 12925 12926echo "$as_me:$LINENO: checking enable_audio=alsa" >&5 12927echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6 12928if test "x$au_enable_alsa" = xyes; then 12929 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5 12930echo "${ECHO_T}yes, configuring alsa" >&6 12931 KEEPCFLAGS=$CFLAGS 12932 KEEPLIBS=$LIBS 12933 KEEPLDFLAGS=$LDFLAGS 12934 alsa_save_CFLAGS="$CFLAGS" 12935alsa_save_LDFLAGS="$LDFLAGS" 12936alsa_save_LIBS="$LIBS" 12937alsa_found=yes 12938 12939 12940# Check whether --with-alsa-prefix or --without-alsa-prefix was given. 12941if test "${with_alsa_prefix+set}" = set; then 12942 withval="$with_alsa_prefix" 12943 alsa_prefix="$withval" 12944else 12945 alsa_prefix="" 12946fi; 12947 12948 12949# Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given. 12950if test "${with_alsa_inc_prefix+set}" = set; then 12951 withval="$with_alsa_inc_prefix" 12952 alsa_inc_prefix="$withval" 12953else 12954 alsa_inc_prefix="" 12955fi; 12956 12957# Check whether --enable-alsatest or --disable-alsatest was given. 12958if test "${enable_alsatest+set}" = set; then 12959 enableval="$enable_alsatest" 12960 enable_alsatest=no 12961else 12962 enable_alsatest=yes 12963fi; 12964 12965echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5 12966echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6 12967if test "$alsa_inc_prefix" != "" ; then 12968 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" 12969 CFLAGS="$CFLAGS -I$alsa_inc_prefix" 12970fi 12971echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 12972echo "${ECHO_T}$ALSA_CFLAGS" >&6 12973 12974echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5 12975echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6 12976if test "$alsa_prefix" != "" ; then 12977 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" 12978 LDFLAGS="$LDFLAGS $ALSA_LIBS" 12979fi 12980 12981ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" 12982LIBS=`echo $LIBS | sed 's/-lm//'` 12983LIBS=`echo $LIBS | sed 's/-ldl//'` 12984LIBS=`echo $LIBS | sed 's/-lpthread//'` 12985LIBS=`echo $LIBS | sed 's/ //'` 12986LIBS="$ALSA_LIBS $LIBS" 12987echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 12988echo "${ECHO_T}$ALSA_LIBS" >&6 12989 12990min_alsa_version=0.1.1 12991echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5 12992echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6 12993no_alsa="" 12994 alsa_min_major_version=`echo $min_alsa_version | \ 12995 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 12996 alsa_min_minor_version=`echo $min_alsa_version | \ 12997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 12998 alsa_min_micro_version=`echo $min_alsa_version | \ 12999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13000 13001 13002 13003 13004ac_ext=c 13005ac_cpp='$CPP $CPPFLAGS' 13006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13008ac_compiler_gnu=$ac_cv_c_compiler_gnu 13009 13010cat >conftest.$ac_ext <<_ACEOF 13011/* confdefs.h. */ 13012_ACEOF 13013cat confdefs.h >>conftest.$ac_ext 13014cat >>conftest.$ac_ext <<_ACEOF 13015/* end confdefs.h. */ 13016 13017#include <alsa/asoundlib.h> 13018 13019int 13020main () 13021{ 13022 13023/* ensure backward compatibility */ 13024#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 13025#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 13026#endif 13027#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 13028#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 13029#endif 13030#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 13031#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 13032#endif 13033 13034# if(SND_LIB_MAJOR > $alsa_min_major_version) 13035 exit(0); 13036# else 13037# if(SND_LIB_MAJOR < $alsa_min_major_version) 13038# error not present 13039# endif 13040 13041# if(SND_LIB_MINOR > $alsa_min_minor_version) 13042 exit(0); 13043# else 13044# if(SND_LIB_MINOR < $alsa_min_minor_version) 13045# error not present 13046# endif 13047 13048# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 13049# error not present 13050# endif 13051# endif 13052# endif 13053exit(0); 13054 13055 ; 13056 return 0; 13057} 13058_ACEOF 13059rm -f conftest.$ac_objext 13060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13061 (eval $ac_compile) 2>conftest.er1 13062 ac_status=$? 13063 grep -v '^ *+' conftest.er1 >conftest.err 13064 rm -f conftest.er1 13065 cat conftest.err >&5 13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13067 (exit $ac_status); } && 13068 { ac_try='test -z "$ac_c_werror_flag" 13069 || test ! -s conftest.err' 13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13071 (eval $ac_try) 2>&5 13072 ac_status=$? 13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13074 (exit $ac_status); }; } && 13075 { ac_try='test -s conftest.$ac_objext' 13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13077 (eval $ac_try) 2>&5 13078 ac_status=$? 13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13080 (exit $ac_status); }; }; then 13081 echo "$as_me:$LINENO: result: found." >&5 13082echo "${ECHO_T}found." >&6 13083else 13084 echo "$as_me: failed program was:" >&5 13085sed 's/^/| /' conftest.$ac_ext >&5 13086 13087cat >conftest.$ac_ext <<_ACEOF 13088/* confdefs.h. */ 13089_ACEOF 13090cat confdefs.h >>conftest.$ac_ext 13091cat >>conftest.$ac_ext <<_ACEOF 13092/* end confdefs.h. */ 13093 13094#include <sys/asoundlib.h> 13095 13096int 13097main () 13098{ 13099 13100/* ensure backward compatibility */ 13101#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 13102#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 13103#endif 13104#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 13105#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 13106#endif 13107#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 13108#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 13109#endif 13110 13111# if(SND_LIB_MAJOR > $alsa_min_major_version) 13112 exit(0); 13113# else 13114# if(SND_LIB_MAJOR < $alsa_min_major_version) 13115# error not present 13116# endif 13117 13118# if(SND_LIB_MINOR > $alsa_min_minor_version) 13119 exit(0); 13120# else 13121# if(SND_LIB_MINOR < $alsa_min_minor_version) 13122# error not present 13123# endif 13124 13125# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 13126# error not present 13127# endif 13128# endif 13129# endif 13130exit(0); 13131 13132 ; 13133 return 0; 13134} 13135_ACEOF 13136rm -f conftest.$ac_objext 13137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13138 (eval $ac_compile) 2>conftest.er1 13139 ac_status=$? 13140 grep -v '^ *+' conftest.er1 >conftest.err 13141 rm -f conftest.er1 13142 cat conftest.err >&5 13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13144 (exit $ac_status); } && 13145 { ac_try='test -z "$ac_c_werror_flag" 13146 || test ! -s conftest.err' 13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13148 (eval $ac_try) 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); }; } && 13152 { ac_try='test -s conftest.$ac_objext' 13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13154 (eval $ac_try) 2>&5 13155 ac_status=$? 13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13157 (exit $ac_status); }; }; then 13158 echo "$as_me:$LINENO: result: found." >&5 13159echo "${ECHO_T}found." >&6 13160else 13161 echo "$as_me: failed program was:" >&5 13162sed 's/^/| /' conftest.$ac_ext >&5 13163 13164echo "$as_me:$LINENO: result: not present." >&5 13165echo "${ECHO_T}not present." >&6 13166 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5 13167echo "${ECHO_T}libasound was not found anywhere." >&6 13168 alsa_found=no 13169fi 13170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13171 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5 13172echo "${ECHO_T}Sufficiently new version of libasound not found." >&6 13173 13174fi 13175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13176ac_ext=c 13177ac_cpp='$CPP $CPPFLAGS' 13178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13180ac_compiler_gnu=$ac_cv_c_compiler_gnu 13181 13182 13183 13184echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5 13185echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6 13186if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then 13187 echo $ECHO_N "(cached) $ECHO_C" >&6 13188else 13189 ac_check_lib_save_LIBS=$LIBS 13190LIBS="-lasound $LIBS" 13191cat >conftest.$ac_ext <<_ACEOF 13192/* confdefs.h. */ 13193_ACEOF 13194cat confdefs.h >>conftest.$ac_ext 13195cat >>conftest.$ac_ext <<_ACEOF 13196/* end confdefs.h. */ 13197 13198/* Override any gcc2 internal prototype to avoid an error. */ 13199#ifdef __cplusplus 13200extern "C" 13201#endif 13202/* We use char because int might match the return type of a gcc2 13203 builtin and then its argument prototype would still apply. */ 13204char snd_ctl_open (); 13205int 13206main () 13207{ 13208snd_ctl_open (); 13209 ; 13210 return 0; 13211} 13212_ACEOF 13213rm -f conftest.$ac_objext conftest$ac_exeext 13214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13215 (eval $ac_link) 2>conftest.er1 13216 ac_status=$? 13217 grep -v '^ *+' conftest.er1 >conftest.err 13218 rm -f conftest.er1 13219 cat conftest.err >&5 13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13221 (exit $ac_status); } && 13222 { ac_try='test -z "$ac_c_werror_flag" 13223 || test ! -s conftest.err' 13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13225 (eval $ac_try) 2>&5 13226 ac_status=$? 13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13228 (exit $ac_status); }; } && 13229 { ac_try='test -s conftest$ac_exeext' 13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13231 (eval $ac_try) 2>&5 13232 ac_status=$? 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); }; }; then 13235 ac_cv_lib_asound_snd_ctl_open=yes 13236else 13237 echo "$as_me: failed program was:" >&5 13238sed 's/^/| /' conftest.$ac_ext >&5 13239 13240ac_cv_lib_asound_snd_ctl_open=no 13241fi 13242rm -f conftest.err conftest.$ac_objext \ 13243 conftest$ac_exeext conftest.$ac_ext 13244LIBS=$ac_check_lib_save_LIBS 13245fi 13246echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5 13247echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6 13248if test $ac_cv_lib_asound_snd_ctl_open = yes; then 13249 cat >>confdefs.h <<_ACEOF 13250#define HAVE_LIBASOUND 1 13251_ACEOF 13252 13253 LIBS="-lasound $LIBS" 13254 13255else 13256 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5 13257echo "${ECHO_T}No linkable libasound was found." >&6 13258 alsa_found=no 13259 13260fi 13261 13262 13263if test "x$alsa_found" = "xyes" ; then 13264 : 13265 LIBS=`echo $LIBS | sed 's/-lasound//g'` 13266 LIBS=`echo $LIBS | sed 's/ //'` 13267 LIBS="-lasound $LIBS" 13268else 13269 : 13270 CFLAGS="$alsa_save_CFLAGS" 13271 LDFLAGS="$alsa_save_LDFLAGS" 13272 LIBS="$alsa_save_LIBS" 13273 ALSA_CFLAGS="" 13274 ALSA_LIBS="" 13275fi 13276 13277 13278 13279 13280 if test "x$alsa_found" = "xyes" ; then 13281 EXTRADEFS="$EXTRADEFS -DAU_ALSA" 13282 SYSEXTRAS="$SYSEXTRAS alsa_a.c" 13283 for f in $ALSA_CFLAGS; do 13284 case ".$f" in 13285 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 13286 *) CFLAGS="$CFLAGS $f" ;; 13287 esac 13288done 13289 13290 LIBS="$LIBS $ALSA_LIBS" 13291 13292for ac_func in snd_seq_port_info_set_timestamping 13293do 13294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13295echo "$as_me:$LINENO: checking for $ac_func" >&5 13296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13297if eval "test \"\${$as_ac_var+set}\" = set"; then 13298 echo $ECHO_N "(cached) $ECHO_C" >&6 13299else 13300 cat >conftest.$ac_ext <<_ACEOF 13301/* confdefs.h. */ 13302_ACEOF 13303cat confdefs.h >>conftest.$ac_ext 13304cat >>conftest.$ac_ext <<_ACEOF 13305/* end confdefs.h. */ 13306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13308#define $ac_func innocuous_$ac_func 13309 13310/* System header to define __stub macros and hopefully few prototypes, 13311 which can conflict with char $ac_func (); below. 13312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13313 <limits.h> exists even on freestanding compilers. */ 13314 13315#ifdef __STDC__ 13316# include <limits.h> 13317#else 13318# include <assert.h> 13319#endif 13320 13321#undef $ac_func 13322 13323/* Override any gcc2 internal prototype to avoid an error. */ 13324#ifdef __cplusplus 13325extern "C" 13326{ 13327#endif 13328/* We use char because int might match the return type of a gcc2 13329 builtin and then its argument prototype would still apply. */ 13330char $ac_func (); 13331/* The GNU C library defines this for functions which it implements 13332 to always fail with ENOSYS. Some functions are actually named 13333 something starting with __ and the normal name is an alias. */ 13334#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13335choke me 13336#else 13337char (*f) () = $ac_func; 13338#endif 13339#ifdef __cplusplus 13340} 13341#endif 13342 13343int 13344main () 13345{ 13346return f != $ac_func; 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351rm -f conftest.$ac_objext conftest$ac_exeext 13352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13353 (eval $ac_link) 2>conftest.er1 13354 ac_status=$? 13355 grep -v '^ *+' conftest.er1 >conftest.err 13356 rm -f conftest.er1 13357 cat conftest.err >&5 13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13359 (exit $ac_status); } && 13360 { ac_try='test -z "$ac_c_werror_flag" 13361 || test ! -s conftest.err' 13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13363 (eval $ac_try) 2>&5 13364 ac_status=$? 13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13366 (exit $ac_status); }; } && 13367 { ac_try='test -s conftest$ac_exeext' 13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13369 (eval $ac_try) 2>&5 13370 ac_status=$? 13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13372 (exit $ac_status); }; }; then 13373 eval "$as_ac_var=yes" 13374else 13375 echo "$as_me: failed program was:" >&5 13376sed 's/^/| /' conftest.$ac_ext >&5 13377 13378eval "$as_ac_var=no" 13379fi 13380rm -f conftest.err conftest.$ac_objext \ 13381 conftest$ac_exeext conftest.$ac_ext 13382fi 13383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13385if test `eval echo '${'$as_ac_var'}'` = yes; then 13386 cat >>confdefs.h <<_ACEOF 13387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13388_ACEOF 13389 13390fi 13391done 13392 13393 else 13394 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5 13395echo "$as_me: WARNING: Couldn't configure alsa." >&2;} 13396 CFLAGS=$KEEPCFLAGS 13397 LIBS=$KEEPLIBS 13398 LDFLAGS=$KEEPLDFLAGS 13399 fi 13400else 13401 echo "$as_me:$LINENO: result: no" >&5 13402echo "${ECHO_T}no" >&6 13403fi 13404 13405echo "$as_me:$LINENO: checking enable_audio=alib" >&5 13406echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6 13407if test "x$au_enable_alib" = xyes; then 13408 case "$target" in 13409 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5 13410echo "${ECHO_T}yes" >&6 ;; 13411 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5 13412echo "$as_me: WARNING: may not work on $target" >&2;} ;; 13413 esac 13414 SYSEXTRAS="$SYSEXTRAS hpux_a.c" 13415 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB" 13416 if test -d /opt/audio/include; then 13417 CPPFLAGS="$CPPFLAGS -I/opt/audio/include" 13418 fi 13419 if test -d /opt/audio/lib; then 13420 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib" 13421 fi 13422 EXTRALIBS="$EXTRALIBS -lAlib" 13423else 13424 echo "$as_me:$LINENO: result: no" >&5 13425echo "${ECHO_T}no" >&6 13426fi 13427 13428echo "$as_me:$LINENO: checking enable_audio=nas" >&5 13429echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6 13430if test "x$au_enable_nas" = xyes; then 13431 if test "x$with_x" != xyes; then 13432 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5 13433echo "$as_me: error: nas: --with-x option must be specified" >&2;} 13434 { (exit 1); exit 1; }; } 13435 fi 13436 EXTRADEFS="$EXTRADEFS -DAU_NAS" 13437 SYSEXTRAS="$SYSEXTRAS nas_a.c" 13438 13439 13440 if test "x$with_nas_library" != x; then 13441 echo "$as_me:$LINENO: result: $with_nas_library" >&5 13442echo "${ECHO_T}$with_nas_library" >&6; 13443 EXTRALIBS="$EXTRALIBS $with_nas_library" 13444 else 13445 echo "$as_me:$LINENO: result: " >&5 13446echo "${ECHO_T}" >&6 13447 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5 13448echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6 13449if test "${timidity_cv_search_AuOpenServer+set}" = set; then 13450 echo $ECHO_N "(cached) $ECHO_C" >&6 13451else 13452 ac_func_search_save_LIBS="$LIBS" 13453timidity_cv_search_AuOpenServer="no" 13454for i in $x_libraries/libaudio.a \ 13455 /usr/lib/libaudio.so \ 13456 /usr/lib/libaudio.a ; do 13457 LIBS="$i $ac_func_search_save_LIBS" 13458 cat >conftest.$ac_ext <<_ACEOF 13459/* confdefs.h. */ 13460_ACEOF 13461cat confdefs.h >>conftest.$ac_ext 13462cat >>conftest.$ac_ext <<_ACEOF 13463/* end confdefs.h. */ 13464 13465/* Override any gcc2 internal prototype to avoid an error. */ 13466#ifdef __cplusplus 13467extern "C" 13468#endif 13469/* We use char because int might match the return type of a gcc2 13470 builtin and then its argument prototype would still apply. */ 13471char AuOpenServer (); 13472int 13473main () 13474{ 13475AuOpenServer (); 13476 ; 13477 return 0; 13478} 13479_ACEOF 13480rm -f conftest.$ac_objext conftest$ac_exeext 13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13482 (eval $ac_link) 2>conftest.er1 13483 ac_status=$? 13484 grep -v '^ *+' conftest.er1 >conftest.err 13485 rm -f conftest.er1 13486 cat conftest.err >&5 13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13488 (exit $ac_status); } && 13489 { ac_try='test -z "$ac_c_werror_flag" 13490 || test ! -s conftest.err' 13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13492 (eval $ac_try) 2>&5 13493 ac_status=$? 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); }; } && 13496 { ac_try='test -s conftest$ac_exeext' 13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13498 (eval $ac_try) 2>&5 13499 ac_status=$? 13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13501 (exit $ac_status); }; }; then 13502 timidity_cv_search_AuOpenServer="$i"; break 13503else 13504 echo "$as_me: failed program was:" >&5 13505sed 's/^/| /' conftest.$ac_ext >&5 13506 13507fi 13508rm -f conftest.err conftest.$ac_objext \ 13509 conftest$ac_exeext conftest.$ac_ext 13510done 13511LIBS="$ac_func_search_save_LIBS" 13512fi 13513echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5 13514echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6 13515if test "$timidity_cv_search_AuOpenServer" != "no"; then 13516 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5 13517echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6 13518 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer" 13519else : 13520 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5 13521echo "$as_me: WARNING: NAS library is not found." >&2;} 13522fi 13523 fi 13524 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes" 13525 lib_xt_opt=-lXt 13526 if test "x$have_xext" = xyes; then 13527 lib_xext_opt=-lXext 13528 fi 13529 if test "x$have_xprelibs" = xyes; then 13530 lib_xprelibs_opt='-lSM -lICE' 13531 fi 13532else 13533 echo "$as_me:$LINENO: result: no" >&5 13534echo "${ECHO_T}no" >&6 13535fi 13536 13537echo "$as_me:$LINENO: checking enable_audio=arts" >&5 13538echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6 13539if test "x$au_enable_arts" = xyes; then 13540 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5 13541echo "${ECHO_T}yes, configuring aRts" >&6 13542 # Extract the first word of "artsc-config", so it can be a program name with args. 13543set dummy artsc-config; ac_word=$2 13544echo "$as_me:$LINENO: checking for $ac_word" >&5 13545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13546if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then 13547 echo $ECHO_N "(cached) $ECHO_C" >&6 13548else 13549 case $ARTSCCONFIG in 13550 [\\/]* | ?:[\\/]*) 13551 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. 13552 ;; 13553 *) 13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13555for as_dir in $PATH 13556do 13557 IFS=$as_save_IFS 13558 test -z "$as_dir" && as_dir=. 13559 for ac_exec_ext in '' $ac_executable_extensions; do 13560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13561 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" 13562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13563 break 2 13564 fi 13565done 13566done 13567 13568 ;; 13569esac 13570fi 13571ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG 13572 13573if test -n "$ARTSCCONFIG"; then 13574 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 13575echo "${ECHO_T}$ARTSCCONFIG" >&6 13576else 13577 echo "$as_me:$LINENO: result: no" >&5 13578echo "${ECHO_T}no" >&6 13579fi 13580 13581 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; 13582 then 13583 ARTSC_CFLAGS="" 13584 for i in `$ARTSCCONFIG --cflags` 13585 do 13586 case "$i" in 13587 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; 13588 esac 13589 done 13590 ARTSC_LIBS=`$ARTSCCONFIG --libs` 13591 save_CFLAGS="$CFLAGS" 13592 CFLAGS="$CFLAGS $ARTSC_CFLAGS" 13593 cat >conftest.$ac_ext <<_ACEOF 13594/* confdefs.h. */ 13595_ACEOF 13596cat confdefs.h >>conftest.$ac_ext 13597cat >>conftest.$ac_ext <<_ACEOF 13598/* end confdefs.h. */ 13599#include <artsc.h> 13600int 13601main () 13602{ 13603arts_stream_t stream; 13604 ; 13605 return 0; 13606} 13607_ACEOF 13608rm -f conftest.$ac_objext 13609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13610 (eval $ac_compile) 2>conftest.er1 13611 ac_status=$? 13612 grep -v '^ *+' conftest.er1 >conftest.err 13613 rm -f conftest.er1 13614 cat conftest.err >&5 13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13616 (exit $ac_status); } && 13617 { ac_try='test -z "$ac_c_werror_flag" 13618 || test ! -s conftest.err' 13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13620 (eval $ac_try) 2>&5 13621 ac_status=$? 13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13623 (exit $ac_status); }; } && 13624 { ac_try='test -s conftest.$ac_objext' 13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13626 (eval $ac_try) 2>&5 13627 ac_status=$? 13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13629 (exit $ac_status); }; }; then 13630 ARTSLIBS=$ARTSC_LIBS 13631 13632 ARTSINCL=$ARTSC_CFLAGS 13633 13634 13635cat >>confdefs.h <<\_ACEOF 13636#define HAVE_ARTS 1 13637_ACEOF 13638 13639 have_arts="yes" 13640 13641else 13642 echo "$as_me: failed program was:" >&5 13643sed 's/^/| /' conftest.$ac_ext >&5 13644 13645fi 13646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13647 CFLAGS="$save_CFLAGS" 13648 fi 13649 13650 if test "$have_arts" = "yes"; then 13651 EXTRADEFS="$EXTRADEFS -DAU_ARTS" 13652 SYSEXTRAS="$SYSEXTRAS aRts_a.c" 13653 for f in $ARTSC_CFLAGS; do 13654 case ".$f" in 13655 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 13656 *) CFLAGS="$CFLAGS $f" ;; 13657 esac 13658done 13659 13660 LIBS="$LIBS $ARTSC_LIBS" 13661 else 13662 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5 13663echo "$as_me: WARNING: aRts: Couldn't configure" >&2;} 13664 fi 13665else 13666 echo "$as_me:$LINENO: result: no" >&5 13667echo "${ECHO_T}no" >&6 13668fi 13669 13670echo "$as_me:$LINENO: checking enable_audio=esd" >&5 13671echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6 13672if test "x$au_enable_esd" = xyes; then 13673 echo "$as_me:$LINENO: result: yes, configuring esd" >&5 13674echo "${ECHO_T}yes, configuring esd" >&6 13675 KEEPCFLAGS=$CFLAGS 13676 KEEPLIBS=$LIBS 13677 KEEPLDFLAGS=$LDFLAGS 13678 13679# Check whether --with-esd-prefix or --without-esd-prefix was given. 13680if test "${with_esd_prefix+set}" = set; then 13681 withval="$with_esd_prefix" 13682 esd_prefix="$withval" 13683else 13684 esd_prefix="" 13685fi; 13686 13687# Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given. 13688if test "${with_esd_exec_prefix+set}" = set; then 13689 withval="$with_esd_exec_prefix" 13690 esd_exec_prefix="$withval" 13691else 13692 esd_exec_prefix="" 13693fi; 13694# Check whether --enable-esdtest or --disable-esdtest was given. 13695if test "${enable_esdtest+set}" = set; then 13696 enableval="$enable_esdtest" 13697 13698else 13699 enable_esdtest=yes 13700fi; 13701 13702 if test x$esd_exec_prefix != x ; then 13703 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 13704 if test x${ESD_CONFIG+set} != xset ; then 13705 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 13706 fi 13707 fi 13708 if test x$esd_prefix != x ; then 13709 esd_args="$esd_args --prefix=$esd_prefix" 13710 if test x${ESD_CONFIG+set} != xset ; then 13711 ESD_CONFIG=$esd_prefix/bin/esd-config 13712 fi 13713 fi 13714 13715 # Extract the first word of "esd-config", so it can be a program name with args. 13716set dummy esd-config; ac_word=$2 13717echo "$as_me:$LINENO: checking for $ac_word" >&5 13718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13719if test "${ac_cv_path_ESD_CONFIG+set}" = set; then 13720 echo $ECHO_N "(cached) $ECHO_C" >&6 13721else 13722 case $ESD_CONFIG in 13723 [\\/]* | ?:[\\/]*) 13724 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 13725 ;; 13726 *) 13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13728for as_dir in $PATH 13729do 13730 IFS=$as_save_IFS 13731 test -z "$as_dir" && as_dir=. 13732 for ac_exec_ext in '' $ac_executable_extensions; do 13733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13734 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13736 break 2 13737 fi 13738done 13739done 13740 13741 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 13742 ;; 13743esac 13744fi 13745ESD_CONFIG=$ac_cv_path_ESD_CONFIG 13746 13747if test -n "$ESD_CONFIG"; then 13748 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5 13749echo "${ECHO_T}$ESD_CONFIG" >&6 13750else 13751 echo "$as_me:$LINENO: result: no" >&5 13752echo "${ECHO_T}no" >&6 13753fi 13754 13755 min_esd_version=0.2.7 13756 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5 13757echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6 13758 no_esd="" 13759 if test "$ESD_CONFIG" = "no" ; then 13760 no_esd=yes 13761 else 13762 13763 13764 ac_ext=c 13765ac_cpp='$CPP $CPPFLAGS' 13766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13768ac_compiler_gnu=$ac_cv_c_compiler_gnu 13769 13770 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 13771 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 13772 13773 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 13774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 13775 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 13776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 13777 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 13778 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13779 if test "x$enable_esdtest" = "xyes" ; then 13780 ac_save_CFLAGS="$CFLAGS" 13781 ac_save_LIBS="$LIBS" 13782 CFLAGS="$CFLAGS $ESD_CFLAGS" 13783 LIBS="$LIBS $ESD_LIBS" 13784 rm -f conf.esdtest 13785 if test "$cross_compiling" = yes; then 13786 echo $ac_n "cross compiling; assumed OK... $ac_c" 13787else 13788 cat >conftest.$ac_ext <<_ACEOF 13789/* confdefs.h. */ 13790_ACEOF 13791cat confdefs.h >>conftest.$ac_ext 13792cat >>conftest.$ac_ext <<_ACEOF 13793/* end confdefs.h. */ 13794 13795#include <stdio.h> 13796#include <stdlib.h> 13797#include <string.h> 13798#include <esd.h> 13799 13800char* 13801my_strdup (char *str) 13802{ 13803 char *new_str; 13804 13805 if (str) 13806 { 13807 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 13808 strcpy (new_str, str); 13809 } 13810 else 13811 new_str = NULL; 13812 13813 return new_str; 13814} 13815 13816int main () 13817{ 13818 int major, minor, micro; 13819 char *tmp_version; 13820 13821 system ("touch conf.esdtest"); 13822 13823 /* HP/UX 9 (%@#!) writes to sscanf strings */ 13824 tmp_version = my_strdup("$min_esd_version"); 13825 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 13826 printf("%s, bad version string\n", "$min_esd_version"); 13827 exit(1); 13828 } 13829 13830 if (($esd_major_version > major) || 13831 (($esd_major_version == major) && ($esd_minor_version > minor)) || 13832 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 13833 { 13834 return 0; 13835 } 13836 else 13837 { 13838 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 13839 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 13840 printf("*** best to upgrade to the required version.\n"); 13841 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 13842 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 13843 printf("*** config.cache before re-running configure\n"); 13844 return 1; 13845 } 13846} 13847 13848 13849_ACEOF 13850rm -f conftest$ac_exeext 13851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13852 (eval $ac_link) 2>&5 13853 ac_status=$? 13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13857 (eval $ac_try) 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); }; }; then 13861 : 13862else 13863 echo "$as_me: program exited with status $ac_status" >&5 13864echo "$as_me: failed program was:" >&5 13865sed 's/^/| /' conftest.$ac_ext >&5 13866 13867( exit $ac_status ) 13868no_esd=yes 13869fi 13870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13871fi 13872 CFLAGS="$ac_save_CFLAGS" 13873 LIBS="$ac_save_LIBS" 13874 ac_ext=c 13875ac_cpp='$CPP $CPPFLAGS' 13876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13878ac_compiler_gnu=$ac_cv_c_compiler_gnu 13879 13880 fi 13881 fi 13882 if test "x$no_esd" = x ; then 13883 echo "$as_me:$LINENO: result: yes" >&5 13884echo "${ECHO_T}yes" >&6 13885 : 13886 else 13887 echo "$as_me:$LINENO: result: no" >&5 13888echo "${ECHO_T}no" >&6 13889 if test "$ESD_CONFIG" = "no" ; then 13890 echo "*** The esd-config script installed by ESD could not be found" 13891 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 13892 echo "*** your path, or set the ESD_CONFIG environment variable to the" 13893 echo "*** full path to esd-config." 13894 else 13895 if test -f conf.esdtest ; then 13896 : 13897 else 13898 echo "*** Could not run ESD test program, checking why..." 13899 CFLAGS="$CFLAGS $ESD_CFLAGS" 13900 LIBS="$LIBS $ESD_LIBS" 13901 13902 13903 ac_ext=c 13904ac_cpp='$CPP $CPPFLAGS' 13905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13907ac_compiler_gnu=$ac_cv_c_compiler_gnu 13908 13909 cat >conftest.$ac_ext <<_ACEOF 13910/* confdefs.h. */ 13911_ACEOF 13912cat confdefs.h >>conftest.$ac_ext 13913cat >>conftest.$ac_ext <<_ACEOF 13914/* end confdefs.h. */ 13915 13916#include <stdio.h> 13917#include <esd.h> 13918 13919int 13920main () 13921{ 13922 return 0; 13923 ; 13924 return 0; 13925} 13926_ACEOF 13927rm -f conftest.$ac_objext conftest$ac_exeext 13928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13929 (eval $ac_link) 2>conftest.er1 13930 ac_status=$? 13931 grep -v '^ *+' conftest.er1 >conftest.err 13932 rm -f conftest.er1 13933 cat conftest.err >&5 13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13935 (exit $ac_status); } && 13936 { ac_try='test -z "$ac_c_werror_flag" 13937 || test ! -s conftest.err' 13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13939 (eval $ac_try) 2>&5 13940 ac_status=$? 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13942 (exit $ac_status); }; } && 13943 { ac_try='test -s conftest$ac_exeext' 13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13945 (eval $ac_try) 2>&5 13946 ac_status=$? 13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13948 (exit $ac_status); }; }; then 13949 echo "*** The test program compiled, but did not run. This usually means" 13950 echo "*** that the run-time linker is not finding ESD or finding the wrong" 13951 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 13952 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13953 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13954 echo "*** is required on your system" 13955 echo "***" 13956 echo "*** If you have an old version installed, it is best to remove it, although" 13957 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13958else 13959 echo "$as_me: failed program was:" >&5 13960sed 's/^/| /' conftest.$ac_ext >&5 13961 13962 echo "*** The test program failed to compile or link. See the file config.log for the" 13963 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 13964 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 13965 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 13966fi 13967rm -f conftest.err conftest.$ac_objext \ 13968 conftest$ac_exeext conftest.$ac_ext 13969 CFLAGS="$ac_save_CFLAGS" 13970 LIBS="$ac_save_LIBS" 13971 ac_ext=c 13972ac_cpp='$CPP $CPPFLAGS' 13973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13975ac_compiler_gnu=$ac_cv_c_compiler_gnu 13976 13977 fi 13978 fi 13979 ESD_CFLAGS="" 13980 ESD_LIBS="" 13981 : 13982 fi 13983 13984 13985 rm -f conf.esdtest 13986 13987 CFLAGS=$KEEPCFLAGS 13988 LIBS=$KEEPLIBS 13989 LDFLAGS=$KEEPLDFLAGS 13990 if test "x$no_esd" = x; then 13991 EXTRADEFS="$EXTRADEFS -DAU_ESD" 13992 SYSEXTRAS="$SYSEXTRAS esd_a.c" 13993 for f in $ESD_CFLAGS; do 13994 case ".$f" in 13995 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 13996 *) CFLAGS="$CFLAGS $f" ;; 13997 esac 13998done 13999 14000 LIBS="$LIBS $ESD_LIBS" 14001 else 14002 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5 14003echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;} 14004 fi 14005else 14006 echo "$as_me:$LINENO: result: no" >&5 14007echo "${ECHO_T}no" >&6 14008fi 14009 14010echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5 14011echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6 14012if test "x$au_enable_portaudio" = xyes; then 14013 echo "$as_me:$LINENO: result: yes" >&5 14014echo "${ECHO_T}yes" >&6 14015 if test "x$MSYS" = xyes ; then 14016 SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c" 14017 EXTRALIBS="$EXTRALIBS -lportaudio" 14018 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL" 14019 else 14020 SYSEXTRAS="$SYSEXTRAS portaudio_a.c" 14021 EXTRALIBS="$EXTRALIBS -lportaudio" 14022 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO" 14023 fi 14024else 14025 echo "$as_me:$LINENO: result: no" >&5 14026echo "${ECHO_T}no" >&6 14027fi 14028 14029echo "$as_me:$LINENO: checking enable_audio=npipe" >&5 14030echo $ECHO_N "checking enable_audio=npipe... $ECHO_C" >&6 14031if test "x$au_enable_npipe" = xyes; then 14032 echo "$as_me:$LINENO: result: yes" >&5 14033echo "${ECHO_T}yes" >&6 14034 SYSEXTRAS="$SYSEXTRAS npipe_a.c" 14035 EXTRADEFS="$EXTRADEFS -DAU_NPIPE" 14036else 14037 echo "$as_me:$LINENO: result: no" >&5 14038echo "${ECHO_T}no" >&6 14039fi 14040 14041 14042echo "$as_me:$LINENO: checking enable_audio=jack" >&5 14043echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6 14044if test "x$au_enable_jack" = xyes; then 14045 echo "$as_me:$LINENO: result: yes" >&5 14046echo "${ECHO_T}yes" >&6 14047 SYSEXTRAS="$SYSEXTRAS jack_a.c" 14048 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)" 14049 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)" 14050else 14051 echo "$as_me:$LINENO: result: no" >&5 14052echo "${ECHO_T}no" >&6 14053fi 14054 14055echo "$as_me:$LINENO: checking enable_audio=ao" >&5 14056echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6 14057if test "x$au_enable_ao" = xyes; then 14058 echo "$as_me:$LINENO: result: yes, configuring ao" >&5 14059echo "${ECHO_T}yes, configuring ao" >&6 14060 14061# Check whether --with-ao or --without-ao was given. 14062if test "${with_ao+set}" = set; then 14063 withval="$with_ao" 14064 ao_prefix="$withval" 14065else 14066 ao_prefix="" 14067fi; 14068 14069# Check whether --with-ao-libraries or --without-ao-libraries was given. 14070if test "${with_ao_libraries+set}" = set; then 14071 withval="$with_ao_libraries" 14072 ao_libraries="$withval" 14073else 14074 ao_libraries="" 14075fi; 14076 14077# Check whether --with-ao-includes or --without-ao-includes was given. 14078if test "${with_ao_includes+set}" = set; then 14079 withval="$with_ao_includes" 14080 ao_includes="$withval" 14081else 14082 ao_includes="" 14083fi; 14084# Check whether --enable-aotest or --disable-aotest was given. 14085if test "${enable_aotest+set}" = set; then 14086 enableval="$enable_aotest" 14087 14088else 14089 enable_aotest=yes 14090fi; 14091 14092 14093 if test "x$ao_libraries" != "x" ; then 14094 AO_LIBS="-L$ao_libraries" 14095 elif test "x$ao_prefix" != "x"; then 14096 AO_LIBS="-L$ao_prefix/lib" 14097 elif test "x$prefix" != "xNONE"; then 14098 AO_LIBS="-L$prefix/lib" 14099 fi 14100 14101 if test "x$ao_includes" != "x" ; then 14102 AO_CFLAGS="-I$ao_includes" 14103 elif test "x$ao_prefix" != "x"; then 14104 AO_CFLAGS="-I$ao_prefix/include" 14105 elif test "x$prefix" != "xNONE"; then 14106 AO_CFLAGS="-I$prefix/include" 14107 fi 14108 14109 # see where dl* and friends live 14110 14111for ac_func in dlopen 14112do 14113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14114echo "$as_me:$LINENO: checking for $ac_func" >&5 14115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14116if eval "test \"\${$as_ac_var+set}\" = set"; then 14117 echo $ECHO_N "(cached) $ECHO_C" >&6 14118else 14119 cat >conftest.$ac_ext <<_ACEOF 14120/* confdefs.h. */ 14121_ACEOF 14122cat confdefs.h >>conftest.$ac_ext 14123cat >>conftest.$ac_ext <<_ACEOF 14124/* end confdefs.h. */ 14125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14127#define $ac_func innocuous_$ac_func 14128 14129/* System header to define __stub macros and hopefully few prototypes, 14130 which can conflict with char $ac_func (); below. 14131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14132 <limits.h> exists even on freestanding compilers. */ 14133 14134#ifdef __STDC__ 14135# include <limits.h> 14136#else 14137# include <assert.h> 14138#endif 14139 14140#undef $ac_func 14141 14142/* Override any gcc2 internal prototype to avoid an error. */ 14143#ifdef __cplusplus 14144extern "C" 14145{ 14146#endif 14147/* We use char because int might match the return type of a gcc2 14148 builtin and then its argument prototype would still apply. */ 14149char $ac_func (); 14150/* The GNU C library defines this for functions which it implements 14151 to always fail with ENOSYS. Some functions are actually named 14152 something starting with __ and the normal name is an alias. */ 14153#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14154choke me 14155#else 14156char (*f) () = $ac_func; 14157#endif 14158#ifdef __cplusplus 14159} 14160#endif 14161 14162int 14163main () 14164{ 14165return f != $ac_func; 14166 ; 14167 return 0; 14168} 14169_ACEOF 14170rm -f conftest.$ac_objext conftest$ac_exeext 14171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14172 (eval $ac_link) 2>conftest.er1 14173 ac_status=$? 14174 grep -v '^ *+' conftest.er1 >conftest.err 14175 rm -f conftest.er1 14176 cat conftest.err >&5 14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14178 (exit $ac_status); } && 14179 { ac_try='test -z "$ac_c_werror_flag" 14180 || test ! -s conftest.err' 14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14182 (eval $ac_try) 2>&5 14183 ac_status=$? 14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14185 (exit $ac_status); }; } && 14186 { ac_try='test -s conftest$ac_exeext' 14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14188 (eval $ac_try) 2>&5 14189 ac_status=$? 14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14191 (exit $ac_status); }; }; then 14192 eval "$as_ac_var=yes" 14193else 14194 echo "$as_me: failed program was:" >&5 14195sed 's/^/| /' conftest.$ac_ext >&5 14196 14197eval "$as_ac_var=no" 14198fi 14199rm -f conftest.err conftest.$ac_objext \ 14200 conftest$ac_exeext conftest.$ac_ext 14201fi 14202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14204if test `eval echo '${'$as_ac_var'}'` = yes; then 14205 cat >>confdefs.h <<_ACEOF 14206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14207_ACEOF 14208 AO_DL_LIBS="" 14209else 14210 14211 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14212echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14213if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14214 echo $ECHO_N "(cached) $ECHO_C" >&6 14215else 14216 ac_check_lib_save_LIBS=$LIBS 14217LIBS="-ldl $LIBS" 14218cat >conftest.$ac_ext <<_ACEOF 14219/* confdefs.h. */ 14220_ACEOF 14221cat confdefs.h >>conftest.$ac_ext 14222cat >>conftest.$ac_ext <<_ACEOF 14223/* end confdefs.h. */ 14224 14225/* Override any gcc2 internal prototype to avoid an error. */ 14226#ifdef __cplusplus 14227extern "C" 14228#endif 14229/* We use char because int might match the return type of a gcc2 14230 builtin and then its argument prototype would still apply. */ 14231char dlopen (); 14232int 14233main () 14234{ 14235dlopen (); 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240rm -f conftest.$ac_objext conftest$ac_exeext 14241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14242 (eval $ac_link) 2>conftest.er1 14243 ac_status=$? 14244 grep -v '^ *+' conftest.er1 >conftest.err 14245 rm -f conftest.er1 14246 cat conftest.err >&5 14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14248 (exit $ac_status); } && 14249 { ac_try='test -z "$ac_c_werror_flag" 14250 || test ! -s conftest.err' 14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14252 (eval $ac_try) 2>&5 14253 ac_status=$? 14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14255 (exit $ac_status); }; } && 14256 { ac_try='test -s conftest$ac_exeext' 14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14258 (eval $ac_try) 2>&5 14259 ac_status=$? 14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14261 (exit $ac_status); }; }; then 14262 ac_cv_lib_dl_dlopen=yes 14263else 14264 echo "$as_me: failed program was:" >&5 14265sed 's/^/| /' conftest.$ac_ext >&5 14266 14267ac_cv_lib_dl_dlopen=no 14268fi 14269rm -f conftest.err conftest.$ac_objext \ 14270 conftest$ac_exeext conftest.$ac_ext 14271LIBS=$ac_check_lib_save_LIBS 14272fi 14273echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14274echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14275if test $ac_cv_lib_dl_dlopen = yes; then 14276 AO_DL_LIBS="-ldl" 14277else 14278 14279 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers 14280 your system may not be supported." >&5 14281echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers 14282 your system may not be supported." >&2;} 14283 14284fi 14285 14286 14287fi 14288done 14289 14290 14291 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS" 14292 14293 echo "$as_me:$LINENO: checking for ao" >&5 14294echo $ECHO_N "checking for ao... $ECHO_C" >&6 14295 no_ao="" 14296 14297 14298 if test "x$enable_aotest" = "xyes" ; then 14299 ac_save_CFLAGS="$CFLAGS" 14300 ac_save_LIBS="$LIBS" 14301 CFLAGS="$CFLAGS $AO_CFLAGS" 14302 LIBS="$LIBS $AO_LIBS" 14303 rm -f conf.aotest 14304 if test "$cross_compiling" = yes; then 14305 echo $ac_n "cross compiling; assumed OK... $ac_c" 14306else 14307 cat >conftest.$ac_ext <<_ACEOF 14308/* confdefs.h. */ 14309_ACEOF 14310cat confdefs.h >>conftest.$ac_ext 14311cat >>conftest.$ac_ext <<_ACEOF 14312/* end confdefs.h. */ 14313 14314#include <stdio.h> 14315#include <stdlib.h> 14316#include <string.h> 14317#include <ao/ao.h> 14318 14319int main () 14320{ 14321 system("touch conf.aotest"); 14322 return 0; 14323} 14324 14325 14326_ACEOF 14327rm -f conftest$ac_exeext 14328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14329 (eval $ac_link) 2>&5 14330 ac_status=$? 14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14334 (eval $ac_try) 2>&5 14335 ac_status=$? 14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14337 (exit $ac_status); }; }; then 14338 : 14339else 14340 echo "$as_me: program exited with status $ac_status" >&5 14341echo "$as_me: failed program was:" >&5 14342sed 's/^/| /' conftest.$ac_ext >&5 14343 14344( exit $ac_status ) 14345no_ao=yes 14346fi 14347rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14348fi 14349 CFLAGS="$ac_save_CFLAGS" 14350 LIBS="$ac_save_LIBS" 14351 fi 14352 14353 if test "x$no_ao" = "x" ; then 14354 echo "$as_me:$LINENO: result: yes" >&5 14355echo "${ECHO_T}yes" >&6 14356 : 14357 else 14358 echo "$as_me:$LINENO: result: no" >&5 14359echo "${ECHO_T}no" >&6 14360 if test -f conf.aotest ; then 14361 : 14362 else 14363 echo "*** Could not run ao test program, checking why..." 14364 CFLAGS="$CFLAGS $AO_CFLAGS" 14365 LIBS="$LIBS $AO_LIBS" 14366 cat >conftest.$ac_ext <<_ACEOF 14367/* confdefs.h. */ 14368_ACEOF 14369cat confdefs.h >>conftest.$ac_ext 14370cat >>conftest.$ac_ext <<_ACEOF 14371/* end confdefs.h. */ 14372 14373#include <stdio.h> 14374#include <ao/ao.h> 14375 14376int 14377main () 14378{ 14379 return 0; 14380 ; 14381 return 0; 14382} 14383_ACEOF 14384rm -f conftest.$ac_objext conftest$ac_exeext 14385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14386 (eval $ac_link) 2>conftest.er1 14387 ac_status=$? 14388 grep -v '^ *+' conftest.er1 >conftest.err 14389 rm -f conftest.er1 14390 cat conftest.err >&5 14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14392 (exit $ac_status); } && 14393 { ac_try='test -z "$ac_c_werror_flag" 14394 || test ! -s conftest.err' 14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14396 (eval $ac_try) 2>&5 14397 ac_status=$? 14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14399 (exit $ac_status); }; } && 14400 { ac_try='test -s conftest$ac_exeext' 14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14402 (eval $ac_try) 2>&5 14403 ac_status=$? 14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14405 (exit $ac_status); }; }; then 14406 echo "*** The test program compiled, but did not run. This usually means" 14407 echo "*** that the run-time linker is not finding ao or finding the wrong" 14408 echo "*** version of ao. If it is not finding ao, you'll need to set your" 14409 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14410 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14411 echo "*** is required on your system" 14412 echo "***" 14413 echo "*** If you have an old version installed, it is best to remove it, although" 14414 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14415else 14416 echo "$as_me: failed program was:" >&5 14417sed 's/^/| /' conftest.$ac_ext >&5 14418 14419 echo "*** The test program failed to compile or link. See the file config.log for the" 14420 echo "*** exact error that occured. This usually means ao was incorrectly installed" 14421 echo "*** or that you have moved ao since it was installed." 14422fi 14423rm -f conftest.err conftest.$ac_objext \ 14424 conftest$ac_exeext conftest.$ac_ext 14425 CFLAGS="$ac_save_CFLAGS" 14426 LIBS="$ac_save_LIBS" 14427 fi 14428 AO_CFLAGS="" 14429 AO_LIBS="" 14430 : 14431 fi 14432 14433 14434 rm -f conf.aotest 14435 14436 if test "x$no_ao" = "x" ; then 14437 # AC_MSG_RESULT(yes) 14438 EXTRADEFS="$EXTRADEFS -DAU_AO" 14439 SYSEXTRAS="$SYSEXTRAS ao_a.c" 14440 for f in $AO_CFLAGS; do 14441 case ".$f" in 14442 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 14443 *) CFLAGS="$CFLAGS $f" ;; 14444 esac 14445done 14446 14447 LIBS="$LIBS $AO_LIBS" 14448 else 14449 { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5 14450echo "$as_me: WARNING: Couldn't configure libao." >&2;} 14451 fi 14452else 14453 echo "$as_me:$LINENO: result: no" >&5 14454echo "${ECHO_T}no" >&6 14455fi 14456 14457echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5 14458echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6 14459if test "x$au_enable_vorbis" = xyes; then 14460 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5 14461echo "${ECHO_T}yes, configuring vorbis" >&6 14462 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" != "xyes" ; then 14463 if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 14464 echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5 14465echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6 14466if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 14467 echo $ECHO_N "(cached) $ECHO_C" >&6 14468fi 14469echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5 14470echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6 14471else 14472 # Is the header compilable? 14473echo "$as_me:$LINENO: checking vorbis/vorbisenc.h usability" >&5 14474echo $ECHO_N "checking vorbis/vorbisenc.h usability... $ECHO_C" >&6 14475cat >conftest.$ac_ext <<_ACEOF 14476/* confdefs.h. */ 14477_ACEOF 14478cat confdefs.h >>conftest.$ac_ext 14479cat >>conftest.$ac_ext <<_ACEOF 14480/* end confdefs.h. */ 14481$ac_includes_default 14482#include <vorbis/vorbisenc.h> 14483_ACEOF 14484rm -f conftest.$ac_objext 14485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14486 (eval $ac_compile) 2>conftest.er1 14487 ac_status=$? 14488 grep -v '^ *+' conftest.er1 >conftest.err 14489 rm -f conftest.er1 14490 cat conftest.err >&5 14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14492 (exit $ac_status); } && 14493 { ac_try='test -z "$ac_c_werror_flag" 14494 || test ! -s conftest.err' 14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14496 (eval $ac_try) 2>&5 14497 ac_status=$? 14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14499 (exit $ac_status); }; } && 14500 { ac_try='test -s conftest.$ac_objext' 14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14502 (eval $ac_try) 2>&5 14503 ac_status=$? 14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14505 (exit $ac_status); }; }; then 14506 ac_header_compiler=yes 14507else 14508 echo "$as_me: failed program was:" >&5 14509sed 's/^/| /' conftest.$ac_ext >&5 14510 14511ac_header_compiler=no 14512fi 14513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14514echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14515echo "${ECHO_T}$ac_header_compiler" >&6 14516 14517# Is the header present? 14518echo "$as_me:$LINENO: checking vorbis/vorbisenc.h presence" >&5 14519echo $ECHO_N "checking vorbis/vorbisenc.h presence... $ECHO_C" >&6 14520cat >conftest.$ac_ext <<_ACEOF 14521/* confdefs.h. */ 14522_ACEOF 14523cat confdefs.h >>conftest.$ac_ext 14524cat >>conftest.$ac_ext <<_ACEOF 14525/* end confdefs.h. */ 14526#include <vorbis/vorbisenc.h> 14527_ACEOF 14528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14530 ac_status=$? 14531 grep -v '^ *+' conftest.er1 >conftest.err 14532 rm -f conftest.er1 14533 cat conftest.err >&5 14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14535 (exit $ac_status); } >/dev/null; then 14536 if test -s conftest.err; then 14537 ac_cpp_err=$ac_c_preproc_warn_flag 14538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14539 else 14540 ac_cpp_err= 14541 fi 14542else 14543 ac_cpp_err=yes 14544fi 14545if test -z "$ac_cpp_err"; then 14546 ac_header_preproc=yes 14547else 14548 echo "$as_me: failed program was:" >&5 14549sed 's/^/| /' conftest.$ac_ext >&5 14550 14551 ac_header_preproc=no 14552fi 14553rm -f conftest.err conftest.$ac_ext 14554echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14555echo "${ECHO_T}$ac_header_preproc" >&6 14556 14557# So? What about this header? 14558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14559 yes:no: ) 14560 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&5 14561echo "$as_me: WARNING: vorbis/vorbisenc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14562 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&5 14563echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the compiler's result" >&2;} 14564 ac_header_preproc=yes 14565 ;; 14566 no:yes:* ) 14567 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&5 14568echo "$as_me: WARNING: vorbis/vorbisenc.h: present but cannot be compiled" >&2;} 14569 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&5 14570echo "$as_me: WARNING: vorbis/vorbisenc.h: check for missing prerequisite headers?" >&2;} 14571 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&5 14572echo "$as_me: WARNING: vorbis/vorbisenc.h: see the Autoconf documentation" >&2;} 14573 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&5 14574echo "$as_me: WARNING: vorbis/vorbisenc.h: section \"Present But Cannot Be Compiled\"" >&2;} 14575 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&5 14576echo "$as_me: WARNING: vorbis/vorbisenc.h: proceeding with the preprocessor's result" >&2;} 14577 { echo "$as_me:$LINENO: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&5 14578echo "$as_me: WARNING: vorbis/vorbisenc.h: in the future, the compiler will take precedence" >&2;} 14579 ( 14580 cat <<\_ASBOX 14581## -------------------------------------------------- ## 14582## Report this to timidity-talk@lists.sourceforge.net ## 14583## -------------------------------------------------- ## 14584_ASBOX 14585 ) | 14586 sed "s/^/$as_me: WARNING: /" >&2 14587 ;; 14588esac 14589echo "$as_me:$LINENO: checking for vorbis/vorbisenc.h" >&5 14590echo $ECHO_N "checking for vorbis/vorbisenc.h... $ECHO_C" >&6 14591if test "${ac_cv_header_vorbis_vorbisenc_h+set}" = set; then 14592 echo $ECHO_N "(cached) $ECHO_C" >&6 14593else 14594 ac_cv_header_vorbis_vorbisenc_h=$ac_header_preproc 14595fi 14596echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisenc_h" >&5 14597echo "${ECHO_T}$ac_cv_header_vorbis_vorbisenc_h" >&6 14598 14599fi 14600if test $ac_cv_header_vorbis_vorbisenc_h = yes; then 14601 : 14602else 14603 14604 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS" 14605 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c" 14606 14607fi 14608 14609 14610 else 14611 14612# Check whether --with-ogg or --without-ogg was given. 14613if test "${with_ogg+set}" = set; then 14614 withval="$with_ogg" 14615 ogg_prefix="$withval" 14616else 14617 ogg_prefix="" 14618fi; 14619 14620# Check whether --with-ogg-libraries or --without-ogg-libraries was given. 14621if test "${with_ogg_libraries+set}" = set; then 14622 withval="$with_ogg_libraries" 14623 ogg_libraries="$withval" 14624else 14625 ogg_libraries="" 14626fi; 14627 14628# Check whether --with-ogg-includes or --without-ogg-includes was given. 14629if test "${with_ogg_includes+set}" = set; then 14630 withval="$with_ogg_includes" 14631 ogg_includes="$withval" 14632else 14633 ogg_includes="" 14634fi; 14635# Check whether --enable-oggtest or --disable-oggtest was given. 14636if test "${enable_oggtest+set}" = set; then 14637 enableval="$enable_oggtest" 14638 14639else 14640 enable_oggtest=yes 14641fi; 14642 14643 if test "x$ogg_libraries" != "x" ; then 14644 OGG_LIBS="-L$ogg_libraries" 14645 elif test "x$ogg_prefix" != "x" ; then 14646 OGG_LIBS="-L$ogg_prefix/lib" 14647 elif test "x$prefix" != "xNONE" ; then 14648 OGG_LIBS="-L$prefix/lib" 14649 fi 14650 14651 OGG_LIBS="$OGG_LIBS -logg" 14652 14653 if test "x$ogg_includes" != "x" ; then 14654 OGG_CFLAGS="-I$ogg_includes" 14655 elif test "x$ogg_prefix" != "x" ; then 14656 OGG_CFLAGS="-I$ogg_prefix/include" 14657 elif test "x$prefix" != "xNONE"; then 14658 OGG_CFLAGS="-I$prefix/include" 14659 fi 14660 14661 echo "$as_me:$LINENO: checking for Ogg" >&5 14662echo $ECHO_N "checking for Ogg... $ECHO_C" >&6 14663 no_ogg="" 14664 14665 14666 if test "x$enable_oggtest" = "xyes" ; then 14667 ac_save_CFLAGS="$CFLAGS" 14668 ac_save_LIBS="$LIBS" 14669 CFLAGS="$CFLAGS $OGG_CFLAGS" 14670 LIBS="$LIBS $OGG_LIBS" 14671 rm -f conf.oggtest 14672 if test "$cross_compiling" = yes; then 14673 echo $ac_n "cross compiling; assumed OK... $ac_c" 14674else 14675 cat >conftest.$ac_ext <<_ACEOF 14676/* confdefs.h. */ 14677_ACEOF 14678cat confdefs.h >>conftest.$ac_ext 14679cat >>conftest.$ac_ext <<_ACEOF 14680/* end confdefs.h. */ 14681 14682#include <stdio.h> 14683#include <stdlib.h> 14684#include <string.h> 14685#include <ogg/ogg.h> 14686 14687int main () 14688{ 14689 system("touch conf.oggtest"); 14690 return 0; 14691} 14692 14693 14694_ACEOF 14695rm -f conftest$ac_exeext 14696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14697 (eval $ac_link) 2>&5 14698 ac_status=$? 14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14702 (eval $ac_try) 2>&5 14703 ac_status=$? 14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14705 (exit $ac_status); }; }; then 14706 : 14707else 14708 echo "$as_me: program exited with status $ac_status" >&5 14709echo "$as_me: failed program was:" >&5 14710sed 's/^/| /' conftest.$ac_ext >&5 14711 14712( exit $ac_status ) 14713no_ogg=yes 14714fi 14715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14716fi 14717 CFLAGS="$ac_save_CFLAGS" 14718 LIBS="$ac_save_LIBS" 14719 fi 14720 14721 if test "x$no_ogg" = "x" ; then 14722 echo "$as_me:$LINENO: result: yes" >&5 14723echo "${ECHO_T}yes" >&6 14724 14725 14726# Check whether --with-vorbis or --without-vorbis was given. 14727if test "${with_vorbis+set}" = set; then 14728 withval="$with_vorbis" 14729 vorbis_prefix="$withval" 14730else 14731 vorbis_prefix="" 14732fi; 14733 14734# Check whether --with-vorbis-libraries or --without-vorbis-libraries was given. 14735if test "${with_vorbis_libraries+set}" = set; then 14736 withval="$with_vorbis_libraries" 14737 vorbis_libraries="$withval" 14738else 14739 vorbis_libraries="" 14740fi; 14741 14742# Check whether --with-vorbis-includes or --without-vorbis-includes was given. 14743if test "${with_vorbis_includes+set}" = set; then 14744 withval="$with_vorbis_includes" 14745 vorbis_includes="$withval" 14746else 14747 vorbis_includes="" 14748fi; 14749# Check whether --enable-vorbistest or --disable-vorbistest was given. 14750if test "${enable_vorbistest+set}" = set; then 14751 enableval="$enable_vorbistest" 14752 14753else 14754 enable_vorbistest=yes 14755fi; 14756 14757 if test "x$vorbis_libraries" != "x" ; then 14758 VORBIS_LIBS="-L$vorbis_libraries" 14759 elif test "x$vorbis_prefix" != "x" ; then 14760 VORBIS_LIBS="-L$vorbis_prefix/lib" 14761 elif test "x$prefix" != "xNONE"; then 14762 VORBIS_LIBS="-L$prefix/lib" 14763 fi 14764 14765 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" 14766 VORBISFILE_LIBS="-lvorbisfile" 14767 VORBISENC_LIBS="-lvorbisenc" 14768 14769 if test "x$vorbis_includes" != "x" ; then 14770 VORBIS_CFLAGS="-I$vorbis_includes" 14771 elif test "x$vorbis_prefix" != "x" ; then 14772 VORBIS_CFLAGS="-I$vorbis_prefix/include" 14773 elif test "x$prefix" != "xNONE"; then 14774 VORBIS_CFLAGS="-I$prefix/include" 14775 fi 14776 14777 14778 echo "$as_me:$LINENO: checking for Vorbis" >&5 14779echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6 14780 no_vorbis="" 14781 14782 14783 if test "x$enable_vorbistest" = "xyes" ; then 14784 ac_save_CFLAGS="$CFLAGS" 14785 ac_save_LIBS="$LIBS" 14786 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" 14787 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" 14788 rm -f conf.vorbistest 14789 if test "$cross_compiling" = yes; then 14790 echo $ac_n "cross compiling; assumed OK... $ac_c" 14791else 14792 cat >conftest.$ac_ext <<_ACEOF 14793/* confdefs.h. */ 14794_ACEOF 14795cat confdefs.h >>conftest.$ac_ext 14796cat >>conftest.$ac_ext <<_ACEOF 14797/* end confdefs.h. */ 14798 14799#include <stdio.h> 14800#include <stdlib.h> 14801#include <string.h> 14802#include <vorbis/codec.h> 14803#include <vorbis/vorbisenc.h> 14804 14805int main () 14806{ 14807 vorbis_block vb; 14808 vorbis_dsp_state vd; 14809 vorbis_info vi; 14810 14811 vorbis_info_init (&vi); 14812 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); 14813 vorbis_analysis_init (&vd, &vi); 14814 vorbis_block_init (&vd, &vb); 14815 /* this function was added in 1.0rc3, so this is what we're testing for */ 14816 vorbis_bitrate_addblock (&vb); 14817 14818 system("touch conf.vorbistest"); 14819 return 0; 14820} 14821 14822 14823_ACEOF 14824rm -f conftest$ac_exeext 14825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14826 (eval $ac_link) 2>&5 14827 ac_status=$? 14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14831 (eval $ac_try) 2>&5 14832 ac_status=$? 14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14834 (exit $ac_status); }; }; then 14835 : 14836else 14837 echo "$as_me: program exited with status $ac_status" >&5 14838echo "$as_me: failed program was:" >&5 14839sed 's/^/| /' conftest.$ac_ext >&5 14840 14841( exit $ac_status ) 14842no_vorbis=yes 14843fi 14844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14845fi 14846 CFLAGS="$ac_save_CFLAGS" 14847 LIBS="$ac_save_LIBS" 14848 fi 14849 14850 if test "x$no_vorbis" = "x" ; then 14851 echo "$as_me:$LINENO: result: yes" >&5 14852echo "${ECHO_T}yes" >&6 14853 14854 have_vorbis=yes 14855 SYSEXTRAS="$SYSEXTRAS vorbis_a.c" 14856 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS" 14857 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" 14858 if test "x$MSYS" = "xyes" && test "x$MINGWGCC" = "xyes" ; then 14859 EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS" 14860 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c" 14861 fi 14862 14863 else 14864 echo "$as_me:$LINENO: result: no" >&5 14865echo "${ECHO_T}no" >&6 14866 if test -f conf.vorbistest ; then 14867 : 14868 else 14869 echo "*** Could not run Vorbis test program, checking why..." 14870 CFLAGS="$CFLAGS $VORBIS_CFLAGS" 14871 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" 14872 cat >conftest.$ac_ext <<_ACEOF 14873/* confdefs.h. */ 14874_ACEOF 14875cat confdefs.h >>conftest.$ac_ext 14876cat >>conftest.$ac_ext <<_ACEOF 14877/* end confdefs.h. */ 14878 14879#include <stdio.h> 14880#include <vorbis/codec.h> 14881 14882int 14883main () 14884{ 14885 return 0; 14886 ; 14887 return 0; 14888} 14889_ACEOF 14890rm -f conftest.$ac_objext conftest$ac_exeext 14891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14892 (eval $ac_link) 2>conftest.er1 14893 ac_status=$? 14894 grep -v '^ *+' conftest.er1 >conftest.err 14895 rm -f conftest.er1 14896 cat conftest.err >&5 14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14898 (exit $ac_status); } && 14899 { ac_try='test -z "$ac_c_werror_flag" 14900 || test ! -s conftest.err' 14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14902 (eval $ac_try) 2>&5 14903 ac_status=$? 14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14905 (exit $ac_status); }; } && 14906 { ac_try='test -s conftest$ac_exeext' 14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14908 (eval $ac_try) 2>&5 14909 ac_status=$? 14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14911 (exit $ac_status); }; }; then 14912 echo "*** The test program compiled, but did not run. This usually means" 14913 echo "*** that the run-time linker is not finding Vorbis or finding the wrong" 14914 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" 14915 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14916 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14917 echo "*** is required on your system" 14918 echo "***" 14919 echo "*** If you have an old version installed, it is best to remove it, although" 14920 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14921else 14922 echo "$as_me: failed program was:" >&5 14923sed 's/^/| /' conftest.$ac_ext >&5 14924 14925 echo "*** The test program failed to compile or link. See the file config.log for the" 14926 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" 14927 echo "*** or that you have moved Vorbis since it was installed." 14928fi 14929rm -f conftest.err conftest.$ac_objext \ 14930 conftest$ac_exeext conftest.$ac_ext 14931 CFLAGS="$ac_save_CFLAGS" 14932 LIBS="$ac_save_LIBS" 14933 fi 14934 VORBIS_CFLAGS="" 14935 VORBIS_LIBS="" 14936 VORBISFILE_LIBS="" 14937 VORBISENC_LIBS="" 14938 14939 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5 14940echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;} 14941 14942 fi 14943 14944 14945 14946 14947 rm -f conf.vorbistest 14948 14949 14950 else 14951 echo "$as_me:$LINENO: result: no" >&5 14952echo "${ECHO_T}no" >&6 14953 if test -f conf.oggtest ; then 14954 : 14955 else 14956 echo "*** Could not run Ogg test program, checking why..." 14957 CFLAGS="$CFLAGS $OGG_CFLAGS" 14958 LIBS="$LIBS $OGG_LIBS" 14959 cat >conftest.$ac_ext <<_ACEOF 14960/* confdefs.h. */ 14961_ACEOF 14962cat confdefs.h >>conftest.$ac_ext 14963cat >>conftest.$ac_ext <<_ACEOF 14964/* end confdefs.h. */ 14965 14966#include <stdio.h> 14967#include <ogg/ogg.h> 14968 14969int 14970main () 14971{ 14972 return 0; 14973 ; 14974 return 0; 14975} 14976_ACEOF 14977rm -f conftest.$ac_objext conftest$ac_exeext 14978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14979 (eval $ac_link) 2>conftest.er1 14980 ac_status=$? 14981 grep -v '^ *+' conftest.er1 >conftest.err 14982 rm -f conftest.er1 14983 cat conftest.err >&5 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); } && 14986 { ac_try='test -z "$ac_c_werror_flag" 14987 || test ! -s conftest.err' 14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14989 (eval $ac_try) 2>&5 14990 ac_status=$? 14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14992 (exit $ac_status); }; } && 14993 { ac_try='test -s conftest$ac_exeext' 14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14995 (eval $ac_try) 2>&5 14996 ac_status=$? 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); }; }; then 14999 echo "*** The test program compiled, but did not run. This usually means" 15000 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 15001 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 15002 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15003 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15004 echo "*** is required on your system" 15005 echo "***" 15006 echo "*** If you have an old version installed, it is best to remove it, although" 15007 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15008else 15009 echo "$as_me: failed program was:" >&5 15010sed 's/^/| /' conftest.$ac_ext >&5 15011 15012 echo "*** The test program failed to compile or link. See the file config.log for the" 15013 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 15014 echo "*** or that you have moved Ogg since it was installed." 15015fi 15016rm -f conftest.err conftest.$ac_objext \ 15017 conftest$ac_exeext conftest.$ac_ext 15018 CFLAGS="$ac_save_CFLAGS" 15019 LIBS="$ac_save_LIBS" 15020 fi 15021 OGG_CFLAGS="" 15022 OGG_LIBS="" 15023 15024 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5 15025echo "$as_me: WARNING: Unable to configure vorbis!" >&2;} 15026 have_vorbis=no 15027 15028 fi 15029 15030 15031 rm -f conf.oggtest 15032 15033 fi 15034else 15035 echo "$as_me:$LINENO: result: no" >&5 15036echo "${ECHO_T}no" >&6 15037fi 15038 15039if test "x$MSYS" = xyes ; then 15040 echo "$as_me:$LINENO: checking enable_audio=flac" >&5 15041echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6 15042 if test "x$au_enable_flac" = xyes; then 15043 echo "$as_me:$LINENO: result: yes, configuring flac" >&5 15044echo "${ECHO_T}yes, configuring flac" >&6 15045 SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c" 15046 if test "${ac_cv_header_FLAC_all_h+set}" = set; then 15047 echo "$as_me:$LINENO: checking for FLAC/all.h" >&5 15048echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6 15049if test "${ac_cv_header_FLAC_all_h+set}" = set; then 15050 echo $ECHO_N "(cached) $ECHO_C" >&6 15051fi 15052echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5 15053echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6 15054else 15055 # Is the header compilable? 15056echo "$as_me:$LINENO: checking FLAC/all.h usability" >&5 15057echo $ECHO_N "checking FLAC/all.h usability... $ECHO_C" >&6 15058cat >conftest.$ac_ext <<_ACEOF 15059/* confdefs.h. */ 15060_ACEOF 15061cat confdefs.h >>conftest.$ac_ext 15062cat >>conftest.$ac_ext <<_ACEOF 15063/* end confdefs.h. */ 15064$ac_includes_default 15065#include <FLAC/all.h> 15066_ACEOF 15067rm -f conftest.$ac_objext 15068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15069 (eval $ac_compile) 2>conftest.er1 15070 ac_status=$? 15071 grep -v '^ *+' conftest.er1 >conftest.err 15072 rm -f conftest.er1 15073 cat conftest.err >&5 15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15075 (exit $ac_status); } && 15076 { ac_try='test -z "$ac_c_werror_flag" 15077 || test ! -s conftest.err' 15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15079 (eval $ac_try) 2>&5 15080 ac_status=$? 15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15082 (exit $ac_status); }; } && 15083 { ac_try='test -s conftest.$ac_objext' 15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15085 (eval $ac_try) 2>&5 15086 ac_status=$? 15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15088 (exit $ac_status); }; }; then 15089 ac_header_compiler=yes 15090else 15091 echo "$as_me: failed program was:" >&5 15092sed 's/^/| /' conftest.$ac_ext >&5 15093 15094ac_header_compiler=no 15095fi 15096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15098echo "${ECHO_T}$ac_header_compiler" >&6 15099 15100# Is the header present? 15101echo "$as_me:$LINENO: checking FLAC/all.h presence" >&5 15102echo $ECHO_N "checking FLAC/all.h presence... $ECHO_C" >&6 15103cat >conftest.$ac_ext <<_ACEOF 15104/* confdefs.h. */ 15105_ACEOF 15106cat confdefs.h >>conftest.$ac_ext 15107cat >>conftest.$ac_ext <<_ACEOF 15108/* end confdefs.h. */ 15109#include <FLAC/all.h> 15110_ACEOF 15111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15113 ac_status=$? 15114 grep -v '^ *+' conftest.er1 >conftest.err 15115 rm -f conftest.er1 15116 cat conftest.err >&5 15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15118 (exit $ac_status); } >/dev/null; then 15119 if test -s conftest.err; then 15120 ac_cpp_err=$ac_c_preproc_warn_flag 15121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15122 else 15123 ac_cpp_err= 15124 fi 15125else 15126 ac_cpp_err=yes 15127fi 15128if test -z "$ac_cpp_err"; then 15129 ac_header_preproc=yes 15130else 15131 echo "$as_me: failed program was:" >&5 15132sed 's/^/| /' conftest.$ac_ext >&5 15133 15134 ac_header_preproc=no 15135fi 15136rm -f conftest.err conftest.$ac_ext 15137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15138echo "${ECHO_T}$ac_header_preproc" >&6 15139 15140# So? What about this header? 15141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15142 yes:no: ) 15143 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5 15144echo "$as_me: WARNING: FLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15145 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the compiler's result" >&5 15146echo "$as_me: WARNING: FLAC/all.h: proceeding with the compiler's result" >&2;} 15147 ac_header_preproc=yes 15148 ;; 15149 no:yes:* ) 15150 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: present but cannot be compiled" >&5 15151echo "$as_me: WARNING: FLAC/all.h: present but cannot be compiled" >&2;} 15152 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&5 15153echo "$as_me: WARNING: FLAC/all.h: check for missing prerequisite headers?" >&2;} 15154 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: see the Autoconf documentation" >&5 15155echo "$as_me: WARNING: FLAC/all.h: see the Autoconf documentation" >&2;} 15156 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&5 15157echo "$as_me: WARNING: FLAC/all.h: section \"Present But Cannot Be Compiled\"" >&2;} 15158 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&5 15159echo "$as_me: WARNING: FLAC/all.h: proceeding with the preprocessor's result" >&2;} 15160 { echo "$as_me:$LINENO: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&5 15161echo "$as_me: WARNING: FLAC/all.h: in the future, the compiler will take precedence" >&2;} 15162 ( 15163 cat <<\_ASBOX 15164## -------------------------------------------------- ## 15165## Report this to timidity-talk@lists.sourceforge.net ## 15166## -------------------------------------------------- ## 15167_ASBOX 15168 ) | 15169 sed "s/^/$as_me: WARNING: /" >&2 15170 ;; 15171esac 15172echo "$as_me:$LINENO: checking for FLAC/all.h" >&5 15173echo $ECHO_N "checking for FLAC/all.h... $ECHO_C" >&6 15174if test "${ac_cv_header_FLAC_all_h+set}" = set; then 15175 echo $ECHO_N "(cached) $ECHO_C" >&6 15176else 15177 ac_cv_header_FLAC_all_h=$ac_header_preproc 15178fi 15179echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_all_h" >&5 15180echo "${ECHO_T}$ac_cv_header_FLAC_all_h" >&6 15181 15182fi 15183if test $ac_cv_header_FLAC_all_h = yes; then 15184 15185 EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL" 15186 15187fi 15188 15189 15190 if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then 15191 echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5 15192echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6 15193if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then 15194 echo $ECHO_N "(cached) $ECHO_C" >&6 15195fi 15196echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5 15197echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6 15198else 15199 # Is the header compilable? 15200echo "$as_me:$LINENO: checking OggFLAC/all.h usability" >&5 15201echo $ECHO_N "checking OggFLAC/all.h usability... $ECHO_C" >&6 15202cat >conftest.$ac_ext <<_ACEOF 15203/* confdefs.h. */ 15204_ACEOF 15205cat confdefs.h >>conftest.$ac_ext 15206cat >>conftest.$ac_ext <<_ACEOF 15207/* end confdefs.h. */ 15208$ac_includes_default 15209#include <OggFLAC/all.h> 15210_ACEOF 15211rm -f conftest.$ac_objext 15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15213 (eval $ac_compile) 2>conftest.er1 15214 ac_status=$? 15215 grep -v '^ *+' conftest.er1 >conftest.err 15216 rm -f conftest.er1 15217 cat conftest.err >&5 15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15219 (exit $ac_status); } && 15220 { ac_try='test -z "$ac_c_werror_flag" 15221 || test ! -s conftest.err' 15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15223 (eval $ac_try) 2>&5 15224 ac_status=$? 15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15226 (exit $ac_status); }; } && 15227 { ac_try='test -s conftest.$ac_objext' 15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15229 (eval $ac_try) 2>&5 15230 ac_status=$? 15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15232 (exit $ac_status); }; }; then 15233 ac_header_compiler=yes 15234else 15235 echo "$as_me: failed program was:" >&5 15236sed 's/^/| /' conftest.$ac_ext >&5 15237 15238ac_header_compiler=no 15239fi 15240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15242echo "${ECHO_T}$ac_header_compiler" >&6 15243 15244# Is the header present? 15245echo "$as_me:$LINENO: checking OggFLAC/all.h presence" >&5 15246echo $ECHO_N "checking OggFLAC/all.h presence... $ECHO_C" >&6 15247cat >conftest.$ac_ext <<_ACEOF 15248/* confdefs.h. */ 15249_ACEOF 15250cat confdefs.h >>conftest.$ac_ext 15251cat >>conftest.$ac_ext <<_ACEOF 15252/* end confdefs.h. */ 15253#include <OggFLAC/all.h> 15254_ACEOF 15255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15257 ac_status=$? 15258 grep -v '^ *+' conftest.er1 >conftest.err 15259 rm -f conftest.er1 15260 cat conftest.err >&5 15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15262 (exit $ac_status); } >/dev/null; then 15263 if test -s conftest.err; then 15264 ac_cpp_err=$ac_c_preproc_warn_flag 15265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15266 else 15267 ac_cpp_err= 15268 fi 15269else 15270 ac_cpp_err=yes 15271fi 15272if test -z "$ac_cpp_err"; then 15273 ac_header_preproc=yes 15274else 15275 echo "$as_me: failed program was:" >&5 15276sed 's/^/| /' conftest.$ac_ext >&5 15277 15278 ac_header_preproc=no 15279fi 15280rm -f conftest.err conftest.$ac_ext 15281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15282echo "${ECHO_T}$ac_header_preproc" >&6 15283 15284# So? What about this header? 15285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15286 yes:no: ) 15287 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&5 15288echo "$as_me: WARNING: OggFLAC/all.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15289 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&5 15290echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the compiler's result" >&2;} 15291 ac_header_preproc=yes 15292 ;; 15293 no:yes:* ) 15294 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: present but cannot be compiled" >&5 15295echo "$as_me: WARNING: OggFLAC/all.h: present but cannot be compiled" >&2;} 15296 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: check for missing prerequisite headers?" >&5 15297echo "$as_me: WARNING: OggFLAC/all.h: check for missing prerequisite headers?" >&2;} 15298 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&5 15299echo "$as_me: WARNING: OggFLAC/all.h: see the Autoconf documentation" >&2;} 15300 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: section \"Present But Cannot Be Compiled\"" >&5 15301echo "$as_me: WARNING: OggFLAC/all.h: section \"Present But Cannot Be Compiled\"" >&2;} 15302 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&5 15303echo "$as_me: WARNING: OggFLAC/all.h: proceeding with the preprocessor's result" >&2;} 15304 { echo "$as_me:$LINENO: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&5 15305echo "$as_me: WARNING: OggFLAC/all.h: in the future, the compiler will take precedence" >&2;} 15306 ( 15307 cat <<\_ASBOX 15308## -------------------------------------------------- ## 15309## Report this to timidity-talk@lists.sourceforge.net ## 15310## -------------------------------------------------- ## 15311_ASBOX 15312 ) | 15313 sed "s/^/$as_me: WARNING: /" >&2 15314 ;; 15315esac 15316echo "$as_me:$LINENO: checking for OggFLAC/all.h" >&5 15317echo $ECHO_N "checking for OggFLAC/all.h... $ECHO_C" >&6 15318if test "${ac_cv_header_OggFLAC_all_h+set}" = set; then 15319 echo $ECHO_N "(cached) $ECHO_C" >&6 15320else 15321 ac_cv_header_OggFLAC_all_h=$ac_header_preproc 15322fi 15323echo "$as_me:$LINENO: result: $ac_cv_header_OggFLAC_all_h" >&5 15324echo "${ECHO_T}$ac_cv_header_OggFLAC_all_h" >&6 15325 15326fi 15327if test $ac_cv_header_OggFLAC_all_h = yes; then 15328 15329 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL" 15330 15331fi 15332 15333 15334 else 15335 echo "$as_me:$LINENO: result: no" >&5 15336echo "${ECHO_T}no" >&6 15337 fi 15338else 15339 echo "$as_me:$LINENO: checking enable_audio=flac" >&5 15340echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6 15341 if test "x$au_enable_flac" = xyes; then 15342 echo "$as_me:$LINENO: result: yes, configuring flac" >&5 15343echo "${ECHO_T}yes, configuring flac" >&6 15344 SYSEXTRAS="$SYSEXTRAS flac_a.c" 15345 15346# Check whether --with-libFLAC or --without-libFLAC was given. 15347if test "${with_libFLAC+set}" = set; then 15348 withval="$with_libFLAC" 15349 libFLAC_prefix="$withval" 15350else 15351 libFLAC_prefix="" 15352fi; 15353 15354# Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given. 15355if test "${with_libFLAC_libraries+set}" = set; then 15356 withval="$with_libFLAC_libraries" 15357 libFLAC_libraries="$withval" 15358else 15359 libFLAC_libraries="" 15360fi; 15361 15362# Check whether --with-libFLAC-includes or --without-libFLAC-includes was given. 15363if test "${with_libFLAC_includes+set}" = set; then 15364 withval="$with_libFLAC_includes" 15365 libFLAC_includes="$withval" 15366else 15367 libFLAC_includes="" 15368fi; 15369# Check whether --enable-libFLACtest or --disable-libFLACtest was given. 15370if test "${enable_libFLACtest+set}" = set; then 15371 enableval="$enable_libFLACtest" 15372 15373else 15374 enable_libFLACtest=yes 15375fi; 15376 15377 if test "x$libFLAC_libraries" != "x" ; then 15378 LIBFLAC_LIBS="-L$libFLAC_libraries" 15379 elif test "x$libFLAC_prefix" != "x" ; then 15380 LIBFLAC_LIBS="-L$libFLAC_prefix/lib" 15381 elif test "x$prefix" != "xNONE" ; then 15382 LIBFLAC_LIBS="-L$prefix/lib" 15383 fi 15384 15385 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm" 15386 15387 if test "x$libFLAC_includes" != "x" ; then 15388 LIBFLAC_CFLAGS="-I$libFLAC_includes" 15389 elif test "x$libFLAC_prefix" != "x" ; then 15390 LIBFLAC_CFLAGS="-I$libFLAC_prefix/include" 15391 elif test "$prefix" != "xNONE"; then 15392 LIBFLAC_CFLAGS="-I$prefix/include" 15393 fi 15394 15395 echo "$as_me:$LINENO: checking for libFLAC" >&5 15396echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6 15397 no_libFLAC="" 15398 15399 15400 if test "x$enable_libFLACtest" = "xyes" ; then 15401 ac_save_CFLAGS="$CFLAGS" 15402 ac_save_CXXFLAGS="$CXXFLAGS" 15403 ac_save_LIBS="$LIBS" 15404 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS" 15405 CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS" 15406 LIBS="$LIBS $LIBFLAC_LIBS" 15407 rm -f conf.libFLACtest 15408 if test "$cross_compiling" = yes; then 15409 echo $ac_n "cross compiling; assumed OK... $ac_c" 15410else 15411 cat >conftest.$ac_ext <<_ACEOF 15412/* confdefs.h. */ 15413_ACEOF 15414cat confdefs.h >>conftest.$ac_ext 15415cat >>conftest.$ac_ext <<_ACEOF 15416/* end confdefs.h. */ 15417 15418#include <stdio.h> 15419#include <stdlib.h> 15420#include <string.h> 15421#include <FLAC/format.h> 15422 15423int main () 15424{ 15425 system("touch conf.libFLACtest"); 15426 return 0; 15427} 15428 15429 15430_ACEOF 15431rm -f conftest$ac_exeext 15432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15433 (eval $ac_link) 2>&5 15434 ac_status=$? 15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15438 (eval $ac_try) 2>&5 15439 ac_status=$? 15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15441 (exit $ac_status); }; }; then 15442 : 15443else 15444 echo "$as_me: program exited with status $ac_status" >&5 15445echo "$as_me: failed program was:" >&5 15446sed 's/^/| /' conftest.$ac_ext >&5 15447 15448( exit $ac_status ) 15449no_libFLAC=yes 15450fi 15451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15452fi 15453 CFLAGS="$ac_save_CFLAGS" 15454 LIBS="$ac_save_LIBS" 15455 fi 15456 15457 if test "x$no_libFLAC" = "x" ; then 15458 echo "$as_me:$LINENO: result: yes" >&5 15459echo "${ECHO_T}yes" >&6 15460 15461 EXTRADEFS="$EXTRADEFS -DAU_FLAC" 15462 for f in $LIBFLAC_CFLAGS; do 15463 case ".$f" in 15464 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 15465 *) CFLAGS="$CFLAGS $f" ;; 15466 esac 15467done 15468 15469 LIBS="$LIBS $LIBFLAC_LIBS" 15470 15471 else 15472 echo "$as_me:$LINENO: result: no" >&5 15473echo "${ECHO_T}no" >&6 15474 if test -f conf.libFLACtest ; then 15475 : 15476 else 15477 echo "*** Could not run libFLAC test program, checking why..." 15478 CFLAGS="$CFLAGS $LIBFLAC_CFLAGS" 15479 LIBS="$LIBS $LIBFLAC_LIBS" 15480 cat >conftest.$ac_ext <<_ACEOF 15481/* confdefs.h. */ 15482_ACEOF 15483cat confdefs.h >>conftest.$ac_ext 15484cat >>conftest.$ac_ext <<_ACEOF 15485/* end confdefs.h. */ 15486 15487#include <stdio.h> 15488#include <FLAC/format.h> 15489 15490int 15491main () 15492{ 15493 return 0; 15494 ; 15495 return 0; 15496} 15497_ACEOF 15498rm -f conftest.$ac_objext conftest$ac_exeext 15499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15500 (eval $ac_link) 2>conftest.er1 15501 ac_status=$? 15502 grep -v '^ *+' conftest.er1 >conftest.err 15503 rm -f conftest.er1 15504 cat conftest.err >&5 15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15506 (exit $ac_status); } && 15507 { ac_try='test -z "$ac_c_werror_flag" 15508 || test ! -s conftest.err' 15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15510 (eval $ac_try) 2>&5 15511 ac_status=$? 15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15513 (exit $ac_status); }; } && 15514 { ac_try='test -s conftest$ac_exeext' 15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15516 (eval $ac_try) 2>&5 15517 ac_status=$? 15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15519 (exit $ac_status); }; }; then 15520 echo "*** The test program compiled, but did not run. This usually means" 15521 echo "*** that the run-time linker is not finding libFLAC or finding the wrong" 15522 echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your" 15523 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15524 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15525 echo "*** is required on your system" 15526 echo "***" 15527 echo "*** If you have an old version installed, it is best to remove it, although" 15528 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15529else 15530 echo "$as_me: failed program was:" >&5 15531sed 's/^/| /' conftest.$ac_ext >&5 15532 15533 echo "*** The test program failed to compile or link. See the file config.log for the" 15534 echo "*** exact error that occured. This usually means libFLAC was incorrectly installed" 15535 echo "*** or that you have moved libFLAC since it was installed. In the latter case, you" 15536 echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG" 15537fi 15538rm -f conftest.err conftest.$ac_objext \ 15539 conftest$ac_exeext conftest.$ac_ext 15540 CFLAGS="$ac_save_CFLAGS" 15541 LIBS="$ac_save_LIBS" 15542 fi 15543 LIBFLAC_CFLAGS="" 15544 LIBFLAC_LIBS="" 15545 : 15546 fi 15547 15548 15549 rm -f conf.libFLACtest 15550 15551 15552# Check whether --with-libOggFLAC or --without-libOggFLAC was given. 15553if test "${with_libOggFLAC+set}" = set; then 15554 withval="$with_libOggFLAC" 15555 libOggFLAC_prefix="$withval" 15556else 15557 libOggFLAC_prefix="" 15558fi; 15559 15560# Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given. 15561if test "${with_libOggFLAC_libraries+set}" = set; then 15562 withval="$with_libOggFLAC_libraries" 15563 libOggFLAC_libraries="$withval" 15564else 15565 libOggFLAC_libraries="" 15566fi; 15567 15568# Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given. 15569if test "${with_libOggFLAC_includes+set}" = set; then 15570 withval="$with_libOggFLAC_includes" 15571 libOggFLAC_includes="$withval" 15572else 15573 libOggFLAC_includes="" 15574fi; 15575# Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given. 15576if test "${enable_libOggFLACtest+set}" = set; then 15577 enableval="$enable_libOggFLACtest" 15578 15579else 15580 enable_libOggFLACtest=yes 15581fi; 15582 15583 if test "x$libOggFLAC_libraries" != "x" ; then 15584 LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries" 15585 elif test "x$libOggFLAC_prefix" != "x" ; then 15586 LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib" 15587 elif test "x$prefix" != "xNONE" ; then 15588 LIBOGGFLAC_LIBS="-L$prefix/lib" 15589 fi 15590 15591 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm" 15592 15593 if test "x$libOggFLAC_includes" != "x" ; then 15594 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes" 15595 elif test "x$libOggFLAC_prefix" != "x" ; then 15596 LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include" 15597 elif test "$prefix" != "xNONE"; then 15598 LIBOGGFLAC_CFLAGS="-I$prefix/include" 15599 fi 15600 15601 echo "$as_me:$LINENO: checking for libOggFLAC" >&5 15602echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6 15603 no_libOggFLAC="" 15604 15605 15606 if test "x$enable_libOggFLACtest" = "xyes" ; then 15607 ac_save_CFLAGS="$CFLAGS" 15608 ac_save_CXXFLAGS="$CXXFLAGS" 15609 ac_save_LIBS="$LIBS" 15610 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS" 15611 CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS" 15612 LIBS="$LIBS $LIBOGGFLAC_LIBS" 15613 rm -f conf.libOggFLACtest 15614 if test "$cross_compiling" = yes; then 15615 echo $ac_n "cross compiling; assumed OK... $ac_c" 15616else 15617 cat >conftest.$ac_ext <<_ACEOF 15618/* confdefs.h. */ 15619_ACEOF 15620cat confdefs.h >>conftest.$ac_ext 15621cat >>conftest.$ac_ext <<_ACEOF 15622/* end confdefs.h. */ 15623 15624#include <stdio.h> 15625#include <stdlib.h> 15626#include <string.h> 15627#include <OggFLAC/stream_decoder.h> 15628 15629int main () 15630{ 15631 system("touch conf.libOggFLACtest"); 15632 return 0; 15633} 15634 15635 15636_ACEOF 15637rm -f conftest$ac_exeext 15638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15639 (eval $ac_link) 2>&5 15640 ac_status=$? 15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15644 (eval $ac_try) 2>&5 15645 ac_status=$? 15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15647 (exit $ac_status); }; }; then 15648 : 15649else 15650 echo "$as_me: program exited with status $ac_status" >&5 15651echo "$as_me: failed program was:" >&5 15652sed 's/^/| /' conftest.$ac_ext >&5 15653 15654( exit $ac_status ) 15655no_libOggFLAC=yes 15656fi 15657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15658fi 15659 CFLAGS="$ac_save_CFLAGS" 15660 LIBS="$ac_save_LIBS" 15661 fi 15662 15663 if test "x$no_libOggFLAC" = "x" ; then 15664 echo "$as_me:$LINENO: result: yes" >&5 15665echo "${ECHO_T}yes" >&6 15666 15667 EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC" 15668 for f in $LIBOGGFLAC_CFLAGS; do 15669 case ".$f" in 15670 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 15671 *) CFLAGS="$CFLAGS $f" ;; 15672 esac 15673done 15674 15675 LIBS="$LIBS $LIBOGGFLAC_LIBS" 15676 15677 else 15678 echo "$as_me:$LINENO: result: no" >&5 15679echo "${ECHO_T}no" >&6 15680 if test -f conf.libOggFLACtest ; then 15681 : 15682 else 15683 echo "*** Could not run libOggFLAC test program, checking why..." 15684 CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS" 15685 LIBS="$LIBS $LIBOGGFLAC_LIBS" 15686 cat >conftest.$ac_ext <<_ACEOF 15687/* confdefs.h. */ 15688_ACEOF 15689cat confdefs.h >>conftest.$ac_ext 15690cat >>conftest.$ac_ext <<_ACEOF 15691/* end confdefs.h. */ 15692 15693#include <stdio.h> 15694#include <OggFLAC/stream_decoder.h> 15695 15696int 15697main () 15698{ 15699 return 0; 15700 ; 15701 return 0; 15702} 15703_ACEOF 15704rm -f conftest.$ac_objext conftest$ac_exeext 15705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15706 (eval $ac_link) 2>conftest.er1 15707 ac_status=$? 15708 grep -v '^ *+' conftest.er1 >conftest.err 15709 rm -f conftest.er1 15710 cat conftest.err >&5 15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15712 (exit $ac_status); } && 15713 { ac_try='test -z "$ac_c_werror_flag" 15714 || test ! -s conftest.err' 15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15716 (eval $ac_try) 2>&5 15717 ac_status=$? 15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15719 (exit $ac_status); }; } && 15720 { ac_try='test -s conftest$ac_exeext' 15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15722 (eval $ac_try) 2>&5 15723 ac_status=$? 15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15725 (exit $ac_status); }; }; then 15726 echo "*** The test program compiled, but did not run. This usually means" 15727 echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong" 15728 echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your" 15729 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15730 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15731 echo "*** is required on your system" 15732 echo "***" 15733 echo "*** If you have an old version installed, it is best to remove it, although" 15734 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15735else 15736 echo "$as_me: failed program was:" >&5 15737sed 's/^/| /' conftest.$ac_ext >&5 15738 15739 echo "*** The test program failed to compile or link. See the file config.log for the" 15740 echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed" 15741 echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you" 15742 echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG" 15743fi 15744rm -f conftest.err conftest.$ac_objext \ 15745 conftest$ac_exeext conftest.$ac_ext 15746 CFLAGS="$ac_save_CFLAGS" 15747 LIBS="$ac_save_LIBS" 15748 fi 15749 LIBOGGFLAC_CFLAGS="" 15750 LIBOGGFLAC_LIBS="" 15751 : 15752 fi 15753 15754 15755 rm -f conf.libOggFLACtest 15756 15757 else 15758 echo "$as_me:$LINENO: result: no" >&5 15759echo "${ECHO_T}no" >&6 15760 fi 15761fi 15762echo "$as_me:$LINENO: checking enable_audio=speex" >&5 15763echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6 15764if test "x$au_enable_speex" = xyes; then 15765 if test "${timidity_cv_have_speex+set}" = set; then 15766 echo $ECHO_N "(cached) $ECHO_C" >&6 15767else 15768 cat >conftest.$ac_ext <<_ACEOF 15769/* confdefs.h. */ 15770_ACEOF 15771cat confdefs.h >>conftest.$ac_ext 15772cat >>conftest.$ac_ext <<_ACEOF 15773/* end confdefs.h. */ 15774 15775 #include <speex/speex.h> 15776 #include <ogg/ogg.h> 15777 15778int 15779main () 15780{ 15781 15782 SpeexBits *dummy; 15783 15784 ; 15785 return 0; 15786} 15787_ACEOF 15788rm -f conftest.$ac_objext conftest$ac_exeext 15789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15790 (eval $ac_link) 2>conftest.er1 15791 ac_status=$? 15792 grep -v '^ *+' conftest.er1 >conftest.err 15793 rm -f conftest.er1 15794 cat conftest.err >&5 15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15796 (exit $ac_status); } && 15797 { ac_try='test -z "$ac_c_werror_flag" 15798 || test ! -s conftest.err' 15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15800 (eval $ac_try) 2>&5 15801 ac_status=$? 15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15803 (exit $ac_status); }; } && 15804 { ac_try='test -s conftest$ac_exeext' 15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15806 (eval $ac_try) 2>&5 15807 ac_status=$? 15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15809 (exit $ac_status); }; }; then 15810 have_speex=yes 15811else 15812 echo "$as_me: failed program was:" >&5 15813sed 's/^/| /' conftest.$ac_ext >&5 15814 15815have_speex=no 15816fi 15817rm -f conftest.err conftest.$ac_objext \ 15818 conftest$ac_exeext conftest.$ac_ext 15819fi 15820 15821 echo "$as_me:$LINENO: result: $have_speex" >&5 15822echo "${ECHO_T}$have_speex" >&6 15823 if test "x$have_speex" = xyes; then 15824 SYSEXTRAS="$SYSEXTRAS speex_a.c" 15825 EXTRALIBS="$EXTRALIBS -lspeex -logg" 15826 EXTRADEFS="$EXTRADEFS -DAU_SPEEX" 15827 fi 15828else 15829 echo "$as_me:$LINENO: result: no" >&5 15830echo "${ECHO_T}no" >&6 15831fi 15832 15833echo "$as_me:$LINENO: checking enable_audio=gogo" >&5 15834echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6 15835if test "x$au_enable_gogo" = xyes; then 15836 if test "x$MSYS" = "xyes"; then 15837 echo "$as_me:$LINENO: result: yes" >&5 15838echo "${ECHO_T}yes" >&6 15839 else 15840 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5 15841echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;} 15842 fi 15843 if test "${ac_cv_header_gogo_gogo_h+set}" = set; then 15844 echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5 15845echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6 15846if test "${ac_cv_header_gogo_gogo_h+set}" = set; then 15847 echo $ECHO_N "(cached) $ECHO_C" >&6 15848fi 15849echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5 15850echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6 15851else 15852 # Is the header compilable? 15853echo "$as_me:$LINENO: checking gogo/gogo.h usability" >&5 15854echo $ECHO_N "checking gogo/gogo.h usability... $ECHO_C" >&6 15855cat >conftest.$ac_ext <<_ACEOF 15856/* confdefs.h. */ 15857_ACEOF 15858cat confdefs.h >>conftest.$ac_ext 15859cat >>conftest.$ac_ext <<_ACEOF 15860/* end confdefs.h. */ 15861$ac_includes_default 15862#include <gogo/gogo.h> 15863_ACEOF 15864rm -f conftest.$ac_objext 15865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15866 (eval $ac_compile) 2>conftest.er1 15867 ac_status=$? 15868 grep -v '^ *+' conftest.er1 >conftest.err 15869 rm -f conftest.er1 15870 cat conftest.err >&5 15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15872 (exit $ac_status); } && 15873 { ac_try='test -z "$ac_c_werror_flag" 15874 || test ! -s conftest.err' 15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15876 (eval $ac_try) 2>&5 15877 ac_status=$? 15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15879 (exit $ac_status); }; } && 15880 { ac_try='test -s conftest.$ac_objext' 15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15882 (eval $ac_try) 2>&5 15883 ac_status=$? 15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15885 (exit $ac_status); }; }; then 15886 ac_header_compiler=yes 15887else 15888 echo "$as_me: failed program was:" >&5 15889sed 's/^/| /' conftest.$ac_ext >&5 15890 15891ac_header_compiler=no 15892fi 15893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15895echo "${ECHO_T}$ac_header_compiler" >&6 15896 15897# Is the header present? 15898echo "$as_me:$LINENO: checking gogo/gogo.h presence" >&5 15899echo $ECHO_N "checking gogo/gogo.h presence... $ECHO_C" >&6 15900cat >conftest.$ac_ext <<_ACEOF 15901/* confdefs.h. */ 15902_ACEOF 15903cat confdefs.h >>conftest.$ac_ext 15904cat >>conftest.$ac_ext <<_ACEOF 15905/* end confdefs.h. */ 15906#include <gogo/gogo.h> 15907_ACEOF 15908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15910 ac_status=$? 15911 grep -v '^ *+' conftest.er1 >conftest.err 15912 rm -f conftest.er1 15913 cat conftest.err >&5 15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15915 (exit $ac_status); } >/dev/null; then 15916 if test -s conftest.err; then 15917 ac_cpp_err=$ac_c_preproc_warn_flag 15918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15919 else 15920 ac_cpp_err= 15921 fi 15922else 15923 ac_cpp_err=yes 15924fi 15925if test -z "$ac_cpp_err"; then 15926 ac_header_preproc=yes 15927else 15928 echo "$as_me: failed program was:" >&5 15929sed 's/^/| /' conftest.$ac_ext >&5 15930 15931 ac_header_preproc=no 15932fi 15933rm -f conftest.err conftest.$ac_ext 15934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15935echo "${ECHO_T}$ac_header_preproc" >&6 15936 15937# So? What about this header? 15938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15939 yes:no: ) 15940 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&5 15941echo "$as_me: WARNING: gogo/gogo.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15942 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&5 15943echo "$as_me: WARNING: gogo/gogo.h: proceeding with the compiler's result" >&2;} 15944 ac_header_preproc=yes 15945 ;; 15946 no:yes:* ) 15947 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: present but cannot be compiled" >&5 15948echo "$as_me: WARNING: gogo/gogo.h: present but cannot be compiled" >&2;} 15949 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: check for missing prerequisite headers?" >&5 15950echo "$as_me: WARNING: gogo/gogo.h: check for missing prerequisite headers?" >&2;} 15951 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: see the Autoconf documentation" >&5 15952echo "$as_me: WARNING: gogo/gogo.h: see the Autoconf documentation" >&2;} 15953 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: section \"Present But Cannot Be Compiled\"" >&5 15954echo "$as_me: WARNING: gogo/gogo.h: section \"Present But Cannot Be Compiled\"" >&2;} 15955 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&5 15956echo "$as_me: WARNING: gogo/gogo.h: proceeding with the preprocessor's result" >&2;} 15957 { echo "$as_me:$LINENO: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&5 15958echo "$as_me: WARNING: gogo/gogo.h: in the future, the compiler will take precedence" >&2;} 15959 ( 15960 cat <<\_ASBOX 15961## -------------------------------------------------- ## 15962## Report this to timidity-talk@lists.sourceforge.net ## 15963## -------------------------------------------------- ## 15964_ASBOX 15965 ) | 15966 sed "s/^/$as_me: WARNING: /" >&2 15967 ;; 15968esac 15969echo "$as_me:$LINENO: checking for gogo/gogo.h" >&5 15970echo $ECHO_N "checking for gogo/gogo.h... $ECHO_C" >&6 15971if test "${ac_cv_header_gogo_gogo_h+set}" = set; then 15972 echo $ECHO_N "(cached) $ECHO_C" >&6 15973else 15974 ac_cv_header_gogo_gogo_h=$ac_header_preproc 15975fi 15976echo "$as_me:$LINENO: result: $ac_cv_header_gogo_gogo_h" >&5 15977echo "${ECHO_T}$ac_cv_header_gogo_gogo_h" >&6 15978 15979fi 15980if test $ac_cv_header_gogo_gogo_h = yes; then 15981 15982 have_gogo=yes 15983 15984fi 15985 15986 15987 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c" 15988 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL" 15989else 15990 echo "$as_me:$LINENO: result: no" >&5 15991echo "${ECHO_T}no" >&6 15992fi 15993 15994if test "x$au_enable_none" = xyes; then 15995 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV" 15996 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c" 15997fi 15998echo "$as_me:$LINENO: checking default output mode" >&5 15999echo $ECHO_N "checking default output mode... $ECHO_C" >&6 16000if test "x$DEFAULT_PLAYMODE" = x; then 16001 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'` 16002fi 16003case ".$DEFAULT_PLAYMODE" in 16004 .default) TIMIDITY_OUTPUT_ID=d ;; 16005 .oss) TIMIDITY_OUTPUT_ID=d ;; 16006 .alsa) TIMIDITY_OUTPUT_ID=s ;; 16007 .sun) TIMIDITY_OUTPUT_ID=d ;; 16008 .hpux) TIMIDITY_OUTPUT_ID=d ;; 16009 .irix) TIMIDITY_OUTPUT_ID=d ;; 16010 .mme) TIMIDITY_OUTPUT_ID=d ;; 16011 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;; 16012 .darwin) TIMIDITY_OUTPUT_ID=d ;; 16013 .w32) TIMIDITY_OUTPUT_ID=d ;; 16014 .alib) TIMIDITY_OUTPUT_ID=A ;; 16015 .nas) TIMIDITY_OUTPUT_ID=n ;; 16016 .arts) TIMIDITY_OUTPUT_ID=R ;; 16017 .esd) TIMIDITY_OUTPUT_ID=e ;; 16018 .portaudio) TIMIDITY_OUTPUT_ID=p ;; 16019 .npipe) TIMIDITY_OUTPUT_ID=N ;; 16020 .wav) TIMIDITY_OUTPUT_ID=w ;; 16021 .au) TIMIDITY_OUTPUT_ID=u ;; 16022 .aiff) TIMIDITY_OUTPUT_ID=a ;; 16023 .list) TIMIDITY_OUTPUT_ID=l ;; 16024 .vorbis) TIMIDITY_OUTPUT_ID=v ;; 16025 .flac) TIMIDITY_OUTPUT_ID=F ;; 16026 .speex) TIMIDITY_OUTPUT_ID=S ;; 16027 .gogo) TIMIDITY_OUTPUT_ID=g ;; 16028 .jack) TIMIDITY_OUTPUT_ID=j ;; 16029 .ao) TIMIDITY_OUTPUT_ID=O ;; 16030 *) TIMIDITY_OUTPUT_ID= ;; 16031esac 16032echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5 16033echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6 16034 16035 16036# 16037# Interface Section 16038# 16039 16040interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng npsyn' 16041 16042# Check whether --enable-interface or --disable-interface was given. 16043if test "${enable_interface+set}" = set; then 16044 enableval="$enable_interface" 16045 for i in `echo $enableval | sed 's/,/ /g'`; do 16046 eval "enable_$i=yes" 16047 done 16048fi; 16049 16050# Dynamic link configuration 16051# Check whether --enable-dynamic or --disable-dynamic was given. 16052if test "${enable_dynamic+set}" = set; then 16053 enableval="$enable_dynamic" 16054 if test "x$enable_dynamic" = xyes; then 16055 enable_dynamic=dynamic 16056 elif test "x$enable_dynamic" != xno; then 16057 for i in `echo $enableval | sed 's/,/ /g'`; do 16058 eval "enable_$i=dynamic" 16059 done 16060 fi 16061fi; 16062 16063join_targets= 16064for i in $interface_targets; do 16065 eval "join_targets=$join_targets\$enable_$i" 16066done 16067 16068case ".$join_targets" in 16069.*dynamic*) NEEDDLOPEN=yes;; 16070*) NEEDDLOPEN=no;; 16071esac 16072 16073if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi 16074case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac 16075 16076if test "$NEEDDLOPEN" = "yes"; then 16077 have_dl=no 16078 16079 echo "$as_me:$LINENO: checking for LoadLibrary" >&5 16080echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6 16081if test "${wapi_cv_func_LoadLibrary+set}" = set; then 16082 echo $ECHO_N "(cached) $ECHO_C" >&6 16083else 16084 cat >conftest.$ac_ext <<_ACEOF 16085/* confdefs.h. */ 16086_ACEOF 16087cat confdefs.h >>conftest.$ac_ext 16088cat >>conftest.$ac_ext <<_ACEOF 16089/* end confdefs.h. */ 16090#include <windows.h> 16091 16092 16093int 16094main () 16095{ 16096LoadLibrary(0); 16097 ; 16098 return 0; 16099} 16100_ACEOF 16101rm -f conftest.$ac_objext conftest$ac_exeext 16102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16103 (eval $ac_link) 2>conftest.er1 16104 ac_status=$? 16105 grep -v '^ *+' conftest.er1 >conftest.err 16106 rm -f conftest.er1 16107 cat conftest.err >&5 16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16109 (exit $ac_status); } && 16110 { ac_try='test -z "$ac_c_werror_flag" 16111 || test ! -s conftest.err' 16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16113 (eval $ac_try) 2>&5 16114 ac_status=$? 16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16116 (exit $ac_status); }; } && 16117 { ac_try='test -s conftest$ac_exeext' 16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16119 (eval $ac_try) 2>&5 16120 ac_status=$? 16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16122 (exit $ac_status); }; }; then 16123 wapi_cv_func_LoadLibrary=yes 16124else 16125 echo "$as_me: failed program was:" >&5 16126sed 's/^/| /' conftest.$ac_ext >&5 16127 16128wapi_cv_func_LoadLibrary=no 16129fi 16130rm -f conftest.err conftest.$ac_objext \ 16131 conftest$ac_exeext conftest.$ac_ext 16132fi 16133 16134if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then 16135 echo "$as_me:$LINENO: result: yes" >&5 16136echo "${ECHO_T}yes" >&6 16137 have_dl=w32 16138else 16139 echo "$as_me:$LINENO: result: no" >&5 16140echo "${ECHO_T}no" >&6 16141fi 16142 16143 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32 16144 16145 if test "$have_dl" = "no"; then 16146 echo "$as_me:$LINENO: checking for shl_load" >&5 16147echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16148if test "${ac_cv_func_shl_load+set}" = set; then 16149 echo $ECHO_N "(cached) $ECHO_C" >&6 16150else 16151 cat >conftest.$ac_ext <<_ACEOF 16152/* confdefs.h. */ 16153_ACEOF 16154cat confdefs.h >>conftest.$ac_ext 16155cat >>conftest.$ac_ext <<_ACEOF 16156/* end confdefs.h. */ 16157/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 16158 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16159#define shl_load innocuous_shl_load 16160 16161/* System header to define __stub macros and hopefully few prototypes, 16162 which can conflict with char shl_load (); below. 16163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16164 <limits.h> exists even on freestanding compilers. */ 16165 16166#ifdef __STDC__ 16167# include <limits.h> 16168#else 16169# include <assert.h> 16170#endif 16171 16172#undef shl_load 16173 16174/* Override any gcc2 internal prototype to avoid an error. */ 16175#ifdef __cplusplus 16176extern "C" 16177{ 16178#endif 16179/* We use char because int might match the return type of a gcc2 16180 builtin and then its argument prototype would still apply. */ 16181char shl_load (); 16182/* The GNU C library defines this for functions which it implements 16183 to always fail with ENOSYS. Some functions are actually named 16184 something starting with __ and the normal name is an alias. */ 16185#if defined (__stub_shl_load) || defined (__stub___shl_load) 16186choke me 16187#else 16188char (*f) () = shl_load; 16189#endif 16190#ifdef __cplusplus 16191} 16192#endif 16193 16194int 16195main () 16196{ 16197return f != shl_load; 16198 ; 16199 return 0; 16200} 16201_ACEOF 16202rm -f conftest.$ac_objext conftest$ac_exeext 16203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16204 (eval $ac_link) 2>conftest.er1 16205 ac_status=$? 16206 grep -v '^ *+' conftest.er1 >conftest.err 16207 rm -f conftest.er1 16208 cat conftest.err >&5 16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16210 (exit $ac_status); } && 16211 { ac_try='test -z "$ac_c_werror_flag" 16212 || test ! -s conftest.err' 16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16214 (eval $ac_try) 2>&5 16215 ac_status=$? 16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16217 (exit $ac_status); }; } && 16218 { ac_try='test -s conftest$ac_exeext' 16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16220 (eval $ac_try) 2>&5 16221 ac_status=$? 16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16223 (exit $ac_status); }; }; then 16224 ac_cv_func_shl_load=yes 16225else 16226 echo "$as_me: failed program was:" >&5 16227sed 's/^/| /' conftest.$ac_ext >&5 16228 16229ac_cv_func_shl_load=no 16230fi 16231rm -f conftest.err conftest.$ac_objext \ 16232 conftest$ac_exeext conftest.$ac_ext 16233fi 16234echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16235echo "${ECHO_T}$ac_cv_func_shl_load" >&6 16236if test $ac_cv_func_shl_load = yes; then 16237 have_dl=hpux 16238fi 16239 16240 fi 16241 if test "$have_dl" = "no"; then 16242 echo "$as_me:$LINENO: checking for NSLinkModule" >&5 16243echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6 16244if test "${ac_cv_func_NSLinkModule+set}" = set; then 16245 echo $ECHO_N "(cached) $ECHO_C" >&6 16246else 16247 cat >conftest.$ac_ext <<_ACEOF 16248/* confdefs.h. */ 16249_ACEOF 16250cat confdefs.h >>conftest.$ac_ext 16251cat >>conftest.$ac_ext <<_ACEOF 16252/* end confdefs.h. */ 16253/* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule. 16254 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16255#define NSLinkModule innocuous_NSLinkModule 16256 16257/* System header to define __stub macros and hopefully few prototypes, 16258 which can conflict with char NSLinkModule (); below. 16259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16260 <limits.h> exists even on freestanding compilers. */ 16261 16262#ifdef __STDC__ 16263# include <limits.h> 16264#else 16265# include <assert.h> 16266#endif 16267 16268#undef NSLinkModule 16269 16270/* Override any gcc2 internal prototype to avoid an error. */ 16271#ifdef __cplusplus 16272extern "C" 16273{ 16274#endif 16275/* We use char because int might match the return type of a gcc2 16276 builtin and then its argument prototype would still apply. */ 16277char NSLinkModule (); 16278/* The GNU C library defines this for functions which it implements 16279 to always fail with ENOSYS. Some functions are actually named 16280 something starting with __ and the normal name is an alias. */ 16281#if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule) 16282choke me 16283#else 16284char (*f) () = NSLinkModule; 16285#endif 16286#ifdef __cplusplus 16287} 16288#endif 16289 16290int 16291main () 16292{ 16293return f != NSLinkModule; 16294 ; 16295 return 0; 16296} 16297_ACEOF 16298rm -f conftest.$ac_objext conftest$ac_exeext 16299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16300 (eval $ac_link) 2>conftest.er1 16301 ac_status=$? 16302 grep -v '^ *+' conftest.er1 >conftest.err 16303 rm -f conftest.er1 16304 cat conftest.err >&5 16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16306 (exit $ac_status); } && 16307 { ac_try='test -z "$ac_c_werror_flag" 16308 || test ! -s conftest.err' 16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16310 (eval $ac_try) 2>&5 16311 ac_status=$? 16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16313 (exit $ac_status); }; } && 16314 { ac_try='test -s conftest$ac_exeext' 16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16316 (eval $ac_try) 2>&5 16317 ac_status=$? 16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16319 (exit $ac_status); }; }; then 16320 ac_cv_func_NSLinkModule=yes 16321else 16322 echo "$as_me: failed program was:" >&5 16323sed 's/^/| /' conftest.$ac_ext >&5 16324 16325ac_cv_func_NSLinkModule=no 16326fi 16327rm -f conftest.err conftest.$ac_objext \ 16328 conftest$ac_exeext conftest.$ac_ext 16329fi 16330echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5 16331echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6 16332if test $ac_cv_func_NSLinkModule = yes; then 16333 have_dl=dyld 16334fi 16335 16336 fi 16337 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then 16338 have_dl=dlopen 16339 fi 16340 if test "$have_dl" = "no"; then 16341 echo "$as_me:$LINENO: checking for dlopen" >&5 16342echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 16343if test "${ac_cv_func_dlopen+set}" = set; then 16344 echo $ECHO_N "(cached) $ECHO_C" >&6 16345else 16346 cat >conftest.$ac_ext <<_ACEOF 16347/* confdefs.h. */ 16348_ACEOF 16349cat confdefs.h >>conftest.$ac_ext 16350cat >>conftest.$ac_ext <<_ACEOF 16351/* end confdefs.h. */ 16352/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 16353 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16354#define dlopen innocuous_dlopen 16355 16356/* System header to define __stub macros and hopefully few prototypes, 16357 which can conflict with char dlopen (); below. 16358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16359 <limits.h> exists even on freestanding compilers. */ 16360 16361#ifdef __STDC__ 16362# include <limits.h> 16363#else 16364# include <assert.h> 16365#endif 16366 16367#undef dlopen 16368 16369/* Override any gcc2 internal prototype to avoid an error. */ 16370#ifdef __cplusplus 16371extern "C" 16372{ 16373#endif 16374/* We use char because int might match the return type of a gcc2 16375 builtin and then its argument prototype would still apply. */ 16376char dlopen (); 16377/* The GNU C library defines this for functions which it implements 16378 to always fail with ENOSYS. Some functions are actually named 16379 something starting with __ and the normal name is an alias. */ 16380#if defined (__stub_dlopen) || defined (__stub___dlopen) 16381choke me 16382#else 16383char (*f) () = dlopen; 16384#endif 16385#ifdef __cplusplus 16386} 16387#endif 16388 16389int 16390main () 16391{ 16392return f != dlopen; 16393 ; 16394 return 0; 16395} 16396_ACEOF 16397rm -f conftest.$ac_objext conftest$ac_exeext 16398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16399 (eval $ac_link) 2>conftest.er1 16400 ac_status=$? 16401 grep -v '^ *+' conftest.er1 >conftest.err 16402 rm -f conftest.er1 16403 cat conftest.err >&5 16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16405 (exit $ac_status); } && 16406 { ac_try='test -z "$ac_c_werror_flag" 16407 || test ! -s conftest.err' 16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16409 (eval $ac_try) 2>&5 16410 ac_status=$? 16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16412 (exit $ac_status); }; } && 16413 { ac_try='test -s conftest$ac_exeext' 16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16415 (eval $ac_try) 2>&5 16416 ac_status=$? 16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16418 (exit $ac_status); }; }; then 16419 ac_cv_func_dlopen=yes 16420else 16421 echo "$as_me: failed program was:" >&5 16422sed 's/^/| /' conftest.$ac_ext >&5 16423 16424ac_cv_func_dlopen=no 16425fi 16426rm -f conftest.err conftest.$ac_objext \ 16427 conftest$ac_exeext conftest.$ac_ext 16428fi 16429echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16430echo "${ECHO_T}$ac_cv_func_dlopen" >&6 16431if test $ac_cv_func_dlopen = yes; then 16432 have_dl=dlopen 16433fi 16434 16435 fi 16436 if test "$have_dl" = "no"; then 16437 echo "$as_me:$LINENO: checking for dld_init" >&5 16438echo $ECHO_N "checking for dld_init... $ECHO_C" >&6 16439if test "${ac_cv_func_dld_init+set}" = set; then 16440 echo $ECHO_N "(cached) $ECHO_C" >&6 16441else 16442 cat >conftest.$ac_ext <<_ACEOF 16443/* confdefs.h. */ 16444_ACEOF 16445cat confdefs.h >>conftest.$ac_ext 16446cat >>conftest.$ac_ext <<_ACEOF 16447/* end confdefs.h. */ 16448/* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init. 16449 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16450#define dld_init innocuous_dld_init 16451 16452/* System header to define __stub macros and hopefully few prototypes, 16453 which can conflict with char dld_init (); below. 16454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16455 <limits.h> exists even on freestanding compilers. */ 16456 16457#ifdef __STDC__ 16458# include <limits.h> 16459#else 16460# include <assert.h> 16461#endif 16462 16463#undef dld_init 16464 16465/* Override any gcc2 internal prototype to avoid an error. */ 16466#ifdef __cplusplus 16467extern "C" 16468{ 16469#endif 16470/* We use char because int might match the return type of a gcc2 16471 builtin and then its argument prototype would still apply. */ 16472char dld_init (); 16473/* The GNU C library defines this for functions which it implements 16474 to always fail with ENOSYS. Some functions are actually named 16475 something starting with __ and the normal name is an alias. */ 16476#if defined (__stub_dld_init) || defined (__stub___dld_init) 16477choke me 16478#else 16479char (*f) () = dld_init; 16480#endif 16481#ifdef __cplusplus 16482} 16483#endif 16484 16485int 16486main () 16487{ 16488return f != dld_init; 16489 ; 16490 return 0; 16491} 16492_ACEOF 16493rm -f conftest.$ac_objext conftest$ac_exeext 16494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16495 (eval $ac_link) 2>conftest.er1 16496 ac_status=$? 16497 grep -v '^ *+' conftest.er1 >conftest.err 16498 rm -f conftest.er1 16499 cat conftest.err >&5 16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16501 (exit $ac_status); } && 16502 { ac_try='test -z "$ac_c_werror_flag" 16503 || test ! -s conftest.err' 16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16505 (eval $ac_try) 2>&5 16506 ac_status=$? 16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16508 (exit $ac_status); }; } && 16509 { ac_try='test -s conftest$ac_exeext' 16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16511 (eval $ac_try) 2>&5 16512 ac_status=$? 16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16514 (exit $ac_status); }; }; then 16515 ac_cv_func_dld_init=yes 16516else 16517 echo "$as_me: failed program was:" >&5 16518sed 's/^/| /' conftest.$ac_ext >&5 16519 16520ac_cv_func_dld_init=no 16521fi 16522rm -f conftest.err conftest.$ac_objext \ 16523 conftest$ac_exeext conftest.$ac_ext 16524fi 16525echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5 16526echo "${ECHO_T}$ac_cv_func_dld_init" >&6 16527if test $ac_cv_func_dld_init = yes; then 16528 have_dl=dld 16529fi 16530 16531 fi 16532 if test "$have_dl" = "no"; then 16533 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5 16534echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6 16535if test "${ac_cv_lib_dld_dld_init+set}" = set; then 16536 echo $ECHO_N "(cached) $ECHO_C" >&6 16537else 16538 ac_check_lib_save_LIBS=$LIBS 16539LIBS="-ldld $LIBS" 16540cat >conftest.$ac_ext <<_ACEOF 16541/* confdefs.h. */ 16542_ACEOF 16543cat confdefs.h >>conftest.$ac_ext 16544cat >>conftest.$ac_ext <<_ACEOF 16545/* end confdefs.h. */ 16546 16547/* Override any gcc2 internal prototype to avoid an error. */ 16548#ifdef __cplusplus 16549extern "C" 16550#endif 16551/* We use char because int might match the return type of a gcc2 16552 builtin and then its argument prototype would still apply. */ 16553char dld_init (); 16554int 16555main () 16556{ 16557dld_init (); 16558 ; 16559 return 0; 16560} 16561_ACEOF 16562rm -f conftest.$ac_objext conftest$ac_exeext 16563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16564 (eval $ac_link) 2>conftest.er1 16565 ac_status=$? 16566 grep -v '^ *+' conftest.er1 >conftest.err 16567 rm -f conftest.er1 16568 cat conftest.err >&5 16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16570 (exit $ac_status); } && 16571 { ac_try='test -z "$ac_c_werror_flag" 16572 || test ! -s conftest.err' 16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16574 (eval $ac_try) 2>&5 16575 ac_status=$? 16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16577 (exit $ac_status); }; } && 16578 { ac_try='test -s conftest$ac_exeext' 16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16580 (eval $ac_try) 2>&5 16581 ac_status=$? 16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16583 (exit $ac_status); }; }; then 16584 ac_cv_lib_dld_dld_init=yes 16585else 16586 echo "$as_me: failed program was:" >&5 16587sed 's/^/| /' conftest.$ac_ext >&5 16588 16589ac_cv_lib_dld_dld_init=no 16590fi 16591rm -f conftest.err conftest.$ac_objext \ 16592 conftest$ac_exeext conftest.$ac_ext 16593LIBS=$ac_check_lib_save_LIBS 16594fi 16595echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5 16596echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6 16597if test $ac_cv_lib_dld_dld_init = yes; then 16598 have_dl=dld;lib_dl_opt=-ldld 16599fi 16600 16601 fi 16602 16603 echo "$as_me:$LINENO: checking dynamic link method" >&5 16604echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6 16605 case "$have_dl" in 16606 dlopen) 16607 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5 16608echo "${ECHO_T}use dl_dlopen.c" >&6 16609 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c" 16610 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5 16611echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6 16612if test "${timidity_cv_func_dlsym_underscore+set}" = set; then 16613 echo $ECHO_N "(cached) $ECHO_C" >&6 16614else 16615 case "$ac_cv_header_dlfcn_h" in 16616yes) i_dlfcn=define;; 16617*) i_dlfcn=undef;; 16618esac 16619cat > dyna.c <<EOM 16620fred () { } 16621EOM 16622 16623cat > fred.c <<EOM 16624#include <stdio.h> 16625#$i_dlfcn I_DLFCN 16626#ifdef I_DLFCN 16627#include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */ 16628#else 16629#include <sys/types.h> 16630#include <nlist.h> 16631#include <link.h> 16632#endif 16633 16634extern int fred() ; 16635 16636main() 16637{ 16638 void * handle ; 16639 void * symbol ; 16640#ifndef RTLD_LAZY 16641 int mode = 1 ; 16642#else 16643 int mode = RTLD_LAZY ; 16644#endif 16645 handle = dlopen("./dyna.$so", mode) ; 16646 if (handle == NULL) { 16647 printf ("1\n") ; 16648 fflush (stdout) ; 16649 exit(0); 16650 } 16651 symbol = dlsym(handle, "fred") ; 16652 if (symbol == NULL) { 16653 /* try putting a leading underscore */ 16654 symbol = dlsym(handle, "_fred") ; 16655 if (symbol == NULL) { 16656 printf ("2\n") ; 16657 fflush (stdout) ; 16658 exit(0); 16659 } 16660 printf ("3\n") ; 16661 } 16662 else 16663 printf ("4\n") ; 16664 fflush (stdout) ; 16665 exit(0); 16666} 16667EOM 16668: Call the object file tmp-dyna.o in case dlext=o. 16669if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 && 16670 mv dyna.o tmp-dyna.o > /dev/null 2>&1 && 16671 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 && 16672 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then 16673 xxx=`./fred` 16674 case $xxx in 16675 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5 16676echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;} 16677 ;; 16678 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5 16679echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;} 16680 ;; 16681 3) timidity_cv_func_dlsym_underscore=yes 16682 ;; 16683 4) timidity_cv_func_dlsym_underscore=no 16684 ;; 16685 esac 16686else 16687 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5 16688echo "$as_me: WARNING: I can't compile and run the test program." >&2;} 16689fi 16690rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred 16691 16692fi 16693 16694case "x$timidity_cv_func_dlsym_underscore" in 16695xyes) 16696cat >>confdefs.h <<\_ACEOF 16697#define DLSYM_NEEDS_UNDERSCORE 1 16698_ACEOF 16699 16700 echo "$as_me:$LINENO: result: yes" >&5 16701echo "${ECHO_T}yes" >&6 16702 ;; 16703xno) 16704 echo "$as_me:$LINENO: result: no" >&5 16705echo "${ECHO_T}no" >&6 16706 ;; 16707esac 16708 16709 ;; 16710 dld) 16711 echo "$as_me:$LINENO: result: use dl_dld.c" >&5 16712echo "${ECHO_T}use dl_dld.c" >&6 16713 SYSEXTRAS="$SYSEXTRAS dl_dld.c" 16714 ;; 16715 hpux) 16716 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5 16717echo "${ECHO_T}use dl_hpux.c" >&6 16718 SYSEXTRAS="$SYSEXTRAS dl_hpux.c" 16719 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS" 16720 ;; 16721 w32) 16722 echo "$as_me:$LINENO: result: use dl_w32.c" >&5 16723echo "${ECHO_T}use dl_w32.c" >&6 16724 SYSEXTRAS="$SYSEXTRAS dl_w32.c" 16725 ;; 16726 dyld) 16727 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5 16728echo "${ECHO_T}use dl_dyld.c" >&6 16729 SYSEXTRAS="$SYSEXTRAS dl_dyld.c" 16730 ;; 16731 *) 16732 NEEDDLOPEN="no" 16733 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5 16734echo "$as_me: WARNING: no method to open a shared object" >&2;} 16735 ;; 16736 esac 16737fi 16738 16739if test "$NEEDDLOPEN" = "yes"; then 16740 cat >> confdefs.h <<EOF 16741#define IA_DYNAMIC 1 16742EOF 16743 16744 16745cat >>confdefs.h <<_ACEOF 16746#define SHARED_LIB_EXT ".$so" 16747_ACEOF 16748 16749 if test "x$GCC" = xyes; then 16750 if test "x$timidity_cv_ccoption_rdynamic" = xyes; then 16751 timidity_LDFLAGS="-rdynamic" 16752 else 16753 timidity_LDFLAGS="-Wl,--export-dynamic" 16754 fi 16755 fi 16756fi 16757 16758 16759 16760if test "$NEEDDLOPEN" = "yes"; then 16761 NEEDDLOPEN_TRUE= 16762 NEEDDLOPEN_FALSE='#' 16763else 16764 NEEDDLOPEN_TRUE='#' 16765 NEEDDLOPEN_FALSE= 16766fi 16767 16768 16769# Check whether --enable-xdnd or --disable-xdnd was given. 16770if test "${enable_xdnd+set}" = set; then 16771 enableval="$enable_xdnd" 16772 if test "$enableval" = "yes"; then 16773 16774cat >>confdefs.h <<\_ACEOF 16775#define XDND 1 16776_ACEOF 16777 16778 XDND_SRCS="xdnd.c" 16779 enable_xdnd=yes 16780 fi 16781 16782fi; 16783 16784 16785if test "x$enable_xdnd" = "xyes"; then 16786 ENABLE_XDND_TRUE= 16787 ENABLE_XDND_FALSE='#' 16788else 16789 ENABLE_XDND_TRUE='#' 16790 ENABLE_XDND_FALSE= 16791fi 16792 16793 16794 16795 16796 16797if false; then 16798 ENABLE_NCURSES_TRUE= 16799 ENABLE_NCURSES_FALSE='#' 16800else 16801 ENABLE_NCURSES_TRUE='#' 16802 ENABLE_NCURSES_FALSE= 16803fi 16804 16805# Check whether --enable-ncurses or --disable-ncurses was given. 16806if test "${enable_ncurses+set}" = set; then 16807 enableval="$enable_ncurses" 16808 case "x$enable_ncurses" in xyes|xdynamic) 16809 16810 16811for ac_header in ncurses.h ncurses/curses.h curses.h 16812do 16813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16814if eval "test \"\${$as_ac_Header+set}\" = set"; then 16815 echo "$as_me:$LINENO: checking for $ac_header" >&5 16816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16817if eval "test \"\${$as_ac_Header+set}\" = set"; then 16818 echo $ECHO_N "(cached) $ECHO_C" >&6 16819fi 16820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16822else 16823 # Is the header compilable? 16824echo "$as_me:$LINENO: checking $ac_header usability" >&5 16825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 16826cat >conftest.$ac_ext <<_ACEOF 16827/* confdefs.h. */ 16828_ACEOF 16829cat confdefs.h >>conftest.$ac_ext 16830cat >>conftest.$ac_ext <<_ACEOF 16831/* end confdefs.h. */ 16832$ac_includes_default 16833#include <$ac_header> 16834_ACEOF 16835rm -f conftest.$ac_objext 16836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16837 (eval $ac_compile) 2>conftest.er1 16838 ac_status=$? 16839 grep -v '^ *+' conftest.er1 >conftest.err 16840 rm -f conftest.er1 16841 cat conftest.err >&5 16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16843 (exit $ac_status); } && 16844 { ac_try='test -z "$ac_c_werror_flag" 16845 || test ! -s conftest.err' 16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16847 (eval $ac_try) 2>&5 16848 ac_status=$? 16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16850 (exit $ac_status); }; } && 16851 { ac_try='test -s conftest.$ac_objext' 16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16853 (eval $ac_try) 2>&5 16854 ac_status=$? 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16856 (exit $ac_status); }; }; then 16857 ac_header_compiler=yes 16858else 16859 echo "$as_me: failed program was:" >&5 16860sed 's/^/| /' conftest.$ac_ext >&5 16861 16862ac_header_compiler=no 16863fi 16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16866echo "${ECHO_T}$ac_header_compiler" >&6 16867 16868# Is the header present? 16869echo "$as_me:$LINENO: checking $ac_header presence" >&5 16870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 16871cat >conftest.$ac_ext <<_ACEOF 16872/* confdefs.h. */ 16873_ACEOF 16874cat confdefs.h >>conftest.$ac_ext 16875cat >>conftest.$ac_ext <<_ACEOF 16876/* end confdefs.h. */ 16877#include <$ac_header> 16878_ACEOF 16879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16881 ac_status=$? 16882 grep -v '^ *+' conftest.er1 >conftest.err 16883 rm -f conftest.er1 16884 cat conftest.err >&5 16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16886 (exit $ac_status); } >/dev/null; then 16887 if test -s conftest.err; then 16888 ac_cpp_err=$ac_c_preproc_warn_flag 16889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16890 else 16891 ac_cpp_err= 16892 fi 16893else 16894 ac_cpp_err=yes 16895fi 16896if test -z "$ac_cpp_err"; then 16897 ac_header_preproc=yes 16898else 16899 echo "$as_me: failed program was:" >&5 16900sed 's/^/| /' conftest.$ac_ext >&5 16901 16902 ac_header_preproc=no 16903fi 16904rm -f conftest.err conftest.$ac_ext 16905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16906echo "${ECHO_T}$ac_header_preproc" >&6 16907 16908# So? What about this header? 16909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16910 yes:no: ) 16911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16915 ac_header_preproc=yes 16916 ;; 16917 no:yes:* ) 16918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16930 ( 16931 cat <<\_ASBOX 16932## -------------------------------------------------- ## 16933## Report this to timidity-talk@lists.sourceforge.net ## 16934## -------------------------------------------------- ## 16935_ASBOX 16936 ) | 16937 sed "s/^/$as_me: WARNING: /" >&2 16938 ;; 16939esac 16940echo "$as_me:$LINENO: checking for $ac_header" >&5 16941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16942if eval "test \"\${$as_ac_Header+set}\" = set"; then 16943 echo $ECHO_N "(cached) $ECHO_C" >&6 16944else 16945 eval "$as_ac_Header=\$ac_header_preproc" 16946fi 16947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16949 16950fi 16951if test `eval echo '${'$as_ac_Header'}'` = yes; then 16952 cat >>confdefs.h <<_ACEOF 16953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16954_ACEOF 16955 16956fi 16957 16958done 16959 16960 16961 16962 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in 16963 *yes*);; 16964 *) for i in /usr/include /usr/local/include; do 16965 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then 16966 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5 16967echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;} 16968 CPPFLAGS="$CPPFLAGS -I$i/ncurses" 16969 break 16970 fi 16971 done 16972 ;; 16973 esac 16974 16975 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 16976echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 16977if test "${ac_cv_lib_ncurses_initscr+set}" = set; then 16978 echo $ECHO_N "(cached) $ECHO_C" >&6 16979else 16980 ac_check_lib_save_LIBS=$LIBS 16981LIBS="-lncurses $LIBS" 16982cat >conftest.$ac_ext <<_ACEOF 16983/* confdefs.h. */ 16984_ACEOF 16985cat confdefs.h >>conftest.$ac_ext 16986cat >>conftest.$ac_ext <<_ACEOF 16987/* end confdefs.h. */ 16988 16989/* Override any gcc2 internal prototype to avoid an error. */ 16990#ifdef __cplusplus 16991extern "C" 16992#endif 16993/* We use char because int might match the return type of a gcc2 16994 builtin and then its argument prototype would still apply. */ 16995char initscr (); 16996int 16997main () 16998{ 16999initscr (); 17000 ; 17001 return 0; 17002} 17003_ACEOF 17004rm -f conftest.$ac_objext conftest$ac_exeext 17005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17006 (eval $ac_link) 2>conftest.er1 17007 ac_status=$? 17008 grep -v '^ *+' conftest.er1 >conftest.err 17009 rm -f conftest.er1 17010 cat conftest.err >&5 17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17012 (exit $ac_status); } && 17013 { ac_try='test -z "$ac_c_werror_flag" 17014 || test ! -s conftest.err' 17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17016 (eval $ac_try) 2>&5 17017 ac_status=$? 17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17019 (exit $ac_status); }; } && 17020 { ac_try='test -s conftest$ac_exeext' 17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17022 (eval $ac_try) 2>&5 17023 ac_status=$? 17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17025 (exit $ac_status); }; }; then 17026 ac_cv_lib_ncurses_initscr=yes 17027else 17028 echo "$as_me: failed program was:" >&5 17029sed 's/^/| /' conftest.$ac_ext >&5 17030 17031ac_cv_lib_ncurses_initscr=no 17032fi 17033rm -f conftest.err conftest.$ac_objext \ 17034 conftest$ac_exeext conftest.$ac_ext 17035LIBS=$ac_check_lib_save_LIBS 17036fi 17037echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 17038echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6 17039if test $ac_cv_lib_ncurses_initscr = yes; then 17040 lib_curses_opt=-lncurses 17041else 17042 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5 17043echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6 17044if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then 17045 echo $ECHO_N "(cached) $ECHO_C" >&6 17046else 17047 ac_check_lib_save_LIBS=$LIBS 17048LIBS="-lcurses $lib_user32_test $LIBS" 17049cat >conftest.$ac_ext <<_ACEOF 17050/* confdefs.h. */ 17051_ACEOF 17052cat confdefs.h >>conftest.$ac_ext 17053cat >>conftest.$ac_ext <<_ACEOF 17054/* end confdefs.h. */ 17055 17056/* Override any gcc2 internal prototype to avoid an error. */ 17057#ifdef __cplusplus 17058extern "C" 17059#endif 17060/* We use char because int might match the return type of a gcc2 17061 builtin and then its argument prototype would still apply. */ 17062char PDC_set_ctrl_break (); 17063int 17064main () 17065{ 17066PDC_set_ctrl_break (); 17067 ; 17068 return 0; 17069} 17070_ACEOF 17071rm -f conftest.$ac_objext conftest$ac_exeext 17072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17073 (eval $ac_link) 2>conftest.er1 17074 ac_status=$? 17075 grep -v '^ *+' conftest.er1 >conftest.err 17076 rm -f conftest.er1 17077 cat conftest.err >&5 17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17079 (exit $ac_status); } && 17080 { ac_try='test -z "$ac_c_werror_flag" 17081 || test ! -s conftest.err' 17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17083 (eval $ac_try) 2>&5 17084 ac_status=$? 17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17086 (exit $ac_status); }; } && 17087 { ac_try='test -s conftest$ac_exeext' 17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17089 (eval $ac_try) 2>&5 17090 ac_status=$? 17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17092 (exit $ac_status); }; }; then 17093 ac_cv_lib_curses_PDC_set_ctrl_break=yes 17094else 17095 echo "$as_me: failed program was:" >&5 17096sed 's/^/| /' conftest.$ac_ext >&5 17097 17098ac_cv_lib_curses_PDC_set_ctrl_break=no 17099fi 17100rm -f conftest.err conftest.$ac_objext \ 17101 conftest$ac_exeext conftest.$ac_ext 17102LIBS=$ac_check_lib_save_LIBS 17103fi 17104echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5 17105echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6 17106if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then 17107 lib_curses_opt=-lcurses 17108 17109cat >>confdefs.h <<\_ACEOF 17110#define USE_PDCURSES 1 17111_ACEOF 17112 17113 lib_user32_opt="$lib_user32_test" 17114 echo "$as_me:$LINENO: checking for vwprintw in -lcurses" >&5 17115echo $ECHO_N "checking for vwprintw in -lcurses... $ECHO_C" >&6 17116if test "${ac_cv_lib_curses_vwprintw+set}" = set; then 17117 echo $ECHO_N "(cached) $ECHO_C" >&6 17118else 17119 ac_check_lib_save_LIBS=$LIBS 17120LIBS="-lcurses $LIBS" 17121cat >conftest.$ac_ext <<_ACEOF 17122/* confdefs.h. */ 17123_ACEOF 17124cat confdefs.h >>conftest.$ac_ext 17125cat >>conftest.$ac_ext <<_ACEOF 17126/* end confdefs.h. */ 17127 17128/* Override any gcc2 internal prototype to avoid an error. */ 17129#ifdef __cplusplus 17130extern "C" 17131#endif 17132/* We use char because int might match the return type of a gcc2 17133 builtin and then its argument prototype would still apply. */ 17134char vwprintw (); 17135int 17136main () 17137{ 17138vwprintw (); 17139 ; 17140 return 0; 17141} 17142_ACEOF 17143rm -f conftest.$ac_objext conftest$ac_exeext 17144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17145 (eval $ac_link) 2>conftest.er1 17146 ac_status=$? 17147 grep -v '^ *+' conftest.er1 >conftest.err 17148 rm -f conftest.er1 17149 cat conftest.err >&5 17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17151 (exit $ac_status); } && 17152 { ac_try='test -z "$ac_c_werror_flag" 17153 || test ! -s conftest.err' 17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17155 (eval $ac_try) 2>&5 17156 ac_status=$? 17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17158 (exit $ac_status); }; } && 17159 { ac_try='test -s conftest$ac_exeext' 17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17161 (eval $ac_try) 2>&5 17162 ac_status=$? 17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17164 (exit $ac_status); }; }; then 17165 ac_cv_lib_curses_vwprintw=yes 17166else 17167 echo "$as_me: failed program was:" >&5 17168sed 's/^/| /' conftest.$ac_ext >&5 17169 17170ac_cv_lib_curses_vwprintw=no 17171fi 17172rm -f conftest.err conftest.$ac_objext \ 17173 conftest$ac_exeext conftest.$ac_ext 17174LIBS=$ac_check_lib_save_LIBS 17175fi 17176echo "$as_me:$LINENO: result: $ac_cv_lib_curses_vwprintw" >&5 17177echo "${ECHO_T}$ac_cv_lib_curses_vwprintw" >&6 17178if test $ac_cv_lib_curses_vwprintw = yes; then 17179 17180cat >>confdefs.h <<\_ACEOF 17181#define HAVE_VWPRINTW 1 17182_ACEOF 17183 17184fi 17185 17186 17187else 17188 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5 17189echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6 17190if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then 17191 echo $ECHO_N "(cached) $ECHO_C" >&6 17192else 17193 ac_check_lib_save_LIBS=$LIBS 17194LIBS="-lpdcurses $LIBS" 17195cat >conftest.$ac_ext <<_ACEOF 17196/* confdefs.h. */ 17197_ACEOF 17198cat confdefs.h >>conftest.$ac_ext 17199cat >>conftest.$ac_ext <<_ACEOF 17200/* end confdefs.h. */ 17201 17202/* Override any gcc2 internal prototype to avoid an error. */ 17203#ifdef __cplusplus 17204extern "C" 17205#endif 17206/* We use char because int might match the return type of a gcc2 17207 builtin and then its argument prototype would still apply. */ 17208char PDC_set_ctrl_break (); 17209int 17210main () 17211{ 17212PDC_set_ctrl_break (); 17213 ; 17214 return 0; 17215} 17216_ACEOF 17217rm -f conftest.$ac_objext conftest$ac_exeext 17218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17219 (eval $ac_link) 2>conftest.er1 17220 ac_status=$? 17221 grep -v '^ *+' conftest.er1 >conftest.err 17222 rm -f conftest.er1 17223 cat conftest.err >&5 17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17225 (exit $ac_status); } && 17226 { ac_try='test -z "$ac_c_werror_flag" 17227 || test ! -s conftest.err' 17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17229 (eval $ac_try) 2>&5 17230 ac_status=$? 17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17232 (exit $ac_status); }; } && 17233 { ac_try='test -s conftest$ac_exeext' 17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17235 (eval $ac_try) 2>&5 17236 ac_status=$? 17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17238 (exit $ac_status); }; }; then 17239 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes 17240else 17241 echo "$as_me: failed program was:" >&5 17242sed 's/^/| /' conftest.$ac_ext >&5 17243 17244ac_cv_lib_pdcurses_PDC_set_ctrl_break=no 17245fi 17246rm -f conftest.err conftest.$ac_objext \ 17247 conftest$ac_exeext conftest.$ac_ext 17248LIBS=$ac_check_lib_save_LIBS 17249fi 17250echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5 17251echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6 17252if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then 17253 lib_curses_opt=-lpdcurses 17254 17255cat >>confdefs.h <<\_ACEOF 17256#define USE_PDCURSES 1 17257_ACEOF 17258 17259 lib_user32_opt="$lib_user32_test" 17260 echo "$as_me:$LINENO: checking for vwprintw in -lpdcurses" >&5 17261echo $ECHO_N "checking for vwprintw in -lpdcurses... $ECHO_C" >&6 17262if test "${ac_cv_lib_pdcurses_vwprintw+set}" = set; then 17263 echo $ECHO_N "(cached) $ECHO_C" >&6 17264else 17265 ac_check_lib_save_LIBS=$LIBS 17266LIBS="-lpdcurses $LIBS" 17267cat >conftest.$ac_ext <<_ACEOF 17268/* confdefs.h. */ 17269_ACEOF 17270cat confdefs.h >>conftest.$ac_ext 17271cat >>conftest.$ac_ext <<_ACEOF 17272/* end confdefs.h. */ 17273 17274/* Override any gcc2 internal prototype to avoid an error. */ 17275#ifdef __cplusplus 17276extern "C" 17277#endif 17278/* We use char because int might match the return type of a gcc2 17279 builtin and then its argument prototype would still apply. */ 17280char vwprintw (); 17281int 17282main () 17283{ 17284vwprintw (); 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289rm -f conftest.$ac_objext conftest$ac_exeext 17290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17291 (eval $ac_link) 2>conftest.er1 17292 ac_status=$? 17293 grep -v '^ *+' conftest.er1 >conftest.err 17294 rm -f conftest.er1 17295 cat conftest.err >&5 17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17297 (exit $ac_status); } && 17298 { ac_try='test -z "$ac_c_werror_flag" 17299 || test ! -s conftest.err' 17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17301 (eval $ac_try) 2>&5 17302 ac_status=$? 17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17304 (exit $ac_status); }; } && 17305 { ac_try='test -s conftest$ac_exeext' 17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17307 (eval $ac_try) 2>&5 17308 ac_status=$? 17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17310 (exit $ac_status); }; }; then 17311 ac_cv_lib_pdcurses_vwprintw=yes 17312else 17313 echo "$as_me: failed program was:" >&5 17314sed 's/^/| /' conftest.$ac_ext >&5 17315 17316ac_cv_lib_pdcurses_vwprintw=no 17317fi 17318rm -f conftest.err conftest.$ac_objext \ 17319 conftest$ac_exeext conftest.$ac_ext 17320LIBS=$ac_check_lib_save_LIBS 17321fi 17322echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_vwprintw" >&5 17323echo "${ECHO_T}$ac_cv_lib_pdcurses_vwprintw" >&6 17324if test $ac_cv_lib_pdcurses_vwprintw = yes; then 17325 17326cat >>confdefs.h <<\_ACEOF 17327#define HAVE_VWPRINTW 1 17328_ACEOF 17329 17330fi 17331 17332 17333else 17334 case "$target" in 17335 *openbsd*) 17336 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 17337echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6 17338if test "${ac_cv_lib_curses_initscr+set}" = set; then 17339 echo $ECHO_N "(cached) $ECHO_C" >&6 17340else 17341 ac_check_lib_save_LIBS=$LIBS 17342LIBS="-lcurses $LIBS" 17343cat >conftest.$ac_ext <<_ACEOF 17344/* confdefs.h. */ 17345_ACEOF 17346cat confdefs.h >>conftest.$ac_ext 17347cat >>conftest.$ac_ext <<_ACEOF 17348/* end confdefs.h. */ 17349 17350/* Override any gcc2 internal prototype to avoid an error. */ 17351#ifdef __cplusplus 17352extern "C" 17353#endif 17354/* We use char because int might match the return type of a gcc2 17355 builtin and then its argument prototype would still apply. */ 17356char initscr (); 17357int 17358main () 17359{ 17360initscr (); 17361 ; 17362 return 0; 17363} 17364_ACEOF 17365rm -f conftest.$ac_objext conftest$ac_exeext 17366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17367 (eval $ac_link) 2>conftest.er1 17368 ac_status=$? 17369 grep -v '^ *+' conftest.er1 >conftest.err 17370 rm -f conftest.er1 17371 cat conftest.err >&5 17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17373 (exit $ac_status); } && 17374 { ac_try='test -z "$ac_c_werror_flag" 17375 || test ! -s conftest.err' 17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17377 (eval $ac_try) 2>&5 17378 ac_status=$? 17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17380 (exit $ac_status); }; } && 17381 { ac_try='test -s conftest$ac_exeext' 17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17383 (eval $ac_try) 2>&5 17384 ac_status=$? 17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17386 (exit $ac_status); }; }; then 17387 ac_cv_lib_curses_initscr=yes 17388else 17389 echo "$as_me: failed program was:" >&5 17390sed 's/^/| /' conftest.$ac_ext >&5 17391 17392ac_cv_lib_curses_initscr=no 17393fi 17394rm -f conftest.err conftest.$ac_objext \ 17395 conftest$ac_exeext conftest.$ac_ext 17396LIBS=$ac_check_lib_save_LIBS 17397fi 17398echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 17399echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6 17400if test $ac_cv_lib_curses_initscr = yes; then 17401 lib_curses_opt=-lcurses 17402else 17403 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5 17404echo "$as_me: WARNING: ncurses interface is not enabled" >&2;} 17405 enable_ncurses=no 17406fi 17407 17408 ;; 17409 *) 17410 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then 17411 lib_curses_opt=libpdcurses.lib 17412 17413cat >>confdefs.h <<\_ACEOF 17414#define USE_PDCURSES 1 17415_ACEOF 17416 17417 echo "$as_me:$LINENO: checking for vwprintw in -lpdcurses" >&5 17418echo $ECHO_N "checking for vwprintw in -lpdcurses... $ECHO_C" >&6 17419if test "${ac_cv_lib_pdcurses_vwprintw+set}" = set; then 17420 echo $ECHO_N "(cached) $ECHO_C" >&6 17421else 17422 ac_check_lib_save_LIBS=$LIBS 17423LIBS="-lpdcurses $LIBS" 17424cat >conftest.$ac_ext <<_ACEOF 17425/* confdefs.h. */ 17426_ACEOF 17427cat confdefs.h >>conftest.$ac_ext 17428cat >>conftest.$ac_ext <<_ACEOF 17429/* end confdefs.h. */ 17430 17431/* Override any gcc2 internal prototype to avoid an error. */ 17432#ifdef __cplusplus 17433extern "C" 17434#endif 17435/* We use char because int might match the return type of a gcc2 17436 builtin and then its argument prototype would still apply. */ 17437char vwprintw (); 17438int 17439main () 17440{ 17441vwprintw (); 17442 ; 17443 return 0; 17444} 17445_ACEOF 17446rm -f conftest.$ac_objext conftest$ac_exeext 17447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17448 (eval $ac_link) 2>conftest.er1 17449 ac_status=$? 17450 grep -v '^ *+' conftest.er1 >conftest.err 17451 rm -f conftest.er1 17452 cat conftest.err >&5 17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17454 (exit $ac_status); } && 17455 { ac_try='test -z "$ac_c_werror_flag" 17456 || test ! -s conftest.err' 17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17458 (eval $ac_try) 2>&5 17459 ac_status=$? 17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17461 (exit $ac_status); }; } && 17462 { ac_try='test -s conftest$ac_exeext' 17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17464 (eval $ac_try) 2>&5 17465 ac_status=$? 17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17467 (exit $ac_status); }; }; then 17468 ac_cv_lib_pdcurses_vwprintw=yes 17469else 17470 echo "$as_me: failed program was:" >&5 17471sed 's/^/| /' conftest.$ac_ext >&5 17472 17473ac_cv_lib_pdcurses_vwprintw=no 17474fi 17475rm -f conftest.err conftest.$ac_objext \ 17476 conftest$ac_exeext conftest.$ac_ext 17477LIBS=$ac_check_lib_save_LIBS 17478fi 17479echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_vwprintw" >&5 17480echo "${ECHO_T}$ac_cv_lib_pdcurses_vwprintw" >&6 17481if test $ac_cv_lib_pdcurses_vwprintw = yes; then 17482 17483cat >>confdefs.h <<\_ACEOF 17484#define HAVE_VWPRINTW 1 17485_ACEOF 17486 17487fi 17488 17489 else 17490 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5 17491echo "$as_me: WARNING: ncurses interface is not enabled" >&2;} 17492 enable_ncurses=no 17493 fi 17494 ;; 17495 esac 17496 17497fi 17498 17499 17500fi 17501 17502 17503fi 17504 17505 ;; esac 17506fi; 17507case "x$enable_ncurses" in 17508xyes) 17509 cat >> confdefs.h <<EOF 17510#define IA_NCURSES 1 17511EOF 17512 17513 17514 17515if true; then 17516 ENABLE_NCURSES_TRUE= 17517 ENABLE_NCURSES_FALSE='#' 17518else 17519 ENABLE_NCURSES_TRUE='#' 17520 ENABLE_NCURSES_FALSE= 17521fi 17522 17523 LIBS="$LIBS $lib_curses_opt" 17524 case "$target" in 17525 *-*-freebsd123*) 17526 EXTRALIBS="$EXTRALIBS -lmytinfo" 17527 ;; 17528 esac 17529 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c" 17530 17531 ;; 17532xdynamic) 17533 dynamic_targets="$dynamic_targets if_ncurses.\$(so)" 17534 n_so_libs="$lib_curses_opt" 17535 case "$target" in 17536 *-*-freebsd123*) 17537 EXTRALIBS="$EXTRALIBS -lmytinfo" 17538 ;; 17539 esac 17540 ;; 17541*) 17542 17543 ;; 17544esac 17545 17546 17547 17548 17549 17550if false; then 17551 ENABLE_SLANG_TRUE= 17552 ENABLE_SLANG_FALSE='#' 17553else 17554 ENABLE_SLANG_TRUE='#' 17555 ENABLE_SLANG_FALSE= 17556fi 17557 17558# Check whether --enable-slang or --disable-slang was given. 17559if test "${enable_slang+set}" = set; then 17560 enableval="$enable_slang" 17561 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5 17562echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6 17563if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then 17564 echo $ECHO_N "(cached) $ECHO_C" >&6 17565else 17566 ac_check_lib_save_LIBS=$LIBS 17567LIBS="-lslang $LIBS" 17568cat >conftest.$ac_ext <<_ACEOF 17569/* confdefs.h. */ 17570_ACEOF 17571cat confdefs.h >>conftest.$ac_ext 17572cat >>conftest.$ac_ext <<_ACEOF 17573/* end confdefs.h. */ 17574 17575/* Override any gcc2 internal prototype to avoid an error. */ 17576#ifdef __cplusplus 17577extern "C" 17578#endif 17579/* We use char because int might match the return type of a gcc2 17580 builtin and then its argument prototype would still apply. */ 17581char SLang_init_tty (); 17582int 17583main () 17584{ 17585SLang_init_tty (); 17586 ; 17587 return 0; 17588} 17589_ACEOF 17590rm -f conftest.$ac_objext conftest$ac_exeext 17591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17592 (eval $ac_link) 2>conftest.er1 17593 ac_status=$? 17594 grep -v '^ *+' conftest.er1 >conftest.err 17595 rm -f conftest.er1 17596 cat conftest.err >&5 17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17598 (exit $ac_status); } && 17599 { ac_try='test -z "$ac_c_werror_flag" 17600 || test ! -s conftest.err' 17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17602 (eval $ac_try) 2>&5 17603 ac_status=$? 17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17605 (exit $ac_status); }; } && 17606 { ac_try='test -s conftest$ac_exeext' 17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17608 (eval $ac_try) 2>&5 17609 ac_status=$? 17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17611 (exit $ac_status); }; }; then 17612 ac_cv_lib_slang_SLang_init_tty=yes 17613else 17614 echo "$as_me: failed program was:" >&5 17615sed 's/^/| /' conftest.$ac_ext >&5 17616 17617ac_cv_lib_slang_SLang_init_tty=no 17618fi 17619rm -f conftest.err conftest.$ac_objext \ 17620 conftest$ac_exeext conftest.$ac_ext 17621LIBS=$ac_check_lib_save_LIBS 17622fi 17623echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5 17624echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6 17625if test $ac_cv_lib_slang_SLang_init_tty = yes; then 17626 : 17627else 17628 enable_slang=no 17629 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5 17630echo "$as_me: WARNING: slang interface is not enabled" >&2;} 17631 17632fi 17633 17634 17635 17636for ac_header in slang/slang.h slang.h 17637do 17638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17639if eval "test \"\${$as_ac_Header+set}\" = set"; then 17640 echo "$as_me:$LINENO: checking for $ac_header" >&5 17641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17642if eval "test \"\${$as_ac_Header+set}\" = set"; then 17643 echo $ECHO_N "(cached) $ECHO_C" >&6 17644fi 17645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 17646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17647else 17648 # Is the header compilable? 17649echo "$as_me:$LINENO: checking $ac_header usability" >&5 17650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 17651cat >conftest.$ac_ext <<_ACEOF 17652/* confdefs.h. */ 17653_ACEOF 17654cat confdefs.h >>conftest.$ac_ext 17655cat >>conftest.$ac_ext <<_ACEOF 17656/* end confdefs.h. */ 17657$ac_includes_default 17658#include <$ac_header> 17659_ACEOF 17660rm -f conftest.$ac_objext 17661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17662 (eval $ac_compile) 2>conftest.er1 17663 ac_status=$? 17664 grep -v '^ *+' conftest.er1 >conftest.err 17665 rm -f conftest.er1 17666 cat conftest.err >&5 17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17668 (exit $ac_status); } && 17669 { ac_try='test -z "$ac_c_werror_flag" 17670 || test ! -s conftest.err' 17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17672 (eval $ac_try) 2>&5 17673 ac_status=$? 17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17675 (exit $ac_status); }; } && 17676 { ac_try='test -s conftest.$ac_objext' 17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17678 (eval $ac_try) 2>&5 17679 ac_status=$? 17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17681 (exit $ac_status); }; }; then 17682 ac_header_compiler=yes 17683else 17684 echo "$as_me: failed program was:" >&5 17685sed 's/^/| /' conftest.$ac_ext >&5 17686 17687ac_header_compiler=no 17688fi 17689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17691echo "${ECHO_T}$ac_header_compiler" >&6 17692 17693# Is the header present? 17694echo "$as_me:$LINENO: checking $ac_header presence" >&5 17695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 17696cat >conftest.$ac_ext <<_ACEOF 17697/* confdefs.h. */ 17698_ACEOF 17699cat confdefs.h >>conftest.$ac_ext 17700cat >>conftest.$ac_ext <<_ACEOF 17701/* end confdefs.h. */ 17702#include <$ac_header> 17703_ACEOF 17704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 17705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17706 ac_status=$? 17707 grep -v '^ *+' conftest.er1 >conftest.err 17708 rm -f conftest.er1 17709 cat conftest.err >&5 17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17711 (exit $ac_status); } >/dev/null; then 17712 if test -s conftest.err; then 17713 ac_cpp_err=$ac_c_preproc_warn_flag 17714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17715 else 17716 ac_cpp_err= 17717 fi 17718else 17719 ac_cpp_err=yes 17720fi 17721if test -z "$ac_cpp_err"; then 17722 ac_header_preproc=yes 17723else 17724 echo "$as_me: failed program was:" >&5 17725sed 's/^/| /' conftest.$ac_ext >&5 17726 17727 ac_header_preproc=no 17728fi 17729rm -f conftest.err conftest.$ac_ext 17730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17731echo "${ECHO_T}$ac_header_preproc" >&6 17732 17733# So? What about this header? 17734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17735 yes:no: ) 17736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17740 ac_header_preproc=yes 17741 ;; 17742 no:yes:* ) 17743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17755 ( 17756 cat <<\_ASBOX 17757## -------------------------------------------------- ## 17758## Report this to timidity-talk@lists.sourceforge.net ## 17759## -------------------------------------------------- ## 17760_ASBOX 17761 ) | 17762 sed "s/^/$as_me: WARNING: /" >&2 17763 ;; 17764esac 17765echo "$as_me:$LINENO: checking for $ac_header" >&5 17766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17767if eval "test \"\${$as_ac_Header+set}\" = set"; then 17768 echo $ECHO_N "(cached) $ECHO_C" >&6 17769else 17770 eval "$as_ac_Header=\$ac_header_preproc" 17771fi 17772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 17773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17774 17775fi 17776if test `eval echo '${'$as_ac_Header'}'` = yes; then 17777 cat >>confdefs.h <<_ACEOF 17778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17779_ACEOF 17780 17781fi 17782 17783done 17784 17785 ;; esac 17786fi; 17787case "x$enable_slang" in 17788xyes) 17789 cat >> confdefs.h <<EOF 17790#define IA_SLANG 1 17791EOF 17792 17793 17794 17795if true; then 17796 ENABLE_SLANG_TRUE= 17797 ENABLE_SLANG_FALSE='#' 17798else 17799 ENABLE_SLANG_TRUE='#' 17800 ENABLE_SLANG_FALSE= 17801fi 17802 17803 case "$target" in 17804 *openbsd*) 17805 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5 17806echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6 17807if test "${ac_cv_lib_termcap_initscr+set}" = set; then 17808 echo $ECHO_N "(cached) $ECHO_C" >&6 17809else 17810 ac_check_lib_save_LIBS=$LIBS 17811LIBS="-ltermcap $LIBS" 17812cat >conftest.$ac_ext <<_ACEOF 17813/* confdefs.h. */ 17814_ACEOF 17815cat confdefs.h >>conftest.$ac_ext 17816cat >>conftest.$ac_ext <<_ACEOF 17817/* end confdefs.h. */ 17818 17819/* Override any gcc2 internal prototype to avoid an error. */ 17820#ifdef __cplusplus 17821extern "C" 17822#endif 17823/* We use char because int might match the return type of a gcc2 17824 builtin and then its argument prototype would still apply. */ 17825char initscr (); 17826int 17827main () 17828{ 17829initscr (); 17830 ; 17831 return 0; 17832} 17833_ACEOF 17834rm -f conftest.$ac_objext conftest$ac_exeext 17835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17836 (eval $ac_link) 2>conftest.er1 17837 ac_status=$? 17838 grep -v '^ *+' conftest.er1 >conftest.err 17839 rm -f conftest.er1 17840 cat conftest.err >&5 17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17842 (exit $ac_status); } && 17843 { ac_try='test -z "$ac_c_werror_flag" 17844 || test ! -s conftest.err' 17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17846 (eval $ac_try) 2>&5 17847 ac_status=$? 17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17849 (exit $ac_status); }; } && 17850 { ac_try='test -s conftest$ac_exeext' 17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17852 (eval $ac_try) 2>&5 17853 ac_status=$? 17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17855 (exit $ac_status); }; }; then 17856 ac_cv_lib_termcap_initscr=yes 17857else 17858 echo "$as_me: failed program was:" >&5 17859sed 's/^/| /' conftest.$ac_ext >&5 17860 17861ac_cv_lib_termcap_initscr=no 17862fi 17863rm -f conftest.err conftest.$ac_objext \ 17864 conftest$ac_exeext conftest.$ac_ext 17865LIBS=$ac_check_lib_save_LIBS 17866fi 17867echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5 17868echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6 17869if test $ac_cv_lib_termcap_initscr = yes; then 17870 LIBS="$LIBS -lslang -ltermcap" 17871 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c" 17872 17873 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5 17874echo "$as_me: WARNING: slang interface is not enabled" >&2;} 17875 enable_slang=no 17876 17877fi 17878 17879 ;; 17880 *) 17881 LIBS="$LIBS -lslang" 17882 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c" 17883 ;; 17884 esac 17885 17886 ;; 17887xdynamic) 17888 dynamic_targets="$dynamic_targets if_slang.\$(so)" 17889 s_so_libs="-lslang $LIBS" 17890 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5 17891echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6 17892if test "${ac_cv_lib_termcap_initscr+set}" = set; then 17893 echo $ECHO_N "(cached) $ECHO_C" >&6 17894else 17895 ac_check_lib_save_LIBS=$LIBS 17896LIBS="-ltermcap $LIBS" 17897cat >conftest.$ac_ext <<_ACEOF 17898/* confdefs.h. */ 17899_ACEOF 17900cat confdefs.h >>conftest.$ac_ext 17901cat >>conftest.$ac_ext <<_ACEOF 17902/* end confdefs.h. */ 17903 17904/* Override any gcc2 internal prototype to avoid an error. */ 17905#ifdef __cplusplus 17906extern "C" 17907#endif 17908/* We use char because int might match the return type of a gcc2 17909 builtin and then its argument prototype would still apply. */ 17910char initscr (); 17911int 17912main () 17913{ 17914initscr (); 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919rm -f conftest.$ac_objext conftest$ac_exeext 17920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17921 (eval $ac_link) 2>conftest.er1 17922 ac_status=$? 17923 grep -v '^ *+' conftest.er1 >conftest.err 17924 rm -f conftest.er1 17925 cat conftest.err >&5 17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17927 (exit $ac_status); } && 17928 { ac_try='test -z "$ac_c_werror_flag" 17929 || test ! -s conftest.err' 17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17931 (eval $ac_try) 2>&5 17932 ac_status=$? 17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17934 (exit $ac_status); }; } && 17935 { ac_try='test -s conftest$ac_exeext' 17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17937 (eval $ac_try) 2>&5 17938 ac_status=$? 17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17940 (exit $ac_status); }; }; then 17941 ac_cv_lib_termcap_initscr=yes 17942else 17943 echo "$as_me: failed program was:" >&5 17944sed 's/^/| /' conftest.$ac_ext >&5 17945 17946ac_cv_lib_termcap_initscr=no 17947fi 17948rm -f conftest.err conftest.$ac_objext \ 17949 conftest$ac_exeext conftest.$ac_ext 17950LIBS=$ac_check_lib_save_LIBS 17951fi 17952echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5 17953echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6 17954if test $ac_cv_lib_termcap_initscr = yes; then 17955 s_so_libs="$s_so_libs -ltermcap" 17956fi 17957 17958 17959 ;; 17960*) 17961 17962 ;; 17963esac 17964 17965 17966 17967 17968 17969if false; then 17970 ENABLE_MOTIF_TRUE= 17971 ENABLE_MOTIF_FALSE='#' 17972else 17973 ENABLE_MOTIF_TRUE='#' 17974 ENABLE_MOTIF_FALSE= 17975fi 17976 17977# Check whether --enable-motif or --disable-motif was given. 17978if test "${enable_motif+set}" = set; then 17979 enableval="$enable_motif" 17980 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then 17981 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5 17982echo "$as_me: error: motif: --with-x option must be specified" >&2;} 17983 { (exit 1); exit 1; }; } 17984 fi 17985 if test "x$have_xm" != xyes; then 17986 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5 17987echo "$as_me: WARNING: Motif library is not found." >&2;} 17988 enable_motif=no 17989 fi 17990 ;; esac 17991fi; 17992case "x$enable_motif" in 17993xyes) 17994 cat >> confdefs.h <<EOF 17995#define IA_MOTIF 1 17996EOF 17997 17998 17999 18000if true; then 18001 ENABLE_MOTIF_TRUE= 18002 ENABLE_MOTIF_FALSE='#' 18003else 18004 ENABLE_MOTIF_TRUE='#' 18005 ENABLE_MOTIF_FALSE= 18006fi 18007 18008 lib_xm_opt=-lXm 18009 lib_xt_opt=-lXt 18010 lib_xext_opt=-lXext 18011 if test "x$have_xprelibs" = xyes; then 18012 lib_xprelibs_opt='-lSM -lICE' 18013 fi 18014 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c" 18015 18016 ;; 18017xdynamic) 18018 dynamic_targets="$dynamic_targets if_motif.\$(so)" 18019 if test x$have_xprelibs = xyes; then 18020 m_so_libs="-lXext -lSM -lICE" 18021 fi 18022 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11" 18023 18024 ;; 18025*) 18026 18027 ;; 18028esac 18029 18030 18031 18032 18033 18034if false; then 18035 ENABLE_TCLTK_TRUE= 18036 ENABLE_TCLTK_FALSE='#' 18037else 18038 ENABLE_TCLTK_TRUE='#' 18039 ENABLE_TCLTK_FALSE= 18040fi 18041 18042# Check whether --enable-tcltk or --disable-tcltk was given. 18043if test "${enable_tcltk+set}" = set; then 18044 enableval="$enable_tcltk" 18045 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then 18046 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5 18047echo "$as_me: error: tcltk: --with-x option must be specified" >&2;} 18048 { (exit 1); exit 1; }; } 18049 fi 18050 18051 KEEPCPPFLAGS=$CPPFLAGS 18052 KEEPLDFLAGS=$LDFLAGS 18053 KEEPLIBS=$LIBS 18054 18055 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS" 18056 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS" 18057 LIBS="$LIBS $lib_dl_opt" 18058 18059 tcl_lib= 18060 tk_lib= 18061 for l in tcl tck8.6 tcl8.5 tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do 18062 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh` 18063echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5 18064echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6 18065if eval "test \"\${$as_ac_Lib+set}\" = set"; then 18066 echo $ECHO_N "(cached) $ECHO_C" >&6 18067else 18068 ac_check_lib_save_LIBS=$LIBS 18069LIBS="-l$l $LIBS" 18070cat >conftest.$ac_ext <<_ACEOF 18071/* confdefs.h. */ 18072_ACEOF 18073cat confdefs.h >>conftest.$ac_ext 18074cat >>conftest.$ac_ext <<_ACEOF 18075/* end confdefs.h. */ 18076 18077/* Override any gcc2 internal prototype to avoid an error. */ 18078#ifdef __cplusplus 18079extern "C" 18080#endif 18081/* We use char because int might match the return type of a gcc2 18082 builtin and then its argument prototype would still apply. */ 18083char Tcl_Init (); 18084int 18085main () 18086{ 18087Tcl_Init (); 18088 ; 18089 return 0; 18090} 18091_ACEOF 18092rm -f conftest.$ac_objext conftest$ac_exeext 18093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18094 (eval $ac_link) 2>conftest.er1 18095 ac_status=$? 18096 grep -v '^ *+' conftest.er1 >conftest.err 18097 rm -f conftest.er1 18098 cat conftest.err >&5 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); } && 18101 { ac_try='test -z "$ac_c_werror_flag" 18102 || test ! -s conftest.err' 18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18104 (eval $ac_try) 2>&5 18105 ac_status=$? 18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18107 (exit $ac_status); }; } && 18108 { ac_try='test -s conftest$ac_exeext' 18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18110 (eval $ac_try) 2>&5 18111 ac_status=$? 18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18113 (exit $ac_status); }; }; then 18114 eval "$as_ac_Lib=yes" 18115else 18116 echo "$as_me: failed program was:" >&5 18117sed 's/^/| /' conftest.$ac_ext >&5 18118 18119eval "$as_ac_Lib=no" 18120fi 18121rm -f conftest.err conftest.$ac_objext \ 18122 conftest$ac_exeext conftest.$ac_ext 18123LIBS=$ac_check_lib_save_LIBS 18124fi 18125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 18126echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 18127if test `eval echo '${'$as_ac_Lib'}'` = yes; then 18128 tcl_lib=-l$l 18129fi 18130;; esac 18131 done 18132 LIBS="$LIBS $tcl_lib" 18133 for l in tk tk8.6 tk8.5 tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do 18134 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh` 18135echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5 18136echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6 18137if eval "test \"\${$as_ac_Lib+set}\" = set"; then 18138 echo $ECHO_N "(cached) $ECHO_C" >&6 18139else 18140 ac_check_lib_save_LIBS=$LIBS 18141LIBS="-l$l $LIBS" 18142cat >conftest.$ac_ext <<_ACEOF 18143/* confdefs.h. */ 18144_ACEOF 18145cat confdefs.h >>conftest.$ac_ext 18146cat >>conftest.$ac_ext <<_ACEOF 18147/* end confdefs.h. */ 18148 18149/* Override any gcc2 internal prototype to avoid an error. */ 18150#ifdef __cplusplus 18151extern "C" 18152#endif 18153/* We use char because int might match the return type of a gcc2 18154 builtin and then its argument prototype would still apply. */ 18155char Tk_Init (); 18156int 18157main () 18158{ 18159Tk_Init (); 18160 ; 18161 return 0; 18162} 18163_ACEOF 18164rm -f conftest.$ac_objext conftest$ac_exeext 18165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18166 (eval $ac_link) 2>conftest.er1 18167 ac_status=$? 18168 grep -v '^ *+' conftest.er1 >conftest.err 18169 rm -f conftest.er1 18170 cat conftest.err >&5 18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18172 (exit $ac_status); } && 18173 { ac_try='test -z "$ac_c_werror_flag" 18174 || test ! -s conftest.err' 18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18176 (eval $ac_try) 2>&5 18177 ac_status=$? 18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18179 (exit $ac_status); }; } && 18180 { ac_try='test -s conftest$ac_exeext' 18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18182 (eval $ac_try) 2>&5 18183 ac_status=$? 18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18185 (exit $ac_status); }; }; then 18186 eval "$as_ac_Lib=yes" 18187else 18188 echo "$as_me: failed program was:" >&5 18189sed 's/^/| /' conftest.$ac_ext >&5 18190 18191eval "$as_ac_Lib=no" 18192fi 18193rm -f conftest.err conftest.$ac_objext \ 18194 conftest$ac_exeext conftest.$ac_ext 18195LIBS=$ac_check_lib_save_LIBS 18196fi 18197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 18198echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 18199if test `eval echo '${'$as_ac_Lib'}'` = yes; then 18200 tk_lib=-l$l 18201fi 18202;; esac 18203 done 18204 18205 LIBS=$KEEPLIBS 18206 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then 18207 CPPFLAGS=$KEEPCPPFLAGS 18208 LDFLAGS=$KEEPLDFLAGS 18209 enable_tcltk=no 18210 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5 18211echo "$as_me: WARNING: tcl/tk is not enable" >&2;} 18212 else 18213 tcltk_dep='tclIndex' 18214 fi 18215 ;; esac 18216fi; 18217case "x$enable_tcltk" in 18218xyes) 18219 cat >> confdefs.h <<EOF 18220#define IA_TCLTK 1 18221EOF 18222 18223 18224 18225if true; then 18226 ENABLE_TCLTK_TRUE= 18227 ENABLE_TCLTK_FALSE='#' 18228else 18229 ENABLE_TCLTK_TRUE='#' 18230 ENABLE_TCLTK_FALSE= 18231fi 18232 18233 LIBS="$tk_lib $tcl_lib -lX11 $LIBS" 18234 case "$target" in 18235 *-*-bsdi*) 18236 EXTRALIBS="$EXTRALIBS -lipc" 18237 ;; 18238 esac 18239 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c" 18240 18241 ;; 18242xdynamic) 18243 dynamic_targets="$dynamic_targets if_tcltk.\$(so)" 18244 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt" 18245 case "$target" in 18246 *-*-bsdi*) 18247 k_so_libs="$k_so_libs -lipc" 18248 ;; 18249 esac 18250 k_so_libs="$k_so_libs -lX11 -lm" 18251 18252 ;; 18253*) 18254 18255 ;; 18256esac 18257 18258 18259 18260 18261if test "x$enable_tcltk" = "xdynamic"; then 18262 ENABLE_DYNAMIC_TCLTK_TRUE= 18263 ENABLE_DYNAMIC_TCLTK_FALSE='#' 18264else 18265 ENABLE_DYNAMIC_TCLTK_TRUE='#' 18266 ENABLE_DYNAMIC_TCLTK_FALSE= 18267fi 18268 18269 18270 18271 18272if false; then 18273 ENABLE_EMACS_TRUE= 18274 ENABLE_EMACS_FALSE='#' 18275else 18276 ENABLE_EMACS_TRUE='#' 18277 ENABLE_EMACS_FALSE= 18278fi 18279 18280# Check whether --enable-emacs or --disable-emacs was given. 18281if test "${enable_emacs+set}" = set; then 18282 enableval="$enable_emacs" 18283 case "x$enable_emacs" in xyes|xdynamic) ;; esac 18284fi; 18285case "x$enable_emacs" in 18286xyes) 18287 cat >> confdefs.h <<EOF 18288#define IA_EMACS 1 18289EOF 18290 18291 18292 18293if true; then 18294 ENABLE_EMACS_TRUE= 18295 ENABLE_EMACS_FALSE='#' 18296else 18297 ENABLE_EMACS_TRUE='#' 18298 ENABLE_EMACS_FALSE= 18299fi 18300 18301 ELFILES="$ELFILES timidity.el" 18302 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c" 18303 18304 ;; 18305xdynamic) 18306 dynamic_targets="$dynamic_targets if_emacs.\$(so)" 18307 18308 18309if true; then 18310 ENABLE_EMACS_TRUE= 18311 ENABLE_EMACS_FALSE='#' 18312else 18313 ENABLE_EMACS_TRUE='#' 18314 ENABLE_EMACS_FALSE= 18315fi 18316 18317 ELFILES="$ELFILES timidity.el" 18318 ;; 18319*) 18320 18321 ;; 18322esac 18323 18324 18325 18326 18327 18328if false; then 18329 ENABLE_VT100_TRUE= 18330 ENABLE_VT100_FALSE='#' 18331else 18332 ENABLE_VT100_TRUE='#' 18333 ENABLE_VT100_FALSE= 18334fi 18335 18336# Check whether --enable-vt100 or --disable-vt100 was given. 18337if test "${enable_vt100+set}" = set; then 18338 enableval="$enable_vt100" 18339 case "x$enable_vt100" in xyes|xdynamic) ;; esac 18340fi; 18341case "x$enable_vt100" in 18342xyes) 18343 cat >> confdefs.h <<EOF 18344#define IA_VT100 1 18345EOF 18346 18347 18348 18349if true; then 18350 ENABLE_VT100_TRUE= 18351 ENABLE_VT100_FALSE='#' 18352else 18353 ENABLE_VT100_TRUE='#' 18354 ENABLE_VT100_FALSE= 18355fi 18356 18357 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c" 18358 ;; 18359xdynamic) 18360 dynamic_targets="$dynamic_targets if_vt100.\$(so)" 18361 18362 ;; 18363*) 18364 18365 ;; 18366esac 18367 18368 18369 18370 18371 18372if false; then 18373 ENABLE_XAW_TRUE= 18374 ENABLE_XAW_FALSE='#' 18375else 18376 ENABLE_XAW_TRUE='#' 18377 ENABLE_XAW_FALSE= 18378fi 18379 18380# Check whether --enable-xaw or --disable-xaw was given. 18381if test "${enable_xaw+set}" = set; then 18382 enableval="$enable_xaw" 18383 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then 18384 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5 18385echo "$as_me: error: xaw: --with-x option must be specified" >&2;} 18386 { (exit 1); exit 1; }; } 18387 fi 18388 if test "x$have_xaw" = "xno"; then 18389 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5 18390echo "$as_me: WARNING: X Athena Widget library is not found." >&2;} 18391 enable_xaw=no 18392 fi ;; esac 18393fi; 18394case "x$enable_xaw" in 18395xyes) 18396 cat >> confdefs.h <<EOF 18397#define IA_XAW 1 18398EOF 18399 18400 18401 18402if true; then 18403 ENABLE_XAW_TRUE= 18404 ENABLE_XAW_FALSE='#' 18405else 18406 ENABLE_XAW_TRUE='#' 18407 ENABLE_XAW_FALSE= 18408fi 18409 18410 if test "x$have_xext" = xyes; then 18411 lib_xext_opt=-lXext 18412 fi 18413 if test "x$have_xprelibs" = xyes; then 18414 lib_xprelibs_opt='-lSM -lICE' 18415 fi 18416 lib_xmu_opt=-lXmu 18417 lib_xt_opt=-lXt 18418 if test "x$enable_xft" = "xyes" && test "x$have_xaw" != "xno"; then 18419 XFT_CFLAGS="$(pkg-config --cflags xft)"; 18420 for f in $XFT_CFLAGS; do 18421 case ".$f" in 18422 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 18423 *) CFLAGS="$CFLAGS $f" ;; 18424 esac 18425done 18426 18427 lib_xft_opt="-lXft"; 18428 fi 18429 case "$have_xaw" in 18430 "yes") 18431 lib_xaw_opt=-lXaw 18432 ;; 18433 "3d") 18434 18435cat >>confdefs.h <<\_ACEOF 18436#define XAW3D 1 18437_ACEOF 18438 18439 lib_xaw_opt=-lXaw3d 18440 ;; 18441 "plus") 18442 18443cat >>confdefs.h <<\_ACEOF 18444#define XAWPLUS 1 18445_ACEOF 18446 18447 lib_xaw_opt="-lXpm -lXawPlus" 18448 ;; 18449 "next") 18450 18451cat >>confdefs.h <<\_ACEOF 18452#define NEXTAW 1 18453_ACEOF 18454 18455 lib_xaw_opt=-lneXtaw 18456 ;; 18457 esac 18458 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c x_trace.c $XDND_SRCS" 18459 18460 ;; 18461xdynamic) 18462 dynamic_targets="$dynamic_targets if_xaw.\$(so)" 18463 if test "x$have_xext" = xyes; then 18464 a_so_libs="-lXext -lX11" 18465 else 18466 a_so_libs="-lX11" 18467 fi 18468 case "$target" in 18469 *darwin*) 18470 a_so_libs="$a_so_libs -lcc_dynamic" 18471 ;; 18472 esac 18473 if test "x$have_xprelibs" = xyes; then 18474 a_so_libs="-lSM -lICE $a_so_libs" 18475 fi 18476 case "$have_xaw" in 18477 "yes") 18478 a_so_libs="-lXaw -lXmu -lXt $a_so_libs" 18479 ;; 18480 "3d") 18481 18482cat >>confdefs.h <<\_ACEOF 18483#define XAW3D 1 18484_ACEOF 18485 18486 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs" 18487 ;; 18488 "plus") 18489 18490cat >>confdefs.h <<\_ACEOF 18491#define XAWPLUS 1 18492_ACEOF 18493 18494 a_so_libs="-lXawPlus -lXpm -lXmu -lXt $a_so_libs" 18495 ;; 18496 "next") 18497 18498cat >>confdefs.h <<\_ACEOF 18499#define NEXTAW 1 18500_ACEOF 18501 18502 a_so_libs="-lneXtaw -lXmu -lXt $a_so_libs" 18503 ;; 18504 esac 18505 if test "x$enable_xft" = "xyes" && test "x$have_xaw" != "xno"; then 18506 XFT_CFLAGS="$(pkg-config --cflags xft)"; 18507 for f in $XFT_CFLAGS; do 18508 case ".$f" in 18509 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 18510 *) CFLAGS="$CFLAGS $f" ;; 18511 esac 18512done 18513 18514 a_so_libs="$a_so_libs -lXft"; 18515 fi 18516 a_so_libs="$ldflags_x_opt $a_so_libs" 18517 18518 ;; 18519*) 18520 18521 ;; 18522esac 18523 18524 18525 18526 18527if test "x$enable_xaw" = "xdynamic"; then 18528 ENABLE_DYNAMIC_XAW_TRUE= 18529 ENABLE_DYNAMIC_XAW_FALSE='#' 18530else 18531 ENABLE_DYNAMIC_XAW_TRUE='#' 18532 ENABLE_DYNAMIC_XAW_FALSE= 18533fi 18534 18535 18536 18537 18538if false; then 18539 ENABLE_XSKIN_TRUE= 18540 ENABLE_XSKIN_FALSE='#' 18541else 18542 ENABLE_XSKIN_TRUE='#' 18543 ENABLE_XSKIN_FALSE= 18544fi 18545 18546# Check whether --enable-xskin or --disable-xskin was given. 18547if test "${enable_xskin+set}" = set; then 18548 enableval="$enable_xskin" 18549 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then 18550 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5 18551echo "$as_me: error: xskin: --with-x option must be specified" >&2;} 18552 { (exit 1); exit 1; }; } 18553 fi 18554 ;; esac 18555fi; 18556case "x$enable_xskin" in 18557xyes) 18558 cat >> confdefs.h <<EOF 18559#define IA_XSKIN 1 18560EOF 18561 18562 18563 18564if true; then 18565 ENABLE_XSKIN_TRUE= 18566 ENABLE_XSKIN_FALSE='#' 18567else 18568 ENABLE_XSKIN_TRUE='#' 18569 ENABLE_XSKIN_FALSE= 18570fi 18571 18572 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c" 18573 ;; 18574xdynamic) 18575 dynamic_targets="$dynamic_targets if_xskin.\$(so)" 18576 i_so_libs="$ldflags_x_opt -lX11" 18577 ;; 18578*) 18579 18580 ;; 18581esac 18582 18583 18584 18585 18586 18587if false; then 18588 ENABLE_GTK_TRUE= 18589 ENABLE_GTK_FALSE='#' 18590else 18591 ENABLE_GTK_TRUE='#' 18592 ENABLE_GTK_FALSE= 18593fi 18594 18595# Check whether --enable-gtk or --disable-gtk was given. 18596if test "${enable_gtk+set}" = set; then 18597 enableval="$enable_gtk" 18598 case "x$enable_gtk" in xyes|xdynamic) # Check whether --enable-gtktest or --disable-gtktest was given. 18599if test "${enable_gtktest+set}" = set; then 18600 enableval="$enable_gtktest" 18601 18602else 18603 enable_gtktest=yes 18604fi; 18605 18606 pkg_config_args=gtk+-2.0 18607 for module in . 18608 do 18609 case "$module" in 18610 gthread) 18611 pkg_config_args="$pkg_config_args gthread-2.0" 18612 ;; 18613 esac 18614 done 18615 18616 no_gtk="" 18617 18618 # Extract the first word of "pkg-config", so it can be a program name with args. 18619set dummy pkg-config; ac_word=$2 18620echo "$as_me:$LINENO: checking for $ac_word" >&5 18621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18622if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 18623 echo $ECHO_N "(cached) $ECHO_C" >&6 18624else 18625 case $PKG_CONFIG in 18626 [\\/]* | ?:[\\/]*) 18627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18628 ;; 18629 *) 18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18631for as_dir in $PATH 18632do 18633 IFS=$as_save_IFS 18634 test -z "$as_dir" && as_dir=. 18635 for ac_exec_ext in '' $ac_executable_extensions; do 18636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18639 break 2 18640 fi 18641done 18642done 18643 18644 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18645 ;; 18646esac 18647fi 18648PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18649 18650if test -n "$PKG_CONFIG"; then 18651 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 18652echo "${ECHO_T}$PKG_CONFIG" >&6 18653else 18654 echo "$as_me:$LINENO: result: no" >&5 18655echo "${ECHO_T}no" >&6 18656fi 18657 18658 18659 if test x$PKG_CONFIG != xno ; then 18660 if pkg-config --atleast-pkgconfig-version 0.7 ; then 18661 : 18662 else 18663 echo *** pkg-config too old; version 0.7 or better required. 18664 no_gtk=yes 18665 PKG_CONFIG=no 18666 fi 18667 else 18668 no_gtk=yes 18669 fi 18670 18671 min_gtk_version=2.0.0 18672 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 18673echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 18674 18675 if test x$PKG_CONFIG != xno ; then 18676 ## don't try to run the test against uninstalled libtool libs 18677 if $PKG_CONFIG --uninstalled $pkg_config_args; then 18678 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 18679 enable_gtktest=no 18680 fi 18681 18682 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 18683 : 18684 else 18685 no_gtk=yes 18686 fi 18687 fi 18688 18689 if test x"$no_gtk" = x ; then 18690 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 18691 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 18692 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 18693 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18694 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 18695 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18696 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 18697 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 18698 if test "x$enable_gtktest" = "xyes" ; then 18699 ac_save_CFLAGS="$CFLAGS" 18700 ac_save_LIBS="$LIBS" 18701 CFLAGS="$CFLAGS $GTK_CFLAGS" 18702 LIBS="$GTK_LIBS $LIBS" 18703 rm -f conf.gtktest 18704 if test "$cross_compiling" = yes; then 18705 echo $ac_n "cross compiling; assumed OK... $ac_c" 18706else 18707 cat >conftest.$ac_ext <<_ACEOF 18708/* confdefs.h. */ 18709_ACEOF 18710cat confdefs.h >>conftest.$ac_ext 18711cat >>conftest.$ac_ext <<_ACEOF 18712/* end confdefs.h. */ 18713 18714#include <gtk/gtk.h> 18715#include <stdio.h> 18716#include <stdlib.h> 18717 18718int 18719main () 18720{ 18721 int major, minor, micro; 18722 char *tmp_version; 18723 18724 system ("touch conf.gtktest"); 18725 18726 /* HP/UX 9 (%@#!) writes to sscanf strings */ 18727 tmp_version = g_strdup("$min_gtk_version"); 18728 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 18729 printf("%s, bad version string\n", "$min_gtk_version"); 18730 exit(1); 18731 } 18732 18733 if ((gtk_major_version != $gtk_config_major_version) || 18734 (gtk_minor_version != $gtk_config_minor_version) || 18735 (gtk_micro_version != $gtk_config_micro_version)) 18736 { 18737 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 18738 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 18739 gtk_major_version, gtk_minor_version, gtk_micro_version); 18740 printf ("*** was found! If pkg-config was correct, then it is best\n"); 18741 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 18742 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 18743 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 18744 printf("*** required on your system.\n"); 18745 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 18746 printf("*** to point to the correct configuration files\n"); 18747 } 18748 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 18749 (gtk_minor_version != GTK_MINOR_VERSION) || 18750 (gtk_micro_version != GTK_MICRO_VERSION)) 18751 { 18752 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 18753 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 18754 printf("*** library (version %d.%d.%d)\n", 18755 gtk_major_version, gtk_minor_version, gtk_micro_version); 18756 } 18757 else 18758 { 18759 if ((gtk_major_version > major) || 18760 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 18761 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 18762 { 18763 return 0; 18764 } 18765 else 18766 { 18767 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 18768 gtk_major_version, gtk_minor_version, gtk_micro_version); 18769 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 18770 major, minor, micro); 18771 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 18772 printf("***\n"); 18773 printf("*** If you have already installed a sufficiently new version, this error\n"); 18774 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 18775 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 18776 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 18777 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 18778 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 18779 printf("*** so that the correct libraries are found at run-time))\n"); 18780 } 18781 } 18782 return 1; 18783} 18784 18785_ACEOF 18786rm -f conftest$ac_exeext 18787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18788 (eval $ac_link) 2>&5 18789 ac_status=$? 18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18793 (eval $ac_try) 2>&5 18794 ac_status=$? 18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18796 (exit $ac_status); }; }; then 18797 : 18798else 18799 echo "$as_me: program exited with status $ac_status" >&5 18800echo "$as_me: failed program was:" >&5 18801sed 's/^/| /' conftest.$ac_ext >&5 18802 18803( exit $ac_status ) 18804no_gtk=yes 18805fi 18806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18807fi 18808 CFLAGS="$ac_save_CFLAGS" 18809 LIBS="$ac_save_LIBS" 18810 fi 18811 fi 18812 if test "x$no_gtk" = x ; then 18813 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 18814echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 18815 18816cat >>confdefs.h <<\_ACEOF 18817#define HAVE_GTK_2 1 18818_ACEOF 18819 18820 else 18821 echo "$as_me:$LINENO: result: no" >&5 18822echo "${ECHO_T}no" >&6 18823 if test "$PKG_CONFIG" = "no" ; then 18824 echo "*** A new enough version of pkg-config was not found." 18825 echo "*** See http://pkgconfig.sourceforge.net" 18826 else 18827 if test -f conf.gtktest ; then 18828 : 18829 else 18830 echo "*** Could not run GTK+ test program, checking why..." 18831 ac_save_CFLAGS="$CFLAGS" 18832 ac_save_LIBS="$LIBS" 18833 CFLAGS="$CFLAGS $GTK_CFLAGS" 18834 LIBS="$LIBS $GTK_LIBS" 18835 cat >conftest.$ac_ext <<_ACEOF 18836/* confdefs.h. */ 18837_ACEOF 18838cat confdefs.h >>conftest.$ac_ext 18839cat >>conftest.$ac_ext <<_ACEOF 18840/* end confdefs.h. */ 18841 18842#include <gtk/gtk.h> 18843#include <stdio.h> 18844 18845int 18846main () 18847{ 18848 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 18849 ; 18850 return 0; 18851} 18852_ACEOF 18853rm -f conftest.$ac_objext conftest$ac_exeext 18854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18855 (eval $ac_link) 2>conftest.er1 18856 ac_status=$? 18857 grep -v '^ *+' conftest.er1 >conftest.err 18858 rm -f conftest.er1 18859 cat conftest.err >&5 18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18861 (exit $ac_status); } && 18862 { ac_try='test -z "$ac_c_werror_flag" 18863 || test ! -s conftest.err' 18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18865 (eval $ac_try) 2>&5 18866 ac_status=$? 18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18868 (exit $ac_status); }; } && 18869 { ac_try='test -s conftest$ac_exeext' 18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18871 (eval $ac_try) 2>&5 18872 ac_status=$? 18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18874 (exit $ac_status); }; }; then 18875 echo "*** The test program compiled, but did not run. This usually means" 18876 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 18877 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 18878 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 18879 echo "*** to the installed location Also, make sure you have run ldconfig if that" 18880 echo "*** is required on your system" 18881 echo "***" 18882 echo "*** If you have an old version installed, it is best to remove it, although" 18883 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 18884else 18885 echo "$as_me: failed program was:" >&5 18886sed 's/^/| /' conftest.$ac_ext >&5 18887 18888 echo "*** The test program failed to compile or link. See the file config.log for the" 18889 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." 18890fi 18891rm -f conftest.err conftest.$ac_objext \ 18892 conftest$ac_exeext conftest.$ac_ext 18893 CFLAGS="$ac_save_CFLAGS" 18894 LIBS="$ac_save_LIBS" 18895 fi 18896 fi 18897 GTK_CFLAGS="" 18898 GTK_LIBS="" 18899 18900# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 18901if test "${with_gtk_prefix+set}" = set; then 18902 withval="$with_gtk_prefix" 18903 gtk_config_prefix="$withval" 18904else 18905 gtk_config_prefix="" 18906fi; 18907 18908# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 18909if test "${with_gtk_exec_prefix+set}" = set; then 18910 withval="$with_gtk_exec_prefix" 18911 gtk_config_exec_prefix="$withval" 18912else 18913 gtk_config_exec_prefix="" 18914fi; 18915# Check whether --enable-gtktest or --disable-gtktest was given. 18916if test "${enable_gtktest+set}" = set; then 18917 enableval="$enable_gtktest" 18918 18919else 18920 enable_gtktest=yes 18921fi; 18922 18923 for module in . 18924 do 18925 case "$module" in 18926 gthread) 18927 gtk_config_args="$gtk_config_args gthread" 18928 ;; 18929 esac 18930 done 18931 18932 if test x$gtk_config_exec_prefix != x ; then 18933 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 18934 if test x${GTK_CONFIG+set} != xset ; then 18935 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 18936 fi 18937 fi 18938 if test x$gtk_config_prefix != x ; then 18939 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 18940 if test x${GTK_CONFIG+set} != xset ; then 18941 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 18942 fi 18943 fi 18944 18945 # Extract the first word of "gtk-config", so it can be a program name with args. 18946set dummy gtk-config; ac_word=$2 18947echo "$as_me:$LINENO: checking for $ac_word" >&5 18948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18949if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 18950 echo $ECHO_N "(cached) $ECHO_C" >&6 18951else 18952 case $GTK_CONFIG in 18953 [\\/]* | ?:[\\/]*) 18954 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 18955 ;; 18956 *) 18957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18958for as_dir in $PATH 18959do 18960 IFS=$as_save_IFS 18961 test -z "$as_dir" && as_dir=. 18962 for ac_exec_ext in '' $ac_executable_extensions; do 18963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18964 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18966 break 2 18967 fi 18968done 18969done 18970 18971 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 18972 ;; 18973esac 18974fi 18975GTK_CONFIG=$ac_cv_path_GTK_CONFIG 18976 18977if test -n "$GTK_CONFIG"; then 18978 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 18979echo "${ECHO_T}$GTK_CONFIG" >&6 18980else 18981 echo "$as_me:$LINENO: result: no" >&5 18982echo "${ECHO_T}no" >&6 18983fi 18984 18985 min_gtk_version=1.1.3 18986 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 18987echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 18988 no_gtk="" 18989 if test "$GTK_CONFIG" = "no" ; then 18990 no_gtk=yes 18991 else 18992 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 18993 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 18994 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 18995 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18996 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 18997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18998 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 18999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 19000 if test "x$enable_gtktest" = "xyes" ; then 19001 ac_save_CFLAGS="$CFLAGS" 19002 ac_save_LIBS="$LIBS" 19003 CFLAGS="$CFLAGS $GTK_CFLAGS" 19004 LIBS="$GTK_LIBS $LIBS" 19005 rm -f conf.gtktest 19006 if test "$cross_compiling" = yes; then 19007 echo $ac_n "cross compiling; assumed OK... $ac_c" 19008else 19009 cat >conftest.$ac_ext <<_ACEOF 19010/* confdefs.h. */ 19011_ACEOF 19012cat confdefs.h >>conftest.$ac_ext 19013cat >>conftest.$ac_ext <<_ACEOF 19014/* end confdefs.h. */ 19015 19016#include <gtk/gtk.h> 19017#include <stdio.h> 19018#include <stdlib.h> 19019 19020int 19021main () 19022{ 19023 int major, minor, micro; 19024 char *tmp_version; 19025 19026 system ("touch conf.gtktest"); 19027 19028 /* HP/UX 9 (%@#!) writes to sscanf strings */ 19029 tmp_version = g_strdup("$min_gtk_version"); 19030 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 19031 printf("%s, bad version string\n", "$min_gtk_version"); 19032 exit(1); 19033 } 19034 19035 if ((gtk_major_version != $gtk_config_major_version) || 19036 (gtk_minor_version != $gtk_config_minor_version) || 19037 (gtk_micro_version != $gtk_config_micro_version)) 19038 { 19039 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 19040 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 19041 gtk_major_version, gtk_minor_version, gtk_micro_version); 19042 printf ("*** was found! If gtk-config was correct, then it is best\n"); 19043 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 19044 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 19045 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 19046 printf("*** required on your system.\n"); 19047 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 19048 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 19049 printf("*** before re-running configure\n"); 19050 } 19051#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 19052 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 19053 (gtk_minor_version != GTK_MINOR_VERSION) || 19054 (gtk_micro_version != GTK_MICRO_VERSION)) 19055 { 19056 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 19057 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 19058 printf("*** library (version %d.%d.%d)\n", 19059 gtk_major_version, gtk_minor_version, gtk_micro_version); 19060 } 19061#endif /* defined (GTK_MAJOR_VERSION) ... */ 19062 else 19063 { 19064 if ((gtk_major_version > major) || 19065 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 19066 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 19067 { 19068 return 0; 19069 } 19070 else 19071 { 19072 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 19073 gtk_major_version, gtk_minor_version, gtk_micro_version); 19074 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 19075 major, minor, micro); 19076 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 19077 printf("***\n"); 19078 printf("*** If you have already installed a sufficiently new version, this error\n"); 19079 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 19080 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 19081 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 19082 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 19083 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 19084 printf("*** so that the correct libraries are found at run-time))\n"); 19085 } 19086 } 19087 return 1; 19088} 19089 19090_ACEOF 19091rm -f conftest$ac_exeext 19092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19093 (eval $ac_link) 2>&5 19094 ac_status=$? 19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19098 (eval $ac_try) 2>&5 19099 ac_status=$? 19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19101 (exit $ac_status); }; }; then 19102 : 19103else 19104 echo "$as_me: program exited with status $ac_status" >&5 19105echo "$as_me: failed program was:" >&5 19106sed 's/^/| /' conftest.$ac_ext >&5 19107 19108( exit $ac_status ) 19109no_gtk=yes 19110fi 19111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19112fi 19113 CFLAGS="$ac_save_CFLAGS" 19114 LIBS="$ac_save_LIBS" 19115 fi 19116 fi 19117 if test "x$no_gtk" = x ; then 19118 echo "$as_me:$LINENO: result: yes" >&5 19119echo "${ECHO_T}yes" >&6 19120 : 19121 else 19122 echo "$as_me:$LINENO: result: no" >&5 19123echo "${ECHO_T}no" >&6 19124 if test "$GTK_CONFIG" = "no" ; then 19125 echo "*** The gtk-config script installed by GTK could not be found" 19126 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 19127 echo "*** your path, or set the GTK_CONFIG environment variable to the" 19128 echo "*** full path to gtk-config." 19129 else 19130 if test -f conf.gtktest ; then 19131 : 19132 else 19133 echo "*** Could not run GTK test program, checking why..." 19134 CFLAGS="$CFLAGS $GTK_CFLAGS" 19135 LIBS="$LIBS $GTK_LIBS" 19136 cat >conftest.$ac_ext <<_ACEOF 19137/* confdefs.h. */ 19138_ACEOF 19139cat confdefs.h >>conftest.$ac_ext 19140cat >>conftest.$ac_ext <<_ACEOF 19141/* end confdefs.h. */ 19142 19143#include <gtk/gtk.h> 19144#include <stdio.h> 19145 19146int 19147main () 19148{ 19149 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 19150 ; 19151 return 0; 19152} 19153_ACEOF 19154rm -f conftest.$ac_objext conftest$ac_exeext 19155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19156 (eval $ac_link) 2>conftest.er1 19157 ac_status=$? 19158 grep -v '^ *+' conftest.er1 >conftest.err 19159 rm -f conftest.er1 19160 cat conftest.err >&5 19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19162 (exit $ac_status); } && 19163 { ac_try='test -z "$ac_c_werror_flag" 19164 || test ! -s conftest.err' 19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19166 (eval $ac_try) 2>&5 19167 ac_status=$? 19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19169 (exit $ac_status); }; } && 19170 { ac_try='test -s conftest$ac_exeext' 19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19172 (eval $ac_try) 2>&5 19173 ac_status=$? 19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19175 (exit $ac_status); }; }; then 19176 echo "*** The test program compiled, but did not run. This usually means" 19177 echo "*** that the run-time linker is not finding GTK or finding the wrong" 19178 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 19179 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 19180 echo "*** to the installed location Also, make sure you have run ldconfig if that" 19181 echo "*** is required on your system" 19182 echo "***" 19183 echo "*** If you have an old version installed, it is best to remove it, although" 19184 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 19185 echo "***" 19186 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 19187 echo "*** came with the system with the command" 19188 echo "***" 19189 echo "*** rpm --erase --nodeps gtk gtk-devel" 19190else 19191 echo "$as_me: failed program was:" >&5 19192sed 's/^/| /' conftest.$ac_ext >&5 19193 19194 echo "*** The test program failed to compile or link. See the file config.log for the" 19195 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 19196 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 19197 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 19198fi 19199rm -f conftest.err conftest.$ac_objext \ 19200 conftest$ac_exeext conftest.$ac_ext 19201 CFLAGS="$ac_save_CFLAGS" 19202 LIBS="$ac_save_LIBS" 19203 fi 19204 fi 19205 GTK_CFLAGS="" 19206 GTK_LIBS="" 19207 enable_gtk=no 19208 fi 19209 19210 19211 rm -f conf.gtktest 19212 19213 fi 19214 19215 19216 rm -f conf.gtktest 19217 ;; esac 19218fi; 19219case "x$enable_gtk" in 19220xyes) 19221 cat >> confdefs.h <<EOF 19222#define IA_GTK 1 19223EOF 19224 19225 19226 19227if true; then 19228 ENABLE_GTK_TRUE= 19229 ENABLE_GTK_FALSE='#' 19230else 19231 ENABLE_GTK_TRUE='#' 19232 ENABLE_GTK_FALSE= 19233fi 19234 19235 LIBS="$LIBS $GTK_LIBS" 19236 for f in $GTK_CFLAGS; do 19237 case ".$f" in 19238 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 19239 *) CFLAGS="$CFLAGS $f" ;; 19240 esac 19241done 19242 19243 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c" 19244 19245 ;; 19246xdynamic) 19247 dynamic_targets="$dynamic_targets if_gtk.\$(so)" 19248 if test "x$GCC" = xyes; then 19249 for i in $GTK_LIBS; do 19250 case "x$i" in 19251 x-rdynamic) ;; 19252 *) g_so_libs="$g_so_libs $i" ;; 19253 esac 19254 done 19255 else 19256 g_so_libs="$GTK_LIBS" 19257 fi 19258 for f in $GTK_CFLAGS; do 19259 case ".$f" in 19260 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;; 19261 *) CFLAGS="$CFLAGS $f" ;; 19262 esac 19263done 19264 19265 ;; 19266*) 19267 19268 ;; 19269esac 19270 19271 19272 19273 19274 19275if false; then 19276 ENABLE_SERVER_TRUE= 19277 ENABLE_SERVER_FALSE='#' 19278else 19279 ENABLE_SERVER_TRUE='#' 19280 ENABLE_SERVER_FALSE= 19281fi 19282 19283# Check whether --enable-server or --disable-server was given. 19284if test "${enable_server+set}" = set; then 19285 enableval="$enable_server" 19286 case "x$enable_server" in xyes|xdynamic) ;; esac 19287fi; 19288case "x$enable_server" in 19289xyes) 19290 cat >> confdefs.h <<EOF 19291#define IA_SERVER 1 19292EOF 19293 19294 19295 19296if true; then 19297 ENABLE_SERVER_TRUE= 19298 ENABLE_SERVER_FALSE='#' 19299else 19300 ENABLE_SERVER_TRUE='#' 19301 ENABLE_SERVER_FALSE= 19302fi 19303 19304 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c" 19305 19306for ac_header in sys/soundcard.h 19307do 19308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19309if eval "test \"\${$as_ac_Header+set}\" = set"; then 19310 echo "$as_me:$LINENO: checking for $ac_header" >&5 19311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19312if eval "test \"\${$as_ac_Header+set}\" = set"; then 19313 echo $ECHO_N "(cached) $ECHO_C" >&6 19314fi 19315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19317else 19318 # Is the header compilable? 19319echo "$as_me:$LINENO: checking $ac_header usability" >&5 19320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19321cat >conftest.$ac_ext <<_ACEOF 19322/* confdefs.h. */ 19323_ACEOF 19324cat confdefs.h >>conftest.$ac_ext 19325cat >>conftest.$ac_ext <<_ACEOF 19326/* end confdefs.h. */ 19327$ac_includes_default 19328#include <$ac_header> 19329_ACEOF 19330rm -f conftest.$ac_objext 19331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19332 (eval $ac_compile) 2>conftest.er1 19333 ac_status=$? 19334 grep -v '^ *+' conftest.er1 >conftest.err 19335 rm -f conftest.er1 19336 cat conftest.err >&5 19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19338 (exit $ac_status); } && 19339 { ac_try='test -z "$ac_c_werror_flag" 19340 || test ! -s conftest.err' 19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19342 (eval $ac_try) 2>&5 19343 ac_status=$? 19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19345 (exit $ac_status); }; } && 19346 { ac_try='test -s conftest.$ac_objext' 19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19348 (eval $ac_try) 2>&5 19349 ac_status=$? 19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19351 (exit $ac_status); }; }; then 19352 ac_header_compiler=yes 19353else 19354 echo "$as_me: failed program was:" >&5 19355sed 's/^/| /' conftest.$ac_ext >&5 19356 19357ac_header_compiler=no 19358fi 19359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19361echo "${ECHO_T}$ac_header_compiler" >&6 19362 19363# Is the header present? 19364echo "$as_me:$LINENO: checking $ac_header presence" >&5 19365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19366cat >conftest.$ac_ext <<_ACEOF 19367/* confdefs.h. */ 19368_ACEOF 19369cat confdefs.h >>conftest.$ac_ext 19370cat >>conftest.$ac_ext <<_ACEOF 19371/* end confdefs.h. */ 19372#include <$ac_header> 19373_ACEOF 19374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19376 ac_status=$? 19377 grep -v '^ *+' conftest.er1 >conftest.err 19378 rm -f conftest.er1 19379 cat conftest.err >&5 19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19381 (exit $ac_status); } >/dev/null; then 19382 if test -s conftest.err; then 19383 ac_cpp_err=$ac_c_preproc_warn_flag 19384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19385 else 19386 ac_cpp_err= 19387 fi 19388else 19389 ac_cpp_err=yes 19390fi 19391if test -z "$ac_cpp_err"; then 19392 ac_header_preproc=yes 19393else 19394 echo "$as_me: failed program was:" >&5 19395sed 's/^/| /' conftest.$ac_ext >&5 19396 19397 ac_header_preproc=no 19398fi 19399rm -f conftest.err conftest.$ac_ext 19400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19401echo "${ECHO_T}$ac_header_preproc" >&6 19402 19403# So? What about this header? 19404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19405 yes:no: ) 19406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19410 ac_header_preproc=yes 19411 ;; 19412 no:yes:* ) 19413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19425 ( 19426 cat <<\_ASBOX 19427## -------------------------------------------------- ## 19428## Report this to timidity-talk@lists.sourceforge.net ## 19429## -------------------------------------------------- ## 19430_ASBOX 19431 ) | 19432 sed "s/^/$as_me: WARNING: /" >&2 19433 ;; 19434esac 19435echo "$as_me:$LINENO: checking for $ac_header" >&5 19436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19437if eval "test \"\${$as_ac_Header+set}\" = set"; then 19438 echo $ECHO_N "(cached) $ECHO_C" >&6 19439else 19440 eval "$as_ac_Header=\$ac_header_preproc" 19441fi 19442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19444 19445fi 19446if test `eval echo '${'$as_ac_Header'}'` = yes; then 19447 cat >>confdefs.h <<_ACEOF 19448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19449_ACEOF 19450 19451fi 19452 19453done 19454 19455 19456 ;; 19457xdynamic) 19458 dynamic_targets="$dynamic_targets if_server.\$(so)" 19459 19460 ;; 19461*) 19462 19463 ;; 19464esac 19465 19466 19467 19468 19469 19470if false; then 19471 ENABLE_ALSASEQ_TRUE= 19472 ENABLE_ALSASEQ_FALSE='#' 19473else 19474 ENABLE_ALSASEQ_TRUE='#' 19475 ENABLE_ALSASEQ_FALSE= 19476fi 19477 19478# Check whether --enable-alsaseq or --disable-alsaseq was given. 19479if test "${enable_alsaseq+set}" = set; then 19480 enableval="$enable_alsaseq" 19481 case "x$enable_alsaseq" in xyes|xdynamic) INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c" 19482 ;; esac 19483fi; 19484case "x$enable_alsaseq" in 19485xyes) 19486 cat >> confdefs.h <<EOF 19487#define IA_ALSASEQ 1 19488EOF 19489 19490 19491 19492if true; then 19493 ENABLE_ALSASEQ_TRUE= 19494 ENABLE_ALSASEQ_FALSE='#' 19495else 19496 ENABLE_ALSASEQ_TRUE='#' 19497 ENABLE_ALSASEQ_FALSE= 19498fi 19499 19500 alsa_save_CFLAGS="$CFLAGS" 19501alsa_save_LDFLAGS="$LDFLAGS" 19502alsa_save_LIBS="$LIBS" 19503alsa_found=yes 19504 19505 19506# Check whether --with-alsa-prefix or --without-alsa-prefix was given. 19507if test "${with_alsa_prefix+set}" = set; then 19508 withval="$with_alsa_prefix" 19509 alsa_prefix="$withval" 19510else 19511 alsa_prefix="" 19512fi; 19513 19514 19515# Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given. 19516if test "${with_alsa_inc_prefix+set}" = set; then 19517 withval="$with_alsa_inc_prefix" 19518 alsa_inc_prefix="$withval" 19519else 19520 alsa_inc_prefix="" 19521fi; 19522 19523# Check whether --enable-alsatest or --disable-alsatest was given. 19524if test "${enable_alsatest+set}" = set; then 19525 enableval="$enable_alsatest" 19526 enable_alsatest=no 19527else 19528 enable_alsatest=yes 19529fi; 19530 19531echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5 19532echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6 19533if test "$alsa_inc_prefix" != "" ; then 19534 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" 19535 CFLAGS="$CFLAGS -I$alsa_inc_prefix" 19536fi 19537echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 19538echo "${ECHO_T}$ALSA_CFLAGS" >&6 19539 19540echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5 19541echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6 19542if test "$alsa_prefix" != "" ; then 19543 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" 19544 LDFLAGS="$LDFLAGS $ALSA_LIBS" 19545fi 19546 19547ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" 19548LIBS=`echo $LIBS | sed 's/-lm//'` 19549LIBS=`echo $LIBS | sed 's/-ldl//'` 19550LIBS=`echo $LIBS | sed 's/-lpthread//'` 19551LIBS=`echo $LIBS | sed 's/ //'` 19552LIBS="$ALSA_LIBS $LIBS" 19553echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 19554echo "${ECHO_T}$ALSA_LIBS" >&6 19555 19556min_alsa_version=0.1.1 19557echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5 19558echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6 19559no_alsa="" 19560 alsa_min_major_version=`echo $min_alsa_version | \ 19561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 19562 alsa_min_minor_version=`echo $min_alsa_version | \ 19563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 19564 alsa_min_micro_version=`echo $min_alsa_version | \ 19565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 19566 19567 19568 19569 19570ac_ext=c 19571ac_cpp='$CPP $CPPFLAGS' 19572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19574ac_compiler_gnu=$ac_cv_c_compiler_gnu 19575 19576cat >conftest.$ac_ext <<_ACEOF 19577/* confdefs.h. */ 19578_ACEOF 19579cat confdefs.h >>conftest.$ac_ext 19580cat >>conftest.$ac_ext <<_ACEOF 19581/* end confdefs.h. */ 19582 19583#include <alsa/asoundlib.h> 19584 19585int 19586main () 19587{ 19588 19589/* ensure backward compatibility */ 19590#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 19591#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 19592#endif 19593#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 19594#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 19595#endif 19596#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 19597#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 19598#endif 19599 19600# if(SND_LIB_MAJOR > $alsa_min_major_version) 19601 exit(0); 19602# else 19603# if(SND_LIB_MAJOR < $alsa_min_major_version) 19604# error not present 19605# endif 19606 19607# if(SND_LIB_MINOR > $alsa_min_minor_version) 19608 exit(0); 19609# else 19610# if(SND_LIB_MINOR < $alsa_min_minor_version) 19611# error not present 19612# endif 19613 19614# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 19615# error not present 19616# endif 19617# endif 19618# endif 19619exit(0); 19620 19621 ; 19622 return 0; 19623} 19624_ACEOF 19625rm -f conftest.$ac_objext 19626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19627 (eval $ac_compile) 2>conftest.er1 19628 ac_status=$? 19629 grep -v '^ *+' conftest.er1 >conftest.err 19630 rm -f conftest.er1 19631 cat conftest.err >&5 19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19633 (exit $ac_status); } && 19634 { ac_try='test -z "$ac_c_werror_flag" 19635 || test ! -s conftest.err' 19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19637 (eval $ac_try) 2>&5 19638 ac_status=$? 19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19640 (exit $ac_status); }; } && 19641 { ac_try='test -s conftest.$ac_objext' 19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19643 (eval $ac_try) 2>&5 19644 ac_status=$? 19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19646 (exit $ac_status); }; }; then 19647 echo "$as_me:$LINENO: result: found." >&5 19648echo "${ECHO_T}found." >&6 19649else 19650 echo "$as_me: failed program was:" >&5 19651sed 's/^/| /' conftest.$ac_ext >&5 19652 19653cat >conftest.$ac_ext <<_ACEOF 19654/* confdefs.h. */ 19655_ACEOF 19656cat confdefs.h >>conftest.$ac_ext 19657cat >>conftest.$ac_ext <<_ACEOF 19658/* end confdefs.h. */ 19659 19660#include <sys/asoundlib.h> 19661 19662int 19663main () 19664{ 19665 19666/* ensure backward compatibility */ 19667#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 19668#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 19669#endif 19670#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 19671#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 19672#endif 19673#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 19674#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 19675#endif 19676 19677# if(SND_LIB_MAJOR > $alsa_min_major_version) 19678 exit(0); 19679# else 19680# if(SND_LIB_MAJOR < $alsa_min_major_version) 19681# error not present 19682# endif 19683 19684# if(SND_LIB_MINOR > $alsa_min_minor_version) 19685 exit(0); 19686# else 19687# if(SND_LIB_MINOR < $alsa_min_minor_version) 19688# error not present 19689# endif 19690 19691# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 19692# error not present 19693# endif 19694# endif 19695# endif 19696exit(0); 19697 19698 ; 19699 return 0; 19700} 19701_ACEOF 19702rm -f conftest.$ac_objext 19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19704 (eval $ac_compile) 2>conftest.er1 19705 ac_status=$? 19706 grep -v '^ *+' conftest.er1 >conftest.err 19707 rm -f conftest.er1 19708 cat conftest.err >&5 19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19710 (exit $ac_status); } && 19711 { ac_try='test -z "$ac_c_werror_flag" 19712 || test ! -s conftest.err' 19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19714 (eval $ac_try) 2>&5 19715 ac_status=$? 19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19717 (exit $ac_status); }; } && 19718 { ac_try='test -s conftest.$ac_objext' 19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19720 (eval $ac_try) 2>&5 19721 ac_status=$? 19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19723 (exit $ac_status); }; }; then 19724 echo "$as_me:$LINENO: result: found." >&5 19725echo "${ECHO_T}found." >&6 19726else 19727 echo "$as_me: failed program was:" >&5 19728sed 's/^/| /' conftest.$ac_ext >&5 19729 19730echo "$as_me:$LINENO: result: not present." >&5 19731echo "${ECHO_T}not present." >&6 19732 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5 19733echo "${ECHO_T}libasound was not found anywhere." >&6 19734 alsa_found=no 19735fi 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19737 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5 19738echo "${ECHO_T}Sufficiently new version of libasound not found." >&6 19739 19740fi 19741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19742ac_ext=c 19743ac_cpp='$CPP $CPPFLAGS' 19744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19746ac_compiler_gnu=$ac_cv_c_compiler_gnu 19747 19748 19749 19750echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5 19751echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6 19752if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then 19753 echo $ECHO_N "(cached) $ECHO_C" >&6 19754else 19755 ac_check_lib_save_LIBS=$LIBS 19756LIBS="-lasound $LIBS" 19757cat >conftest.$ac_ext <<_ACEOF 19758/* confdefs.h. */ 19759_ACEOF 19760cat confdefs.h >>conftest.$ac_ext 19761cat >>conftest.$ac_ext <<_ACEOF 19762/* end confdefs.h. */ 19763 19764/* Override any gcc2 internal prototype to avoid an error. */ 19765#ifdef __cplusplus 19766extern "C" 19767#endif 19768/* We use char because int might match the return type of a gcc2 19769 builtin and then its argument prototype would still apply. */ 19770char snd_ctl_open (); 19771int 19772main () 19773{ 19774snd_ctl_open (); 19775 ; 19776 return 0; 19777} 19778_ACEOF 19779rm -f conftest.$ac_objext conftest$ac_exeext 19780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19781 (eval $ac_link) 2>conftest.er1 19782 ac_status=$? 19783 grep -v '^ *+' conftest.er1 >conftest.err 19784 rm -f conftest.er1 19785 cat conftest.err >&5 19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19787 (exit $ac_status); } && 19788 { ac_try='test -z "$ac_c_werror_flag" 19789 || test ! -s conftest.err' 19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19791 (eval $ac_try) 2>&5 19792 ac_status=$? 19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19794 (exit $ac_status); }; } && 19795 { ac_try='test -s conftest$ac_exeext' 19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19797 (eval $ac_try) 2>&5 19798 ac_status=$? 19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19800 (exit $ac_status); }; }; then 19801 ac_cv_lib_asound_snd_ctl_open=yes 19802else 19803 echo "$as_me: failed program was:" >&5 19804sed 's/^/| /' conftest.$ac_ext >&5 19805 19806ac_cv_lib_asound_snd_ctl_open=no 19807fi 19808rm -f conftest.err conftest.$ac_objext \ 19809 conftest$ac_exeext conftest.$ac_ext 19810LIBS=$ac_check_lib_save_LIBS 19811fi 19812echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5 19813echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6 19814if test $ac_cv_lib_asound_snd_ctl_open = yes; then 19815 cat >>confdefs.h <<_ACEOF 19816#define HAVE_LIBASOUND 1 19817_ACEOF 19818 19819 LIBS="-lasound $LIBS" 19820 19821else 19822 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5 19823echo "${ECHO_T}No linkable libasound was found." >&6 19824 alsa_found=no 19825 19826fi 19827 19828 19829if test "x$alsa_found" = "xyes" ; then 19830 : 19831 LIBS=`echo $LIBS | sed 's/-lasound//g'` 19832 LIBS=`echo $LIBS | sed 's/ //'` 19833 LIBS="-lasound $LIBS" 19834else 19835 : 19836 CFLAGS="$alsa_save_CFLAGS" 19837 LDFLAGS="$alsa_save_LDFLAGS" 19838 LIBS="$alsa_save_LIBS" 19839 ALSA_CFLAGS="" 19840 ALSA_LIBS="" 19841fi 19842 19843 19844 19845 19846 19847 ;; 19848xdynamic) 19849 dynamic_targets="$dynamic_targets if_alsaseq.\$(so)" 19850 cat >> confdefs.h <<EOF 19851#define IA_ALSASEQ 1 19852EOF 19853 19854 19855 ;; 19856*) 19857 19858 ;; 19859esac 19860 19861 19862 19863 19864 19865if false; then 19866 ENABLE_WINSYN_TRUE= 19867 ENABLE_WINSYN_FALSE='#' 19868else 19869 ENABLE_WINSYN_TRUE='#' 19870 ENABLE_WINSYN_FALSE= 19871fi 19872 19873# Check whether --enable-winsyn or --disable-winsyn was given. 19874if test "${enable_winsyn+set}" = set; then 19875 enableval="$enable_winsyn" 19876 case "x$enable_winsyn" in xyes|xdynamic) ;; esac 19877fi; 19878case "x$enable_winsyn" in 19879xyes) 19880 cat >> confdefs.h <<EOF 19881#define IA_WINSYN 1 19882EOF 19883 19884 19885 19886if true; then 19887 ENABLE_WINSYN_TRUE= 19888 ENABLE_WINSYN_FALSE='#' 19889else 19890 ENABLE_WINSYN_TRUE='#' 19891 ENABLE_WINSYN_FALSE= 19892fi 19893 19894 WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c" 19895 ;; 19896xdynamic) 19897 dynamic_targets="$dynamic_targets if_winsyn.\$(so)" 19898 19899 ;; 19900*) 19901 19902 ;; 19903esac 19904 19905 19906 19907 19908 19909if false; then 19910 ENABLE_PORTMIDISYN_TRUE= 19911 ENABLE_PORTMIDISYN_FALSE='#' 19912else 19913 ENABLE_PORTMIDISYN_TRUE='#' 19914 ENABLE_PORTMIDISYN_FALSE= 19915fi 19916 19917# Check whether --enable-portmidisyn or --disable-portmidisyn was given. 19918if test "${enable_portmidisyn+set}" = set; then 19919 enableval="$enable_portmidisyn" 19920 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac 19921fi; 19922case "x$enable_portmidisyn" in 19923xyes) 19924 cat >> confdefs.h <<EOF 19925#define IA_PORTMIDISYN 1 19926EOF 19927 19928 19929 19930if true; then 19931 ENABLE_PORTMIDISYN_TRUE= 19932 ENABLE_PORTMIDISYN_FALSE='#' 19933else 19934 ENABLE_PORTMIDISYN_TRUE='#' 19935 ENABLE_PORTMIDISYN_FALSE= 19936fi 19937 19938 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c" 19939 ;; 19940xdynamic) 19941 dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)" 19942 19943 ;; 19944*) 19945 19946 ;; 19947esac 19948 19949 19950 19951 19952 19953if false; then 19954 ENABLE_NPSYN_TRUE= 19955 ENABLE_NPSYN_FALSE='#' 19956else 19957 ENABLE_NPSYN_TRUE='#' 19958 ENABLE_NPSYN_FALSE= 19959fi 19960 19961# Check whether --enable-npsyn or --disable-npsyn was given. 19962if test "${enable_npsyn+set}" = set; then 19963 enableval="$enable_npsyn" 19964 case "x$enable_npsyn" in xyes|xdynamic) ;; esac 19965fi; 19966case "x$enable_npsyn" in 19967xyes) 19968 cat >> confdefs.h <<EOF 19969#define IA_NPSYN 1 19970EOF 19971 19972 19973 19974if true; then 19975 ENABLE_NPSYN_TRUE= 19976 ENABLE_NPSYN_FALSE='#' 19977else 19978 ENABLE_NPSYN_TRUE='#' 19979 ENABLE_NPSYN_FALSE= 19980fi 19981 19982 NPSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS npsyn_c.c rtsyn_common.c rtsyn_npipe.c" 19983 ;; 19984xdynamic) 19985 dynamic_targets="$dynamic_targets if_npsyn.\$(so)" 19986 19987 ;; 19988*) 19989 19990 ;; 19991esac 19992 19993 19994 19995 19996 19997 19998 19999if false; then 20000 ENABLE_W32G_SYN_TRUE= 20001 ENABLE_W32G_SYN_FALSE='#' 20002else 20003 ENABLE_W32G_SYN_TRUE='#' 20004 ENABLE_W32G_SYN_FALSE= 20005fi 20006 20007# Check whether --enable-winsyng or --disable-winsyng was given. 20008if test "${enable_winsyng+set}" = set; then 20009 enableval="$enable_winsyng" 20010 case "x$enable_winsyng" in xyes|xdynamic) ;; esac 20011fi; 20012case "x$enable_winsyng" in 20013xyes) 20014 cat >> confdefs.h <<EOF 20015#define IA_W32G_SYN 1 20016EOF 20017 20018 20019 20020if true; then 20021 ENABLE_W32G_SYN_TRUE= 20022 ENABLE_W32G_SYN_FALSE='#' 20023else 20024 ENABLE_W32G_SYN_TRUE='#' 20025 ENABLE_W32G_SYN_FALSE= 20026fi 20027 20028 20029 W32G_GUI=yes 20030 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then 20031 INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c" 20032 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib' 20033 lib_user32_opt='user32.lib' 20034 if test "x$VCPP" = xyes; then 20035 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows " 20036 fi 20037 if test "x$BORLANDC" = xyes; then 20038 BORLANDC_START='C0W32.OBJ' 20039 CFLAGS="$CFLAGS -tW" 20040 lib_w32gui_opt="-aa $lib_w32gui_opt" 20041 fi 20042 if test "x$WATCOM_C" = xyes; then 20043 CFLAGS="$CFLAGS -bw" 20044 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win" 20045 fi 20046 if test "x$DMC" = xyes; then 20047 DLLFLAG="-WA" 20048 lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0" 20049 fi 20050 if test "x$POCC" = xyes; then 20051 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows " 20052 fi 20053 else 20054 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32' 20055 lib_user32_opt='-luser32' 20056 LDFLAGS="-mwindows $LDFLAGS" 20057 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" 20058 fi 20059 20060 ;; 20061xdynamic) 20062 dynamic_targets="$dynamic_targets if_winsyng.\$(so)" 20063 20064 ;; 20065*) 20066 20067 ;; 20068esac 20069 20070 20071 20072 20073 20074 20075if false; then 20076 ENABLE_W32GUI_TRUE= 20077 ENABLE_W32GUI_FALSE='#' 20078else 20079 ENABLE_W32GUI_TRUE='#' 20080 ENABLE_W32GUI_FALSE= 20081fi 20082 20083# Check whether --enable-w32gui or --disable-w32gui was given. 20084if test "${enable_w32gui+set}" = set; then 20085 enableval="$enable_w32gui" 20086 case "x$enable_w32gui" in xyes|xdynamic) ;; esac 20087fi; 20088case "x$enable_w32gui" in 20089xyes) 20090 cat >> confdefs.h <<EOF 20091#define IA_W32GUI 1 20092EOF 20093 20094 20095 20096if true; then 20097 ENABLE_W32GUI_TRUE= 20098 ENABLE_W32GUI_FALSE='#' 20099else 20100 ENABLE_W32GUI_TRUE='#' 20101 ENABLE_W32GUI_FALSE= 20102fi 20103 20104 20105 W32G_GUI=yes 20106 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then 20107 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c wrdt_w32g.c w32g_mag.c" 20108 lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib' 20109 lib_user32_opt='user32.lib' 20110 if test "x$VCPP" = xyes; then 20111 VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows " 20112 fi 20113 if test "x$BORLANDC" = xyes; then 20114 BORLANDC_START='C0W32.OBJ' 20115 CFLAGS="$CFLAGS -tW" 20116 lib_w32gui_opt="-aa $lib_w32gui_opt" 20117 fi 20118 if test "x$WATCOM_C" = xyes; then 20119 CFLAGS="$CFLAGS -bw" 20120 WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win" 20121 fi 20122 if test "x$DMC" = xyes; then 20123 lib_w32gui_opt="$lib_w32gui_opt -L/SU:window" 20124 DLLFLAG="-WA" 20125 fi 20126 if test "x$POCC" = xyes; then 20127 POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows " 20128 fi 20129 else 20130 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32' 20131 lib_user32_opt='-luser32' 20132 LDFLAGS="-mwindows $LDFLAGS" 20133 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" 20134 fi 20135 20136 ;; 20137xdynamic) 20138 dynamic_targets="$dynamic_targets if_w32gui.\$(so)" 20139 20140 ;; 20141*) 20142 20143 ;; 20144esac 20145 20146 20147 20148 20149 20150if false; then 20151 ENABLE_PLUGIN_TRUE= 20152 ENABLE_PLUGIN_FALSE='#' 20153else 20154 ENABLE_PLUGIN_TRUE='#' 20155 ENABLE_PLUGIN_FALSE= 20156fi 20157 20158# Check whether --enable-ump or --disable-ump was given. 20159if test "${enable_ump+set}" = set; then 20160 enableval="$enable_ump" 20161 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then 20162 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5 20163echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;} 20164 { (exit 1); exit 1; }; } 20165 fi 20166 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 20167 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 20168echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 20169if test "${ac_cv_header_X11_xpm_h+set}" = set; then 20170 echo $ECHO_N "(cached) $ECHO_C" >&6 20171fi 20172echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 20173echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 20174else 20175 # Is the header compilable? 20176echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 20177echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 20178cat >conftest.$ac_ext <<_ACEOF 20179/* confdefs.h. */ 20180_ACEOF 20181cat confdefs.h >>conftest.$ac_ext 20182cat >>conftest.$ac_ext <<_ACEOF 20183/* end confdefs.h. */ 20184$ac_includes_default 20185#include <X11/xpm.h> 20186_ACEOF 20187rm -f conftest.$ac_objext 20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20189 (eval $ac_compile) 2>conftest.er1 20190 ac_status=$? 20191 grep -v '^ *+' conftest.er1 >conftest.err 20192 rm -f conftest.er1 20193 cat conftest.err >&5 20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20195 (exit $ac_status); } && 20196 { ac_try='test -z "$ac_c_werror_flag" 20197 || test ! -s conftest.err' 20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20199 (eval $ac_try) 2>&5 20200 ac_status=$? 20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20202 (exit $ac_status); }; } && 20203 { ac_try='test -s conftest.$ac_objext' 20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20205 (eval $ac_try) 2>&5 20206 ac_status=$? 20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20208 (exit $ac_status); }; }; then 20209 ac_header_compiler=yes 20210else 20211 echo "$as_me: failed program was:" >&5 20212sed 's/^/| /' conftest.$ac_ext >&5 20213 20214ac_header_compiler=no 20215fi 20216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20218echo "${ECHO_T}$ac_header_compiler" >&6 20219 20220# Is the header present? 20221echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 20222echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 20223cat >conftest.$ac_ext <<_ACEOF 20224/* confdefs.h. */ 20225_ACEOF 20226cat confdefs.h >>conftest.$ac_ext 20227cat >>conftest.$ac_ext <<_ACEOF 20228/* end confdefs.h. */ 20229#include <X11/xpm.h> 20230_ACEOF 20231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20233 ac_status=$? 20234 grep -v '^ *+' conftest.er1 >conftest.err 20235 rm -f conftest.er1 20236 cat conftest.err >&5 20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20238 (exit $ac_status); } >/dev/null; then 20239 if test -s conftest.err; then 20240 ac_cpp_err=$ac_c_preproc_warn_flag 20241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20242 else 20243 ac_cpp_err= 20244 fi 20245else 20246 ac_cpp_err=yes 20247fi 20248if test -z "$ac_cpp_err"; then 20249 ac_header_preproc=yes 20250else 20251 echo "$as_me: failed program was:" >&5 20252sed 's/^/| /' conftest.$ac_ext >&5 20253 20254 ac_header_preproc=no 20255fi 20256rm -f conftest.err conftest.$ac_ext 20257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20258echo "${ECHO_T}$ac_header_preproc" >&6 20259 20260# So? What about this header? 20261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20262 yes:no: ) 20263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 20264echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 20266echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} 20267 ac_header_preproc=yes 20268 ;; 20269 no:yes:* ) 20270 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 20271echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} 20272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 20273echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} 20274 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 20275echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} 20276 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 20277echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} 20278 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 20279echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} 20280 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 20281echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} 20282 ( 20283 cat <<\_ASBOX 20284## -------------------------------------------------- ## 20285## Report this to timidity-talk@lists.sourceforge.net ## 20286## -------------------------------------------------- ## 20287_ASBOX 20288 ) | 20289 sed "s/^/$as_me: WARNING: /" >&2 20290 ;; 20291esac 20292echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 20293echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 20294if test "${ac_cv_header_X11_xpm_h+set}" = set; then 20295 echo $ECHO_N "(cached) $ECHO_C" >&6 20296else 20297 ac_cv_header_X11_xpm_h=$ac_header_preproc 20298fi 20299echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 20300echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 20301 20302fi 20303if test $ac_cv_header_X11_xpm_h = yes; then 20304 : 20305else 20306 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5 20307echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;} 20308 { (exit 1); exit 1; }; } 20309fi 20310 20311 20312 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 20313echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 20314if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 20315 echo $ECHO_N "(cached) $ECHO_C" >&6 20316else 20317 ac_check_lib_save_LIBS=$LIBS 20318LIBS="-lXpm $LIBS" 20319cat >conftest.$ac_ext <<_ACEOF 20320/* confdefs.h. */ 20321_ACEOF 20322cat confdefs.h >>conftest.$ac_ext 20323cat >>conftest.$ac_ext <<_ACEOF 20324/* end confdefs.h. */ 20325 20326/* Override any gcc2 internal prototype to avoid an error. */ 20327#ifdef __cplusplus 20328extern "C" 20329#endif 20330/* We use char because int might match the return type of a gcc2 20331 builtin and then its argument prototype would still apply. */ 20332char XpmCreatePixmapFromData (); 20333int 20334main () 20335{ 20336XpmCreatePixmapFromData (); 20337 ; 20338 return 0; 20339} 20340_ACEOF 20341rm -f conftest.$ac_objext conftest$ac_exeext 20342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20343 (eval $ac_link) 2>conftest.er1 20344 ac_status=$? 20345 grep -v '^ *+' conftest.er1 >conftest.err 20346 rm -f conftest.er1 20347 cat conftest.err >&5 20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20349 (exit $ac_status); } && 20350 { ac_try='test -z "$ac_c_werror_flag" 20351 || test ! -s conftest.err' 20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20353 (eval $ac_try) 2>&5 20354 ac_status=$? 20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20356 (exit $ac_status); }; } && 20357 { ac_try='test -s conftest$ac_exeext' 20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20359 (eval $ac_try) 2>&5 20360 ac_status=$? 20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20362 (exit $ac_status); }; }; then 20363 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 20364else 20365 echo "$as_me: failed program was:" >&5 20366sed 's/^/| /' conftest.$ac_ext >&5 20367 20368ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 20369fi 20370rm -f conftest.err conftest.$ac_objext \ 20371 conftest$ac_exeext conftest.$ac_ext 20372LIBS=$ac_check_lib_save_LIBS 20373fi 20374echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 20375echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 20376if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 20377 : 20378else 20379 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5 20380echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;} 20381 { (exit 1); exit 1; }; } 20382fi 20383 20384 if test "x$have_xext" = xyes; then 20385 lib_xext_opt=-lXext 20386 fi 20387 if test "x$have_xprelibs" = xyes; then 20388 lib_xprelibs_opt='-lSM -lICE' 20389 fi 20390 lib_xmu_opt=-lXmu 20391 lib_xt_opt=-lXt 20392 ;; esac 20393fi; 20394case "x$enable_ump" in 20395xyes) 20396 cat >> confdefs.h <<EOF 20397#define IA_PLUGIN 1 20398EOF 20399 20400 20401 20402if true; then 20403 ENABLE_PLUGIN_TRUE= 20404 ENABLE_PLUGIN_FALSE='#' 20405else 20406 ENABLE_PLUGIN_TRUE='#' 20407 ENABLE_PLUGIN_FALSE= 20408fi 20409 20410 20411 ;; 20412xdynamic) 20413 dynamic_targets="$dynamic_targets if_ump.\$(so)" 20414 20415 ;; 20416*) 20417 20418 ;; 20419esac 20420 20421 20422 20423# Check whether --enable-windrv or --disable-windrv was given. 20424if test "${enable_windrv+set}" = set; then 20425 enableval="$enable_windrv" 20426 if test "$enableval" = "yes"; then 20427 if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes" && test "x$POCC" != "xyes"; then 20428 { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&5 20429echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&2;} 20430 { (exit 1); exit 1; }; } 20431 elif test "x$WINSYN" != "xyes"; then 20432 { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5 20433echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;} 20434 { (exit 1); exit 1; }; } 20435 else 20436 20437cat >>confdefs.h <<\_ACEOF 20438#define WINDRV 1 20439_ACEOF 20440 20441 WINDRV=yes 20442 if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi 20443 if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi 20444 CFLAGS="$CFLAGS -DANOTHER_MAIN " 20445 fi 20446 fi 20447fi; 20448CFLAGS="$CFLAGS $DLLFLAG " 20449 20450# Check whether --enable-offix or --disable-offix was given. 20451if test "${enable_offix+set}" = set; then 20452 enableval="$enable_offix" 20453 if test "$enableval" = "yes"; then 20454 KEEPCPPFLAGS=$CPPFLAGS 20455 KEEPLIBS=$LIBS 20456 KEEPLDFLAGS=$LDFLAGS 20457 CPPFLAGS="$CPPFLAGS $offix_include_dir" 20458 LDFLAGS="$LDFLAGS $offix_lib_dir" 20459 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11" 20460 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5 20461echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6 20462if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then 20463 echo $ECHO_N "(cached) $ECHO_C" >&6 20464else 20465 ac_check_lib_save_LIBS=$LIBS 20466LIBS="-lDnd $LIBS" 20467cat >conftest.$ac_ext <<_ACEOF 20468/* confdefs.h. */ 20469_ACEOF 20470cat confdefs.h >>conftest.$ac_ext 20471cat >>conftest.$ac_ext <<_ACEOF 20472/* end confdefs.h. */ 20473 20474/* Override any gcc2 internal prototype to avoid an error. */ 20475#ifdef __cplusplus 20476extern "C" 20477#endif 20478/* We use char because int might match the return type of a gcc2 20479 builtin and then its argument prototype would still apply. */ 20480char DndInitialize (); 20481int 20482main () 20483{ 20484DndInitialize (); 20485 ; 20486 return 0; 20487} 20488_ACEOF 20489rm -f conftest.$ac_objext conftest$ac_exeext 20490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20491 (eval $ac_link) 2>conftest.er1 20492 ac_status=$? 20493 grep -v '^ *+' conftest.er1 >conftest.err 20494 rm -f conftest.er1 20495 cat conftest.err >&5 20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20497 (exit $ac_status); } && 20498 { ac_try='test -z "$ac_c_werror_flag" 20499 || test ! -s conftest.err' 20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20501 (eval $ac_try) 2>&5 20502 ac_status=$? 20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20504 (exit $ac_status); }; } && 20505 { ac_try='test -s conftest$ac_exeext' 20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20507 (eval $ac_try) 2>&5 20508 ac_status=$? 20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20510 (exit $ac_status); }; }; then 20511 ac_cv_lib_Dnd_DndInitialize=yes 20512else 20513 echo "$as_me: failed program was:" >&5 20514sed 's/^/| /' conftest.$ac_ext >&5 20515 20516ac_cv_lib_Dnd_DndInitialize=no 20517fi 20518rm -f conftest.err conftest.$ac_objext \ 20519 conftest$ac_exeext conftest.$ac_ext 20520LIBS=$ac_check_lib_save_LIBS 20521fi 20522echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5 20523echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6 20524if test $ac_cv_lib_Dnd_DndInitialize = yes; then 20525 20526 LIBS=$KEEPLIBS 20527 lib_offix_opt="-lDnd" 20528 20529cat >>confdefs.h <<\_ACEOF 20530#define OFFIX 1 20531_ACEOF 20532 20533 20534else 20535 LDFLAGS=$KEEPLDFLAGS 20536 CPPFLAGS=$KEEPCPPFLAGS 20537 LIBS=$KEEPLIBS 20538 20539fi 20540 20541 fi 20542 20543fi; 20544 20545# Check whether --enable-network or --disable-network was given. 20546if test "${enable_network+set}" = set; then 20547 enableval="$enable_network" 20548 if test "$enableval" = "yes"; then 20549 20550cat >>confdefs.h <<\_ACEOF 20551#define SUPPORT_SOCKET 1 20552_ACEOF 20553 20554 fi 20555fi; 20556 20557 20558if test "x$enable_network" = "xyes"; then 20559 ENABLE_NETWORK_TRUE= 20560 ENABLE_NETWORK_FALSE='#' 20561else 20562 ENABLE_NETWORK_TRUE='#' 20563 ENABLE_NETWORK_FALSE= 20564fi 20565 20566 20567# Check whether --enable-spectrogram or --disable-spectrogram was given. 20568if test "${enable_spectrogram+set}" = set; then 20569 enableval="$enable_spectrogram" 20570 if test "$enableval" = "yes"; then 20571 if test "x$with_x" != xyes; then 20572 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5 20573echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;} 20574 { (exit 1); exit 1; }; } 20575 fi 20576 20577cat >>confdefs.h <<\_ACEOF 20578#define SUPPORT_SOUNDSPEC 1 20579_ACEOF 20580 20581 fi 20582fi; 20583 20584 20585if test "x$enable_spectrogram" = "xyes"; then 20586 ENABLE_SOUND_SPEC_TRUE= 20587 ENABLE_SOUND_SPEC_FALSE='#' 20588else 20589 ENABLE_SOUND_SPEC_TRUE='#' 20590 ENABLE_SOUND_SPEC_FALSE= 20591fi 20592 20593 20594# Check whether --enable-spline or --disable-spline was given. 20595if test "${enable_spline+set}" = set; then 20596 enableval="$enable_spline" 20597 case "x$enableval" in 20598 xlinear) 20599 20600cat >>confdefs.h <<\_ACEOF 20601#define DEFAULT_RESAMPLATION resample_linear 20602_ACEOF 20603 20604 ;; 20605 xcubic) 20606 20607cat >>confdefs.h <<\_ACEOF 20608#define DEFAULT_RESAMPLATION resample_cspline 20609_ACEOF 20610 20611 ;; 20612 xlagrange) 20613 20614cat >>confdefs.h <<\_ACEOF 20615#define DEFAULT_RESAMPLATION resample_lagrange 20616_ACEOF 20617 20618 ;; 20619 xnewton) 20620 20621cat >>confdefs.h <<\_ACEOF 20622#define DEFAULT_RESAMPLATION resample_newton 20623_ACEOF 20624 20625 ;; 20626 xgauss) 20627 20628cat >>confdefs.h <<\_ACEOF 20629#define DEFAULT_RESAMPLATION resample_gauss 20630_ACEOF 20631 20632 ;; 20633 xno) 20634 20635cat >>confdefs.h <<\_ACEOF 20636#define DEFAULT_RESAMPLATION resample_none 20637_ACEOF 20638 20639 ;; 20640 *) 20641 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5 20642echo "$as_me: error: Invalid method of --enable-spline" >&2;} 20643 { (exit 1); exit 1; }; } 20644 ;; 20645 esac 20646fi; 20647 20648# Check whether --enable-wrd or --disable-wrd was given. 20649if test "${enable_wrd+set}" = set; then 20650 enableval="$enable_wrd" 20651 if test "$enableval" = "yes"; then 20652 if test "x$with_x" = xyes; then 20653 LIBS="-lX11 $LIBS" 20654 else 20655 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5 20656echo "$as_me: error: wrd: --with-x option must be specified" >&2;} 20657 { (exit 1); exit 1; }; } 20658 fi 20659 20660cat >>confdefs.h <<\_ACEOF 20661#define WRDT_X 1 20662_ACEOF 20663 20664 enable_sherry_wrd=yes 20665 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 20666echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6 20667if test "${ac_cv_lib_z_zlibVersion+set}" = set; then 20668 echo $ECHO_N "(cached) $ECHO_C" >&6 20669else 20670 ac_check_lib_save_LIBS=$LIBS 20671LIBS="-lz $LIBS" 20672cat >conftest.$ac_ext <<_ACEOF 20673/* confdefs.h. */ 20674_ACEOF 20675cat confdefs.h >>conftest.$ac_ext 20676cat >>conftest.$ac_ext <<_ACEOF 20677/* end confdefs.h. */ 20678 20679/* Override any gcc2 internal prototype to avoid an error. */ 20680#ifdef __cplusplus 20681extern "C" 20682#endif 20683/* We use char because int might match the return type of a gcc2 20684 builtin and then its argument prototype would still apply. */ 20685char zlibVersion (); 20686int 20687main () 20688{ 20689zlibVersion (); 20690 ; 20691 return 0; 20692} 20693_ACEOF 20694rm -f conftest.$ac_objext conftest$ac_exeext 20695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20696 (eval $ac_link) 2>conftest.er1 20697 ac_status=$? 20698 grep -v '^ *+' conftest.er1 >conftest.err 20699 rm -f conftest.er1 20700 cat conftest.err >&5 20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20702 (exit $ac_status); } && 20703 { ac_try='test -z "$ac_c_werror_flag" 20704 || test ! -s conftest.err' 20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20706 (eval $ac_try) 2>&5 20707 ac_status=$? 20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20709 (exit $ac_status); }; } && 20710 { ac_try='test -s conftest$ac_exeext' 20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20712 (eval $ac_try) 2>&5 20713 ac_status=$? 20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20715 (exit $ac_status); }; }; then 20716 ac_cv_lib_z_zlibVersion=yes 20717else 20718 echo "$as_me: failed program was:" >&5 20719sed 's/^/| /' conftest.$ac_ext >&5 20720 20721ac_cv_lib_z_zlibVersion=no 20722fi 20723rm -f conftest.err conftest.$ac_objext \ 20724 conftest$ac_exeext conftest.$ac_ext 20725LIBS=$ac_check_lib_save_LIBS 20726fi 20727echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 20728echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6 20729if test $ac_cv_lib_z_zlibVersion = yes; then 20730 : 20731else 20732 enable_sherry_wrd=no 20733fi 20734 20735 if test "${ac_cv_header_png_h+set}" = set; then 20736 echo "$as_me:$LINENO: checking for png.h" >&5 20737echo $ECHO_N "checking for png.h... $ECHO_C" >&6 20738if test "${ac_cv_header_png_h+set}" = set; then 20739 echo $ECHO_N "(cached) $ECHO_C" >&6 20740fi 20741echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 20742echo "${ECHO_T}$ac_cv_header_png_h" >&6 20743else 20744 # Is the header compilable? 20745echo "$as_me:$LINENO: checking png.h usability" >&5 20746echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 20747cat >conftest.$ac_ext <<_ACEOF 20748/* confdefs.h. */ 20749_ACEOF 20750cat confdefs.h >>conftest.$ac_ext 20751cat >>conftest.$ac_ext <<_ACEOF 20752/* end confdefs.h. */ 20753$ac_includes_default 20754#include <png.h> 20755_ACEOF 20756rm -f conftest.$ac_objext 20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20758 (eval $ac_compile) 2>conftest.er1 20759 ac_status=$? 20760 grep -v '^ *+' conftest.er1 >conftest.err 20761 rm -f conftest.er1 20762 cat conftest.err >&5 20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20764 (exit $ac_status); } && 20765 { ac_try='test -z "$ac_c_werror_flag" 20766 || test ! -s conftest.err' 20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20768 (eval $ac_try) 2>&5 20769 ac_status=$? 20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20771 (exit $ac_status); }; } && 20772 { ac_try='test -s conftest.$ac_objext' 20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20774 (eval $ac_try) 2>&5 20775 ac_status=$? 20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20777 (exit $ac_status); }; }; then 20778 ac_header_compiler=yes 20779else 20780 echo "$as_me: failed program was:" >&5 20781sed 's/^/| /' conftest.$ac_ext >&5 20782 20783ac_header_compiler=no 20784fi 20785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20787echo "${ECHO_T}$ac_header_compiler" >&6 20788 20789# Is the header present? 20790echo "$as_me:$LINENO: checking png.h presence" >&5 20791echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 20792cat >conftest.$ac_ext <<_ACEOF 20793/* confdefs.h. */ 20794_ACEOF 20795cat confdefs.h >>conftest.$ac_ext 20796cat >>conftest.$ac_ext <<_ACEOF 20797/* end confdefs.h. */ 20798#include <png.h> 20799_ACEOF 20800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20802 ac_status=$? 20803 grep -v '^ *+' conftest.er1 >conftest.err 20804 rm -f conftest.er1 20805 cat conftest.err >&5 20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20807 (exit $ac_status); } >/dev/null; then 20808 if test -s conftest.err; then 20809 ac_cpp_err=$ac_c_preproc_warn_flag 20810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20811 else 20812 ac_cpp_err= 20813 fi 20814else 20815 ac_cpp_err=yes 20816fi 20817if test -z "$ac_cpp_err"; then 20818 ac_header_preproc=yes 20819else 20820 echo "$as_me: failed program was:" >&5 20821sed 's/^/| /' conftest.$ac_ext >&5 20822 20823 ac_header_preproc=no 20824fi 20825rm -f conftest.err conftest.$ac_ext 20826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20827echo "${ECHO_T}$ac_header_preproc" >&6 20828 20829# So? What about this header? 20830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20831 yes:no: ) 20832 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 20833echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20834 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 20835echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} 20836 ac_header_preproc=yes 20837 ;; 20838 no:yes:* ) 20839 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 20840echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} 20841 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 20842echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} 20843 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 20844echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} 20845 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 20846echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} 20847 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 20848echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} 20849 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 20850echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} 20851 ( 20852 cat <<\_ASBOX 20853## -------------------------------------------------- ## 20854## Report this to timidity-talk@lists.sourceforge.net ## 20855## -------------------------------------------------- ## 20856_ASBOX 20857 ) | 20858 sed "s/^/$as_me: WARNING: /" >&2 20859 ;; 20860esac 20861echo "$as_me:$LINENO: checking for png.h" >&5 20862echo $ECHO_N "checking for png.h... $ECHO_C" >&6 20863if test "${ac_cv_header_png_h+set}" = set; then 20864 echo $ECHO_N "(cached) $ECHO_C" >&6 20865else 20866 ac_cv_header_png_h=$ac_header_preproc 20867fi 20868echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 20869echo "${ECHO_T}$ac_cv_header_png_h" >&6 20870 20871fi 20872if test $ac_cv_header_png_h = yes; then 20873 : 20874else 20875 enable_sherry_wrd=no 20876fi 20877 20878 20879 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5 20880echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6 20881if test "${ac_cv_lib_png_png_init_io+set}" = set; then 20882 echo $ECHO_N "(cached) $ECHO_C" >&6 20883else 20884 ac_check_lib_save_LIBS=$LIBS 20885LIBS="-lpng -lz $LIBS" 20886cat >conftest.$ac_ext <<_ACEOF 20887/* confdefs.h. */ 20888_ACEOF 20889cat confdefs.h >>conftest.$ac_ext 20890cat >>conftest.$ac_ext <<_ACEOF 20891/* end confdefs.h. */ 20892 20893/* Override any gcc2 internal prototype to avoid an error. */ 20894#ifdef __cplusplus 20895extern "C" 20896#endif 20897/* We use char because int might match the return type of a gcc2 20898 builtin and then its argument prototype would still apply. */ 20899char png_init_io (); 20900int 20901main () 20902{ 20903png_init_io (); 20904 ; 20905 return 0; 20906} 20907_ACEOF 20908rm -f conftest.$ac_objext conftest$ac_exeext 20909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20910 (eval $ac_link) 2>conftest.er1 20911 ac_status=$? 20912 grep -v '^ *+' conftest.er1 >conftest.err 20913 rm -f conftest.er1 20914 cat conftest.err >&5 20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20916 (exit $ac_status); } && 20917 { ac_try='test -z "$ac_c_werror_flag" 20918 || test ! -s conftest.err' 20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20920 (eval $ac_try) 2>&5 20921 ac_status=$? 20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20923 (exit $ac_status); }; } && 20924 { ac_try='test -s conftest$ac_exeext' 20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20926 (eval $ac_try) 2>&5 20927 ac_status=$? 20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20929 (exit $ac_status); }; }; then 20930 ac_cv_lib_png_png_init_io=yes 20931else 20932 echo "$as_me: failed program was:" >&5 20933sed 's/^/| /' conftest.$ac_ext >&5 20934 20935ac_cv_lib_png_png_init_io=no 20936fi 20937rm -f conftest.err conftest.$ac_objext \ 20938 conftest$ac_exeext conftest.$ac_ext 20939LIBS=$ac_check_lib_save_LIBS 20940fi 20941echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5 20942echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6 20943if test $ac_cv_lib_png_png_init_io = yes; then 20944 : 20945else 20946 enable_sherry_wrd=no 20947fi 20948 20949 if test "$enable_sherry_wrd" = yes; then 20950 20951cat >>confdefs.h <<\_ACEOF 20952#define ENABLE_SHERRY 1 20953_ACEOF 20954 20955 lib_zip_opt=-lz 20956 lib_png_opt=-lpng 20957 else 20958 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5 20959echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;} 20960 fi 20961 if test "x$have_xext" = xyes; then 20962 lib_xext_opt=-lXext 20963 fi 20964 fi 20965fi; 20966 20967 20968 20969 20970# 20971# Finish up 20972# 20973 20974 20975 20976if test "x$enable_wrd" = "xyes"; then 20977 ENABLE_WRD_TRUE= 20978 ENABLE_WRD_FALSE='#' 20979else 20980 ENABLE_WRD_TRUE='#' 20981 ENABLE_WRD_FALSE= 20982fi 20983 20984 20985 20986if test "x$W32G_GUI" = xyes; then 20987 W32G_GUI_TRUE= 20988 W32G_GUI_FALSE='#' 20989else 20990 W32G_GUI_TRUE='#' 20991 W32G_GUI_FALSE= 20992fi 20993 20994 20995 20996if test "x$WINDRV" = xyes; then 20997 WINDRV_TRUE= 20998 WINDRV_FALSE='#' 20999else 21000 WINDRV_TRUE='#' 21001 WINDRV_FALSE= 21002fi 21003 21004 21005 21006if test "x$MSYS" = xyes; then 21007 MSYS_TRUE= 21008 MSYS_FALSE='#' 21009else 21010 MSYS_TRUE='#' 21011 MSYS_FALSE= 21012fi 21013 21014 21015 21016if test "x$VCPP" = xyes; then 21017 VCPP_TRUE= 21018 VCPP_FALSE='#' 21019else 21020 VCPP_TRUE='#' 21021 VCPP_FALSE= 21022fi 21023 21024 21025 21026if test "x$POCC" = xyes; then 21027 POCC_TRUE= 21028 POCC_FALSE='#' 21029else 21030 POCC_TRUE='#' 21031 POCC_FALSE= 21032fi 21033 21034 21035 21036if test "x$BORLANDC" = xyes; then 21037 BORLANDC_TRUE= 21038 BORLANDC_FALSE='#' 21039else 21040 BORLANDC_TRUE='#' 21041 BORLANDC_FALSE= 21042fi 21043 21044 21045 21046if test "x$WATCOM_C" = xyes; then 21047 WATCOM_C_TRUE= 21048 WATCOM_C_FALSE='#' 21049else 21050 WATCOM_C_TRUE='#' 21051 WATCOM_C_FALSE= 21052fi 21053 21054 21055 21056if test "x$DMC" = xyes; then 21057 DMC_TRUE= 21058 DMC_FALSE='#' 21059else 21060 DMC_TRUE='#' 21061 DMC_FALSE= 21062fi 21063 21064 21065 21066if test "x$MINGWGCC" = xyes; then 21067 MINGWGCC_TRUE= 21068 MINGWGCC_FALSE='#' 21069else 21070 MINGWGCC_TRUE='#' 21071 MINGWGCC_FALSE= 21072fi 21073 21074 21075 21076 21077if test "x$W32READDIR" = "xyes"; then 21078 W32READDIR_TRUE= 21079 W32READDIR_FALSE='#' 21080else 21081 W32READDIR_TRUE='#' 21082 W32READDIR_FALSE= 21083fi 21084 21085 21086rm -f wordtmp >/dev/null 2>&1 21087val='' 21088for f in $LDFLAGS; do 21089 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then 21090 : 21091else 21092 echo $f >>wordtmp; val="$val $f" 21093fi 21094 21095done 21096LDFLAGS="$val" 21097rm -f wordtmp >/dev/null 2>&1 21098 21099rm -f wordtmp >/dev/null 2>&1 21100val='' 21101for f in $SHLDFLAGS; do 21102 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then 21103 : 21104else 21105 echo $f >>wordtmp; val="$val $f" 21106fi 21107 21108done 21109SHLDFLAGS="$val" 21110rm -f wordtmp >/dev/null 2>&1 21111 21112rm -f wordtmp >/dev/null 2>&1 21113val='' 21114for f in $EXTRACFLAGS $CFLAGS; do 21115 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then 21116 : 21117else 21118 echo $f >>wordtmp; val="$val $f" 21119fi 21120 21121done 21122CFLAGS="$val" 21123rm -f wordtmp >/dev/null 2>&1 21124 21125rm -f wordtmp >/dev/null 2>&1 21126val='' 21127for f in $CPPFLAGS $EXTRADEFS; do 21128 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then 21129 : 21130else 21131 echo $f >>wordtmp; val="$val $f" 21132fi 21133 21134done 21135CPPFLAGS="$val" 21136rm -f wordtmp >/dev/null 2>&1 21137 21138 21139if test "x$oss_device" != x; then 21140 21141cat >>confdefs.h <<_ACEOF 21142#define OSS_DEVICE "$oss_device" 21143_ACEOF 21144 21145fi 21146 21147if test "x$TIMIDITY_OUTPUT_ID" != x; then 21148 21149cat >>confdefs.h <<_ACEOF 21150#define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID" 21151_ACEOF 21152 21153fi 21154 21155if test "x$au_enable_nas" = "xyes" -o \ 21156 "x$enable_motif" = "xyes" -o \ 21157 "x$enable_tcltk" = "xyes" -o \ 21158 "x$enable_xaw" = "xyes" -o \ 21159 "x$enable_xskin" = "xyes" -o \ 21160 "x$enable_spectrogram" = "xyes"; then 21161 LIBS="$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xft_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11 $LIBS" 21162fi 21163LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS" 21164SHLD="$SHLD $SHLDFLAGS" 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile" 21191 21192cat >confcache <<\_ACEOF 21193# This file is a shell script that caches the results of configure 21194# tests run on this system so they can be shared between configure 21195# scripts and configure runs, see configure's option --config-cache. 21196# It is not useful on other systems. If it contains results you don't 21197# want to keep, you may remove or edit it. 21198# 21199# config.status only pays attention to the cache file if you give it 21200# the --recheck option to rerun configure. 21201# 21202# `ac_cv_env_foo' variables (set or unset) will be overridden when 21203# loading this file, other *unset* `ac_cv_foo' will be assigned the 21204# following values. 21205 21206_ACEOF 21207 21208# The following way of writing the cache mishandles newlines in values, 21209# but we know of no workaround that is simple, portable, and efficient. 21210# So, don't put newlines in cache variables' values. 21211# Ultrix sh set writes to stderr and can't be redirected directly, 21212# and sets the high bit in the cache file unless we assign to the vars. 21213{ 21214 (set) 2>&1 | 21215 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21216 *ac_space=\ *) 21217 # `set' does not quote correctly, so add quotes (double-quote 21218 # substitution turns \\\\ into \\, and sed turns \\ into \). 21219 sed -n \ 21220 "s/'/'\\\\''/g; 21221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21222 ;; 21223 *) 21224 # `set' quotes correctly as required by POSIX, so do not add quotes. 21225 sed -n \ 21226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21227 ;; 21228 esac; 21229} | 21230 sed ' 21231 t clear 21232 : clear 21233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21234 t end 21235 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21236 : end' >>confcache 21237if diff $cache_file confcache >/dev/null 2>&1; then :; else 21238 if test -w $cache_file; then 21239 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21240 cat confcache >$cache_file 21241 else 21242 echo "not updating unwritable cache $cache_file" 21243 fi 21244fi 21245rm -f confcache 21246 21247test "x$prefix" = xNONE && prefix=$ac_default_prefix 21248# Let make expand exec_prefix. 21249test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21250 21251# VPATH may cause trouble with some makes, so we remove $(srcdir), 21252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21253# trailing colons and then remove the whole line if VPATH becomes empty 21254# (actually we leave an empty line to preserve line numbers). 21255if test "x$srcdir" = x.; then 21256 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21257s/:*\$(srcdir):*/:/; 21258s/:*\${srcdir}:*/:/; 21259s/:*@srcdir@:*/:/; 21260s/^\([^=]*=[ ]*\):*/\1/; 21261s/:*$//; 21262s/^[^=]*=[ ]*$//; 21263}' 21264fi 21265 21266DEFS=-DHAVE_CONFIG_H 21267 21268ac_libobjs= 21269ac_ltlibobjs= 21270for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21271 # 1. Remove the extension, and $U if already installed. 21272 ac_i=`echo "$ac_i" | 21273 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21274 # 2. Add them. 21275 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21276 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21277done 21278LIBOBJS=$ac_libobjs 21279 21280LTLIBOBJS=$ac_ltlibobjs 21281 21282 21283if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21284 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21285Usually this means the macro was only invoked conditionally." >&5 21286echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21287Usually this means the macro was only invoked conditionally." >&2;} 21288 { (exit 1); exit 1; }; } 21289fi 21290if test -z "${XAW_INSTALL_RESOURCE_FILES_TRUE}" && test -z "${XAW_INSTALL_RESOURCE_FILES_FALSE}"; then 21291 { { echo "$as_me:$LINENO: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined. 21292Usually this means the macro was only invoked conditionally." >&5 21293echo "$as_me: error: conditional \"XAW_INSTALL_RESOURCE_FILES\" was never defined. 21294Usually this means the macro was only invoked conditionally." >&2;} 21295 { (exit 1); exit 1; }; } 21296fi 21297if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21298 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21299Usually this means the macro was only invoked conditionally." >&5 21300echo "$as_me: error: conditional \"AMDEP\" was never defined. 21301Usually this means the macro was only invoked conditionally." >&2;} 21302 { (exit 1); exit 1; }; } 21303fi 21304if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21305 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21306Usually this means the macro was only invoked conditionally." >&5 21307echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21308Usually this means the macro was only invoked conditionally." >&2;} 21309 { (exit 1); exit 1; }; } 21310fi 21311if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then 21312 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined. 21313Usually this means the macro was only invoked conditionally." >&5 21314echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined. 21315Usually this means the macro was only invoked conditionally." >&2;} 21316 { (exit 1); exit 1; }; } 21317fi 21318if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then 21319 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined. 21320Usually this means the macro was only invoked conditionally." >&5 21321echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined. 21322Usually this means the macro was only invoked conditionally." >&2;} 21323 { (exit 1); exit 1; }; } 21324fi 21325if test -z "${ENABLE_XDND_TRUE}" && test -z "${ENABLE_XDND_FALSE}"; then 21326 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XDND\" was never defined. 21327Usually this means the macro was only invoked conditionally." >&5 21328echo "$as_me: error: conditional \"ENABLE_XDND\" was never defined. 21329Usually this means the macro was only invoked conditionally." >&2;} 21330 { (exit 1); exit 1; }; } 21331fi 21332if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then 21333 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined. 21334Usually this means the macro was only invoked conditionally." >&5 21335echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined. 21336Usually this means the macro was only invoked conditionally." >&2;} 21337 { (exit 1); exit 1; }; } 21338fi 21339if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then 21340 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined. 21341Usually this means the macro was only invoked conditionally." >&5 21342echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined. 21343Usually this means the macro was only invoked conditionally." >&2;} 21344 { (exit 1); exit 1; }; } 21345fi 21346if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then 21347 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined. 21348Usually this means the macro was only invoked conditionally." >&5 21349echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined. 21350Usually this means the macro was only invoked conditionally." >&2;} 21351 { (exit 1); exit 1; }; } 21352fi 21353if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then 21354 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined. 21355Usually this means the macro was only invoked conditionally." >&5 21356echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined. 21357Usually this means the macro was only invoked conditionally." >&2;} 21358 { (exit 1); exit 1; }; } 21359fi 21360if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then 21361 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined. 21362Usually this means the macro was only invoked conditionally." >&5 21363echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined. 21364Usually this means the macro was only invoked conditionally." >&2;} 21365 { (exit 1); exit 1; }; } 21366fi 21367if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then 21368 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined. 21369Usually this means the macro was only invoked conditionally." >&5 21370echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined. 21371Usually this means the macro was only invoked conditionally." >&2;} 21372 { (exit 1); exit 1; }; } 21373fi 21374if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then 21375 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined. 21376Usually this means the macro was only invoked conditionally." >&5 21377echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined. 21378Usually this means the macro was only invoked conditionally." >&2;} 21379 { (exit 1); exit 1; }; } 21380fi 21381if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then 21382 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined. 21383Usually this means the macro was only invoked conditionally." >&5 21384echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined. 21385Usually this means the macro was only invoked conditionally." >&2;} 21386 { (exit 1); exit 1; }; } 21387fi 21388if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then 21389 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined. 21390Usually this means the macro was only invoked conditionally." >&5 21391echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined. 21392Usually this means the macro was only invoked conditionally." >&2;} 21393 { (exit 1); exit 1; }; } 21394fi 21395if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then 21396 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined. 21397Usually this means the macro was only invoked conditionally." >&5 21398echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined. 21399Usually this means the macro was only invoked conditionally." >&2;} 21400 { (exit 1); exit 1; }; } 21401fi 21402if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then 21403 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined. 21404Usually this means the macro was only invoked conditionally." >&5 21405echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined. 21406Usually this means the macro was only invoked conditionally." >&2;} 21407 { (exit 1); exit 1; }; } 21408fi 21409if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then 21410 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined. 21411Usually this means the macro was only invoked conditionally." >&5 21412echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined. 21413Usually this means the macro was only invoked conditionally." >&2;} 21414 { (exit 1); exit 1; }; } 21415fi 21416if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then 21417 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined. 21418Usually this means the macro was only invoked conditionally." >&5 21419echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined. 21420Usually this means the macro was only invoked conditionally." >&2;} 21421 { (exit 1); exit 1; }; } 21422fi 21423if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then 21424 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined. 21425Usually this means the macro was only invoked conditionally." >&5 21426echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined. 21427Usually this means the macro was only invoked conditionally." >&2;} 21428 { (exit 1); exit 1; }; } 21429fi 21430if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then 21431 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined. 21432Usually this means the macro was only invoked conditionally." >&5 21433echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined. 21434Usually this means the macro was only invoked conditionally." >&2;} 21435 { (exit 1); exit 1; }; } 21436fi 21437if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then 21438 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined. 21439Usually this means the macro was only invoked conditionally." >&5 21440echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined. 21441Usually this means the macro was only invoked conditionally." >&2;} 21442 { (exit 1); exit 1; }; } 21443fi 21444if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then 21445 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined. 21446Usually this means the macro was only invoked conditionally." >&5 21447echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined. 21448Usually this means the macro was only invoked conditionally." >&2;} 21449 { (exit 1); exit 1; }; } 21450fi 21451if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then 21452 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined. 21453Usually this means the macro was only invoked conditionally." >&5 21454echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined. 21455Usually this means the macro was only invoked conditionally." >&2;} 21456 { (exit 1); exit 1; }; } 21457fi 21458if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then 21459 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined. 21460Usually this means the macro was only invoked conditionally." >&5 21461echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined. 21462Usually this means the macro was only invoked conditionally." >&2;} 21463 { (exit 1); exit 1; }; } 21464fi 21465if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then 21466 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined. 21467Usually this means the macro was only invoked conditionally." >&5 21468echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined. 21469Usually this means the macro was only invoked conditionally." >&2;} 21470 { (exit 1); exit 1; }; } 21471fi 21472if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then 21473 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined. 21474Usually this means the macro was only invoked conditionally." >&5 21475echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined. 21476Usually this means the macro was only invoked conditionally." >&2;} 21477 { (exit 1); exit 1; }; } 21478fi 21479if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then 21480 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined. 21481Usually this means the macro was only invoked conditionally." >&5 21482echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined. 21483Usually this means the macro was only invoked conditionally." >&2;} 21484 { (exit 1); exit 1; }; } 21485fi 21486if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then 21487 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined. 21488Usually this means the macro was only invoked conditionally." >&5 21489echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined. 21490Usually this means the macro was only invoked conditionally." >&2;} 21491 { (exit 1); exit 1; }; } 21492fi 21493if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then 21494 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined. 21495Usually this means the macro was only invoked conditionally." >&5 21496echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined. 21497Usually this means the macro was only invoked conditionally." >&2;} 21498 { (exit 1); exit 1; }; } 21499fi 21500if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then 21501 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined. 21502Usually this means the macro was only invoked conditionally." >&5 21503echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined. 21504Usually this means the macro was only invoked conditionally." >&2;} 21505 { (exit 1); exit 1; }; } 21506fi 21507if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then 21508 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined. 21509Usually this means the macro was only invoked conditionally." >&5 21510echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined. 21511Usually this means the macro was only invoked conditionally." >&2;} 21512 { (exit 1); exit 1; }; } 21513fi 21514if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then 21515 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined. 21516Usually this means the macro was only invoked conditionally." >&5 21517echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined. 21518Usually this means the macro was only invoked conditionally." >&2;} 21519 { (exit 1); exit 1; }; } 21520fi 21521if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then 21522 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined. 21523Usually this means the macro was only invoked conditionally." >&5 21524echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined. 21525Usually this means the macro was only invoked conditionally." >&2;} 21526 { (exit 1); exit 1; }; } 21527fi 21528if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then 21529 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined. 21530Usually this means the macro was only invoked conditionally." >&5 21531echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined. 21532Usually this means the macro was only invoked conditionally." >&2;} 21533 { (exit 1); exit 1; }; } 21534fi 21535if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then 21536 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined. 21537Usually this means the macro was only invoked conditionally." >&5 21538echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined. 21539Usually this means the macro was only invoked conditionally." >&2;} 21540 { (exit 1); exit 1; }; } 21541fi 21542if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then 21543 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined. 21544Usually this means the macro was only invoked conditionally." >&5 21545echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined. 21546Usually this means the macro was only invoked conditionally." >&2;} 21547 { (exit 1); exit 1; }; } 21548fi 21549if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then 21550 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined. 21551Usually this means the macro was only invoked conditionally." >&5 21552echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined. 21553Usually this means the macro was only invoked conditionally." >&2;} 21554 { (exit 1); exit 1; }; } 21555fi 21556if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then 21557 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined. 21558Usually this means the macro was only invoked conditionally." >&5 21559echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined. 21560Usually this means the macro was only invoked conditionally." >&2;} 21561 { (exit 1); exit 1; }; } 21562fi 21563if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then 21564 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined. 21565Usually this means the macro was only invoked conditionally." >&5 21566echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined. 21567Usually this means the macro was only invoked conditionally." >&2;} 21568 { (exit 1); exit 1; }; } 21569fi 21570if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then 21571 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined. 21572Usually this means the macro was only invoked conditionally." >&5 21573echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined. 21574Usually this means the macro was only invoked conditionally." >&2;} 21575 { (exit 1); exit 1; }; } 21576fi 21577if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then 21578 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined. 21579Usually this means the macro was only invoked conditionally." >&5 21580echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined. 21581Usually this means the macro was only invoked conditionally." >&2;} 21582 { (exit 1); exit 1; }; } 21583fi 21584if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then 21585 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined. 21586Usually this means the macro was only invoked conditionally." >&5 21587echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined. 21588Usually this means the macro was only invoked conditionally." >&2;} 21589 { (exit 1); exit 1; }; } 21590fi 21591if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then 21592 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined. 21593Usually this means the macro was only invoked conditionally." >&5 21594echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined. 21595Usually this means the macro was only invoked conditionally." >&2;} 21596 { (exit 1); exit 1; }; } 21597fi 21598if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then 21599 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined. 21600Usually this means the macro was only invoked conditionally." >&5 21601echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined. 21602Usually this means the macro was only invoked conditionally." >&2;} 21603 { (exit 1); exit 1; }; } 21604fi 21605if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then 21606 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined. 21607Usually this means the macro was only invoked conditionally." >&5 21608echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined. 21609Usually this means the macro was only invoked conditionally." >&2;} 21610 { (exit 1); exit 1; }; } 21611fi 21612if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then 21613 { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined. 21614Usually this means the macro was only invoked conditionally." >&5 21615echo "$as_me: error: conditional \"W32G_GUI\" was never defined. 21616Usually this means the macro was only invoked conditionally." >&2;} 21617 { (exit 1); exit 1; }; } 21618fi 21619if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then 21620 { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined. 21621Usually this means the macro was only invoked conditionally." >&5 21622echo "$as_me: error: conditional \"WINDRV\" was never defined. 21623Usually this means the macro was only invoked conditionally." >&2;} 21624 { (exit 1); exit 1; }; } 21625fi 21626if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then 21627 { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined. 21628Usually this means the macro was only invoked conditionally." >&5 21629echo "$as_me: error: conditional \"MSYS\" was never defined. 21630Usually this means the macro was only invoked conditionally." >&2;} 21631 { (exit 1); exit 1; }; } 21632fi 21633if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then 21634 { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined. 21635Usually this means the macro was only invoked conditionally." >&5 21636echo "$as_me: error: conditional \"VCPP\" was never defined. 21637Usually this means the macro was only invoked conditionally." >&2;} 21638 { (exit 1); exit 1; }; } 21639fi 21640if test -z "${POCC_TRUE}" && test -z "${POCC_FALSE}"; then 21641 { { echo "$as_me:$LINENO: error: conditional \"POCC\" was never defined. 21642Usually this means the macro was only invoked conditionally." >&5 21643echo "$as_me: error: conditional \"POCC\" was never defined. 21644Usually this means the macro was only invoked conditionally." >&2;} 21645 { (exit 1); exit 1; }; } 21646fi 21647if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then 21648 { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined. 21649Usually this means the macro was only invoked conditionally." >&5 21650echo "$as_me: error: conditional \"BORLANDC\" was never defined. 21651Usually this means the macro was only invoked conditionally." >&2;} 21652 { (exit 1); exit 1; }; } 21653fi 21654if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then 21655 { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined. 21656Usually this means the macro was only invoked conditionally." >&5 21657echo "$as_me: error: conditional \"WATCOM_C\" was never defined. 21658Usually this means the macro was only invoked conditionally." >&2;} 21659 { (exit 1); exit 1; }; } 21660fi 21661if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then 21662 { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined. 21663Usually this means the macro was only invoked conditionally." >&5 21664echo "$as_me: error: conditional \"DMC\" was never defined. 21665Usually this means the macro was only invoked conditionally." >&2;} 21666 { (exit 1); exit 1; }; } 21667fi 21668if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then 21669 { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined. 21670Usually this means the macro was only invoked conditionally." >&5 21671echo "$as_me: error: conditional \"MINGWGCC\" was never defined. 21672Usually this means the macro was only invoked conditionally." >&2;} 21673 { (exit 1); exit 1; }; } 21674fi 21675if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then 21676 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined. 21677Usually this means the macro was only invoked conditionally." >&5 21678echo "$as_me: error: conditional \"W32READDIR\" was never defined. 21679Usually this means the macro was only invoked conditionally." >&2;} 21680 { (exit 1); exit 1; }; } 21681fi 21682 21683: ${CONFIG_STATUS=./config.status} 21684ac_clean_files_save=$ac_clean_files 21685ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21686{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21687echo "$as_me: creating $CONFIG_STATUS" >&6;} 21688cat >$CONFIG_STATUS <<_ACEOF 21689#! $SHELL 21690# Generated by $as_me. 21691# Run this file to recreate the current configuration. 21692# Compiler output produced by configure, useful for debugging 21693# configure, is in config.log if it exists. 21694 21695debug=false 21696ac_cs_recheck=false 21697ac_cs_silent=false 21698SHELL=\${CONFIG_SHELL-$SHELL} 21699_ACEOF 21700 21701cat >>$CONFIG_STATUS <<\_ACEOF 21702## --------------------- ## 21703## M4sh Initialization. ## 21704## --------------------- ## 21705 21706# Be Bourne compatible 21707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21708 emulate sh 21709 NULLCMD=: 21710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21711 # is contrary to our usage. Disable this feature. 21712 alias -g '${1+"$@"}'='"$@"' 21713elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21714 set -o posix 21715fi 21716DUALCASE=1; export DUALCASE # for MKS sh 21717 21718# Support unset when possible. 21719if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21720 as_unset=unset 21721else 21722 as_unset=false 21723fi 21724 21725 21726# Work around bugs in pre-3.0 UWIN ksh. 21727$as_unset ENV MAIL MAILPATH 21728PS1='$ ' 21729PS2='> ' 21730PS4='+ ' 21731 21732# NLS nuisances. 21733for as_var in \ 21734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21736 LC_TELEPHONE LC_TIME 21737do 21738 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21739 eval $as_var=C; export $as_var 21740 else 21741 $as_unset $as_var 21742 fi 21743done 21744 21745# Required to use basename. 21746if expr a : '\(a\)' >/dev/null 2>&1; then 21747 as_expr=expr 21748else 21749 as_expr=false 21750fi 21751 21752if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21753 as_basename=basename 21754else 21755 as_basename=false 21756fi 21757 21758 21759# Name of the executable. 21760as_me=`$as_basename "$0" || 21761$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21762 X"$0" : 'X\(//\)$' \| \ 21763 X"$0" : 'X\(/\)$' \| \ 21764 . : '\(.\)' 2>/dev/null || 21765echo X/"$0" | 21766 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21767 /^X\/\(\/\/\)$/{ s//\1/; q; } 21768 /^X\/\(\/\).*/{ s//\1/; q; } 21769 s/.*/./; q'` 21770 21771 21772# PATH needs CR, and LINENO needs CR and PATH. 21773# Avoid depending upon Character Ranges. 21774as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21776as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21777as_cr_digits='0123456789' 21778as_cr_alnum=$as_cr_Letters$as_cr_digits 21779 21780# The user is always right. 21781if test "${PATH_SEPARATOR+set}" != set; then 21782 echo "#! /bin/sh" >conf$$.sh 21783 echo "exit 0" >>conf$$.sh 21784 chmod +x conf$$.sh 21785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21786 PATH_SEPARATOR=';' 21787 else 21788 PATH_SEPARATOR=: 21789 fi 21790 rm -f conf$$.sh 21791fi 21792 21793 21794 as_lineno_1=$LINENO 21795 as_lineno_2=$LINENO 21796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21797 test "x$as_lineno_1" != "x$as_lineno_2" && 21798 test "x$as_lineno_3" = "x$as_lineno_2" || { 21799 # Find who we are. Look in the path if we contain no path at all 21800 # relative or not. 21801 case $0 in 21802 *[\\/]* ) as_myself=$0 ;; 21803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21804for as_dir in $PATH 21805do 21806 IFS=$as_save_IFS 21807 test -z "$as_dir" && as_dir=. 21808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21809done 21810 21811 ;; 21812 esac 21813 # We did not find ourselves, most probably we were run as `sh COMMAND' 21814 # in which case we are not to be found in the path. 21815 if test "x$as_myself" = x; then 21816 as_myself=$0 21817 fi 21818 if test ! -f "$as_myself"; then 21819 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21820echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21821 { (exit 1); exit 1; }; } 21822 fi 21823 case $CONFIG_SHELL in 21824 '') 21825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21826for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21827do 21828 IFS=$as_save_IFS 21829 test -z "$as_dir" && as_dir=. 21830 for as_base in sh bash ksh sh5; do 21831 case $as_dir in 21832 /*) 21833 if ("$as_dir/$as_base" -c ' 21834 as_lineno_1=$LINENO 21835 as_lineno_2=$LINENO 21836 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21837 test "x$as_lineno_1" != "x$as_lineno_2" && 21838 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21839 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21840 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21841 CONFIG_SHELL=$as_dir/$as_base 21842 export CONFIG_SHELL 21843 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21844 fi;; 21845 esac 21846 done 21847done 21848;; 21849 esac 21850 21851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21852 # uniformly replaced by the line number. The first 'sed' inserts a 21853 # line-number line before each line; the second 'sed' does the real 21854 # work. The second script uses 'N' to pair each line-number line 21855 # with the numbered line, and appends trailing '-' during 21856 # substitution so that $LINENO is not a special case at line end. 21857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21858 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21859 sed '=' <$as_myself | 21860 sed ' 21861 N 21862 s,$,-, 21863 : loop 21864 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21865 t loop 21866 s,-$,, 21867 s,^['$as_cr_digits']*\n,, 21868 ' >$as_me.lineno && 21869 chmod +x $as_me.lineno || 21870 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21871echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21872 { (exit 1); exit 1; }; } 21873 21874 # Don't try to exec as it changes $[0], causing all sort of problems 21875 # (the dirname of $[0] is not the place where we might find the 21876 # original and so on. Autoconf is especially sensible to this). 21877 . ./$as_me.lineno 21878 # Exit status is that of the last command. 21879 exit 21880} 21881 21882 21883case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21884 *c*,-n*) ECHO_N= ECHO_C=' 21885' ECHO_T=' ' ;; 21886 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21887 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21888esac 21889 21890if expr a : '\(a\)' >/dev/null 2>&1; then 21891 as_expr=expr 21892else 21893 as_expr=false 21894fi 21895 21896rm -f conf$$ conf$$.exe conf$$.file 21897echo >conf$$.file 21898if ln -s conf$$.file conf$$ 2>/dev/null; then 21899 # We could just check for DJGPP; but this test a) works b) is more generic 21900 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21901 if test -f conf$$.exe; then 21902 # Don't use ln at all; we don't have any links 21903 as_ln_s='cp -p' 21904 else 21905 as_ln_s='ln -s' 21906 fi 21907elif ln conf$$.file conf$$ 2>/dev/null; then 21908 as_ln_s=ln 21909else 21910 as_ln_s='cp -p' 21911fi 21912rm -f conf$$ conf$$.exe conf$$.file 21913 21914if mkdir -p . 2>/dev/null; then 21915 as_mkdir_p=: 21916else 21917 test -d ./-p && rmdir ./-p 21918 as_mkdir_p=false 21919fi 21920 21921as_executable_p="test -f" 21922 21923# Sed expression to map a string onto a valid CPP name. 21924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21925 21926# Sed expression to map a string onto a valid variable name. 21927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21928 21929 21930# IFS 21931# We need space, tab and new line, in precisely that order. 21932as_nl=' 21933' 21934IFS=" $as_nl" 21935 21936# CDPATH. 21937$as_unset CDPATH 21938 21939exec 6>&1 21940 21941# Open the log real soon, to keep \$[0] and so on meaningful, and to 21942# report actual input values of CONFIG_FILES etc. instead of their 21943# values after options handling. Logging --version etc. is OK. 21944exec 5>>config.log 21945{ 21946 echo 21947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21948## Running $as_me. ## 21949_ASBOX 21950} >&5 21951cat >&5 <<_CSEOF 21952 21953This file was extended by TiMidity++ $as_me 2.15.0, which was 21954generated by GNU Autoconf 2.59. Invocation command line was 21955 21956 CONFIG_FILES = $CONFIG_FILES 21957 CONFIG_HEADERS = $CONFIG_HEADERS 21958 CONFIG_LINKS = $CONFIG_LINKS 21959 CONFIG_COMMANDS = $CONFIG_COMMANDS 21960 $ $0 $@ 21961 21962_CSEOF 21963echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21964echo >&5 21965_ACEOF 21966 21967# Files that config.status was made for. 21968if test -n "$ac_config_files"; then 21969 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21970fi 21971 21972if test -n "$ac_config_headers"; then 21973 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21974fi 21975 21976if test -n "$ac_config_links"; then 21977 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21978fi 21979 21980if test -n "$ac_config_commands"; then 21981 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21982fi 21983 21984cat >>$CONFIG_STATUS <<\_ACEOF 21985 21986ac_cs_usage="\ 21987\`$as_me' instantiates files from templates according to the 21988current configuration. 21989 21990Usage: $0 [OPTIONS] [FILE]... 21991 21992 -h, --help print this help, then exit 21993 -V, --version print version number, then exit 21994 -q, --quiet do not print progress messages 21995 -d, --debug don't remove temporary files 21996 --recheck update $as_me by reconfiguring in the same conditions 21997 --file=FILE[:TEMPLATE] 21998 instantiate the configuration file FILE 21999 --header=FILE[:TEMPLATE] 22000 instantiate the configuration header FILE 22001 22002Configuration files: 22003$config_files 22004 22005Configuration headers: 22006$config_headers 22007 22008Configuration commands: 22009$config_commands 22010 22011Report bugs to <bug-autoconf@gnu.org>." 22012_ACEOF 22013 22014cat >>$CONFIG_STATUS <<_ACEOF 22015ac_cs_version="\\ 22016TiMidity++ config.status 2.15.0 22017configured by $0, generated by GNU Autoconf 2.59, 22018 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22019 22020Copyright (C) 2003 Free Software Foundation, Inc. 22021This config.status script is free software; the Free Software Foundation 22022gives unlimited permission to copy, distribute and modify it." 22023srcdir=$srcdir 22024INSTALL="$INSTALL" 22025_ACEOF 22026 22027cat >>$CONFIG_STATUS <<\_ACEOF 22028# If no file are specified by the user, then we need to provide default 22029# value. By we need to know if files were specified by the user. 22030ac_need_defaults=: 22031while test $# != 0 22032do 22033 case $1 in 22034 --*=*) 22035 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22036 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22037 ac_shift=: 22038 ;; 22039 -*) 22040 ac_option=$1 22041 ac_optarg=$2 22042 ac_shift=shift 22043 ;; 22044 *) # This is not an option, so the user has probably given explicit 22045 # arguments. 22046 ac_option=$1 22047 ac_need_defaults=false;; 22048 esac 22049 22050 case $ac_option in 22051 # Handling of the options. 22052_ACEOF 22053cat >>$CONFIG_STATUS <<\_ACEOF 22054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22055 ac_cs_recheck=: ;; 22056 --version | --vers* | -V ) 22057 echo "$ac_cs_version"; exit 0 ;; 22058 --he | --h) 22059 # Conflict between --help and --header 22060 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22061Try \`$0 --help' for more information." >&5 22062echo "$as_me: error: ambiguous option: $1 22063Try \`$0 --help' for more information." >&2;} 22064 { (exit 1); exit 1; }; };; 22065 --help | --hel | -h ) 22066 echo "$ac_cs_usage"; exit 0 ;; 22067 --debug | --d* | -d ) 22068 debug=: ;; 22069 --file | --fil | --fi | --f ) 22070 $ac_shift 22071 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22072 ac_need_defaults=false;; 22073 --header | --heade | --head | --hea ) 22074 $ac_shift 22075 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22076 ac_need_defaults=false;; 22077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22078 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22079 ac_cs_silent=: ;; 22080 22081 # This is an error. 22082 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22083Try \`$0 --help' for more information." >&5 22084echo "$as_me: error: unrecognized option: $1 22085Try \`$0 --help' for more information." >&2;} 22086 { (exit 1); exit 1; }; } ;; 22087 22088 *) ac_config_targets="$ac_config_targets $1" ;; 22089 22090 esac 22091 shift 22092done 22093 22094ac_configure_extra_args= 22095 22096if $ac_cs_silent; then 22097 exec 6>/dev/null 22098 ac_configure_extra_args="$ac_configure_extra_args --silent" 22099fi 22100 22101_ACEOF 22102cat >>$CONFIG_STATUS <<_ACEOF 22103if \$ac_cs_recheck; then 22104 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22105 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22106fi 22107 22108_ACEOF 22109 22110cat >>$CONFIG_STATUS <<_ACEOF 22111# 22112# INIT-COMMANDS section. 22113# 22114 22115AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22116 22117_ACEOF 22118 22119 22120 22121cat >>$CONFIG_STATUS <<\_ACEOF 22122for ac_config_target in $ac_config_targets 22123do 22124 case "$ac_config_target" in 22125 # Handling of arguments. 22126 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22127 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;; 22128 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;; 22129 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;; 22130 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22131 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;; 22132 "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;; 22133 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;; 22134 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;; 22135 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;; 22136 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;; 22137 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;; 22138 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;; 22139 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;; 22140 "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;; 22141 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 22142 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;; 22143 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22144 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22145 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;; 22146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22147echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22148 { (exit 1); exit 1; }; };; 22149 esac 22150done 22151 22152# If the user did not use the arguments to specify the items to instantiate, 22153# then the envvar interface is used. Set only those that are not. 22154# We use the long form for the default assignment because of an extremely 22155# bizarre bug on SunOS 4.1.3. 22156if $ac_need_defaults; then 22157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22160fi 22161 22162# Have a temporary directory for convenience. Make it in the build tree 22163# simply because there is no reason to put it here, and in addition, 22164# creating and moving files from /tmp can sometimes cause problems. 22165# Create a temporary directory, and hook for its removal unless debugging. 22166$debug || 22167{ 22168 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22169 trap '{ (exit 1); exit 1; }' 1 2 13 15 22170} 22171 22172# Create a (secure) tmp directory for tmp files. 22173 22174{ 22175 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22176 test -n "$tmp" && test -d "$tmp" 22177} || 22178{ 22179 tmp=./confstat$$-$RANDOM 22180 (umask 077 && mkdir $tmp) 22181} || 22182{ 22183 echo "$me: cannot create a temporary directory in ." >&2 22184 { (exit 1); exit 1; } 22185} 22186 22187_ACEOF 22188 22189cat >>$CONFIG_STATUS <<_ACEOF 22190 22191# 22192# CONFIG_FILES section. 22193# 22194 22195# No need to generate the scripts if there are no CONFIG_FILES. 22196# This happens for instance when ./config.status config.h 22197if test -n "\$CONFIG_FILES"; then 22198 # Protect against being on the right side of a sed subst in config.status. 22199 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22200 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22201s,@SHELL@,$SHELL,;t t 22202s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22203s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22204s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22205s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22206s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22207s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22208s,@exec_prefix@,$exec_prefix,;t t 22209s,@prefix@,$prefix,;t t 22210s,@program_transform_name@,$program_transform_name,;t t 22211s,@bindir@,$bindir,;t t 22212s,@sbindir@,$sbindir,;t t 22213s,@libexecdir@,$libexecdir,;t t 22214s,@datadir@,$datadir,;t t 22215s,@sysconfdir@,$sysconfdir,;t t 22216s,@sharedstatedir@,$sharedstatedir,;t t 22217s,@localstatedir@,$localstatedir,;t t 22218s,@libdir@,$libdir,;t t 22219s,@includedir@,$includedir,;t t 22220s,@oldincludedir@,$oldincludedir,;t t 22221s,@infodir@,$infodir,;t t 22222s,@mandir@,$mandir,;t t 22223s,@build_alias@,$build_alias,;t t 22224s,@host_alias@,$host_alias,;t t 22225s,@target_alias@,$target_alias,;t t 22226s,@DEFS@,$DEFS,;t t 22227s,@ECHO_C@,$ECHO_C,;t t 22228s,@ECHO_N@,$ECHO_N,;t t 22229s,@ECHO_T@,$ECHO_T,;t t 22230s,@LIBS@,$LIBS,;t t 22231s,@build@,$build,;t t 22232s,@build_cpu@,$build_cpu,;t t 22233s,@build_vendor@,$build_vendor,;t t 22234s,@build_os@,$build_os,;t t 22235s,@host@,$host,;t t 22236s,@host_cpu@,$host_cpu,;t t 22237s,@host_vendor@,$host_vendor,;t t 22238s,@host_os@,$host_os,;t t 22239s,@target@,$target,;t t 22240s,@target_cpu@,$target_cpu,;t t 22241s,@target_vendor@,$target_vendor,;t t 22242s,@target_os@,$target_os,;t t 22243s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22244s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22245s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22246s,@CYGPATH_W@,$CYGPATH_W,;t t 22247s,@PACKAGE@,$PACKAGE,;t t 22248s,@VERSION@,$VERSION,;t t 22249s,@ACLOCAL@,$ACLOCAL,;t t 22250s,@AUTOCONF@,$AUTOCONF,;t t 22251s,@AUTOMAKE@,$AUTOMAKE,;t t 22252s,@AUTOHEADER@,$AUTOHEADER,;t t 22253s,@MAKEINFO@,$MAKEINFO,;t t 22254s,@AMTAR@,$AMTAR,;t t 22255s,@install_sh@,$install_sh,;t t 22256s,@STRIP@,$STRIP,;t t 22257s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22258s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22259s,@AWK@,$AWK,;t t 22260s,@SET_MAKE@,$SET_MAKE,;t t 22261s,@am__leading_dot@,$am__leading_dot,;t t 22262s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22263s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22264s,@MAINT@,$MAINT,;t t 22265s,@XAW_INSTALL_RESOURCE_FILES_TRUE@,$XAW_INSTALL_RESOURCE_FILES_TRUE,;t t 22266s,@XAW_INSTALL_RESOURCE_FILES_FALSE@,$XAW_INSTALL_RESOURCE_FILES_FALSE,;t t 22267s,@xawresdir@,$xawresdir,;t t 22268s,@EMACS@,$EMACS,;t t 22269s,@lispdir@,$lispdir,;t t 22270s,@CC@,$CC,;t t 22271s,@CFLAGS@,$CFLAGS,;t t 22272s,@LDFLAGS@,$LDFLAGS,;t t 22273s,@CPPFLAGS@,$CPPFLAGS,;t t 22274s,@ac_ct_CC@,$ac_ct_CC,;t t 22275s,@EXEEXT@,$EXEEXT,;t t 22276s,@OBJEXT@,$OBJEXT,;t t 22277s,@DEPDIR@,$DEPDIR,;t t 22278s,@am__include@,$am__include,;t t 22279s,@am__quote@,$am__quote,;t t 22280s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22281s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22282s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22283s,@CCDEPMODE@,$CCDEPMODE,;t t 22284s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22285s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22286s,@CPP@,$CPP,;t t 22287s,@EGREP@,$EGREP,;t t 22288s,@RANLIB@,$RANLIB,;t t 22289s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22290s,@LN_S@,$LN_S,;t t 22291s,@X_CFLAGS@,$X_CFLAGS,;t t 22292s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 22293s,@X_LIBS@,$X_LIBS,;t t 22294s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 22295s,@LIBOBJS@,$LIBOBJS,;t t 22296s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t 22297s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t 22298s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t 22299s,@ALSA_LIBS@,$ALSA_LIBS,;t t 22300s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t 22301s,@ARTSLIBS@,$ARTSLIBS,;t t 22302s,@ARTSINCL@,$ARTSINCL,;t t 22303s,@ESD_CONFIG@,$ESD_CONFIG,;t t 22304s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t 22305s,@ESD_LIBS@,$ESD_LIBS,;t t 22306s,@AO_CFLAGS@,$AO_CFLAGS,;t t 22307s,@AO_LIBS@,$AO_LIBS,;t t 22308s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t 22309s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t 22310s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t 22311s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t 22312s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t 22313s,@OGG_LIBS@,$OGG_LIBS,;t t 22314s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t 22315s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t 22316s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t 22317s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t 22318s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t 22319s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t 22320s,@ENABLE_XDND_TRUE@,$ENABLE_XDND_TRUE,;t t 22321s,@ENABLE_XDND_FALSE@,$ENABLE_XDND_FALSE,;t t 22322s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t 22323s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t 22324s,@n_so_libs@,$n_so_libs,;t t 22325s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t 22326s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t 22327s,@s_so_libs@,$s_so_libs,;t t 22328s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t 22329s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t 22330s,@m_so_libs@,$m_so_libs,;t t 22331s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t 22332s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t 22333s,@k_so_libs@,$k_so_libs,;t t 22334s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t 22335s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t 22336s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t 22337s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t 22338s,@e_so_libs@,$e_so_libs,;t t 22339s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t 22340s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t 22341s,@T_so_libs@,$T_so_libs,;t t 22342s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t 22343s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t 22344s,@a_so_libs@,$a_so_libs,;t t 22345s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t 22346s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t 22347s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t 22348s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t 22349s,@i_so_libs@,$i_so_libs,;t t 22350s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t 22351s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t 22352s,@PKG_CONFIG@,$PKG_CONFIG,;t t 22353s,@GTK_CONFIG@,$GTK_CONFIG,;t t 22354s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 22355s,@GTK_LIBS@,$GTK_LIBS,;t t 22356s,@g_so_libs@,$g_so_libs,;t t 22357s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t 22358s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t 22359s,@r_so_libs@,$r_so_libs,;t t 22360s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t 22361s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t 22362s,@A_so_libs@,$A_so_libs,;t t 22363s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t 22364s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t 22365s,@W_so_libs@,$W_so_libs,;t t 22366s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t 22367s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t 22368s,@P_so_libs@,$P_so_libs,;t t 22369s,@ENABLE_NPSYN_TRUE@,$ENABLE_NPSYN_TRUE,;t t 22370s,@ENABLE_NPSYN_FALSE@,$ENABLE_NPSYN_FALSE,;t t 22371s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t 22372s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t 22373s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t 22374s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t 22375s,@w_so_libs@,$w_so_libs,;t t 22376s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t 22377s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t 22378s,@p_so_libs@,$p_so_libs,;t t 22379s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t 22380s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t 22381s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t 22382s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t 22383s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t 22384s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t 22385s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t 22386s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t 22387s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t 22388s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t 22389s,@MSYS_TRUE@,$MSYS_TRUE,;t t 22390s,@MSYS_FALSE@,$MSYS_FALSE,;t t 22391s,@VCPP_TRUE@,$VCPP_TRUE,;t t 22392s,@VCPP_FALSE@,$VCPP_FALSE,;t t 22393s,@POCC_TRUE@,$POCC_TRUE,;t t 22394s,@POCC_FALSE@,$POCC_FALSE,;t t 22395s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t 22396s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t 22397s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t 22398s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t 22399s,@DMC_TRUE@,$DMC_TRUE,;t t 22400s,@DMC_FALSE@,$DMC_FALSE,;t t 22401s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t 22402s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t 22403s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t 22404s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t 22405s,@BORLANDC_START@,$BORLANDC_START,;t t 22406s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t 22407s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t 22408s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t 22409s,@DMC_LDFLAGS@,$DMC_LDFLAGS,;t t 22410s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t 22411s,@POCC_LDFLAGS@,$POCC_LDFLAGS,;t t 22412s,@SYSEXTRAS@,$SYSEXTRAS,;t t 22413s,@EXTRALIBS@,$EXTRALIBS,;t t 22414s,@NETSRCS@,$NETSRCS,;t t 22415s,@ELFILES@,$ELFILES,;t t 22416s,@SHLD@,$SHLD,;t t 22417s,@SHCFLAGS@,$SHCFLAGS,;t t 22418s,@dynamic_targets@,$dynamic_targets,;t t 22419s,@so@,$so,;t t 22420s,@TCLSH@,$TCLSH,;t t 22421s,@tcltk_dep@,$tcltk_dep,;t t 22422s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t 22423s,@pkgdatadir@,$pkgdatadir,;t t 22424s,@pkglibdir@,$pkglibdir,;t t 22425s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22426CEOF 22427 22428_ACEOF 22429 22430 cat >>$CONFIG_STATUS <<\_ACEOF 22431 # Split the substitutions into bite-sized pieces for seds with 22432 # small command number limits, like on Digital OSF/1 and HP-UX. 22433 ac_max_sed_lines=48 22434 ac_sed_frag=1 # Number of current file. 22435 ac_beg=1 # First line for current file. 22436 ac_end=$ac_max_sed_lines # Line after last line for current file. 22437 ac_more_lines=: 22438 ac_sed_cmds= 22439 while $ac_more_lines; do 22440 if test $ac_beg -gt 1; then 22441 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22442 else 22443 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22444 fi 22445 if test ! -s $tmp/subs.frag; then 22446 ac_more_lines=false 22447 else 22448 # The purpose of the label and of the branching condition is to 22449 # speed up the sed processing (if there are no `@' at all, there 22450 # is no need to browse any of the substitutions). 22451 # These are the two extra sed commands mentioned above. 22452 (echo ':t 22453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22454 if test -z "$ac_sed_cmds"; then 22455 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22456 else 22457 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22458 fi 22459 ac_sed_frag=`expr $ac_sed_frag + 1` 22460 ac_beg=$ac_end 22461 ac_end=`expr $ac_end + $ac_max_sed_lines` 22462 fi 22463 done 22464 if test -z "$ac_sed_cmds"; then 22465 ac_sed_cmds=cat 22466 fi 22467fi # test -n "$CONFIG_FILES" 22468 22469_ACEOF 22470cat >>$CONFIG_STATUS <<\_ACEOF 22471for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22473 case $ac_file in 22474 - | *:- | *:-:* ) # input from stdin 22475 cat >$tmp/stdin 22476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22480 * ) ac_file_in=$ac_file.in ;; 22481 esac 22482 22483 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22484 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22486 X"$ac_file" : 'X\(//\)[^/]' \| \ 22487 X"$ac_file" : 'X\(//\)$' \| \ 22488 X"$ac_file" : 'X\(/\)' \| \ 22489 . : '\(.\)' 2>/dev/null || 22490echo X"$ac_file" | 22491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22492 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22493 /^X\(\/\/\)$/{ s//\1/; q; } 22494 /^X\(\/\).*/{ s//\1/; q; } 22495 s/.*/./; q'` 22496 { if $as_mkdir_p; then 22497 mkdir -p "$ac_dir" 22498 else 22499 as_dir="$ac_dir" 22500 as_dirs= 22501 while test ! -d "$as_dir"; do 22502 as_dirs="$as_dir $as_dirs" 22503 as_dir=`(dirname "$as_dir") 2>/dev/null || 22504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22505 X"$as_dir" : 'X\(//\)[^/]' \| \ 22506 X"$as_dir" : 'X\(//\)$' \| \ 22507 X"$as_dir" : 'X\(/\)' \| \ 22508 . : '\(.\)' 2>/dev/null || 22509echo X"$as_dir" | 22510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22511 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22512 /^X\(\/\/\)$/{ s//\1/; q; } 22513 /^X\(\/\).*/{ s//\1/; q; } 22514 s/.*/./; q'` 22515 done 22516 test ! -n "$as_dirs" || mkdir $as_dirs 22517 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22518echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22519 { (exit 1); exit 1; }; }; } 22520 22521 ac_builddir=. 22522 22523if test "$ac_dir" != .; then 22524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22525 # A "../" for each directory in $ac_dir_suffix. 22526 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22527else 22528 ac_dir_suffix= ac_top_builddir= 22529fi 22530 22531case $srcdir in 22532 .) # No --srcdir option. We are building in place. 22533 ac_srcdir=. 22534 if test -z "$ac_top_builddir"; then 22535 ac_top_srcdir=. 22536 else 22537 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22538 fi ;; 22539 [\\/]* | ?:[\\/]* ) # Absolute path. 22540 ac_srcdir=$srcdir$ac_dir_suffix; 22541 ac_top_srcdir=$srcdir ;; 22542 *) # Relative path. 22543 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22544 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22545esac 22546 22547# Do not use `cd foo && pwd` to compute absolute paths, because 22548# the directories may not exist. 22549case `pwd` in 22550.) ac_abs_builddir="$ac_dir";; 22551*) 22552 case "$ac_dir" in 22553 .) ac_abs_builddir=`pwd`;; 22554 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22555 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22556 esac;; 22557esac 22558case $ac_abs_builddir in 22559.) ac_abs_top_builddir=${ac_top_builddir}.;; 22560*) 22561 case ${ac_top_builddir}. in 22562 .) ac_abs_top_builddir=$ac_abs_builddir;; 22563 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22564 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22565 esac;; 22566esac 22567case $ac_abs_builddir in 22568.) ac_abs_srcdir=$ac_srcdir;; 22569*) 22570 case $ac_srcdir in 22571 .) ac_abs_srcdir=$ac_abs_builddir;; 22572 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22573 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22574 esac;; 22575esac 22576case $ac_abs_builddir in 22577.) ac_abs_top_srcdir=$ac_top_srcdir;; 22578*) 22579 case $ac_top_srcdir in 22580 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22581 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22582 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22583 esac;; 22584esac 22585 22586 22587 case $INSTALL in 22588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22589 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22590 esac 22591 22592 if test x"$ac_file" != x-; then 22593 { echo "$as_me:$LINENO: creating $ac_file" >&5 22594echo "$as_me: creating $ac_file" >&6;} 22595 rm -f "$ac_file" 22596 fi 22597 # Let's still pretend it is `configure' which instantiates (i.e., don't 22598 # use $as_me), people would be surprised to read: 22599 # /* config.h. Generated by config.status. */ 22600 if test x"$ac_file" = x-; then 22601 configure_input= 22602 else 22603 configure_input="$ac_file. " 22604 fi 22605 configure_input=$configure_input"Generated from `echo $ac_file_in | 22606 sed 's,.*/,,'` by configure." 22607 22608 # First look for the input files in the build tree, otherwise in the 22609 # src tree. 22610 ac_file_inputs=`IFS=: 22611 for f in $ac_file_in; do 22612 case $f in 22613 -) echo $tmp/stdin ;; 22614 [\\/$]*) 22615 # Absolute (can't be DOS-style, as IFS=:) 22616 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22617echo "$as_me: error: cannot find input file: $f" >&2;} 22618 { (exit 1); exit 1; }; } 22619 echo "$f";; 22620 *) # Relative 22621 if test -f "$f"; then 22622 # Build tree 22623 echo "$f" 22624 elif test -f "$srcdir/$f"; then 22625 # Source tree 22626 echo "$srcdir/$f" 22627 else 22628 # /dev/null tree 22629 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22630echo "$as_me: error: cannot find input file: $f" >&2;} 22631 { (exit 1); exit 1; }; } 22632 fi;; 22633 esac 22634 done` || { (exit 1); exit 1; } 22635_ACEOF 22636cat >>$CONFIG_STATUS <<_ACEOF 22637 sed "$ac_vpsub 22638$extrasub 22639_ACEOF 22640cat >>$CONFIG_STATUS <<\_ACEOF 22641:t 22642/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22643s,@configure_input@,$configure_input,;t t 22644s,@srcdir@,$ac_srcdir,;t t 22645s,@abs_srcdir@,$ac_abs_srcdir,;t t 22646s,@top_srcdir@,$ac_top_srcdir,;t t 22647s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22648s,@builddir@,$ac_builddir,;t t 22649s,@abs_builddir@,$ac_abs_builddir,;t t 22650s,@top_builddir@,$ac_top_builddir,;t t 22651s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22652s,@INSTALL@,$ac_INSTALL,;t t 22653" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22654 rm -f $tmp/stdin 22655 if test x"$ac_file" != x-; then 22656 mv $tmp/out $ac_file 22657 else 22658 cat $tmp/out 22659 rm -f $tmp/out 22660 fi 22661 22662done 22663_ACEOF 22664cat >>$CONFIG_STATUS <<\_ACEOF 22665 22666# 22667# CONFIG_HEADER section. 22668# 22669 22670# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 22671# NAME is the cpp macro being defined and VALUE is the value it is being given. 22672# 22673# ac_d sets the value in "#define NAME VALUE" lines. 22674ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22675ac_dB='[ ].*$,\1#\2' 22676ac_dC=' ' 22677ac_dD=',;t' 22678# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22679ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22680ac_uB='$,\1#\2define\3' 22681ac_uC=' ' 22682ac_uD=',;t' 22683 22684for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 22685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22686 case $ac_file in 22687 - | *:- | *:-:* ) # input from stdin 22688 cat >$tmp/stdin 22689 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22691 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22693 * ) ac_file_in=$ac_file.in ;; 22694 esac 22695 22696 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 22697echo "$as_me: creating $ac_file" >&6;} 22698 22699 # First look for the input files in the build tree, otherwise in the 22700 # src tree. 22701 ac_file_inputs=`IFS=: 22702 for f in $ac_file_in; do 22703 case $f in 22704 -) echo $tmp/stdin ;; 22705 [\\/$]*) 22706 # Absolute (can't be DOS-style, as IFS=:) 22707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22708echo "$as_me: error: cannot find input file: $f" >&2;} 22709 { (exit 1); exit 1; }; } 22710 # Do quote $f, to prevent DOS paths from being IFS'd. 22711 echo "$f";; 22712 *) # Relative 22713 if test -f "$f"; then 22714 # Build tree 22715 echo "$f" 22716 elif test -f "$srcdir/$f"; then 22717 # Source tree 22718 echo "$srcdir/$f" 22719 else 22720 # /dev/null tree 22721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22722echo "$as_me: error: cannot find input file: $f" >&2;} 22723 { (exit 1); exit 1; }; } 22724 fi;; 22725 esac 22726 done` || { (exit 1); exit 1; } 22727 # Remove the trailing spaces. 22728 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22729 22730_ACEOF 22731 22732# Transform confdefs.h into two sed scripts, `conftest.defines' and 22733# `conftest.undefs', that substitutes the proper values into 22734# config.h.in to produce config.h. The first handles `#define' 22735# templates, and the second `#undef' templates. 22736# And first: Protect against being on the right side of a sed subst in 22737# config.status. Protect against being in an unquoted here document 22738# in config.status. 22739rm -f conftest.defines conftest.undefs 22740# Using a here document instead of a string reduces the quoting nightmare. 22741# Putting comments in sed scripts is not portable. 22742# 22743# `end' is used to avoid that the second main sed command (meant for 22744# 0-ary CPP macros) applies to n-ary macro definitions. 22745# See the Autoconf documentation for `clear'. 22746cat >confdef2sed.sed <<\_ACEOF 22747s/[\\&,]/\\&/g 22748s,[\\$`],\\&,g 22749t clear 22750: clear 22751s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22752t end 22753s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22754: end 22755_ACEOF 22756# If some macros were called several times there might be several times 22757# the same #defines, which is useless. Nevertheless, we may not want to 22758# sort them, since we want the *last* AC-DEFINE to be honored. 22759uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22760sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22761rm -f confdef2sed.sed 22762 22763# This sed command replaces #undef with comments. This is necessary, for 22764# example, in the case of _POSIX_SOURCE, which is predefined and required 22765# on some systems where configure will not decide to define it. 22766cat >>conftest.undefs <<\_ACEOF 22767s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22768_ACEOF 22769 22770# Break up conftest.defines because some shells have a limit on the size 22771# of here documents, and old seds have small limits too (100 cmds). 22772echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22773echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22774echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22775echo ' :' >>$CONFIG_STATUS 22776rm -f conftest.tail 22777while grep . conftest.defines >/dev/null 22778do 22779 # Write a limited-size here document to $tmp/defines.sed. 22780 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22781 # Speed up: don't consider the non `#define' lines. 22782 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22783 # Work around the forget-to-reset-the-flag bug. 22784 echo 't clr' >>$CONFIG_STATUS 22785 echo ': clr' >>$CONFIG_STATUS 22786 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22787 echo 'CEOF 22788 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22789 rm -f $tmp/in 22790 mv $tmp/out $tmp/in 22791' >>$CONFIG_STATUS 22792 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22793 rm -f conftest.defines 22794 mv conftest.tail conftest.defines 22795done 22796rm -f conftest.defines 22797echo ' fi # grep' >>$CONFIG_STATUS 22798echo >>$CONFIG_STATUS 22799 22800# Break up conftest.undefs because some shells have a limit on the size 22801# of here documents, and old seds have small limits too (100 cmds). 22802echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22803rm -f conftest.tail 22804while grep . conftest.undefs >/dev/null 22805do 22806 # Write a limited-size here document to $tmp/undefs.sed. 22807 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22808 # Speed up: don't consider the non `#undef' 22809 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22810 # Work around the forget-to-reset-the-flag bug. 22811 echo 't clr' >>$CONFIG_STATUS 22812 echo ': clr' >>$CONFIG_STATUS 22813 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22814 echo 'CEOF 22815 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22816 rm -f $tmp/in 22817 mv $tmp/out $tmp/in 22818' >>$CONFIG_STATUS 22819 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22820 rm -f conftest.undefs 22821 mv conftest.tail conftest.undefs 22822done 22823rm -f conftest.undefs 22824 22825cat >>$CONFIG_STATUS <<\_ACEOF 22826 # Let's still pretend it is `configure' which instantiates (i.e., don't 22827 # use $as_me), people would be surprised to read: 22828 # /* config.h. Generated by config.status. */ 22829 if test x"$ac_file" = x-; then 22830 echo "/* Generated by configure. */" >$tmp/config.h 22831 else 22832 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22833 fi 22834 cat $tmp/in >>$tmp/config.h 22835 rm -f $tmp/in 22836 if test x"$ac_file" != x-; then 22837 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22838 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22839echo "$as_me: $ac_file is unchanged" >&6;} 22840 else 22841 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22842$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22843 X"$ac_file" : 'X\(//\)[^/]' \| \ 22844 X"$ac_file" : 'X\(//\)$' \| \ 22845 X"$ac_file" : 'X\(/\)' \| \ 22846 . : '\(.\)' 2>/dev/null || 22847echo X"$ac_file" | 22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22850 /^X\(\/\/\)$/{ s//\1/; q; } 22851 /^X\(\/\).*/{ s//\1/; q; } 22852 s/.*/./; q'` 22853 { if $as_mkdir_p; then 22854 mkdir -p "$ac_dir" 22855 else 22856 as_dir="$ac_dir" 22857 as_dirs= 22858 while test ! -d "$as_dir"; do 22859 as_dirs="$as_dir $as_dirs" 22860 as_dir=`(dirname "$as_dir") 2>/dev/null || 22861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22862 X"$as_dir" : 'X\(//\)[^/]' \| \ 22863 X"$as_dir" : 'X\(//\)$' \| \ 22864 X"$as_dir" : 'X\(/\)' \| \ 22865 . : '\(.\)' 2>/dev/null || 22866echo X"$as_dir" | 22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22868 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22869 /^X\(\/\/\)$/{ s//\1/; q; } 22870 /^X\(\/\).*/{ s//\1/; q; } 22871 s/.*/./; q'` 22872 done 22873 test ! -n "$as_dirs" || mkdir $as_dirs 22874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22875echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22876 { (exit 1); exit 1; }; }; } 22877 22878 rm -f $ac_file 22879 mv $tmp/config.h $ac_file 22880 fi 22881 else 22882 cat $tmp/config.h 22883 rm -f $tmp/config.h 22884 fi 22885# Compute $ac_file's index in $config_headers. 22886_am_stamp_count=1 22887for _am_header in $config_headers :; do 22888 case $_am_header in 22889 $ac_file | $ac_file:* ) 22890 break ;; 22891 * ) 22892 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22893 esac 22894done 22895echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 22896$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22897 X$ac_file : 'X\(//\)[^/]' \| \ 22898 X$ac_file : 'X\(//\)$' \| \ 22899 X$ac_file : 'X\(/\)' \| \ 22900 . : '\(.\)' 2>/dev/null || 22901echo X$ac_file | 22902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22903 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22904 /^X\(\/\/\)$/{ s//\1/; q; } 22905 /^X\(\/\).*/{ s//\1/; q; } 22906 s/.*/./; q'`/stamp-h$_am_stamp_count 22907done 22908_ACEOF 22909cat >>$CONFIG_STATUS <<\_ACEOF 22910 22911# 22912# CONFIG_COMMANDS section. 22913# 22914for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22917 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22918$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22919 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22920 X"$ac_dest" : 'X\(//\)$' \| \ 22921 X"$ac_dest" : 'X\(/\)' \| \ 22922 . : '\(.\)' 2>/dev/null || 22923echo X"$ac_dest" | 22924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22925 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22926 /^X\(\/\/\)$/{ s//\1/; q; } 22927 /^X\(\/\).*/{ s//\1/; q; } 22928 s/.*/./; q'` 22929 { if $as_mkdir_p; then 22930 mkdir -p "$ac_dir" 22931 else 22932 as_dir="$ac_dir" 22933 as_dirs= 22934 while test ! -d "$as_dir"; do 22935 as_dirs="$as_dir $as_dirs" 22936 as_dir=`(dirname "$as_dir") 2>/dev/null || 22937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22938 X"$as_dir" : 'X\(//\)[^/]' \| \ 22939 X"$as_dir" : 'X\(//\)$' \| \ 22940 X"$as_dir" : 'X\(/\)' \| \ 22941 . : '\(.\)' 2>/dev/null || 22942echo X"$as_dir" | 22943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22944 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22945 /^X\(\/\/\)$/{ s//\1/; q; } 22946 /^X\(\/\).*/{ s//\1/; q; } 22947 s/.*/./; q'` 22948 done 22949 test ! -n "$as_dirs" || mkdir $as_dirs 22950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22952 { (exit 1); exit 1; }; }; } 22953 22954 ac_builddir=. 22955 22956if test "$ac_dir" != .; then 22957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22958 # A "../" for each directory in $ac_dir_suffix. 22959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22960else 22961 ac_dir_suffix= ac_top_builddir= 22962fi 22963 22964case $srcdir in 22965 .) # No --srcdir option. We are building in place. 22966 ac_srcdir=. 22967 if test -z "$ac_top_builddir"; then 22968 ac_top_srcdir=. 22969 else 22970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22971 fi ;; 22972 [\\/]* | ?:[\\/]* ) # Absolute path. 22973 ac_srcdir=$srcdir$ac_dir_suffix; 22974 ac_top_srcdir=$srcdir ;; 22975 *) # Relative path. 22976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22977 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22978esac 22979 22980# Do not use `cd foo && pwd` to compute absolute paths, because 22981# the directories may not exist. 22982case `pwd` in 22983.) ac_abs_builddir="$ac_dir";; 22984*) 22985 case "$ac_dir" in 22986 .) ac_abs_builddir=`pwd`;; 22987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22988 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22989 esac;; 22990esac 22991case $ac_abs_builddir in 22992.) ac_abs_top_builddir=${ac_top_builddir}.;; 22993*) 22994 case ${ac_top_builddir}. in 22995 .) ac_abs_top_builddir=$ac_abs_builddir;; 22996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22998 esac;; 22999esac 23000case $ac_abs_builddir in 23001.) ac_abs_srcdir=$ac_srcdir;; 23002*) 23003 case $ac_srcdir in 23004 .) ac_abs_srcdir=$ac_abs_builddir;; 23005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23007 esac;; 23008esac 23009case $ac_abs_builddir in 23010.) ac_abs_top_srcdir=$ac_top_srcdir;; 23011*) 23012 case $ac_top_srcdir in 23013 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23016 esac;; 23017esac 23018 23019 23020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23021echo "$as_me: executing $ac_dest commands" >&6;} 23022 case $ac_dest in 23023 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23024 # Strip MF so we end up with the name of the file. 23025 mf=`echo "$mf" | sed -e 's/:.*$//'` 23026 # Check whether this is an Automake generated Makefile or not. 23027 # We used to match only the files named `Makefile.in', but 23028 # some people rename them; so instead we look at the file content. 23029 # Grep'ing the first line is not enough: some people post-process 23030 # each Makefile.in and add a new line on top of each file to say so. 23031 # So let's grep whole file. 23032 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23033 dirpart=`(dirname "$mf") 2>/dev/null || 23034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23035 X"$mf" : 'X\(//\)[^/]' \| \ 23036 X"$mf" : 'X\(//\)$' \| \ 23037 X"$mf" : 'X\(/\)' \| \ 23038 . : '\(.\)' 2>/dev/null || 23039echo X"$mf" | 23040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23041 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23042 /^X\(\/\/\)$/{ s//\1/; q; } 23043 /^X\(\/\).*/{ s//\1/; q; } 23044 s/.*/./; q'` 23045 else 23046 continue 23047 fi 23048 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 23049 # Extract the definition of DEP_FILES from the Makefile without 23050 # running `make'. 23051 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 23052 test -z "$DEPDIR" && continue 23053 # When using ansi2knr, U may be empty or an underscore; expand it 23054 U=`sed -n -e '/^U = / s///p' < "$mf"` 23055 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 23056 # We invoke sed twice because it is the simplest approach to 23057 # changing $(DEPDIR) to its actual value in the expansion. 23058 for file in `sed -n -e ' 23059 /^DEP_FILES = .*\\\\$/ { 23060 s/^DEP_FILES = // 23061 :loop 23062 s/\\\\$// 23063 p 23064 n 23065 /\\\\$/ b loop 23066 p 23067 } 23068 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 23069 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23070 # Make sure the directory exists. 23071 test -f "$dirpart/$file" && continue 23072 fdir=`(dirname "$file") 2>/dev/null || 23073$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23074 X"$file" : 'X\(//\)[^/]' \| \ 23075 X"$file" : 'X\(//\)$' \| \ 23076 X"$file" : 'X\(/\)' \| \ 23077 . : '\(.\)' 2>/dev/null || 23078echo X"$file" | 23079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23080 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23081 /^X\(\/\/\)$/{ s//\1/; q; } 23082 /^X\(\/\).*/{ s//\1/; q; } 23083 s/.*/./; q'` 23084 { if $as_mkdir_p; then 23085 mkdir -p $dirpart/$fdir 23086 else 23087 as_dir=$dirpart/$fdir 23088 as_dirs= 23089 while test ! -d "$as_dir"; do 23090 as_dirs="$as_dir $as_dirs" 23091 as_dir=`(dirname "$as_dir") 2>/dev/null || 23092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23093 X"$as_dir" : 'X\(//\)[^/]' \| \ 23094 X"$as_dir" : 'X\(//\)$' \| \ 23095 X"$as_dir" : 'X\(/\)' \| \ 23096 . : '\(.\)' 2>/dev/null || 23097echo X"$as_dir" | 23098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23099 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23100 /^X\(\/\/\)$/{ s//\1/; q; } 23101 /^X\(\/\).*/{ s//\1/; q; } 23102 s/.*/./; q'` 23103 done 23104 test ! -n "$as_dirs" || mkdir $as_dirs 23105 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23106echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23107 { (exit 1); exit 1; }; }; } 23108 23109 # echo "creating $dirpart/$file" 23110 echo '# dummy' > "$dirpart/$file" 23111 done 23112done 23113 ;; 23114 esac 23115done 23116_ACEOF 23117 23118cat >>$CONFIG_STATUS <<\_ACEOF 23119 23120{ (exit 0); exit 0; } 23121_ACEOF 23122chmod +x $CONFIG_STATUS 23123ac_clean_files=$ac_clean_files_save 23124 23125 23126# configure is writing to config.log, and then calls config.status. 23127# config.status does its own redirection, appending to config.log. 23128# Unfortunately, on DOS this fails, as config.log is still kept open 23129# by configure, so config.status won't be able to write to it; its 23130# output is simply discarded. So we exec the FD to /dev/null, 23131# effectively closing config.log, so it can be properly (re)opened and 23132# appended to by config.status. When coming back to configure, we 23133# need to make the FD available again. 23134if test "$no_create" != yes; then 23135 ac_cs_success=: 23136 ac_config_status_args= 23137 test "$silent" = yes && 23138 ac_config_status_args="$ac_config_status_args --quiet" 23139 exec 5>/dev/null 23140 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23141 exec 5>>config.log 23142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23143 # would make configure fail if this is the last instruction. 23144 $ac_cs_success || { (exit 1); exit 1; } 23145fi 23146 23147