OSDN Git Service

*** empty log message ***
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56 for TiMidity++ 2.12.0-pre1b.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
46   if (set +x; test -n "`(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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
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
99 fi
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
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='TiMidity++'
270 PACKAGE_TARNAME='TiMidity++'
271 PACKAGE_VERSION='2.12.0-pre1b'
272 PACKAGE_STRING='TiMidity++ 2.12.0-pre1b'
273 PACKAGE_BUGREPORT='root@mput.dip.jp'
274
275 ac_unique_file="timidity/timidity.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
836   --program-prefix=PREFIX            prepend PREFIX to installed program names
837   --program-suffix=SUFFIX            append SUFFIX to installed program names
838   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840 X features:
841   --x-includes=DIR    X include files are in DIR
842   --x-libraries=DIR   X library files are in DIR
843
844 System types:
845   --build=BUILD     configure for building on BUILD [guessed]
846   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
847   --target=TARGET   configure for building compilers for TARGET [HOST]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852   case $ac_init_help in
853      short | recursive ) echo "Configuration of TiMidity++ 2.12.0-pre1b:";;
854    esac
855   cat <<\_ACEOF
856
857 Optional Features:
858   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860   --enable-maintainer-mode enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --enable-debug          Build a debugging version.
863   --disable-dependency-tracking Speeds up one-time builds
864   --enable-dependency-tracking  Do not reject slow dependency extractors
865   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
866                               default:   Automatically select audio device.
867                               oss:       OSS /dev/dsp
868                               sun:       SunOS /dev/audio
869                               hpux:      HPUX /dev/audio
870                               irix:      IRIX audio library
871                               mme:       OSF/1 MME
872                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
873                               w32:       Windows MMS
874                               darwin:    Darwin CoreAudio
875                               alsa:      ALSA pcm device
876                               alib:      HPUX network audio (Alib)
877                               nas:       NAS - Network Audio System
878                               arts:      aRts
879                               esd:       EsounD - Enlightened Sound Daemon
880                               portaudio: PortAudio
881                               vorbis:    Ogg Vorbis
882                               gogo:      MP3 GOGO (Only Windows is supported)
883   --disable-alsatest      Do not try to compile and run a test Alsa program
884   --disable-artstest       Do not try to compile and run a test ARTS program
885   --disable-esdtest       Do not try to compile and run a test ESD program
886   --disable-oggtest       Do not try to compile and run a test Ogg program
887   --disable-vorbistest       Do not try to compile and run a test Vorbis program
888   --enable-interface=interface_list
889                           Comma separated interface list
890   --enable-dynamic        Enable dynamic link interface   (default is no)
891   --enable-dynamic=dynamic_list
892                           Comma separated dynamic interface list
893   --enable-ncurses        Enable ncurses interface        (default is no)
894   --enable-slang          Enable slang interface          (default is no)
895   --enable-motif          Enable motif interface          (default is no)
896   --enable-tcltk          Enable tcltk interface          (default is no)
897   --enable-emacs          Enable emacs interface          (default is no)
898   --enable-vt100          Enable VT100 interface          (default is no)
899   --enable-xaw            Enable athena interface         (default is no)
900   --enable-xskin          Enable X skin interface         (default is no)
901   --enable-gtk            Enable GTK+ interface           (default is no)
902   --disable-gtktest       Do not try to compile and run a test GTK program
903   --enable-server         Enable server interface         (default is no)
904   --enable-alsaseq        Enable ALSA sequencer server interface
905                                                           (default is no)
906   --enable-winsyn        Enable Windows Synthesizer interface
907                                                           (default is no)
908   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
909                                                           (default is no)
910   --enable-winsyng        Enable Windows GUI Synthesizer interface
911                                                           (default is no)
912   --enable-w32gui         Enable Windows GUI interface    (default is no)
913   --enable-ump            UMP configuration               (default is no)
914   --enable-offix          Enable offix support            (default is no)
915   --enable-network        Enable network support          (default is no)
916   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
917   --enable-spline=method  Specify spline method.
918                                   one of no,linear,cubic,lagrange,newton,gauss
919                                                           (default is linear)
920   --enable-wrd            Enable WRD interface for X      (default is no)
921
922 Optional Packages:
923   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
924   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
925   --with-includes=DIR     Specify include directories (colon separated)
926   --with-libraries=DIR    Specify library directories (colon separated)
927   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
928   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
929   --with-lispdir          Override the default lisp directory
930   --with-elf              create ELF shared object instead of AOUT
931   --with-simd             create SIMD friendly binary (default is no)
932   --with-x                use the X Window System
933   --with-tcl-includes=DIR Tcl include file path
934   --with-tcl-libs=DIR     Tcl library file path
935   --with-tk-includes=DIR  Tk include file path
936   --with-tk-libs=DIR      Tk library file path
937   --with-offix-includes=DIR Offix include file path
938   --with-offix-libs=DIR   Offix include file path
939   --with-nas-library=library NAS absolute library path(Don't use -laudio)
940   --with-nas-includes=DIR NAS include files are in dir
941   --with-default-output=<mode>  Specify default output mode (optional):
942                                 (default|alsa|alib|arts|nas|
943                                 esd|wav|au|aiff|list|vorbis|
944                                 gogo|portaudio)
945   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
946   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
947   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
948   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
949   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
950   --with-ogg=PFX   Prefix where libogg is installed (optional)
951   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
952   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
953   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
954   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
955   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
956   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
957   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
958
959 Some influential environment variables:
960   CC          C compiler command
961   CFLAGS      C compiler flags
962   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
963               nonstandard directory <lib dir>
964   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
965               headers in a nonstandard directory <include dir>
966   CPP         C preprocessor
967
968 Use these variables to override the choices made by `configure' or to help
969 it to find libraries and programs with nonstandard names/locations.
970
971 Report bugs to <root@mput.dip.jp>.
972 _ACEOF
973 fi
974
975 if test "$ac_init_help" = "recursive"; then
976   # If there are subdirs, report their specific --help.
977   ac_popdir=`pwd`
978   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
979     test -d $ac_dir || continue
980     ac_builddir=.
981
982 if test "$ac_dir" != .; then
983   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
984   # A "../" for each directory in $ac_dir_suffix.
985   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
986 else
987   ac_dir_suffix= ac_top_builddir=
988 fi
989
990 case $srcdir in
991   .)  # No --srcdir option.  We are building in place.
992     ac_srcdir=.
993     if test -z "$ac_top_builddir"; then
994        ac_top_srcdir=.
995     else
996        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
997     fi ;;
998   [\\/]* | ?:[\\/]* )  # Absolute path.
999     ac_srcdir=$srcdir$ac_dir_suffix;
1000     ac_top_srcdir=$srcdir ;;
1001   *) # Relative path.
1002     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1003     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1004 esac
1005 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1006 # absolute.
1007 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1008 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1009 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1010 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1011
1012     cd $ac_dir
1013     # Check for guested configure; otherwise get Cygnus style configure.
1014     if test -f $ac_srcdir/configure.gnu; then
1015       echo
1016       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1017     elif test -f $ac_srcdir/configure; then
1018       echo
1019       $SHELL $ac_srcdir/configure  --help=recursive
1020     elif test -f $ac_srcdir/configure.ac ||
1021            test -f $ac_srcdir/configure.in; then
1022       echo
1023       $ac_configure --help
1024     else
1025       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026     fi
1027     cd $ac_popdir
1028   done
1029 fi
1030
1031 test -n "$ac_init_help" && exit 0
1032 if $ac_init_version; then
1033   cat <<\_ACEOF
1034 TiMidity++ configure 2.12.0-pre1b
1035 generated by GNU Autoconf 2.56
1036
1037 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1038 Free Software Foundation, Inc.
1039 This configure script is free software; the Free Software Foundation
1040 gives unlimited permission to copy, distribute and modify it.
1041 _ACEOF
1042   exit 0
1043 fi
1044 exec 5>config.log
1045 cat >&5 <<_ACEOF
1046 This file contains any messages produced by compilers while
1047 running configure, to aid debugging if configure makes a mistake.
1048
1049 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1050 generated by GNU Autoconf 2.56.  Invocation command line was
1051
1052   $ $0 $@
1053
1054 _ACEOF
1055 {
1056 cat <<_ASUNAME
1057 ## --------- ##
1058 ## Platform. ##
1059 ## --------- ##
1060
1061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1066
1067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1068 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1069
1070 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1071 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1073 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1074 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1075 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1076 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1077
1078 _ASUNAME
1079
1080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1081 for as_dir in $PATH
1082 do
1083   IFS=$as_save_IFS
1084   test -z "$as_dir" && as_dir=.
1085   echo "PATH: $as_dir"
1086 done
1087
1088 } >&5
1089
1090 cat >&5 <<_ACEOF
1091
1092
1093 ## ----------- ##
1094 ## Core tests. ##
1095 ## ----------- ##
1096
1097 _ACEOF
1098
1099
1100 # Keep a trace of the command line.
1101 # Strip out --no-create and --no-recursion so they do not pile up.
1102 # Strip out --silent because we don't want to record it for future runs.
1103 # Also quote any args containing shell meta-characters.
1104 # Make two passes to allow for proper duplicate-argument suppression.
1105 ac_configure_args=
1106 ac_configure_args0=
1107 ac_configure_args1=
1108 ac_sep=
1109 ac_must_keep_next=false
1110 for ac_pass in 1 2
1111 do
1112   for ac_arg
1113   do
1114     case $ac_arg in
1115     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1116     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117     | -silent | --silent | --silen | --sile | --sil)
1118       continue ;;
1119     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1120       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1121     esac
1122     case $ac_pass in
1123     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1124     2)
1125       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1126       if test $ac_must_keep_next = true; then
1127         ac_must_keep_next=false # Got value, back to normal.
1128       else
1129         case $ac_arg in
1130           *=* | --config-cache | -C | -disable-* | --disable-* \
1131           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1132           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1133           | -with-* | --with-* | -without-* | --without-* | --x)
1134             case "$ac_configure_args0 " in
1135               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1136             esac
1137             ;;
1138           -* ) ac_must_keep_next=true ;;
1139         esac
1140       fi
1141       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1142       # Get rid of the leading space.
1143       ac_sep=" "
1144       ;;
1145     esac
1146   done
1147 done
1148 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1149 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1150
1151 # When interrupted or exit'd, cleanup temporary files, and complete
1152 # config.log.  We remove comments because anyway the quotes in there
1153 # would cause problems or look ugly.
1154 # WARNING: Be sure not to use single quotes in there, as some shells,
1155 # such as our DU 5.0 friend, will then `close' the trap.
1156 trap 'exit_status=$?
1157   # Save into config.log some information that might help in debugging.
1158   {
1159     echo
1160
1161     cat <<\_ASBOX
1162 ## ---------------- ##
1163 ## Cache variables. ##
1164 ## ---------------- ##
1165 _ASBOX
1166     echo
1167     # The following way of writing the cache mishandles newlines in values,
1168 {
1169   (set) 2>&1 |
1170     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1171     *ac_space=\ *)
1172       sed -n \
1173         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1174           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1175       ;;
1176     *)
1177       sed -n \
1178         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1179       ;;
1180     esac;
1181 }
1182     echo
1183
1184     cat <<\_ASBOX
1185 ## ----------------- ##
1186 ## Output variables. ##
1187 ## ----------------- ##
1188 _ASBOX
1189     echo
1190     for ac_var in $ac_subst_vars
1191     do
1192       eval ac_val=$`echo $ac_var`
1193       echo "$ac_var='"'"'$ac_val'"'"'"
1194     done | sort
1195     echo
1196
1197     if test -n "$ac_subst_files"; then
1198       cat <<\_ASBOX
1199 ## ------------- ##
1200 ## Output files. ##
1201 ## ------------- ##
1202 _ASBOX
1203       echo
1204       for ac_var in $ac_subst_files
1205       do
1206         eval ac_val=$`echo $ac_var`
1207         echo "$ac_var='"'"'$ac_val'"'"'"
1208       done | sort
1209       echo
1210     fi
1211
1212     if test -s confdefs.h; then
1213       cat <<\_ASBOX
1214 ## ----------- ##
1215 ## confdefs.h. ##
1216 ## ----------- ##
1217 _ASBOX
1218       echo
1219       sed "/^$/d" confdefs.h | sort
1220       echo
1221     fi
1222     test "$ac_signal" != 0 &&
1223       echo "$as_me: caught signal $ac_signal"
1224     echo "$as_me: exit $exit_status"
1225   } >&5
1226   rm -f core core.* *.core &&
1227   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1228     exit $exit_status
1229      ' 0
1230 for ac_signal in 1 2 13 15; do
1231   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1232 done
1233 ac_signal=0
1234
1235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1236 rm -rf conftest* confdefs.h
1237 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1238 echo >confdefs.h
1239
1240 # Predefined preprocessor variables.
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_NAME "$PACKAGE_NAME"
1244 _ACEOF
1245
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_STRING "$PACKAGE_STRING"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1264 _ACEOF
1265
1266
1267 # Let the site file select an alternate cache file if it wants to.
1268 # Prefer explicitly selected file to automatically selected ones.
1269 if test -z "$CONFIG_SITE"; then
1270   if test "x$prefix" != xNONE; then
1271     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1272   else
1273     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1274   fi
1275 fi
1276 for ac_site_file in $CONFIG_SITE; do
1277   if test -r "$ac_site_file"; then
1278     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1279 echo "$as_me: loading site script $ac_site_file" >&6;}
1280     sed 's/^/| /' "$ac_site_file" >&5
1281     . "$ac_site_file"
1282   fi
1283 done
1284
1285 if test -r "$cache_file"; then
1286   # Some versions of bash will fail to source /dev/null (special
1287   # files actually), so we avoid doing that.
1288   if test -f "$cache_file"; then
1289     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1290 echo "$as_me: loading cache $cache_file" >&6;}
1291     case $cache_file in
1292       [\\/]* | ?:[\\/]* ) . $cache_file;;
1293       *)                      . ./$cache_file;;
1294     esac
1295   fi
1296 else
1297   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1298 echo "$as_me: creating cache $cache_file" >&6;}
1299   >$cache_file
1300 fi
1301
1302 # Check that the precious variables saved in the cache have kept the same
1303 # value.
1304 ac_cache_corrupted=false
1305 for ac_var in `(set) 2>&1 |
1306                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1307   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1308   eval ac_new_set=\$ac_env_${ac_var}_set
1309   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1310   eval ac_new_val="\$ac_env_${ac_var}_value"
1311   case $ac_old_set,$ac_new_set in
1312     set,)
1313       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1315       ac_cache_corrupted=: ;;
1316     ,set)
1317       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1319       ac_cache_corrupted=: ;;
1320     ,);;
1321     *)
1322       if test "x$ac_old_val" != "x$ac_new_val"; then
1323         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1324 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1325         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1326 echo "$as_me:   former value:  $ac_old_val" >&2;}
1327         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1328 echo "$as_me:   current value: $ac_new_val" >&2;}
1329         ac_cache_corrupted=:
1330       fi;;
1331   esac
1332   # Pass precious variables to config.status.
1333   if test "$ac_new_set" = set; then
1334     case $ac_new_val in
1335     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1337     *) ac_arg=$ac_var=$ac_new_val ;;
1338     esac
1339     case " $ac_configure_args " in
1340       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1341       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1342     esac
1343   fi
1344 done
1345 if $ac_cache_corrupted; then
1346   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1347 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1348   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1349 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352
1353 ac_ext=c
1354 ac_cpp='$CPP $CPPFLAGS'
1355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 ac_aux_dir=
1386 for ac_dir in autoconf $srcdir/autoconf; do
1387   if test -f $ac_dir/install-sh; then
1388     ac_aux_dir=$ac_dir
1389     ac_install_sh="$ac_aux_dir/install-sh -c"
1390     break
1391   elif test -f $ac_dir/install.sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install.sh -c"
1394     break
1395   elif test -f $ac_dir/shtool; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/shtool install -c"
1398     break
1399   fi
1400 done
1401 if test -z "$ac_aux_dir"; then
1402   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1404    { (exit 1); exit 1; }; }
1405 fi
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414    { (exit 1); exit 1; }; }
1415
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423   ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427    { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431    { (exit 1); exit 1; }; }
1432
1433 fi
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1436 build=$ac_cv_build
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440
1441
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449   ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453    { (exit 1); exit 1; }; }
1454
1455 fi
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1458 host=$ac_cv_host
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462
1463
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471   ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475    { (exit 1); exit 1; }; }
1476
1477 fi
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484
1485
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489   test "$program_prefix$program_suffix$program_transform_name" = \
1490     NONENONEs,x,x, &&
1491   program_prefix=${target_alias}-
1492 am__api_version="1.7"
1493 # Find a good install program.  We prefer a C program (faster),
1494 # so one script is as good as another.  But avoid the broken or
1495 # incompatible versions:
1496 # SysV /etc/install, /usr/sbin/install
1497 # SunOS /usr/etc/install
1498 # IRIX /sbin/install
1499 # AIX /bin/install
1500 # AmigaOS /C/install, which installs bootblocks on floppy discs
1501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1504 # ./install, which can be erroneously created by make from ./install.sh.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   # Account for people who put trailing slashes in PATH elements.
1517 case $as_dir/ in
1518   ./ | .// | /cC/* | \
1519   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520   /usr/ucb/* ) ;;
1521   *)
1522     # OSF1 and SCO ODT 3.0 have their own names for install.
1523     # Don't use installbsd from OSF since it installs stuff as root
1524     # by default.
1525     for ac_prog in ginstall scoinst install; do
1526       for ac_exec_ext in '' $ac_executable_extensions; do
1527         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1528           if test $ac_prog = install &&
1529             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530             # AIX install.  It has an incompatible calling convention.
1531             :
1532           elif test $ac_prog = install &&
1533             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534             # program-specific install script used by HP pwplus--don't use.
1535             :
1536           else
1537             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1538             break 3
1539           fi
1540         fi
1541       done
1542     done
1543     ;;
1544 esac
1545 done
1546
1547
1548 fi
1549   if test "${ac_cv_path_install+set}" = set; then
1550     INSTALL=$ac_cv_path_install
1551   else
1552     # As a last resort, use the slow shell script.  We don't cache a
1553     # path for INSTALL within a source directory, because that will
1554     # break other packages using the cache if that directory is
1555     # removed, or if the path is relative.
1556     INSTALL=$ac_install_sh
1557   fi
1558 fi
1559 echo "$as_me:$LINENO: result: $INSTALL" >&5
1560 echo "${ECHO_T}$INSTALL" >&6
1561
1562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1563 # It thinks the first close brace ends the variable substitution.
1564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1565
1566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1567
1568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1569
1570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1572 # Just in case
1573 sleep 1
1574 echo timestamp > conftest.file
1575 # Do `set' in a subshell so we don't clobber the current shell's
1576 # arguments.  Must try -L first in case configure is actually a
1577 # symlink; some systems play weird games with the mod time of symlinks
1578 # (eg FreeBSD returns the mod time of the symlink's containing
1579 # directory).
1580 if (
1581    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1582    if test "$*" = "X"; then
1583       # -L didn't work.
1584       set X `ls -t $srcdir/configure conftest.file`
1585    fi
1586    rm -f conftest.file
1587    if test "$*" != "X $srcdir/configure conftest.file" \
1588       && test "$*" != "X conftest.file $srcdir/configure"; then
1589
1590       # If neither matched, then we have a broken ls.  This can happen
1591       # if, for instance, CONFIG_SHELL is bash and it inherits a
1592       # broken ls alias from the environment.  This has actually
1593       # happened.  Such a system could not be considered "sane".
1594       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1595 alias in your environment" >&5
1596 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1597 alias in your environment" >&2;}
1598    { (exit 1); exit 1; }; }
1599    fi
1600
1601    test "$2" = conftest.file
1602    )
1603 then
1604    # Ok.
1605    :
1606 else
1607    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1608 Check your system clock" >&5
1609 echo "$as_me: error: newly created file is older than distributed files!
1610 Check your system clock" >&2;}
1611    { (exit 1); exit 1; }; }
1612 fi
1613 echo "$as_me:$LINENO: result: yes" >&5
1614 echo "${ECHO_T}yes" >&6
1615 test "$program_prefix" != NONE &&
1616   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1617 # Use a double $ so make ignores it.
1618 test "$program_suffix" != NONE &&
1619   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1620 # Double any \ or $.  echo might interpret backslashes.
1621 # By default was `s,x,x', remove it if useless.
1622 cat <<\_ACEOF >conftest.sed
1623 s/[\\$]/&&/g;s/;s,x,x,$//
1624 _ACEOF
1625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1626 rm conftest.sed
1627
1628
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1631
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635   am_missing_run="$MISSING --run "
1636 else
1637   am_missing_run=
1638   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1640 fi
1641
1642 for ac_prog in gawk mawk nawk awk
1643 do
1644   # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_AWK+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$AWK"; then
1652   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_AWK="$ac_prog"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 AWK=$ac_cv_prog_AWK
1671 if test -n "$AWK"; then
1672   echo "$as_me:$LINENO: result: $AWK" >&5
1673 echo "${ECHO_T}$AWK" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   test -n "$AWK" && break
1680 done
1681
1682 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1683 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1684 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1685 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   cat >conftest.make <<\_ACEOF
1689 all:
1690         @echo 'ac_maketemp="$(MAKE)"'
1691 _ACEOF
1692 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1693 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1694 if test -n "$ac_maketemp"; then
1695   eval ac_cv_prog_make_${ac_make}_set=yes
1696 else
1697   eval ac_cv_prog_make_${ac_make}_set=no
1698 fi
1699 rm -f conftest.make
1700 fi
1701 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1702   echo "$as_me:$LINENO: result: yes" >&5
1703 echo "${ECHO_T}yes" >&6
1704   SET_MAKE=
1705 else
1706   echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708   SET_MAKE="MAKE=${MAKE-make}"
1709 fi
1710
1711  # test to see if srcdir already configured
1712 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1713    test -f $srcdir/config.status; then
1714   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1715 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1716    { (exit 1); exit 1; }; }
1717 fi
1718
1719 # test whether we have cygpath
1720 if test -z "$CYGPATH_W"; then
1721   if (cygpath --version) >/dev/null 2>/dev/null; then
1722     CYGPATH_W='cygpath -w'
1723   else
1724     CYGPATH_W=echo
1725   fi
1726 fi
1727
1728
1729 # Define the identity of the package.
1730  PACKAGE=TiMidity++
1731  VERSION=2.12.0-pre1b
1732
1733
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE "$PACKAGE"
1736 _ACEOF
1737
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define VERSION "$VERSION"
1741 _ACEOF
1742
1743 # Some tools Automake needs.
1744
1745 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1746
1747
1748 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1749
1750
1751 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1752
1753
1754 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1755
1756
1757 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1758
1759
1760 AMTAR=${AMTAR-"${am_missing_run}tar"}
1761
1762 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1763
1764 # Installed binaries are usually stripped using `strip' when the user
1765 # run `make install-strip'.  However `strip' might not be the right
1766 # tool to use in cross-compilation environments, therefore Automake
1767 # will honor the `STRIP' environment variable to overrule this program.
1768 if test "$cross_compiling" != no; then
1769   if test -n "$ac_tool_prefix"; then
1770   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1771 set dummy ${ac_tool_prefix}strip; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_STRIP+set}" = set; then
1775   echo $ECHO_N "(cached) $ECHO_C" >&6
1776 else
1777   if test -n "$STRIP"; then
1778   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1779 else
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783   IFS=$as_save_IFS
1784   test -z "$as_dir" && as_dir=.
1785   for ac_exec_ext in '' $ac_executable_extensions; do
1786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789     break 2
1790   fi
1791 done
1792 done
1793
1794 fi
1795 fi
1796 STRIP=$ac_cv_prog_STRIP
1797 if test -n "$STRIP"; then
1798   echo "$as_me:$LINENO: result: $STRIP" >&5
1799 echo "${ECHO_T}$STRIP" >&6
1800 else
1801   echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 fi
1804
1805 fi
1806 if test -z "$ac_cv_prog_STRIP"; then
1807   ac_ct_STRIP=$STRIP
1808   # Extract the first word of "strip", so it can be a program name with args.
1809 set dummy strip; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1813   echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815   if test -n "$ac_ct_STRIP"; then
1816   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821   IFS=$as_save_IFS
1822   test -z "$as_dir" && as_dir=.
1823   for ac_exec_ext in '' $ac_executable_extensions; do
1824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825     ac_cv_prog_ac_ct_STRIP="strip"
1826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827     break 2
1828   fi
1829 done
1830 done
1831
1832   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1833 fi
1834 fi
1835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1836 if test -n "$ac_ct_STRIP"; then
1837   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1838 echo "${ECHO_T}$ac_ct_STRIP" >&6
1839 else
1840   echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844   STRIP=$ac_ct_STRIP
1845 else
1846   STRIP="$ac_cv_prog_STRIP"
1847 fi
1848
1849 fi
1850 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1851
1852 # We need awk for the "check" target.  The system "awk" is bad on
1853 # some platforms.
1854
1855
1856
1857
1858                     ac_config_headers="$ac_config_headers config.h interface.h"
1859
1860 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1861 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1862     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1863 if test "${enable_maintainer_mode+set}" = set; then
1864   enableval="$enable_maintainer_mode"
1865   USE_MAINTAINER_MODE=$enableval
1866 else
1867   USE_MAINTAINER_MODE=no
1868 fi;
1869   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1870 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1871
1872
1873 if test $USE_MAINTAINER_MODE = yes; then
1874   MAINTAINER_MODE_TRUE=
1875   MAINTAINER_MODE_FALSE='#'
1876 else
1877   MAINTAINER_MODE_TRUE='#'
1878   MAINTAINER_MODE_FALSE=
1879 fi
1880
1881   MAINT=$MAINTAINER_MODE_TRUE
1882
1883
1884
1885 SHELL=${CONFIG_SHELL-"/bin/sh"}
1886 WISH=${WISH-"wish"}
1887
1888 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1889 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1890 echo "grimblepritz" >grimble
1891 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1892         contains="./contains"
1893 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1894         contains=grep
1895 else
1896         contains="./contains"
1897 fi
1898 rm -f grimble
1899 case "$contains" in
1900 grep)   echo "$as_me:$LINENO: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1902         ;;
1903 ./contains)
1904         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1905 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1906         cat >./contains <<'EOSS'
1907 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1908 EOSS
1909         chmod +x "./contains"
1910         ;;
1911 esac
1912
1913
1914 # Check for compiler options -- such as debug flags.
1915
1916 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1917 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1918 # Check whether --enable-debug or --disable-debug was given.
1919 if test "${enable_debug+set}" = set; then
1920   enableval="$enable_debug"
1921   timidity_cv_debug="yes"
1922 else
1923   timidity_cv_debug="no"
1924 fi;
1925 if test "x$timidity_cv_debug" = "xyes"; then
1926
1927 cat >>confdefs.h <<\_ACEOF
1928 #define DEBUG 1
1929 _ACEOF
1930
1931   CFLAGS=${CFLAGS-"-g"}
1932 fi
1933 if test "x$timidity_cv_debug" = "xno"; then
1934
1935 cat >>confdefs.h <<\_ACEOF
1936 #define NDEBUG 1
1937 _ACEOF
1938
1939 fi
1940 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1941 echo "${ECHO_T}$timidity_cv_debug" >&6
1942
1943 CFLAGS=${CFLAGS-"-O2"}
1944
1945 if test "x$with_x" = x; then
1946   with_x=yes
1947 else
1948   x_config_flag=yes
1949 fi
1950
1951 # Checking gcc environment
1952 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1953   LDFLAGS="$LDFLAGS -L${i}"
1954 done
1955 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1956   CPPFLAGS="$CPPFLAGS -I${i}"
1957 done
1958
1959 # add $prefix if specified.
1960 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1961   LDFLAGS="-L$prefix/lib $LDFLAGS"
1962   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1963   CPPFLAGS="-I$prefix/include $CPPFLAGS"
1964 fi
1965
1966
1967 # Check whether --with-includes or --without-includes was given.
1968 if test "${with_includes+set}" = set; then
1969   withval="$with_includes"
1970    j=' '
1971     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1972       j="${j}-I${i} "
1973     done
1974     CPPFLAGS="$j$CPPFLAGS"
1975
1976 fi;
1977
1978
1979 # Check whether --with-libraries or --without-libraries was given.
1980 if test "${with_libraries+set}" = set; then
1981   withval="$with_libraries"
1982    j=' '
1983     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1984       j="${j}-L${i} "
1985     done
1986     LDFLAGS="$j$LDFLAGS"
1987
1988 fi;
1989
1990
1991
1992 # Check whether --with-default-path or --without-default-path was given.
1993 if test "${with_default_path+set}" = set; then
1994   withval="$with_default_path"
1995   pkgdatadir=$withval
1996 else
1997
1998    if test "x$prefix" != "xNONE"; then
1999       pkgdatadir='${prefix}/share/timidity'
2000    else
2001       pkgdatadir='/usr/local/share/timidity'
2002    fi
2003
2004 fi;
2005 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define DEFAULT_PATH "$tmpdefpath"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<\_ACEOF
2013 #define PKGDATADIR DEFAULT_PATH
2014 _ACEOF
2015
2016
2017
2018 # Check whether --with-module-dir or --without-module-dir was given.
2019 if test "${with_module_dir+set}" = set; then
2020   withval="$with_module_dir"
2021   pkglibdir=$withval
2022 else
2023
2024    if test "x$prefix" != "xNONE"; then
2025       pkglibdir='${prefix}/lib/timidity'
2026    else
2027       pkglibdir='/usr/local/lib/timidity'
2028    fi
2029
2030 fi;
2031 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PKGLIBDIR "$tmplibdir"
2035 _ACEOF
2036
2037
2038
2039 # Checks for programs.
2040
2041 # Check whether --with-lispdir or --without-lispdir was given.
2042 if test "${with_lispdir+set}" = set; then
2043   withval="$with_lispdir"
2044    lispdir="$withval"
2045    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2046 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2047    echo "$as_me:$LINENO: result: $lispdir" >&5
2048 echo "${ECHO_T}$lispdir" >&6
2049 else
2050
2051  # If set to t, that means we are running in a shell under Emacs.
2052  # If you have an Emacs named "t", then use the full path.
2053  test x"$EMACS" = xt && EMACS=
2054  for ac_prog in emacs xemacs
2055 do
2056   # Extract the first word of "$ac_prog", so it can be a program name with args.
2057 set dummy $ac_prog; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_EMACS+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   if test -n "$EMACS"; then
2064   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071   for ac_exec_ext in '' $ac_executable_extensions; do
2072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073     ac_cv_prog_EMACS="$ac_prog"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 fi
2081 fi
2082 EMACS=$ac_cv_prog_EMACS
2083 if test -n "$EMACS"; then
2084   echo "$as_me:$LINENO: result: $EMACS" >&5
2085 echo "${ECHO_T}$EMACS" >&6
2086 else
2087   echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091   test -n "$EMACS" && break
2092 done
2093 test -n "$EMACS" || EMACS="no"
2094
2095  if test $EMACS != "no"; then
2096    if test x${lispdir+set} != xset; then
2097      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2098 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2099 if test "${am_cv_lispdir+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2103   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2104   #  which is non-obvious for non-emacs users.
2105   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2106   #  emacsen earlier and avoid running this altogether.
2107   { (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
2108   ($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
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112         am_cv_lispdir=`sed -n \
2113        -e 's,/$,,' \
2114        -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2115        -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2116        conftest.out`
2117        rm conftest.out
2118        if test -z "$am_cv_lispdir"; then
2119          am_cv_lispdir='${datadir}/emacs/site-lisp'
2120        fi
2121
2122 fi
2123 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2124 echo "${ECHO_T}$am_cv_lispdir" >&6
2125      lispdir="$am_cv_lispdir"
2126    fi
2127  fi
2128
2129 fi;
2130
2131
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   if test -n "$CC"; then
2146   ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153   for ac_exec_ext in '' $ac_executable_extensions; do
2154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157     break 2
2158   fi
2159 done
2160 done
2161
2162 fi
2163 fi
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166   echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2168 else
2169   echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2171 fi
2172
2173 fi
2174 if test -z "$ac_cv_prog_CC"; then
2175   ac_ct_CC=$CC
2176   # Extract the first word of "gcc", so it can be a program name with args.
2177 set dummy gcc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test -n "$ac_ct_CC"; then
2184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193     ac_cv_prog_ac_ct_CC="gcc"
2194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199
2200 fi
2201 fi
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2206 else
2207   echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211   CC=$ac_ct_CC
2212 else
2213   CC="$ac_cv_prog_CC"
2214 fi
2215
2216 if test -z "$CC"; then
2217   if test -n "$ac_tool_prefix"; then
2218   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$CC"; then
2226   ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235     ac_cv_prog_CC="${ac_tool_prefix}cc"
2236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237     break 2
2238   fi
2239 done
2240 done
2241
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246   echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$ac_cv_prog_CC"; then
2255   ac_ct_CC=$CC
2256   # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263   if test -n "$ac_ct_CC"; then
2264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
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_ac_ct_CC="cc"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279
2280 fi
2281 fi
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2286 else
2287   echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2289 fi
2290
2291   CC=$ac_ct_CC
2292 else
2293   CC="$ac_cv_prog_CC"
2294 fi
2295
2296 fi
2297 if test -z "$CC"; then
2298   # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308   ac_prog_rejected=no
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2317        ac_prog_rejected=yes
2318        continue
2319      fi
2320     ac_cv_prog_CC="cc"
2321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322     break 2
2323   fi
2324 done
2325 done
2326
2327 if test $ac_prog_rejected = yes; then
2328   # We found a bogon in the path, so make sure we never use it.
2329   set dummy $ac_cv_prog_CC
2330   shift
2331   if test $# != 0; then
2332     # We chose a different compiler from the bogus one.
2333     # However, it has the same basename, so the bogon will be chosen
2334     # first if we set CC to just the basename; use the full file name.
2335     shift
2336     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2337   fi
2338 fi
2339 fi
2340 fi
2341 CC=$ac_cv_prog_CC
2342 if test -n "$CC"; then
2343   echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350 fi
2351 if test -z "$CC"; then
2352   if test -n "$ac_tool_prefix"; then
2353   for ac_prog in cl
2354   do
2355     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$CC"; then
2363   ac_cv_prog_CC="$CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383   echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6
2385 else
2386   echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390     test -n "$CC" && break
2391   done
2392 fi
2393 if test -z "$CC"; then
2394   ac_ct_CC=$CC
2395   for ac_prog in cl
2396 do
2397   # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$ac_ct_CC"; then
2405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414     ac_cv_prog_ac_ct_CC="$ac_prog"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2427 else
2428   echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2431
2432   test -n "$ac_ct_CC" && break
2433 done
2434
2435   CC=$ac_ct_CC
2436 fi
2437
2438 fi
2439
2440
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445    { (exit 1); exit 1; }; }
2446
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO:" \
2449      "checking for C compiler version" >&5
2450 ac_compiler=`set X $ac_compile; echo $2`
2451 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2452   (eval $ac_compiler --version </dev/null >&5) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }
2456 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2457   (eval $ac_compiler -v </dev/null >&5) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2462   (eval $ac_compiler -V </dev/null >&5) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466
2467 cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474
2475 int
2476 main ()
2477 {
2478
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 ac_clean_files_save=$ac_clean_files
2484 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2485 # Try to create an executable without -o first, disregard a.out.
2486 # It will help us diagnose broken compilers, and finding out an intuition
2487 # of exeext.
2488 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2489 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2491 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2492   (eval $ac_link_default) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; then
2496   # Find the output, starting from the most likely.  This scheme is
2497 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2498 # resort.
2499
2500 # Be careful to initialize this variable, since it used to be cached.
2501 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2502 ac_cv_exeext=
2503 # b.out is created by i960 compilers.
2504 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2505 do
2506   test -f "$ac_file" || continue
2507   case $ac_file in
2508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2509         ;;
2510     conftest.$ac_ext )
2511         # This is the source file.
2512         ;;
2513     [ab].out )
2514         # We found the default executable, but exeext='' is most
2515         # certainly right.
2516         break;;
2517     *.* )
2518         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519         # FIXME: I believe we export ac_cv_exeext for Libtool,
2520         # but it would be cool to find out if it's true.  Does anybody
2521         # maintain Libtool? --akim.
2522         export ac_cv_exeext
2523         break;;
2524     * )
2525         break;;
2526   esac
2527 done
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&5
2534 echo "$as_me: error: C compiler cannot create executables
2535 See \`config.log' for more details." >&2;}
2536    { (exit 77); exit 77; }; }
2537 fi
2538
2539 ac_exeext=$ac_cv_exeext
2540 echo "$as_me:$LINENO: result: $ac_file" >&5
2541 echo "${ECHO_T}$ac_file" >&6
2542
2543 # Check the compiler produces executables we can run.  If not, either
2544 # the compiler is broken, or we cross compile.
2545 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2546 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2548 # If not cross compiling, check that we can run a simple program.
2549 if test "$cross_compiling" != yes; then
2550   if { ac_try='./$ac_file'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556     cross_compiling=no
2557   else
2558     if test "$cross_compiling" = maybe; then
2559         cross_compiling=yes
2560     else
2561         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2562 If you meant to cross compile, use \`--host'.
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot run C compiled programs.
2565 If you meant to cross compile, use \`--host'.
2566 See \`config.log' for more details." >&2;}
2567    { (exit 1); exit 1; }; }
2568     fi
2569   fi
2570 fi
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573
2574 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2575 ac_clean_files=$ac_clean_files_save
2576 # Check the compiler produces executables we can run.  If not, either
2577 # the compiler is broken, or we cross compile.
2578 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2579 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2580 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2581 echo "${ECHO_T}$cross_compiling" >&6
2582
2583 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2584 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2586   (eval $ac_link) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; then
2590   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 # `rm'.
2594 for ac_file in conftest.exe conftest conftest.*; do
2595   test -f "$ac_file" || continue
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2598     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599           export ac_cv_exeext
2600           break;;
2601     * ) break;;
2602   esac
2603 done
2604 else
2605   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&2;}
2609    { (exit 1); exit 1; }; }
2610 fi
2611
2612 rm -f conftest$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2614 echo "${ECHO_T}$ac_cv_exeext" >&6
2615
2616 rm -f conftest.$ac_ext
2617 EXEEXT=$ac_cv_exeext
2618 ac_exeext=$EXEEXT
2619 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2621 if test "${ac_cv_objext+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.o conftest.obj
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; then
2646   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2647   case $ac_file in
2648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2649     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2650        break;;
2651   esac
2652 done
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }
2662 fi
2663
2664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2665 fi
2666 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2667 echo "${ECHO_T}$ac_cv_objext" >&6
2668 OBJEXT=$ac_cv_objext
2669 ac_objext=$OBJEXT
2670 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2671 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686 #ifndef __GNUC__
2687        choke me
2688 #endif
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -s conftest.$ac_objext'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; }; then
2706   ac_compiler_gnu=yes
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 ac_compiler_gnu=no
2712 fi
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2715
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2718 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2719 GCC=`test $ac_compiler_gnu = yes && echo yes`
2720 ac_test_CFLAGS=${CFLAGS+set}
2721 ac_save_CFLAGS=$CFLAGS
2722 CFLAGS="-g"
2723 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2724 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2725 if test "${ac_cv_prog_cc_g+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735
2736 int
2737 main ()
2738 {
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -s conftest.$ac_objext'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; }; then
2756   ac_cv_prog_cc_g=yes
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 ac_cv_prog_cc_g=no
2762 fi
2763 rm -f conftest.$ac_objext conftest.$ac_ext
2764 fi
2765 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2767 if test "$ac_test_CFLAGS" = set; then
2768   CFLAGS=$ac_save_CFLAGS
2769 elif test $ac_cv_prog_cc_g = yes; then
2770   if test "$GCC" = yes; then
2771     CFLAGS="-g -O2"
2772   else
2773     CFLAGS="-g"
2774   fi
2775 else
2776   if test "$GCC" = yes; then
2777     CFLAGS="-O2"
2778   else
2779     CFLAGS=
2780   fi
2781 fi
2782 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2783 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2784 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   ac_cv_prog_cc_stdc=no
2788 ac_save_CC=$CC
2789 cat >conftest.$ac_ext <<_ACEOF
2790 #line $LINENO "configure"
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796 #include <stdarg.h>
2797 #include <stdio.h>
2798 #include <sys/types.h>
2799 #include <sys/stat.h>
2800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2801 struct buf { int x; };
2802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2803 static char *e (p, i)
2804      char **p;
2805      int i;
2806 {
2807   return p[i];
2808 }
2809 static char *f (char * (*g) (char **, int), char **p, ...)
2810 {
2811   char *s;
2812   va_list v;
2813   va_start (v,p);
2814   s = g (p, va_arg (v,int));
2815   va_end (v);
2816   return s;
2817 }
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 int argc;
2823 char **argv;
2824 int
2825 main ()
2826 {
2827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX                   -qlanglvl=ansi
2835 # Ultrix and OSF/1      -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2838 # SVR4                  -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840 do
2841   CC="$ac_save_CC $ac_arg"
2842   rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -s conftest.$ac_objext'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   ac_cv_prog_cc_stdc=$ac_arg
2855 break
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 fi
2861 rm -f conftest.$ac_objext
2862 done
2863 rm -f conftest.$ac_ext conftest.$ac_objext
2864 CC=$ac_save_CC
2865
2866 fi
2867
2868 case "x$ac_cv_prog_cc_stdc" in
2869   x|xno)
2870     echo "$as_me:$LINENO: result: none needed" >&5
2871 echo "${ECHO_T}none needed" >&6 ;;
2872   *)
2873     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2875     CC="$CC $ac_cv_prog_cc_stdc" ;;
2876 esac
2877
2878 # Some people use a C++ compiler to compile C.  Since we use `exit',
2879 # in C++ we need to declare it.  In case someone uses the same compiler
2880 # for both compiling C and C++ we need to have the C++ compiler decide
2881 # the declaration of exit, since it's the most demanding environment.
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #ifndef __cplusplus
2884   choke me
2885 #endif
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889   (eval $ac_compile) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -s conftest.$ac_objext'
2894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899   for ac_declaration in \
2900    ''\
2901    '#include <stdlib.h>' \
2902    'extern "C" void std::exit (int) throw (); using std::exit;' \
2903    'extern "C" void std::exit (int); using std::exit;' \
2904    'extern "C" void exit (int) throw ();' \
2905    'extern "C" void exit (int);' \
2906    'void exit (int);'
2907 do
2908   cat >conftest.$ac_ext <<_ACEOF
2909 #line $LINENO "configure"
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 #include <stdlib.h>
2916 $ac_declaration
2917 int
2918 main ()
2919 {
2920 exit (42);
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -s conftest.$ac_objext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   :
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 continue
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945   cat >conftest.$ac_ext <<_ACEOF
2946 #line $LINENO "configure"
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 $ac_declaration
2953 int
2954 main ()
2955 {
2956 exit (42);
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963   (eval $ac_compile) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   break
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 fi
2979 rm -f conftest.$ac_objext conftest.$ac_ext
2980 done
2981 rm -f conftest*
2982 if test -n "$ac_declaration"; then
2983   echo '#ifdef __cplusplus' >>confdefs.h
2984   echo $ac_declaration      >>confdefs.h
2985   echo '#endif'             >>confdefs.h
2986 fi
2987
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.$ac_objext conftest.$ac_ext
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 rm -f .deps 2>/dev/null
3000 mkdir .deps 2>/dev/null
3001 if test -d .deps; then
3002   DEPDIR=.deps
3003 else
3004   # MS-DOS does not allow filenames that begin with a dot.
3005   DEPDIR=_deps
3006 fi
3007 rmdir .deps 2>/dev/null
3008
3009
3010           ac_config_commands="$ac_config_commands depfiles"
3011
3012
3013 am_make=${MAKE-make}
3014 cat > confinc << 'END'
3015 doit:
3016         @echo done
3017 END
3018 # If we don't find an include directive, just comment out the code.
3019 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3020 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3021 am__include="#"
3022 am__quote=
3023 _am_result=none
3024 # First try GNU make style include.
3025 echo "include confinc" > confmf
3026 # We grep out `Entering directory' and `Leaving directory'
3027 # messages which can occur if `w' ends up in MAKEFLAGS.
3028 # In particular we don't look at `^make:' because GNU make might
3029 # be invoked under some other name (usually "gmake"), in which
3030 # case it prints its new name instead of `make'.
3031 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3032    am__include=include
3033    am__quote=
3034    _am_result=GNU
3035 fi
3036 # Now try BSD make style include.
3037 if test "$am__include" = "#"; then
3038    echo '.include "confinc"' > confmf
3039    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3040       am__include=.include
3041       am__quote="\""
3042       _am_result=BSD
3043    fi
3044 fi
3045
3046
3047 echo "$as_me:$LINENO: result: $_am_result" >&5
3048 echo "${ECHO_T}$_am_result" >&6
3049 rm -f confinc confmf
3050
3051 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3052 if test "${enable_dependency_tracking+set}" = set; then
3053   enableval="$enable_dependency_tracking"
3054
3055 fi;
3056 if test "x$enable_dependency_tracking" != xno; then
3057   am_depcomp="$ac_aux_dir/depcomp"
3058   AMDEPBACKSLASH='\'
3059 fi
3060
3061
3062 if test "x$enable_dependency_tracking" != xno; then
3063   AMDEP_TRUE=
3064   AMDEP_FALSE='#'
3065 else
3066   AMDEP_TRUE='#'
3067   AMDEP_FALSE=
3068 fi
3069
3070
3071
3072
3073 depcc="$CC"   am_compiler_list=
3074
3075 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3076 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3077 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3081   # We make a subdir and do the tests there.  Otherwise we can end up
3082   # making bogus files that we don't know about and never remove.  For
3083   # instance it was reported that on HP-UX the gcc test will end up
3084   # making a dummy file named `D' -- because `-MD' means `put the output
3085   # in D'.
3086   mkdir conftest.dir
3087   # Copy depcomp to subdir because otherwise we won't find it if we're
3088   # using a relative directory.
3089   cp "$am_depcomp" conftest.dir
3090   cd conftest.dir
3091
3092   am_cv_CC_dependencies_compiler_type=none
3093   if test "$am_compiler_list" = ""; then
3094      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3095   fi
3096   for depmode in $am_compiler_list; do
3097     # We need to recreate these files for each test, as the compiler may
3098     # overwrite some of them when testing with obscure command lines.
3099     # This happens at least with the AIX C compiler.
3100     echo '#include "conftest.h"' > conftest.c
3101     echo 'int i;' > conftest.h
3102     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3103
3104     case $depmode in
3105     nosideeffect)
3106       # after this tag, mechanisms are not by side-effect, so they'll
3107       # only be used when explicitly requested
3108       if test "x$enable_dependency_tracking" = xyes; then
3109         continue
3110       else
3111         break
3112       fi
3113       ;;
3114     none) break ;;
3115     esac
3116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3117     # mode.  It turns out that the SunPro C++ compiler does not properly
3118     # handle `-M -o', and we need to detect this.
3119     if depmode=$depmode \
3120        source=conftest.c object=conftest.o \
3121        depfile=conftest.Po tmpdepfile=conftest.TPo \
3122        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3123        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3124        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3125       am_cv_CC_dependencies_compiler_type=$depmode
3126       break
3127     fi
3128   done
3129
3130   cd ..
3131   rm -rf conftest.dir
3132 else
3133   am_cv_CC_dependencies_compiler_type=none
3134 fi
3135
3136 fi
3137 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3138 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3140
3141
3142
3143 if
3144   test "x$enable_dependency_tracking" != xno \
3145   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3146   am__fastdepCC_TRUE=
3147   am__fastdepCC_FALSE='#'
3148 else
3149   am__fastdepCC_TRUE='#'
3150   am__fastdepCC_FALSE=
3151 fi
3152
3153
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3162 # On Suns, sometimes $CPP names a directory.
3163 if test -n "$CPP" && test -d "$CPP"; then
3164   CPP=
3165 fi
3166 if test -z "$CPP"; then
3167   if test "${ac_cv_prog_CPP+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170       # Double quotes because CPP needs to be expanded
3171     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3172     do
3173       ac_preproc_ok=false
3174 for ac_c_preproc_warn_flag in '' yes
3175 do
3176   # Use a header file that comes with gcc, so configuring glibc
3177   # with a fresh cross-compiler works.
3178   # On the NeXT, cc -E runs the code through the compiler's parser,
3179   # not just through cpp. "Syntax error" is here to catch this case.
3180   cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <assert.h>
3188                      Syntax error
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } >/dev/null; then
3198   if test -s conftest.err; then
3199     ac_cpp_err=$ac_c_preproc_warn_flag
3200   else
3201     ac_cpp_err=
3202   fi
3203 else
3204   ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207   :
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212   # Broken: fails on valid input.
3213 continue
3214 fi
3215 rm -f conftest.err conftest.$ac_ext
3216
3217   # OK, works on sane cases.  Now check whether non-existent headers
3218   # can be detected and how.
3219   cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226 #include <ac_nonexistent.h>
3227 _ACEOF
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } >/dev/null; then
3236   if test -s conftest.err; then
3237     ac_cpp_err=$ac_c_preproc_warn_flag
3238   else
3239     ac_cpp_err=
3240   fi
3241 else
3242   ac_cpp_err=yes
3243 fi
3244 if test -z "$ac_cpp_err"; then
3245   # Broken: success on invalid input.
3246 continue
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251   # Passes both tests.
3252 ac_preproc_ok=:
3253 break
3254 fi
3255 rm -f conftest.err conftest.$ac_ext
3256
3257 done
3258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3259 rm -f conftest.err conftest.$ac_ext
3260 if $ac_preproc_ok; then
3261   break
3262 fi
3263
3264     done
3265     ac_cv_prog_CPP=$CPP
3266
3267 fi
3268   CPP=$ac_cv_prog_CPP
3269 else
3270   ac_cv_prog_CPP=$CPP
3271 fi
3272 echo "$as_me:$LINENO: result: $CPP" >&5
3273 echo "${ECHO_T}$CPP" >&6
3274 ac_preproc_ok=false
3275 for ac_c_preproc_warn_flag in '' yes
3276 do
3277   # Use a header file that comes with gcc, so configuring glibc
3278   # with a fresh cross-compiler works.
3279   # On the NeXT, cc -E runs the code through the compiler's parser,
3280   # not just through cpp. "Syntax error" is here to catch this case.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <assert.h>
3289                      Syntax error
3290 _ACEOF
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } >/dev/null; then
3299   if test -s conftest.err; then
3300     ac_cpp_err=$ac_c_preproc_warn_flag
3301   else
3302     ac_cpp_err=
3303   fi
3304 else
3305   ac_cpp_err=yes
3306 fi
3307 if test -z "$ac_cpp_err"; then
3308   :
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Broken: fails on valid input.
3314 continue
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318   # OK, works on sane cases.  Now check whether non-existent headers
3319   # can be detected and how.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <ac_nonexistent.h>
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } >/dev/null; then
3337   if test -s conftest.err; then
3338     ac_cpp_err=$ac_c_preproc_warn_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3356 rm -f conftest.err conftest.$ac_ext
3357
3358 done
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3362   :
3363 else
3364   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." >&5
3366 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&2;}
3368    { (exit 1); exit 1; }; }
3369 fi
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377
3378 echo "$as_me:$LINENO: checking for egrep" >&5
3379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3380 if test "${ac_cv_prog_egrep+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3384     then ac_cv_prog_egrep='grep -E'
3385     else ac_cv_prog_egrep='egrep'
3386     fi
3387 fi
3388 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3389 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3390  EGREP=$ac_cv_prog_egrep
3391
3392
3393 if test $ac_cv_c_compiler_gnu = yes; then
3394     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3395 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3396 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3397   echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399     ac_pattern="Autoconf.*'x'"
3400   cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <sgtty.h>
3408 Autoconf TIOCGETP
3409 _ACEOF
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3412   ac_cv_prog_gcc_traditional=yes
3413 else
3414   ac_cv_prog_gcc_traditional=no
3415 fi
3416 rm -f conftest*
3417
3418
3419   if test $ac_cv_prog_gcc_traditional = no; then
3420     cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #include <termio.h>
3428 Autoconf TCGETA
3429 _ACEOF
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3432   ac_cv_prog_gcc_traditional=yes
3433 fi
3434 rm -f conftest*
3435
3436   fi
3437 fi
3438 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3439 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3440   if test $ac_cv_prog_gcc_traditional = yes; then
3441     CC="$CC -traditional"
3442   fi
3443 fi
3444
3445 # Find a good install program.  We prefer a C program (faster),
3446 # so one script is as good as another.  But avoid the broken or
3447 # incompatible versions:
3448 # SysV /etc/install, /usr/sbin/install
3449 # SunOS /usr/etc/install
3450 # IRIX /sbin/install
3451 # AIX /bin/install
3452 # AmigaOS /C/install, which installs bootblocks on floppy discs
3453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3456 # ./install, which can be erroneously created by make from ./install.sh.
3457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3459 if test -z "$INSTALL"; then
3460 if test "${ac_cv_path_install+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   # Account for people who put trailing slashes in PATH elements.
3469 case $as_dir/ in
3470   ./ | .// | /cC/* | \
3471   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3472   /usr/ucb/* ) ;;
3473   *)
3474     # OSF1 and SCO ODT 3.0 have their own names for install.
3475     # Don't use installbsd from OSF since it installs stuff as root
3476     # by default.
3477     for ac_prog in ginstall scoinst install; do
3478       for ac_exec_ext in '' $ac_executable_extensions; do
3479         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3480           if test $ac_prog = install &&
3481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3482             # AIX install.  It has an incompatible calling convention.
3483             :
3484           elif test $ac_prog = install &&
3485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3486             # program-specific install script used by HP pwplus--don't use.
3487             :
3488           else
3489             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3490             break 3
3491           fi
3492         fi
3493       done
3494     done
3495     ;;
3496 esac
3497 done
3498
3499
3500 fi
3501   if test "${ac_cv_path_install+set}" = set; then
3502     INSTALL=$ac_cv_path_install
3503   else
3504     # As a last resort, use the slow shell script.  We don't cache a
3505     # path for INSTALL within a source directory, because that will
3506     # break other packages using the cache if that directory is
3507     # removed, or if the path is relative.
3508     INSTALL=$ac_install_sh
3509   fi
3510 fi
3511 echo "$as_me:$LINENO: result: $INSTALL" >&5
3512 echo "${ECHO_T}$INSTALL" >&6
3513
3514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3515 # It thinks the first close brace ends the variable substitution.
3516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3517
3518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3519
3520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3521
3522 for ac_prog in gawk mawk nawk awk
3523 do
3524   # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_AWK+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   if test -n "$AWK"; then
3532   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539   for ac_exec_ext in '' $ac_executable_extensions; do
3540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541     ac_cv_prog_AWK="$ac_prog"
3542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543     break 2
3544   fi
3545 done
3546 done
3547
3548 fi
3549 fi
3550 AWK=$ac_cv_prog_AWK
3551 if test -n "$AWK"; then
3552   echo "$as_me:$LINENO: result: $AWK" >&5
3553 echo "${ECHO_T}$AWK" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558
3559   test -n "$AWK" && break
3560 done
3561
3562 if test -n "$ac_tool_prefix"; then
3563   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_prog_RANLIB+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   if test -n "$RANLIB"; then
3571   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585 done
3586
3587 fi
3588 fi
3589 RANLIB=$ac_cv_prog_RANLIB
3590 if test -n "$RANLIB"; then
3591   echo "$as_me:$LINENO: result: $RANLIB" >&5
3592 echo "${ECHO_T}$RANLIB" >&6
3593 else
3594   echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6
3596 fi
3597
3598 fi
3599 if test -z "$ac_cv_prog_RANLIB"; then
3600   ac_ct_RANLIB=$RANLIB
3601   # Extract the first word of "ranlib", so it can be a program name with args.
3602 set dummy ranlib; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   if test -n "$ac_ct_RANLIB"; then
3609   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616   for ac_exec_ext in '' $ac_executable_extensions; do
3617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618     ac_cv_prog_ac_ct_RANLIB="ranlib"
3619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623 done
3624
3625   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3626 fi
3627 fi
3628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3629 if test -n "$ac_ct_RANLIB"; then
3630   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3631 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637   RANLIB=$ac_ct_RANLIB
3638 else
3639   RANLIB="$ac_cv_prog_RANLIB"
3640 fi
3641
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3644 LN_S=$as_ln_s
3645 if test "$LN_S" = "ln -s"; then
3646   echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3651 fi
3652
3653 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3654 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3655 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3656 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   cat > conftest.$ac_ext <<EOF
3660 int main() {return 0;}
3661 EOF
3662 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3663     if test -s conftest.out; then
3664         eval "timidity_cv_ccoption_$ac_ccoption=no"
3665     else
3666         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3667     fi
3668 else
3669     eval "timidity_cv_ccoption_$ac_ccoption=no"
3670 fi
3671
3672 fi
3673
3674 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3675   echo "$as_me:$LINENO: result: yes" >&5
3676 echo "${ECHO_T}yes" >&6
3677
3678 else
3679   echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681
3682 fi
3683
3684
3685 # Checks for target dependencies
3686
3687
3688 # Check whether --with-elf or --without-elf was given.
3689 if test "${with_elf+set}" = set; then
3690   withval="$with_elf"
3691    ELFFORMAT=$withval
3692 else
3693    ELFFORMAT="yes"
3694 fi;
3695
3696
3697 # Check whether --with-simd or --without-simd was given.
3698 if test "${with_simd+set}" = set; then
3699   withval="$with_simd"
3700    SIMD=$withval
3701 else
3702    SIMD="no"
3703 fi;
3704
3705 case "$target" in
3706   *-*-hpux*)
3707     EXTRADEFS="-DHPUX"
3708     test -n "$SHLD" || SHLD="ld -b"
3709     so="sl"
3710     ;;
3711   *-sgi-irix*)
3712         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3713     test -n "$SHLD" || SHLD="cc -shared -all"
3714     so="so"
3715     ;;
3716   *-*-netbsd*)
3717     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3718     so="so"
3719     ;;
3720
3721   *-*-freebsd2*)
3722         test -n "$SHLD" || SHLD="ld -Bshareable"
3723     so="so"
3724     ;;
3725   *-*-freebsd*)
3726     if test "$ELFFORMAT" = yes; then
3727         test -n "$SHLD" || SHLD="ld -Bshareable"
3728     else
3729         SHCFLAGS=-aou
3730         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3731         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3732     fi
3733         so="so"
3734     ;;
3735
3736 #  *-*-freebsd*)
3737 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3738 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3739 #    so="so"
3740 #  ;;
3741
3742   *-*-cygwin*)
3743     EXTRADEFS="-D__W32__"
3744     # ??
3745     case "x${CC} " in
3746       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3747       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3748       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3749       *) test -n "$SHLD" || SHLD="unknown" ;;
3750     esac
3751     so="dll"
3752     CYGNUS=yes
3753     lib_user32_test=-luser32
3754     ;;
3755   *-*-mingw*)
3756     EXTRADEFS="-D__W32__"
3757     # ??
3758     case "x${CC} " in
3759       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3760       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3761       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3762       *) test -n "$SHLD" || SHLD="unknown" ;;
3763     esac
3764     so="dll"
3765     MINGW=yes
3766     lib_user32_test=-luser32
3767     ;;
3768   *-dec-*)
3769     EXTRADEFS="-DDEC"
3770     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3771     so="so"
3772     ;;
3773   *-*-solaris*)
3774     EXTRADEFS="-DSOLARIS"
3775     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3776     so="so"
3777     ;;
3778   *-*-nextstep*)
3779     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3780     so="so"
3781     ;;
3782   *-*-darwin*)
3783     if test "x$SIMD" = "xyes"; then
3784
3785 cat >>confdefs.h <<\_ACEOF
3786 #define USE_ALTIVEC 1
3787 _ACEOF
3788
3789        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3790        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3791     else
3792
3793 cat >>confdefs.h <<\_ACEOF
3794 #define USE_ALTIVEC 0
3795 _ACEOF
3796
3797     fi
3798     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3799     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3800     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3801     so="bundle"
3802     ;;
3803   *)
3804     test -n "$SHLD" || \
3805       if test "x$GCC" = xyes; then
3806         SHLD="$CC -shared"
3807       else
3808         SHLD="ld -Bdynamic -G"
3809       fi
3810     so="so"
3811     ;;
3812 esac
3813
3814
3815 # Checks for libraries.
3816
3817 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3818 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3819 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   ac_check_lib_save_LIBS=$LIBS
3823 LIBS="-lm  $LIBS"
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831
3832 /* Override any gcc2 internal prototype to avoid an error.  */
3833 #ifdef __cplusplus
3834 extern "C"
3835 #endif
3836 /* We use char because int might match the return type of a gcc2
3837    builtin and then its argument prototype would still apply.  */
3838 char sqrt ();
3839 int
3840 main ()
3841 {
3842 sqrt ();
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849   (eval $ac_link) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -s conftest$ac_exeext'
3854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855   (eval $ac_try) 2>&5
3856   ac_status=$?
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); }; }; then
3859   ac_cv_lib_m_sqrt=yes
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 ac_cv_lib_m_sqrt=no
3865 fi
3866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3867 LIBS=$ac_check_lib_save_LIBS
3868 fi
3869 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3870 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3871 if test $ac_cv_lib_m_sqrt = yes; then
3872   cat >>confdefs.h <<_ACEOF
3873 #define HAVE_LIBM 1
3874 _ACEOF
3875
3876   LIBS="-lm $LIBS"
3877
3878 fi
3879
3880
3881 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3882 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3883 if test "${ac_cv_lib_socket_socket+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   ac_check_lib_save_LIBS=$LIBS
3887 LIBS="-lsocket  $LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895
3896 /* Override any gcc2 internal prototype to avoid an error.  */
3897 #ifdef __cplusplus
3898 extern "C"
3899 #endif
3900 /* We use char because int might match the return type of a gcc2
3901    builtin and then its argument prototype would still apply.  */
3902 char socket ();
3903 int
3904 main ()
3905 {
3906 socket ();
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913   (eval $ac_link) 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } &&
3917          { ac_try='test -s conftest$ac_exeext'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; }; then
3923   ac_cv_lib_socket_socket=yes
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 ac_cv_lib_socket_socket=no
3929 fi
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3932 fi
3933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3934 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3935 if test $ac_cv_lib_socket_socket = yes; then
3936   cat >>confdefs.h <<_ACEOF
3937 #define HAVE_LIBSOCKET 1
3938 _ACEOF
3939
3940   LIBS="-lsocket $LIBS"
3941
3942 fi
3943
3944 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   ac_check_lib_save_LIBS=$LIBS
3950 LIBS="-ldl  $LIBS"
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958
3959 /* Override any gcc2 internal prototype to avoid an error.  */
3960 #ifdef __cplusplus
3961 extern "C"
3962 #endif
3963 /* We use char because int might match the return type of a gcc2
3964    builtin and then its argument prototype would still apply.  */
3965 char dlopen ();
3966 int
3967 main ()
3968 {
3969 dlopen ();
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext conftest$ac_exeext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3976   (eval $ac_link) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -s conftest$ac_exeext'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   ac_cv_lib_dl_dlopen=yes
3987 else
3988   echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 ac_cv_lib_dl_dlopen=no
3992 fi
3993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3994 LIBS=$ac_check_lib_save_LIBS
3995 fi
3996 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3997 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3998 if test $ac_cv_lib_dl_dlopen = yes; then
3999   lib_dl_opt=-ldl
4000 fi
4001
4002 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4003 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4004 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   ac_check_lib_save_LIBS=$LIBS
4008 LIBS="-lobjc  $LIBS"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line $LINENO "configure"
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016
4017 /* Override any gcc2 internal prototype to avoid an error.  */
4018 #ifdef __cplusplus
4019 extern "C"
4020 #endif
4021 /* We use char because int might match the return type of a gcc2
4022    builtin and then its argument prototype would still apply.  */
4023 char NSLinkModule ();
4024 int
4025 main ()
4026 {
4027 NSLinkModule ();
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext conftest$ac_exeext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034   (eval $ac_link) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -s conftest$ac_exeext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   ac_cv_lib_objc_NSLinkModule=yes
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ac_cv_lib_objc_NSLinkModule=no
4050 fi
4051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4052 LIBS=$ac_check_lib_save_LIBS
4053 fi
4054 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4055 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4056 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4057   lib_dl_opt=-lobjc
4058 fi
4059  # Mac OS X need this.
4060
4061 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4062 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4063 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   ac_check_lib_save_LIBS=$LIBS
4067 LIBS="-lxpg4  $LIBS"
4068 cat >conftest.$ac_ext <<_ACEOF
4069 #line $LINENO "configure"
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075
4076 /* Override any gcc2 internal prototype to avoid an error.  */
4077 #ifdef __cplusplus
4078 extern "C"
4079 #endif
4080 /* We use char because int might match the return type of a gcc2
4081    builtin and then its argument prototype would still apply.  */
4082 char setlocale ();
4083 int
4084 main ()
4085 {
4086 setlocale ();
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 rm -f conftest.$ac_objext conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093   (eval $ac_link) 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -s conftest$ac_exeext'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   ac_cv_lib_xpg4_setlocale=yes
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_lib_xpg4_setlocale=no
4109 fi
4110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4112 fi
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4114 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4115 if test $ac_cv_lib_xpg4_setlocale = yes; then
4116   cat >>confdefs.h <<_ACEOF
4117 #define HAVE_LIBXPG4 1
4118 _ACEOF
4119
4120   LIBS="-lxpg4 $LIBS"
4121
4122 fi
4123  # Mac OS X (and maybe NetBSD) need this.
4124
4125 for ac_func in gethostbyname
4126 do
4127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4128 echo "$as_me:$LINENO: checking for $ac_func" >&5
4129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4130 if eval "test \"\${$as_ac_var+set}\" = set"; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 /* System header to define __stub macros and hopefully few prototypes,
4141     which can conflict with char $ac_func (); below.  */
4142 #include <assert.h>
4143 /* Override any gcc2 internal prototype to avoid an error.  */
4144 #ifdef __cplusplus
4145 extern "C"
4146 {
4147 #endif
4148 /* We use char because int might match the return type of a gcc2
4149    builtin and then its argument prototype would still apply.  */
4150 char $ac_func ();
4151 /* The GNU C library defines this for functions which it implements
4152     to always fail with ENOSYS.  Some functions are actually named
4153     something starting with __ and the normal name is an alias.  */
4154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4155 choke me
4156 #else
4157 char (*f) () = $ac_func;
4158 #endif
4159 #ifdef __cplusplus
4160 }
4161 #endif
4162
4163 int
4164 main ()
4165 {
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173   (eval $ac_link) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } &&
4177          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4183   eval "$as_ac_var=yes"
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 eval "$as_ac_var=no"
4189 fi
4190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4191 fi
4192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4194 if test `eval echo '${'$as_ac_var'}'` = yes; then
4195   cat >>confdefs.h <<_ACEOF
4196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4197 _ACEOF
4198
4199 else
4200
4201 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4202 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4203 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   ac_check_lib_save_LIBS=$LIBS
4207 LIBS="-lnsl  $LIBS"
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215
4216 /* Override any gcc2 internal prototype to avoid an error.  */
4217 #ifdef __cplusplus
4218 extern "C"
4219 #endif
4220 /* We use char because int might match the return type of a gcc2
4221    builtin and then its argument prototype would still apply.  */
4222 char gethostbyname ();
4223 int
4224 main ()
4225 {
4226 gethostbyname ();
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233   (eval $ac_link) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } &&
4237          { ac_try='test -s conftest$ac_exeext'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; }; then
4243   ac_cv_lib_nsl_gethostbyname=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_lib_nsl_gethostbyname=no
4249 fi
4250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4252 fi
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4254 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4255 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4256   cat >>confdefs.h <<_ACEOF
4257 #define HAVE_LIBNSL 1
4258 _ACEOF
4259
4260   LIBS="-lnsl $LIBS"
4261
4262 fi
4263
4264 fi
4265 done
4266
4267 echo "$as_me:$LINENO: checking for X" >&5
4268 echo $ECHO_N "checking for X... $ECHO_C" >&6
4269
4270
4271 # Check whether --with-x or --without-x was given.
4272 if test "${with_x+set}" = set; then
4273   withval="$with_x"
4274
4275 fi;
4276 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4277 if test "x$with_x" = xno; then
4278   # The user explicitly disabled X.
4279   have_x=disabled
4280 else
4281   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4282     # Both variables are already set.
4283     have_x=yes
4284   else
4285     if test "${ac_cv_have_x+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   # One or both of the vars are not set, and there is no cached value.
4289 ac_x_includes=no ac_x_libraries=no
4290 rm -fr conftest.dir
4291 if mkdir conftest.dir; then
4292   cd conftest.dir
4293   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4294   cat >Imakefile <<'_ACEOF'
4295 acfindx:
4296         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4297 _ACEOF
4298   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4299     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4300     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4301     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4302     for ac_extension in a so sl; do
4303       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4304          test -f $ac_im_libdir/libX11.$ac_extension; then
4305         ac_im_usrlibdir=$ac_im_libdir; break
4306       fi
4307     done
4308     # Screen out bogus values from the imake configuration.  They are
4309     # bogus both because they are the default anyway, and because
4310     # using them would break gcc on systems where it needs fixed includes.
4311     case $ac_im_incroot in
4312         /usr/include) ;;
4313         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4314     esac
4315     case $ac_im_usrlibdir in
4316         /usr/lib | /lib) ;;
4317         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4318     esac
4319   fi
4320   cd ..
4321   rm -fr conftest.dir
4322 fi
4323
4324 # Standard set of common directories for X headers.
4325 # Check X11 before X11Rn because it is often a symlink to the current release.
4326 ac_x_header_dirs='
4327 /usr/X11/include
4328 /usr/X11R6/include
4329 /usr/X11R5/include
4330 /usr/X11R4/include
4331
4332 /usr/include/X11
4333 /usr/include/X11R6
4334 /usr/include/X11R5
4335 /usr/include/X11R4
4336
4337 /usr/local/X11/include
4338 /usr/local/X11R6/include
4339 /usr/local/X11R5/include
4340 /usr/local/X11R4/include
4341
4342 /usr/local/include/X11
4343 /usr/local/include/X11R6
4344 /usr/local/include/X11R5
4345 /usr/local/include/X11R4
4346
4347 /usr/X386/include
4348 /usr/x386/include
4349 /usr/XFree86/include/X11
4350
4351 /usr/include
4352 /usr/local/include
4353 /usr/unsupported/include
4354 /usr/athena/include
4355 /usr/local/x11r5/include
4356 /usr/lpp/Xamples/include
4357
4358 /usr/openwin/include
4359 /usr/openwin/share/include'
4360
4361 if test "$ac_x_includes" = no; then
4362   # Guess where to find include files, by looking for Intrinsic.h.
4363   # First, try using that file with no special directory specified.
4364   cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4366 /* confdefs.h.  */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h.  */
4371 #include <X11/Intrinsic.h>
4372 _ACEOF
4373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375   ac_status=$?
4376   grep -v '^ *+' conftest.er1 >conftest.err
4377   rm -f conftest.er1
4378   cat conftest.err >&5
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } >/dev/null; then
4381   if test -s conftest.err; then
4382     ac_cpp_err=$ac_c_preproc_warn_flag
4383   else
4384     ac_cpp_err=
4385   fi
4386 else
4387   ac_cpp_err=yes
4388 fi
4389 if test -z "$ac_cpp_err"; then
4390   # We can compile using X headers with no special include directory.
4391 ac_x_includes=
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396   for ac_dir in $ac_x_header_dirs; do
4397   if test -r "$ac_dir/X11/Intrinsic.h"; then
4398     ac_x_includes=$ac_dir
4399     break
4400   fi
4401 done
4402 fi
4403 rm -f conftest.err conftest.$ac_ext
4404 fi # $ac_x_includes = no
4405
4406 if test "$ac_x_libraries" = no; then
4407   # Check for the libraries.
4408   # See if we find them without any special options.
4409   # Don't add to $LIBS permanently.
4410   ac_save_LIBS=$LIBS
4411   LIBS="-lXt $LIBS"
4412   cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 #include <X11/Intrinsic.h>
4420 int
4421 main ()
4422 {
4423 XtMalloc (0)
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext conftest$ac_exeext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4430   (eval $ac_link) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } &&
4434          { ac_try='test -s conftest$ac_exeext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   LIBS=$ac_save_LIBS
4441 # We can link X programs with no special library path.
4442 ac_x_libraries=
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 LIBS=$ac_save_LIBS
4448 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4449 do
4450   # Don't even attempt the hair of trying to link an X program!
4451   for ac_extension in a so sl; do
4452     if test -r $ac_dir/libXt.$ac_extension; then
4453       ac_x_libraries=$ac_dir
4454       break 2
4455     fi
4456   done
4457 done
4458 fi
4459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 fi # $ac_x_libraries = no
4461
4462 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4463   # Didn't find X anywhere.  Cache the known absence of X.
4464   ac_cv_have_x="have_x=no"
4465 else
4466   # Record where we found X for the cache.
4467   ac_cv_have_x="have_x=yes \
4468                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4469 fi
4470 fi
4471
4472   fi
4473   eval "$ac_cv_have_x"
4474 fi # $with_x != no
4475
4476 if test "$have_x" != yes; then
4477   echo "$as_me:$LINENO: result: $have_x" >&5
4478 echo "${ECHO_T}$have_x" >&6
4479   no_x=yes
4480 else
4481   # If each of the values was on the command line, it overrides each guess.
4482   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4483   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4484   # Update the cache value to reflect the command line values.
4485   ac_cv_have_x="have_x=yes \
4486                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4487   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4488 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4489 fi
4490
4491 if test "$no_x" = yes; then
4492   # Not all programs may use this symbol, but it does not hurt to define it.
4493
4494 cat >>confdefs.h <<\_ACEOF
4495 #define X_DISPLAY_MISSING 1
4496 _ACEOF
4497
4498   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4499 else
4500   if test -n "$x_includes"; then
4501     X_CFLAGS="$X_CFLAGS -I$x_includes"
4502   fi
4503
4504   # It would also be nice to do this for all -L options, not just this one.
4505   if test -n "$x_libraries"; then
4506     X_LIBS="$X_LIBS -L$x_libraries"
4507     # For Solaris; some versions of Sun CC require a space after -R and
4508     # others require no space.  Words are not sufficient . . . .
4509     case `(uname -sr) 2>/dev/null` in
4510     "SunOS 5"*)
4511       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4512 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4513       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4514       cat >conftest.$ac_ext <<_ACEOF
4515 #line $LINENO "configure"
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521
4522 int
4523 main ()
4524 {
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532   (eval $ac_link) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } &&
4536          { ac_try='test -s conftest$ac_exeext'
4537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538   (eval $ac_try) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; }; then
4542   ac_R_nospace=yes
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 ac_R_nospace=no
4548 fi
4549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550       if test $ac_R_nospace = yes; then
4551         echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553         X_LIBS="$X_LIBS -R$x_libraries"
4554       else
4555         LIBS="$ac_xsave_LIBS -R $x_libraries"
4556         cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574   (eval $ac_link) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } &&
4578          { ac_try='test -s conftest$ac_exeext'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; }; then
4584   ac_R_space=yes
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 ac_R_space=no
4590 fi
4591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4592         if test $ac_R_space = yes; then
4593           echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595           X_LIBS="$X_LIBS -R $x_libraries"
4596         else
4597           echo "$as_me:$LINENO: result: neither works" >&5
4598 echo "${ECHO_T}neither works" >&6
4599         fi
4600       fi
4601       LIBS=$ac_xsave_LIBS
4602     esac
4603   fi
4604
4605   # Check for system-dependent libraries X programs must link with.
4606   # Do this before checking for the system-independent R6 libraries
4607   # (-lICE), since we may need -lsocket or whatever for X linking.
4608
4609   if test "$ISC" = yes; then
4610     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4611   else
4612     # Martyn Johnson says this is needed for Ultrix, if the X
4613     # libraries were built with DECnet support.  And Karl Berry says
4614     # the Alpha needs dnet_stub (dnet does not exist).
4615     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4616     cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623
4624 /* Override any gcc2 internal prototype to avoid an error.  */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 /* We use char because int might match the return type of a gcc2
4629    builtin and then its argument prototype would still apply.  */
4630 char XOpenDisplay ();
4631 int
4632 main ()
4633 {
4634 XOpenDisplay ();
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641   (eval $ac_link) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -s conftest$ac_exeext'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651   :
4652 else
4653   echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4657 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   ac_check_lib_save_LIBS=$LIBS
4662 LIBS="-ldnet  $LIBS"
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670
4671 /* Override any gcc2 internal prototype to avoid an error.  */
4672 #ifdef __cplusplus
4673 extern "C"
4674 #endif
4675 /* We use char because int might match the return type of a gcc2
4676    builtin and then its argument prototype would still apply.  */
4677 char dnet_ntoa ();
4678 int
4679 main ()
4680 {
4681 dnet_ntoa ();
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688   (eval $ac_link) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } &&
4692          { ac_try='test -s conftest$ac_exeext'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   ac_cv_lib_dnet_dnet_ntoa=yes
4699 else
4700   echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ac_cv_lib_dnet_dnet_ntoa=no
4704 fi
4705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4706 LIBS=$ac_check_lib_save_LIBS
4707 fi
4708 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4709 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4710 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4711   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4712 fi
4713
4714     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4715       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4716 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4717 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   ac_check_lib_save_LIBS=$LIBS
4721 LIBS="-ldnet_stub  $LIBS"
4722 cat >conftest.$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729
4730 /* Override any gcc2 internal prototype to avoid an error.  */
4731 #ifdef __cplusplus
4732 extern "C"
4733 #endif
4734 /* We use char because int might match the return type of a gcc2
4735    builtin and then its argument prototype would still apply.  */
4736 char dnet_ntoa ();
4737 int
4738 main ()
4739 {
4740 dnet_ntoa ();
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4747   (eval $ac_link) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -s conftest$ac_exeext'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_cv_lib_dnet_stub_dnet_ntoa=no
4763 fi
4764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765 LIBS=$ac_check_lib_save_LIBS
4766 fi
4767 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4768 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4769 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4770   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4771 fi
4772
4773     fi
4774 fi
4775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4776     LIBS="$ac_xsave_LIBS"
4777
4778     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4779     # to get the SysV transport functions.
4780     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4781     # needs -lnsl.
4782     # The nsl library prevents programs from opening the X display
4783     # on Irix 5.2, according to T.E. Dickey.
4784     # The functions gethostbyname, getservbyname, and inet_addr are
4785     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4786     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4787 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4788 if test "${ac_cv_func_gethostbyname+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798 /* System header to define __stub macros and hopefully few prototypes,
4799     which can conflict with char gethostbyname (); below.  */
4800 #include <assert.h>
4801 /* Override any gcc2 internal prototype to avoid an error.  */
4802 #ifdef __cplusplus
4803 extern "C"
4804 {
4805 #endif
4806 /* We use char because int might match the return type of a gcc2
4807    builtin and then its argument prototype would still apply.  */
4808 char gethostbyname ();
4809 /* The GNU C library defines this for functions which it implements
4810     to always fail with ENOSYS.  Some functions are actually named
4811     something starting with __ and the normal name is an alias.  */
4812 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4813 choke me
4814 #else
4815 char (*f) () = gethostbyname;
4816 #endif
4817 #ifdef __cplusplus
4818 }
4819 #endif
4820
4821 int
4822 main ()
4823 {
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4831   (eval $ac_link) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -s conftest$ac_exeext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_cv_func_gethostbyname=yes
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_cv_func_gethostbyname=no
4847 fi
4848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4849 fi
4850 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4851 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4852
4853     if test $ac_cv_func_gethostbyname = no; then
4854       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4855 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4856 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   ac_check_lib_save_LIBS=$LIBS
4860 LIBS="-lnsl  $LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 /* Override any gcc2 internal prototype to avoid an error.  */
4870 #ifdef __cplusplus
4871 extern "C"
4872 #endif
4873 /* We use char because int might match the return type of a gcc2
4874    builtin and then its argument prototype would still apply.  */
4875 char gethostbyname ();
4876 int
4877 main ()
4878 {
4879 gethostbyname ();
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -s conftest$ac_exeext'
4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892   (eval $ac_try) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }; }; then
4896   ac_cv_lib_nsl_gethostbyname=yes
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_lib_nsl_gethostbyname=no
4902 fi
4903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4904 LIBS=$ac_check_lib_save_LIBS
4905 fi
4906 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4907 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4908 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4909   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4910 fi
4911
4912       if test $ac_cv_lib_nsl_gethostbyname = no; then
4913         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4914 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4915 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   ac_check_lib_save_LIBS=$LIBS
4919 LIBS="-lbsd  $LIBS"
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927
4928 /* Override any gcc2 internal prototype to avoid an error.  */
4929 #ifdef __cplusplus
4930 extern "C"
4931 #endif
4932 /* We use char because int might match the return type of a gcc2
4933    builtin and then its argument prototype would still apply.  */
4934 char gethostbyname ();
4935 int
4936 main ()
4937 {
4938 gethostbyname ();
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945   (eval $ac_link) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -s conftest$ac_exeext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   ac_cv_lib_bsd_gethostbyname=yes
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_cv_lib_bsd_gethostbyname=no
4961 fi
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963 LIBS=$ac_check_lib_save_LIBS
4964 fi
4965 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4966 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4967 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4968   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4969 fi
4970
4971       fi
4972     fi
4973
4974     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4975     # socket/setsockopt and other routines are undefined under SCO ODT
4976     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4977     # on later versions), says Simon Leinen: it contains gethostby*
4978     # variants that don't use the name server (or something).  -lsocket
4979     # must be given before -lnsl if both are needed.  We assume that
4980     # if connect needs -lnsl, so does gethostbyname.
4981     echo "$as_me:$LINENO: checking for connect" >&5
4982 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4983 if test "${ac_cv_func_connect+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993 /* System header to define __stub macros and hopefully few prototypes,
4994     which can conflict with char connect (); below.  */
4995 #include <assert.h>
4996 /* Override any gcc2 internal prototype to avoid an error.  */
4997 #ifdef __cplusplus
4998 extern "C"
4999 {
5000 #endif
5001 /* We use char because int might match the return type of a gcc2
5002    builtin and then its argument prototype would still apply.  */
5003 char connect ();
5004 /* The GNU C library defines this for functions which it implements
5005     to always fail with ENOSYS.  Some functions are actually named
5006     something starting with __ and the normal name is an alias.  */
5007 #if defined (__stub_connect) || defined (__stub___connect)
5008 choke me
5009 #else
5010 char (*f) () = connect;
5011 #endif
5012 #ifdef __cplusplus
5013 }
5014 #endif
5015
5016 int
5017 main ()
5018 {
5019
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026   (eval $ac_link) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } &&
5030          { ac_try='test -s conftest$ac_exeext'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   ac_cv_func_connect=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 ac_cv_func_connect=no
5042 fi
5043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5044 fi
5045 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5046 echo "${ECHO_T}$ac_cv_func_connect" >&6
5047
5048     if test $ac_cv_func_connect = no; then
5049       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5050 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5051 if test "${ac_cv_lib_socket_connect+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   ac_check_lib_save_LIBS=$LIBS
5055 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063
5064 /* Override any gcc2 internal prototype to avoid an error.  */
5065 #ifdef __cplusplus
5066 extern "C"
5067 #endif
5068 /* We use char because int might match the return type of a gcc2
5069    builtin and then its argument prototype would still apply.  */
5070 char connect ();
5071 int
5072 main ()
5073 {
5074 connect ();
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081   (eval $ac_link) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -s conftest$ac_exeext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_cv_lib_socket_connect=yes
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_cv_lib_socket_connect=no
5097 fi
5098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5099 LIBS=$ac_check_lib_save_LIBS
5100 fi
5101 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5102 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5103 if test $ac_cv_lib_socket_connect = yes; then
5104   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5105 fi
5106
5107     fi
5108
5109     # Guillermo Gomez says -lposix is necessary on A/UX.
5110     echo "$as_me:$LINENO: checking for remove" >&5
5111 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5112 if test "${ac_cv_func_remove+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   cat >conftest.$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 /* System header to define __stub macros and hopefully few prototypes,
5123     which can conflict with char remove (); below.  */
5124 #include <assert.h>
5125 /* Override any gcc2 internal prototype to avoid an error.  */
5126 #ifdef __cplusplus
5127 extern "C"
5128 {
5129 #endif
5130 /* We use char because int might match the return type of a gcc2
5131    builtin and then its argument prototype would still apply.  */
5132 char remove ();
5133 /* The GNU C library defines this for functions which it implements
5134     to always fail with ENOSYS.  Some functions are actually named
5135     something starting with __ and the normal name is an alias.  */
5136 #if defined (__stub_remove) || defined (__stub___remove)
5137 choke me
5138 #else
5139 char (*f) () = remove;
5140 #endif
5141 #ifdef __cplusplus
5142 }
5143 #endif
5144
5145 int
5146 main ()
5147 {
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155   (eval $ac_link) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); } &&
5159          { ac_try='test -s conftest$ac_exeext'
5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161   (eval $ac_try) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_cv_func_remove=yes
5166 else
5167   echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 ac_cv_func_remove=no
5171 fi
5172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5173 fi
5174 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5175 echo "${ECHO_T}$ac_cv_func_remove" >&6
5176
5177     if test $ac_cv_func_remove = no; then
5178       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5179 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5180 if test "${ac_cv_lib_posix_remove+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   ac_check_lib_save_LIBS=$LIBS
5184 LIBS="-lposix  $LIBS"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line $LINENO "configure"
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192
5193 /* Override any gcc2 internal prototype to avoid an error.  */
5194 #ifdef __cplusplus
5195 extern "C"
5196 #endif
5197 /* We use char because int might match the return type of a gcc2
5198    builtin and then its argument prototype would still apply.  */
5199 char remove ();
5200 int
5201 main ()
5202 {
5203 remove ();
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210   (eval $ac_link) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -s conftest$ac_exeext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_cv_lib_posix_remove=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_lib_posix_remove=no
5226 fi
5227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5229 fi
5230 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5231 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5232 if test $ac_cv_lib_posix_remove = yes; then
5233   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5234 fi
5235
5236     fi
5237
5238     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5239     echo "$as_me:$LINENO: checking for shmat" >&5
5240 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5241 if test "${ac_cv_func_shmat+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 /* System header to define __stub macros and hopefully few prototypes,
5252     which can conflict with char shmat (); below.  */
5253 #include <assert.h>
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 {
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260    builtin and then its argument prototype would still apply.  */
5261 char shmat ();
5262 /* The GNU C library defines this for functions which it implements
5263     to always fail with ENOSYS.  Some functions are actually named
5264     something starting with __ and the normal name is an alias.  */
5265 #if defined (__stub_shmat) || defined (__stub___shmat)
5266 choke me
5267 #else
5268 char (*f) () = shmat;
5269 #endif
5270 #ifdef __cplusplus
5271 }
5272 #endif
5273
5274 int
5275 main ()
5276 {
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 rm -f conftest.$ac_objext conftest$ac_exeext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284   (eval $ac_link) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } &&
5288          { ac_try='test -s conftest$ac_exeext'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   ac_cv_func_shmat=yes
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_func_shmat=no
5300 fi
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 fi
5303 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5304 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5305
5306     if test $ac_cv_func_shmat = no; then
5307       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5308 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5309 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   ac_check_lib_save_LIBS=$LIBS
5313 LIBS="-lipc  $LIBS"
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321
5322 /* Override any gcc2 internal prototype to avoid an error.  */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327    builtin and then its argument prototype would still apply.  */
5328 char shmat ();
5329 int
5330 main ()
5331 {
5332 shmat ();
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339   (eval $ac_link) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } &&
5343          { ac_try='test -s conftest$ac_exeext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_cv_lib_ipc_shmat=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_cv_lib_ipc_shmat=no
5355 fi
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5358 fi
5359 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5360 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5361 if test $ac_cv_lib_ipc_shmat = yes; then
5362   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5363 fi
5364
5365     fi
5366   fi
5367
5368   # Check for libraries that X11R6 Xt/Xaw programs need.
5369   ac_save_LDFLAGS=$LDFLAGS
5370   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5371   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5372   # check for ICE first), but we must link in the order -lSM -lICE or
5373   # we get undefined symbols.  So assume we have SM if we have ICE.
5374   # These have to be linked with before -lX11, unlike the other
5375   # libraries we check for below, so use a different variable.
5376   # John Interrante, Karl Berry
5377   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5378 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5379 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391
5392 /* Override any gcc2 internal prototype to avoid an error.  */
5393 #ifdef __cplusplus
5394 extern "C"
5395 #endif
5396 /* We use char because int might match the return type of a gcc2
5397    builtin and then its argument prototype would still apply.  */
5398 char IceConnectionNumber ();
5399 int
5400 main ()
5401 {
5402 IceConnectionNumber ();
5403   ;
5404   return 0;
5405 }
5406 _ACEOF
5407 rm -f conftest.$ac_objext conftest$ac_exeext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5409   (eval $ac_link) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); } &&
5413          { ac_try='test -s conftest$ac_exeext'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; }; then
5419   ac_cv_lib_ICE_IceConnectionNumber=yes
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ac_cv_lib_ICE_IceConnectionNumber=no
5425 fi
5426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427 LIBS=$ac_check_lib_save_LIBS
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5430 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5431 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5432   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5433 fi
5434
5435   LDFLAGS=$ac_save_LDFLAGS
5436
5437 fi
5438
5439
5440 # Checks for X
5441 if test "x$with_x" = xyes; then
5442   if test "x$have_x" = xno; then
5443     if test "x$x_config_flag" = xyes; then
5444       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5445 echo "$as_me: error: Could not configure X" >&2;}
5446    { (exit 1); exit 1; }; }
5447     else
5448       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5449 echo "$as_me: WARNING: Could not configure X" >&2;}
5450     fi
5451   fi
5452 fi
5453 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5454   if test "x$x_libraries" != x; then
5455     ldflags_x_opt="-L$x_libraries"
5456     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5457     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5458   else
5459     ldflags_x_opt=
5460   fi
5461   if test "x$x_includes" != x; then
5462     CPPFLAGS="$CPPFLAGS -I$x_includes"
5463   fi
5464
5465
5466 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5467 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5468 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   ac_check_lib_save_LIBS=$LIBS
5472 LIBS="-lX11  $LIBS"
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 /* Override any gcc2 internal prototype to avoid an error.  */
5482 #ifdef __cplusplus
5483 extern "C"
5484 #endif
5485 /* We use char because int might match the return type of a gcc2
5486    builtin and then its argument prototype would still apply.  */
5487 char XOpenDisplay ();
5488 int
5489 main ()
5490 {
5491 XOpenDisplay ();
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -s conftest$ac_exeext'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   ac_cv_lib_X11_XOpenDisplay=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ac_cv_lib_X11_XOpenDisplay=no
5514 fi
5515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 LIBS=$ac_check_lib_save_LIBS
5517 fi
5518 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5519 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5520 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5521   cat >>confdefs.h <<_ACEOF
5522 #define HAVE_LIBX11 1
5523 _ACEOF
5524
5525   LIBS="-lX11 $LIBS"
5526
5527 fi
5528
5529   echo "$as_me:$LINENO: checking X11 version 6" >&5
5530 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5531   if test "${timidity_cv_x11_version_6+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   cat >conftest.$ac_ext <<_ACEOF
5535 #line $LINENO "configure"
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 #include <X11/Xlib.h>
5542 int
5543 main ()
5544 {
5545
5546 #if XlibSpecificationRelease < 6
5547 fail;
5548 #endif
5549
5550   ;
5551   return 0;
5552 }
5553 _ACEOF
5554 rm -f conftest.$ac_objext conftest$ac_exeext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556   (eval $ac_link) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); } &&
5560          { ac_try='test -s conftest$ac_exeext'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566   timidity_cv_x11_version_6=yes
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 timidity_cv_x11_version_6=no
5572 fi
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574 fi
5575
5576   if test "$timidity_cv_x11_version_6" = "yes"; then
5577     echo "$as_me:$LINENO: result: 6 or newer" >&5
5578 echo "${ECHO_T}6 or newer" >&6
5579       else
5580     echo "$as_me:$LINENO: result: before 6" >&5
5581 echo "${ECHO_T}before 6" >&6
5582   fi
5583
5584     KEEPLIBS=$LIBS
5585   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5586 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5587 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   ac_check_lib_save_LIBS=$LIBS
5591 LIBS="-lXext  $LIBS"
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 /* confdefs.h.  */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h.  */
5599
5600 /* Override any gcc2 internal prototype to avoid an error.  */
5601 #ifdef __cplusplus
5602 extern "C"
5603 #endif
5604 /* We use char because int might match the return type of a gcc2
5605    builtin and then its argument prototype would still apply.  */
5606 char XShapeCombineMask ();
5607 int
5608 main ()
5609 {
5610 XShapeCombineMask ();
5611   ;
5612   return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617   (eval $ac_link) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } &&
5621          { ac_try='test -s conftest$ac_exeext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_lib_Xext_XShapeCombineMask=yes
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_cv_lib_Xext_XShapeCombineMask=no
5633 fi
5634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5638 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5639 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5640   have_xext=yes; LIBS="-lXext $LIBS"
5641 else
5642   have_xext=no
5643 fi
5644
5645
5646 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5647 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5648 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lICE  $LIBS"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660
5661 /* Override any gcc2 internal prototype to avoid an error.  */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 /* We use char because int might match the return type of a gcc2
5666    builtin and then its argument prototype would still apply.  */
5667 char IceConnectionNumber ();
5668 int
5669 main ()
5670 {
5671 IceConnectionNumber ();
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678   (eval $ac_link) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_cv_lib_ICE_IceConnectionNumber=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_cv_lib_ICE_IceConnectionNumber=no
5694 fi
5695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5697 fi
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5699 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5700 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5701   cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LIBICE 1
5703 _ACEOF
5704
5705   LIBS="-lICE $LIBS"
5706
5707 fi
5708
5709   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5710 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5711 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   ac_check_lib_save_LIBS=$LIBS
5715 LIBS="-lSM  $LIBS"
5716 cat >conftest.$ac_ext <<_ACEOF
5717 #line $LINENO "configure"
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 /* Override any gcc2 internal prototype to avoid an error.  */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 /* We use char because int might match the return type of a gcc2
5729    builtin and then its argument prototype would still apply.  */
5730 char SmcOpenConnection ();
5731 int
5732 main ()
5733 {
5734 SmcOpenConnection ();
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741   (eval $ac_link) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -s conftest$ac_exeext'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_cv_lib_SM_SmcOpenConnection=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_lib_SM_SmcOpenConnection=no
5757 fi
5758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759 LIBS=$ac_check_lib_save_LIBS
5760 fi
5761 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5762 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5763 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5764   have_xprelibs=yes; LIBS="-lSM $LIBS"
5765 else
5766   have_xprelibs=no
5767 fi
5768
5769   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5770 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5771 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   ac_check_lib_save_LIBS=$LIBS
5775 LIBS="-lXt  $LIBS"
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783
5784 /* Override any gcc2 internal prototype to avoid an error.  */
5785 #ifdef __cplusplus
5786 extern "C"
5787 #endif
5788 /* We use char because int might match the return type of a gcc2
5789    builtin and then its argument prototype would still apply.  */
5790 char XtVaAppInitialize ();
5791 int
5792 main ()
5793 {
5794 XtVaAppInitialize ();
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -s conftest$ac_exeext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_cv_lib_Xt_XtVaAppInitialize=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_cv_lib_Xt_XtVaAppInitialize=no
5817 fi
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_check_lib_save_LIBS
5820 fi
5821 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5822 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5823 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5824   have_xt=yes; LIBS="-lXt $LIBS"
5825 else
5826   have_xt=no
5827 fi
5828
5829   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5830 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5831 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lXmu  $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843
5844 /* Override any gcc2 internal prototype to avoid an error.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 /* We use char because int might match the return type of a gcc2
5849    builtin and then its argument prototype would still apply.  */
5850 char XmuInternAtom ();
5851 int
5852 main ()
5853 {
5854 XmuInternAtom ();
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -s conftest$ac_exeext'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   ac_cv_lib_Xmu_XmuInternAtom=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 ac_cv_lib_Xmu_XmuInternAtom=no
5877 fi
5878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_check_lib_save_LIBS
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5882 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5883 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5884   LIBS="-lXmu $LIBS"
5885 fi
5886
5887
5888 for ac_func in XmuRegisterExternalAgent
5889 do
5890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5891 echo "$as_me:$LINENO: checking for $ac_func" >&5
5892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5893 if eval "test \"\${$as_ac_var+set}\" = set"; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   cat >conftest.$ac_ext <<_ACEOF
5897 #line $LINENO "configure"
5898 /* confdefs.h.  */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h.  */
5903 /* System header to define __stub macros and hopefully few prototypes,
5904     which can conflict with char $ac_func (); below.  */
5905 #include <assert.h>
5906 /* Override any gcc2 internal prototype to avoid an error.  */
5907 #ifdef __cplusplus
5908 extern "C"
5909 {
5910 #endif
5911 /* We use char because int might match the return type of a gcc2
5912    builtin and then its argument prototype would still apply.  */
5913 char $ac_func ();
5914 /* The GNU C library defines this for functions which it implements
5915     to always fail with ENOSYS.  Some functions are actually named
5916     something starting with __ and the normal name is an alias.  */
5917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5918 choke me
5919 #else
5920 char (*f) () = $ac_func;
5921 #endif
5922 #ifdef __cplusplus
5923 }
5924 #endif
5925
5926 int
5927 main ()
5928 {
5929
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936   (eval $ac_link) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } &&
5940          { ac_try='test -s conftest$ac_exeext'
5941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   eval "$as_ac_var=yes"
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 eval "$as_ac_var=no"
5952 fi
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 fi
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958   cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960 _ACEOF
5961
5962 fi
5963 done
5964
5965   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
5966 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
5967 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lXaw3d  $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979
5980 /* Override any gcc2 internal prototype to avoid an error.  */
5981 #ifdef __cplusplus
5982 extern "C"
5983 #endif
5984 /* We use char because int might match the return type of a gcc2
5985    builtin and then its argument prototype would still apply.  */
5986 char XawInitializeWidgetSet ();
5987 int
5988 main ()
5989 {
5990 XawInitializeWidgetSet ();
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997   (eval $ac_link) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -s conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6013 fi
6014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6015 LIBS=$ac_check_lib_save_LIBS
6016 fi
6017 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6018 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6019 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6020   have_xaw=3d
6021 else
6022    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6023 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6024 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-lXaw  $LIBS"
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036
6037 /* Override any gcc2 internal prototype to avoid an error.  */
6038 #ifdef __cplusplus
6039 extern "C"
6040 #endif
6041 /* We use char because int might match the return type of a gcc2
6042    builtin and then its argument prototype would still apply.  */
6043 char XawInitializeWidgetSet ();
6044 int
6045 main ()
6046 {
6047 XawInitializeWidgetSet ();
6048   ;
6049   return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6054   (eval $ac_link) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } &&
6058          { ac_try='test -s conftest$ac_exeext'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6070 fi
6071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6073 fi
6074 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6075 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6076 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6077   have_xaw=yes
6078 else
6079   have_xaw=no
6080 fi
6081
6082 fi
6083
6084   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6085 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6086 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   ac_check_lib_save_LIBS=$LIBS
6090 LIBS="-lXm  $LIBS"
6091 cat >conftest.$ac_ext <<_ACEOF
6092 #line $LINENO "configure"
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 /* Override any gcc2 internal prototype to avoid an error.  */
6100 #ifdef __cplusplus
6101 extern "C"
6102 #endif
6103 /* We use char because int might match the return type of a gcc2
6104    builtin and then its argument prototype would still apply.  */
6105 char XmCreateForm ();
6106 int
6107 main ()
6108 {
6109 XmCreateForm ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116   (eval $ac_link) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -s conftest$ac_exeext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   ac_cv_lib_Xm_XmCreateForm=yes
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131 ac_cv_lib_Xm_XmCreateForm=no
6132 fi
6133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6135 fi
6136 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6137 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6138 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6139   have_xm=yes
6140 else
6141   have_xm=no
6142 fi
6143
6144
6145 for ac_func in XShmCreatePixmap
6146 do
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 /* System header to define __stub macros and hopefully few prototypes,
6161     which can conflict with char $ac_func (); below.  */
6162 #include <assert.h>
6163 /* Override any gcc2 internal prototype to avoid an error.  */
6164 #ifdef __cplusplus
6165 extern "C"
6166 {
6167 #endif
6168 /* We use char because int might match the return type of a gcc2
6169    builtin and then its argument prototype would still apply.  */
6170 char $ac_func ();
6171 /* The GNU C library defines this for functions which it implements
6172     to always fail with ENOSYS.  Some functions are actually named
6173     something starting with __ and the normal name is an alias.  */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6175 choke me
6176 #else
6177 char (*f) () = $ac_func;
6178 #endif
6179 #ifdef __cplusplus
6180 }
6181 #endif
6182
6183 int
6184 main ()
6185 {
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193   (eval $ac_link) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -s conftest$ac_exeext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   eval "$as_ac_var=yes"
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 eval "$as_ac_var=no"
6209 fi
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6211 fi
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214 if test `eval echo '${'$as_ac_var'}'` = yes; then
6215   cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6217 _ACEOF
6218
6219 fi
6220 done
6221
6222   LIBS=$KEEPLIBS
6223 fi
6224
6225 # Checks for header files.
6226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6228 if test "${ac_cv_header_stdc+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   cat >conftest.$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6233 /* confdefs.h.  */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h.  */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6242
6243 int
6244 main ()
6245 {
6246
6247   ;
6248   return 0;
6249 }
6250 _ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6253   (eval $ac_compile) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -s conftest.$ac_objext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_cv_header_stdc=yes
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_cv_header_stdc=no
6269 fi
6270 rm -f conftest.$ac_objext conftest.$ac_ext
6271
6272 if test $ac_cv_header_stdc = yes; then
6273   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6274   cat >conftest.$ac_ext <<_ACEOF
6275 #line $LINENO "configure"
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281 #include <string.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285   $EGREP "memchr" >/dev/null 2>&1; then
6286   :
6287 else
6288   ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6291
6292 fi
6293
6294 if test $ac_cv_header_stdc = yes; then
6295   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296   cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <stdlib.h>
6304
6305 _ACEOF
6306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307   $EGREP "free" >/dev/null 2>&1; then
6308   :
6309 else
6310   ac_cv_header_stdc=no
6311 fi
6312 rm -f conftest*
6313
6314 fi
6315
6316 if test $ac_cv_header_stdc = yes; then
6317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6318   if test "$cross_compiling" = yes; then
6319   :
6320 else
6321   cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 /* confdefs.h.  */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h.  */
6328 #include <ctype.h>
6329 #if ((' ' & 0x0FF) == 0x020)
6330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6332 #else
6333 # define ISLOWER(c) \
6334                    (('a' <= (c) && (c) <= 'i') \
6335                      || ('j' <= (c) && (c) <= 'r') \
6336                      || ('s' <= (c) && (c) <= 'z'))
6337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6338 #endif
6339
6340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6341 int
6342 main ()
6343 {
6344   int i;
6345   for (i = 0; i < 256; i++)
6346     if (XOR (islower (i), ISLOWER (i))
6347         || toupper (i) != TOUPPER (i))
6348       exit(2);
6349   exit (0);
6350 }
6351 _ACEOF
6352 rm -f conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354   (eval $ac_link) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   :
6364 else
6365   echo "$as_me: program exited with status $ac_status" >&5
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ( exit $ac_status )
6370 ac_cv_header_stdc=no
6371 fi
6372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 fi
6375 fi
6376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6378 if test $ac_cv_header_stdc = yes; then
6379
6380 cat >>confdefs.h <<\_ACEOF
6381 #define STDC_HEADERS 1
6382 _ACEOF
6383
6384 fi
6385
6386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6397                   inttypes.h stdint.h unistd.h
6398 do
6399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 $ac_includes_default
6413
6414 #include <$ac_header>
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418   (eval $ac_compile) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest.$ac_objext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   eval "$as_ac_Header=yes"
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 eval "$as_ac_Header=no"
6434 fi
6435 rm -f conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440   cat >>confdefs.h <<_ACEOF
6441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442 _ACEOF
6443
6444 fi
6445
6446 done
6447
6448
6449 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6450 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6451 if test "${ac_cv_header_stdbool_h+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454   cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461
6462 #include <stdbool.h>
6463 #ifndef bool
6464 # error bool is not defined
6465 #endif
6466 #ifndef false
6467 # error false is not defined
6468 #endif
6469 #if false
6470 # error false is not 0
6471 #endif
6472 #ifndef true
6473 # error true is not defined
6474 #endif
6475 #if true != 1
6476 # error true is not 1
6477 #endif
6478 #ifndef __bool_true_false_are_defined
6479 # error __bool_true_false_are_defined is not defined
6480 #endif
6481
6482         struct s { _Bool s: 1; _Bool t; } s;
6483
6484         char a[true == 1 ? 1 : -1];
6485         char b[false == 0 ? 1 : -1];
6486         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6487         char d[(bool) -0.5 == true ? 1 : -1];
6488         bool e = &s;
6489         char f[(_Bool) -0.0 == false ? 1 : -1];
6490         char g[true];
6491         char h[sizeof (_Bool)];
6492         char i[sizeof s.t];
6493
6494 int
6495 main ()
6496 {
6497  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -s conftest.$ac_objext'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; }; then
6514   ac_cv_header_stdbool_h=yes
6515 else
6516   echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ac_cv_header_stdbool_h=no
6520 fi
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6525 echo "$as_me:$LINENO: checking for _Bool" >&5
6526 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6527 if test "${ac_cv_type__Bool+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537 $ac_includes_default
6538 int
6539 main ()
6540 {
6541 if ((_Bool *) 0)
6542   return 0;
6543 if (sizeof (_Bool))
6544   return 0;
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551   (eval $ac_compile) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } &&
6555          { ac_try='test -s conftest.$ac_objext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_type__Bool=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_cv_type__Bool=no
6567 fi
6568 rm -f conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6571 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6572 if test $ac_cv_type__Bool = yes; then
6573
6574 cat >>confdefs.h <<_ACEOF
6575 #define HAVE__BOOL 1
6576 _ACEOF
6577
6578
6579 fi
6580
6581 if test $ac_cv_header_stdbool_h = yes; then
6582
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_STDBOOL_H 1
6585 _ACEOF
6586
6587 fi
6588
6589 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6590 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6591 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 /* confdefs.h.  */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h.  */
6601 #include <sys/types.h>
6602 #include <sys/wait.h>
6603 #ifndef WEXITSTATUS
6604 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6605 #endif
6606 #ifndef WIFEXITED
6607 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6608 #endif
6609
6610 int
6611 main ()
6612 {
6613   int s;
6614   wait (&s);
6615   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622   (eval $ac_compile) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } &&
6626          { ac_try='test -s conftest.$ac_objext'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; }; then
6632   ac_cv_header_sys_wait_h=yes
6633 else
6634   echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
6637 ac_cv_header_sys_wait_h=no
6638 fi
6639 rm -f conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6642 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6643 if test $ac_cv_header_sys_wait_h = yes; then
6644
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_SYS_WAIT_H 1
6647 _ACEOF
6648
6649 fi
6650
6651 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6652 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6653 if test "${ac_cv_header_time+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6658 /* confdefs.h.  */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h.  */
6663 #include <sys/types.h>
6664 #include <sys/time.h>
6665 #include <time.h>
6666
6667 int
6668 main ()
6669 {
6670 if ((struct tm *) 0)
6671 return 0;
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); } &&
6682          { ac_try='test -s conftest.$ac_objext'
6683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684   (eval $ac_try) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }; }; then
6688   ac_cv_header_time=yes
6689 else
6690   echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693 ac_cv_header_time=no
6694 fi
6695 rm -f conftest.$ac_objext conftest.$ac_ext
6696 fi
6697 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6698 echo "${ECHO_T}$ac_cv_header_time" >&6
6699 if test $ac_cv_header_time = yes; then
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define TIME_WITH_SYS_TIME 1
6703 _ACEOF
6704
6705 fi
6706
6707
6708
6709
6710
6711
6712 ac_header_dirent=no
6713 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6714   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6715 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6716 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   cat >conftest.$ac_ext <<_ACEOF
6721 #line $LINENO "configure"
6722 /* confdefs.h.  */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h.  */
6727 #include <sys/types.h>
6728 #include <$ac_hdr>
6729
6730 int
6731 main ()
6732 {
6733 if ((DIR *) 0)
6734 return 0;
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741   (eval $ac_compile) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -s conftest.$ac_objext'
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   eval "$as_ac_Header=yes"
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 eval "$as_ac_Header=no"
6757 fi
6758 rm -f conftest.$ac_objext conftest.$ac_ext
6759 fi
6760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763   cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6765 _ACEOF
6766
6767 ac_header_dirent=$ac_hdr; break
6768 fi
6769
6770 done
6771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6772 if test $ac_header_dirent = dirent.h; then
6773   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6775 if test "${ac_cv_search_opendir+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   ac_func_search_save_LIBS=$LIBS
6779 ac_cv_search_opendir=no
6780 cat >conftest.$ac_ext <<_ACEOF
6781 #line $LINENO "configure"
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787
6788 /* Override any gcc2 internal prototype to avoid an error.  */
6789 #ifdef __cplusplus
6790 extern "C"
6791 #endif
6792 /* We use char because int might match the return type of a gcc2
6793    builtin and then its argument prototype would still apply.  */
6794 char opendir ();
6795 int
6796 main ()
6797 {
6798 opendir ();
6799   ;
6800   return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805   (eval $ac_link) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } &&
6809          { ac_try='test -s conftest$ac_exeext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815   ac_cv_search_opendir="none required"
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 fi
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 if test "$ac_cv_search_opendir" = no; then
6823   for ac_lib in dir; do
6824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6825     cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832
6833 /* Override any gcc2 internal prototype to avoid an error.  */
6834 #ifdef __cplusplus
6835 extern "C"
6836 #endif
6837 /* We use char because int might match the return type of a gcc2
6838    builtin and then its argument prototype would still apply.  */
6839 char opendir ();
6840 int
6841 main ()
6842 {
6843 opendir ();
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850   (eval $ac_link) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } &&
6854          { ac_try='test -s conftest$ac_exeext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_cv_search_opendir="-l$ac_lib"
6861 break
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 fi
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868   done
6869 fi
6870 LIBS=$ac_func_search_save_LIBS
6871 fi
6872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6874 if test "$ac_cv_search_opendir" != no; then
6875   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6876
6877 fi
6878
6879 else
6880   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6882 if test "${ac_cv_search_opendir+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   ac_func_search_save_LIBS=$LIBS
6886 ac_cv_search_opendir=no
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894
6895 /* Override any gcc2 internal prototype to avoid an error.  */
6896 #ifdef __cplusplus
6897 extern "C"
6898 #endif
6899 /* We use char because int might match the return type of a gcc2
6900    builtin and then its argument prototype would still apply.  */
6901 char opendir ();
6902 int
6903 main ()
6904 {
6905 opendir ();
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912   (eval $ac_link) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } &&
6916          { ac_try='test -s conftest$ac_exeext'
6917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918   (eval $ac_try) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_search_opendir="none required"
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 fi
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6929 if test "$ac_cv_search_opendir" = no; then
6930   for ac_lib in x; do
6931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6932     cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 /* Override any gcc2 internal prototype to avoid an error.  */
6941 #ifdef __cplusplus
6942 extern "C"
6943 #endif
6944 /* We use char because int might match the return type of a gcc2
6945    builtin and then its argument prototype would still apply.  */
6946 char opendir ();
6947 int
6948 main ()
6949 {
6950 opendir ();
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957   (eval $ac_link) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } &&
6961          { ac_try='test -s conftest$ac_exeext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_cv_search_opendir="-l$ac_lib"
6968 break
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975   done
6976 fi
6977 LIBS=$ac_func_search_save_LIBS
6978 fi
6979 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6980 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6981 if test "$ac_cv_search_opendir" != no; then
6982   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6983
6984 fi
6985
6986 fi
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027 for ac_header in \
7028   arpa/inet.h \
7029   errno.h \
7030   getopt.h \
7031   glob.h \
7032   dlfcn.h \
7033   fcntl.h \
7034   inttypes.h \
7035   limits.h \
7036   machine/endian.h \
7037   malloc.h \
7038   memory.h \
7039   netdb.h \
7040   netinet/in.h \
7041   nlist.h \
7042   stddef.h \
7043   stdlib.h \
7044   stdint.h \
7045   string.h \
7046   strings.h \
7047   stropts.h \
7048   soundcard.h \
7049   alsa/asoundlib.h \
7050   sys/asoundlib.h \
7051   sys/audioio.h \
7052   sys/awe_voice.h\
7053   sys/ioctl.h \
7054   sys/ipc.h \
7055   sys/param.h \
7056   sys/shm.h \
7057   sys/socket.h \
7058   sys/soundcard.h \
7059   sys/param.h \
7060   sys/time.h \
7061   sys/types.h \
7062   sys/sysctl.h \
7063   termios.h \
7064   unistd.h \
7065   X11/extensions/XShm.h \
7066   X11/Xmu/ExtAgent.h
7067 do
7068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070   echo "$as_me:$LINENO: checking for $ac_header" >&5
7071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 fi
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077 else
7078   # Is the header compilable?
7079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7081 cat >conftest.$ac_ext <<_ACEOF
7082 #line $LINENO "configure"
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 $ac_includes_default
7089 #include <$ac_header>
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093   (eval $ac_compile) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } &&
7097          { ac_try='test -s conftest.$ac_objext'
7098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099   (eval $ac_try) 2>&5
7100   ac_status=$?
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); }; }; then
7103   ac_header_compiler=yes
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 ac_header_compiler=no
7109 fi
7110 rm -f conftest.$ac_objext conftest.$ac_ext
7111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7112 echo "${ECHO_T}$ac_header_compiler" >&6
7113
7114 # Is the header present?
7115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <$ac_header>
7125 _ACEOF
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_c_preproc_warn_flag
7136   else
7137     ac_cpp_err=
7138   fi
7139 else
7140   ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143   ac_header_preproc=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148   ac_header_preproc=no
7149 fi
7150 rm -f conftest.err conftest.$ac_ext
7151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7152 echo "${ECHO_T}$ac_header_preproc" >&6
7153
7154 # So?  What about this header?
7155 case $ac_header_compiler:$ac_header_preproc in
7156   yes:no )
7157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7161     (
7162       cat <<\_ASBOX
7163 ## ------------------------------------ ##
7164 ## Report this to bug-autoconf@gnu.org. ##
7165 ## ------------------------------------ ##
7166 _ASBOX
7167     ) |
7168       sed "s/^/$as_me: WARNING:     /" >&2
7169     ;;
7170   no:yes )
7171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7173     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7177     (
7178       cat <<\_ASBOX
7179 ## ------------------------------------ ##
7180 ## Report this to bug-autoconf@gnu.org. ##
7181 ## ------------------------------------ ##
7182 _ASBOX
7183     ) |
7184       sed "s/^/$as_me: WARNING:     /" >&2
7185     ;;
7186 esac
7187 echo "$as_me:$LINENO: checking for $ac_header" >&5
7188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   eval "$as_ac_Header=$ac_header_preproc"
7193 fi
7194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196
7197 fi
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199   cat >>confdefs.h <<_ACEOF
7200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7201 _ACEOF
7202
7203 fi
7204
7205 done
7206
7207 if test "${ac_cv_header_string_h+set}" = set; then
7208   echo "$as_me:$LINENO: checking for string.h" >&5
7209 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7210 if test "${ac_cv_header_string_h+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 fi
7213 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7214 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7215 else
7216   # Is the header compilable?
7217 echo "$as_me:$LINENO: checking string.h usability" >&5
7218 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 $ac_includes_default
7227 #include <string.h>
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231   (eval $ac_compile) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } &&
7235          { ac_try='test -s conftest.$ac_objext'
7236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237   (eval $ac_try) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); }; }; then
7241   ac_header_compiler=yes
7242 else
7243   echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 ac_header_compiler=no
7247 fi
7248 rm -f conftest.$ac_objext conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7250 echo "${ECHO_T}$ac_header_compiler" >&6
7251
7252 # Is the header present?
7253 echo "$as_me:$LINENO: checking string.h presence" >&5
7254 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line $LINENO "configure"
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262 #include <string.h>
7263 _ACEOF
7264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } >/dev/null; then
7272   if test -s conftest.err; then
7273     ac_cpp_err=$ac_c_preproc_warn_flag
7274   else
7275     ac_cpp_err=
7276   fi
7277 else
7278   ac_cpp_err=yes
7279 fi
7280 if test -z "$ac_cpp_err"; then
7281   ac_header_preproc=yes
7282 else
7283   echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286   ac_header_preproc=no
7287 fi
7288 rm -f conftest.err conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7290 echo "${ECHO_T}$ac_header_preproc" >&6
7291
7292 # So?  What about this header?
7293 case $ac_header_compiler:$ac_header_preproc in
7294   yes:no )
7295     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7296 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7297     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7298 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7299     (
7300       cat <<\_ASBOX
7301 ## ------------------------------------ ##
7302 ## Report this to bug-autoconf@gnu.org. ##
7303 ## ------------------------------------ ##
7304 _ASBOX
7305     ) |
7306       sed "s/^/$as_me: WARNING:     /" >&2
7307     ;;
7308   no:yes )
7309     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7310 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7311     { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7312 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7313     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7314 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7315     (
7316       cat <<\_ASBOX
7317 ## ------------------------------------ ##
7318 ## Report this to bug-autoconf@gnu.org. ##
7319 ## ------------------------------------ ##
7320 _ASBOX
7321     ) |
7322       sed "s/^/$as_me: WARNING:     /" >&2
7323     ;;
7324 esac
7325 echo "$as_me:$LINENO: checking for string.h" >&5
7326 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7327 if test "${ac_cv_header_string_h+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   ac_cv_header_string_h=$ac_header_preproc
7331 fi
7332 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7333 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7334
7335 fi
7336 if test $ac_cv_header_string_h = yes; then
7337   :
7338 else
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define NO_STRING_H 1
7342 _ACEOF
7343
7344 fi
7345
7346
7347
7348 # Checks for typedefs, structures, and compiler characteristics.
7349 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7351 if test "${ac_cv_c_bigendian+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   # See if sys/param.h defines the BYTE_ORDER macro.
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 #include <sys/types.h>
7363 #include <sys/param.h>
7364
7365 int
7366 main ()
7367 {
7368 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7369  bogus endian macros
7370 #endif
7371
7372   ;
7373   return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378   (eval $ac_compile) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } &&
7382          { ac_try='test -s conftest.$ac_objext'
7383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384   (eval $ac_try) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); }; }; then
7388   # It does; now see whether it defined to BIG_ENDIAN or not.
7389 cat >conftest.$ac_ext <<_ACEOF
7390 #line $LINENO "configure"
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #include <sys/types.h>
7397 #include <sys/param.h>
7398
7399 int
7400 main ()
7401 {
7402 #if BYTE_ORDER != BIG_ENDIAN
7403  not big endian
7404 #endif
7405
7406   ;
7407   return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412   (eval $ac_compile) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } &&
7416          { ac_try='test -s conftest.$ac_objext'
7417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418   (eval $ac_try) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   ac_cv_c_bigendian=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 ac_cv_c_bigendian=no
7428 fi
7429 rm -f conftest.$ac_objext conftest.$ac_ext
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 # It does not; compile a test program.
7435 if test "$cross_compiling" = yes; then
7436   # try to guess the endianness by grepping values into an object file
7437   ac_cv_c_bigendian=unknown
7438   cat >conftest.$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7446 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7448 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7449 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7451 int
7452 main ()
7453 {
7454  _ascii (); _ebcdic ();
7455   ;
7456   return 0;
7457 }
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7461   (eval $ac_compile) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); } &&
7465          { ac_try='test -s conftest.$ac_objext'
7466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467   (eval $ac_try) 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; }; then
7471   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7472   ac_cv_c_bigendian=yes
7473 fi
7474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7475   if test "$ac_cv_c_bigendian" = unknown; then
7476     ac_cv_c_bigendian=no
7477   else
7478     # finding both strings is unlikely to happen, but who knows?
7479     ac_cv_c_bigendian=unknown
7480   fi
7481 fi
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 fi
7487 rm -f conftest.$ac_objext conftest.$ac_ext
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 int
7497 main ()
7498 {
7499   /* Are we little or big endian?  From Harbison&Steele.  */
7500   union
7501   {
7502     long l;
7503     char c[sizeof (long)];
7504   } u;
7505   u.l = 1;
7506   exit (u.c[sizeof (long) - 1] == 1);
7507 }
7508 _ACEOF
7509 rm -f conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511   (eval $ac_link) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516   (eval $ac_try) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); }; }; then
7520   ac_cv_c_bigendian=no
7521 else
7522   echo "$as_me: program exited with status $ac_status" >&5
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ( exit $ac_status )
7527 ac_cv_c_bigendian=yes
7528 fi
7529 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 fi
7532 rm -f conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7535 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7536 case $ac_cv_c_bigendian in
7537   yes)
7538
7539 cat >>confdefs.h <<\_ACEOF
7540 #define WORDS_BIGENDIAN 1
7541 _ACEOF
7542  ;;
7543   no)
7544      ;;
7545   *)
7546     { { echo "$as_me:$LINENO: error: unknown endianness
7547 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7548 echo "$as_me: error: unknown endianness
7549 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7550    { (exit 1); exit 1; }; } ;;
7551 esac
7552
7553
7554 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7555 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7556 if test "${ac_cv_c_char_unsigned+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566 $ac_includes_default
7567 int
7568 main ()
7569 {
7570 static int test_array [1 - 2 * !(((char) -1) < 0)];
7571 test_array [0] = 0
7572
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579   (eval $ac_compile) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } &&
7583          { ac_try='test -s conftest.$ac_objext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_cv_c_char_unsigned=no
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_c_char_unsigned=yes
7595 fi
7596 rm -f conftest.$ac_objext conftest.$ac_ext
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7599 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7600 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7601   cat >>confdefs.h <<\_ACEOF
7602 #define __CHAR_UNSIGNED__ 1
7603 _ACEOF
7604
7605 fi
7606
7607 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7609 if test "${ac_cv_c_const+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 int
7621 main ()
7622 {
7623 /* FIXME: Include the comments suggested by Paul. */
7624 #ifndef __cplusplus
7625   /* Ultrix mips cc rejects this.  */
7626   typedef int charset[2];
7627   const charset x;
7628   /* SunOS 4.1.1 cc rejects this.  */
7629   char const *const *ccp;
7630   char **p;
7631   /* NEC SVR4.0.2 mips cc rejects this.  */
7632   struct point {int x, y;};
7633   static struct point const zero = {0,0};
7634   /* AIX XL C 1.02.0.0 rejects this.
7635      It does not let you subtract one const X* pointer from another in
7636      an arm of an if-expression whose if-part is not a constant
7637      expression */
7638   const char *g = "string";
7639   ccp = &g + (g ? g-g : 0);
7640   /* HPUX 7.0 cc rejects these. */
7641   ++ccp;
7642   p = (char**) ccp;
7643   ccp = (char const *const *) p;
7644   { /* SCO 3.2v4 cc rejects this.  */
7645     char *t;
7646     char const *s = 0 ? (char *) 0 : (char const *) 0;
7647
7648     *t++ = 0;
7649   }
7650   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7651     int x[] = {25, 17};
7652     const int *foo = &x[0];
7653     ++foo;
7654   }
7655   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7656     typedef const int *iptr;
7657     iptr p = 0;
7658     ++p;
7659   }
7660   { /* AIX XL C 1.02.0.0 rejects this saying
7661        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7662     struct s { int j; const int *ap[3]; };
7663     struct s *b; b->j = 5;
7664   }
7665   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7666     const int foo = 10;
7667   }
7668 #endif
7669
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676   (eval $ac_compile) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } &&
7680          { ac_try='test -s conftest.$ac_objext'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   ac_cv_c_const=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 ac_cv_c_const=no
7692 fi
7693 rm -f conftest.$ac_objext conftest.$ac_ext
7694 fi
7695 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7696 echo "${ECHO_T}$ac_cv_c_const" >&6
7697 if test $ac_cv_c_const = no; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define const
7701 _ACEOF
7702
7703 fi
7704
7705 echo "$as_me:$LINENO: checking for inline" >&5
7706 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7707 if test "${ac_cv_c_inline+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   ac_cv_c_inline=no
7711 for ac_kw in inline __inline__ __inline; do
7712   cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 /* confdefs.h.  */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h.  */
7719 #ifndef __cplusplus
7720 typedef int foo_t;
7721 static $ac_kw foo_t static_foo () {return 0; }
7722 $ac_kw foo_t foo () {return 0; }
7723 #endif
7724
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728   (eval $ac_compile) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   ac_cv_c_inline=$ac_kw; break
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 fi
7744 rm -f conftest.$ac_objext conftest.$ac_ext
7745 done
7746
7747 fi
7748 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7749 echo "${ECHO_T}$ac_cv_c_inline" >&6
7750 case $ac_cv_c_inline in
7751   inline | yes) ;;
7752   no)
7753 cat >>confdefs.h <<\_ACEOF
7754 #define inline
7755 _ACEOF
7756  ;;
7757   *)  cat >>confdefs.h <<_ACEOF
7758 #define inline $ac_cv_c_inline
7759 _ACEOF
7760  ;;
7761 esac
7762
7763 echo "$as_me:$LINENO: checking for working volatile" >&5
7764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7765 if test "${ac_cv_c_volatile+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 /* confdefs.h.  */
7771 _ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h.  */
7775
7776 int
7777 main ()
7778 {
7779
7780 volatile int x;
7781 int * volatile y;
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788   (eval $ac_compile) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -s conftest.$ac_objext'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; }; then
7798   ac_cv_c_volatile=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_cv_c_volatile=no
7804 fi
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7806 fi
7807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7809 if test $ac_cv_c_volatile = no; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define volatile
7813 _ACEOF
7814
7815 fi
7816
7817 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7818 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7819 if test "${ac_cv_c_stringize+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829 #define x(y) #y
7830
7831 char *s = x(teststring);
7832 _ACEOF
7833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7834   $EGREP "#teststring" >/dev/null 2>&1; then
7835   ac_cv_c_stringize=no
7836 else
7837   ac_cv_c_stringize=yes
7838 fi
7839 rm -f conftest*
7840
7841 fi
7842 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7843 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7844 if test $ac_cv_c_stringize = yes; then
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_STRINGIZE 1
7848 _ACEOF
7849
7850 fi
7851
7852 echo "$as_me:$LINENO: checking for function prototypes" >&5
7853 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7854 if test "$ac_cv_prog_cc_stdc" != no; then
7855   echo "$as_me:$LINENO: result: yes" >&5
7856 echo "${ECHO_T}yes" >&6
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define PROTOTYPES 1
7860 _ACEOF
7861
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define __PROTOTYPES 1
7865 _ACEOF
7866
7867 else
7868   echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6
7870 fi
7871
7872 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7873 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7874 if test "${ac_cv_struct_tm+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   cat >conftest.$ac_ext <<_ACEOF
7878 #line $LINENO "configure"
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 #include <sys/types.h>
7885 #include <time.h>
7886
7887 int
7888 main ()
7889 {
7890 struct tm *tp; tp->tm_sec;
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897   (eval $ac_compile) 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -s conftest.$ac_objext'
7902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; }; then
7907   ac_cv_struct_tm=time.h
7908 else
7909   echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7911
7912 ac_cv_struct_tm=sys/time.h
7913 fi
7914 rm -f conftest.$ac_objext conftest.$ac_ext
7915 fi
7916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7918 if test $ac_cv_struct_tm = sys/time.h; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define TM_IN_SYS_TIME 1
7922 _ACEOF
7923
7924 fi
7925
7926 echo "$as_me:$LINENO: checking for size_t" >&5
7927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7928 if test "${ac_cv_type_size_t+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 $ac_includes_default
7939 int
7940 main ()
7941 {
7942 if ((size_t *) 0)
7943   return 0;
7944 if (sizeof (size_t))
7945   return 0;
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952   (eval $ac_compile) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } &&
7956          { ac_try='test -s conftest.$ac_objext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   ac_cv_type_size_t=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 ac_cv_type_size_t=no
7968 fi
7969 rm -f conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7972 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7973 if test $ac_cv_type_size_t = yes; then
7974   :
7975 else
7976
7977 cat >>confdefs.h <<_ACEOF
7978 #define size_t unsigned
7979 _ACEOF
7980
7981 fi
7982
7983 echo "$as_me:$LINENO: checking for off_t" >&5
7984 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7985 if test "${ac_cv_type_off_t+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995 $ac_includes_default
7996 int
7997 main ()
7998 {
7999 if ((off_t *) 0)
8000   return 0;
8001 if (sizeof (off_t))
8002   return 0;
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009   (eval $ac_compile) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } &&
8013          { ac_try='test -s conftest.$ac_objext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_cv_type_off_t=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_type_off_t=no
8025 fi
8026 rm -f conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8029 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8030 if test $ac_cv_type_off_t = yes; then
8031   :
8032 else
8033
8034 cat >>confdefs.h <<_ACEOF
8035 #define off_t long
8036 _ACEOF
8037
8038 fi
8039
8040 echo "$as_me:$LINENO: checking for pid_t" >&5
8041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8042 if test "${ac_cv_type_pid_t+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   cat >conftest.$ac_ext <<_ACEOF
8046 #line $LINENO "configure"
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 $ac_includes_default
8053 int
8054 main ()
8055 {
8056 if ((pid_t *) 0)
8057   return 0;
8058 if (sizeof (pid_t))
8059   return 0;
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066   (eval $ac_compile) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } &&
8070          { ac_try='test -s conftest.$ac_objext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_cv_type_pid_t=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_cv_type_pid_t=no
8082 fi
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8086 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8087 if test $ac_cv_type_pid_t = yes; then
8088   :
8089 else
8090
8091 cat >>confdefs.h <<_ACEOF
8092 #define pid_t int
8093 _ACEOF
8094
8095 fi
8096
8097
8098 echo "$as_me:$LINENO: checking volatile declaration" >&5
8099 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8100 if test "${timidity_cv_type_volatile+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   cat >conftest.$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110
8111 int
8112 main ()
8113 {
8114 volatile int x
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121   (eval $ac_compile) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -s conftest.$ac_objext'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   timidity_cv_type_volatile=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 timidity_cv_type_volatile=no
8137 fi
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8139 fi
8140 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8141 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8142 if test $timidity_cv_type_volatile = no; then
8143
8144 cat >>confdefs.h <<\_ACEOF
8145 #define NO_VOLATILE 1
8146 _ACEOF
8147
8148 fi
8149
8150 echo "$as_me:$LINENO: checking union semun declaration" >&5
8151 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8152 if test "${timidity_cv_type_union_semun+set}" = set; then
8153   echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155   cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162
8163 #include <sys/types.h>
8164 #include <sys/ipc.h>
8165 #include <sys/sem.h>
8166
8167 int
8168 main ()
8169 {
8170 union semun x
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177   (eval $ac_compile) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -s conftest.$ac_objext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   timidity_cv_type_union_semun=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 timidity_cv_type_union_semun=no
8193 fi
8194 rm -f conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8197 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8198 if test $timidity_cv_type_union_semun = yes; then
8199
8200 cat >>confdefs.h <<\_ACEOF
8201 #define HAVE_UNION_SEMUN 1
8202 _ACEOF
8203
8204 fi
8205
8206 if test "x$CYGNUS" = xyes; then
8207   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8208 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8209 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219
8220 #include <windows.h>
8221 #include <mmsystem.h>
8222
8223 int
8224 main ()
8225 {
8226 return WOM_OPEN != 0x3BB
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233   (eval $ac_compile) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); } &&
8237          { ac_try='test -s conftest.$ac_objext'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   timidity_cv_header_new_mmsystem=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 timidity_cv_header_new_mmsystem=no
8249 fi
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8253 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8254   if test $timidity_cv_header_new_mmsystem = yes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_NEW_MMSYSTEM 1
8258 _ACEOF
8259
8260   fi
8261 fi
8262
8263 if test "x$MINGW" = xyes; then
8264   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8265 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8266 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276
8277 #include <windows.h>
8278 #include <mmsystem.h>
8279
8280 int
8281 main ()
8282 {
8283 return WOM_OPEN != 0x3BB
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8290   (eval $ac_compile) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -s conftest.$ac_objext'
8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296   (eval $ac_try) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; }; then
8300   timidity_cv_header_new_mmsystem=yes
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 timidity_cv_header_new_mmsystem=no
8306 fi
8307 rm -f conftest.$ac_objext conftest.$ac_ext
8308 fi
8309 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8310 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8311   if test $timidity_cv_header_new_mmsystem = yes; then
8312
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_NEW_MMSYSTEM 1
8315 _ACEOF
8316
8317   fi
8318 fi
8319
8320 # Checks for library functions.
8321 echo "$as_me:$LINENO: checking for error_at_line" >&5
8322 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8323 if test "${ac_cv_lib_error_at_line+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 /* confdefs.h.  */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h.  */
8333
8334 int
8335 main ()
8336 {
8337 error_at_line (0, 0, "", 0, "");
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344   (eval $ac_link) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -s conftest$ac_exeext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354   ac_cv_lib_error_at_line=yes
8355 else
8356   echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ac_cv_lib_error_at_line=no
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8364 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8365 if test $ac_cv_lib_error_at_line = no; then
8366   LIBOBJS="$LIBOBJS error.$ac_objext"
8367 fi
8368
8369
8370
8371 for ac_header in unistd.h vfork.h
8372 do
8373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8375   echo "$as_me:$LINENO: checking for $ac_header" >&5
8376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 fi
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382 else
8383   # Is the header compilable?
8384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393 $ac_includes_default
8394 #include <$ac_header>
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -s conftest.$ac_objext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_header_compiler=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_header_compiler=no
8414 fi
8415 rm -f conftest.$ac_objext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417 echo "${ECHO_T}$ac_header_compiler" >&6
8418
8419 # Is the header present?
8420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 #include <$ac_header>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } >/dev/null; then
8439   if test -s conftest.err; then
8440     ac_cpp_err=$ac_c_preproc_warn_flag
8441   else
8442     ac_cpp_err=
8443   fi
8444 else
8445   ac_cpp_err=yes
8446 fi
8447 if test -z "$ac_cpp_err"; then
8448   ac_header_preproc=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453   ac_header_preproc=no
8454 fi
8455 rm -f conftest.err conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6
8458
8459 # So?  What about this header?
8460 case $ac_header_compiler:$ac_header_preproc in
8461   yes:no )
8462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8466     (
8467       cat <<\_ASBOX
8468 ## ------------------------------------ ##
8469 ## Report this to bug-autoconf@gnu.org. ##
8470 ## ------------------------------------ ##
8471 _ASBOX
8472     ) |
8473       sed "s/^/$as_me: WARNING:     /" >&2
8474     ;;
8475   no:yes )
8476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8482     (
8483       cat <<\_ASBOX
8484 ## ------------------------------------ ##
8485 ## Report this to bug-autoconf@gnu.org. ##
8486 ## ------------------------------------ ##
8487 _ASBOX
8488     ) |
8489       sed "s/^/$as_me: WARNING:     /" >&2
8490     ;;
8491 esac
8492 echo "$as_me:$LINENO: checking for $ac_header" >&5
8493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   eval "$as_ac_Header=$ac_header_preproc"
8498 fi
8499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8501
8502 fi
8503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8504   cat >>confdefs.h <<_ACEOF
8505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8506 _ACEOF
8507
8508 fi
8509
8510 done
8511
8512
8513
8514 for ac_func in fork vfork
8515 do
8516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8517 echo "$as_me:$LINENO: checking for $ac_func" >&5
8518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8519 if eval "test \"\${$as_ac_var+set}\" = set"; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   cat >conftest.$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529 /* System header to define __stub macros and hopefully few prototypes,
8530     which can conflict with char $ac_func (); below.  */
8531 #include <assert.h>
8532 /* Override any gcc2 internal prototype to avoid an error.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 {
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char $ac_func ();
8540 /* The GNU C library defines this for functions which it implements
8541     to always fail with ENOSYS.  Some functions are actually named
8542     something starting with __ and the normal name is an alias.  */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8544 choke me
8545 #else
8546 char (*f) () = $ac_func;
8547 #endif
8548 #ifdef __cplusplus
8549 }
8550 #endif
8551
8552 int
8553 main ()
8554 {
8555
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562   (eval $ac_link) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -s conftest$ac_exeext'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   eval "$as_ac_var=yes"
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 eval "$as_ac_var=no"
8578 fi
8579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8580 fi
8581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8583 if test `eval echo '${'$as_ac_var'}'` = yes; then
8584   cat >>confdefs.h <<_ACEOF
8585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8586 _ACEOF
8587
8588 fi
8589 done
8590
8591 if test "x$ac_cv_func_fork" = xyes; then
8592   echo "$as_me:$LINENO: checking for working fork" >&5
8593 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8594 if test "${ac_cv_func_fork_works+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   if test "$cross_compiling" = yes; then
8598   ac_cv_func_fork_works=cross
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 /* By Ruediger Kuhlmann. */
8602       #include <sys/types.h>
8603       #if HAVE_UNISTD_H
8604       # include <unistd.h>
8605       #endif
8606       /* Some systems only have a dummy stub for fork() */
8607       int main ()
8608       {
8609         if (fork() < 0)
8610           exit (1);
8611         exit (0);
8612       }
8613 _ACEOF
8614 rm -f conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616   (eval $ac_link) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_func_fork_works=yes
8626 else
8627   echo "$as_me: program exited with status $ac_status" >&5
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ( exit $ac_status )
8632 ac_cv_func_fork_works=no
8633 fi
8634 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635 fi
8636 fi
8637 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8638 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8639
8640 else
8641   ac_cv_func_fork_works=$ac_cv_func_fork
8642 fi
8643 if test "x$ac_cv_func_fork_works" = xcross; then
8644   case $host in
8645     *-*-amigaos* | *-*-msdosdjgpp*)
8646       # Override, as these systems have only a dummy fork() stub
8647       ac_cv_func_fork_works=no
8648       ;;
8649     *)
8650       ac_cv_func_fork_works=yes
8651       ;;
8652   esac
8653   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8654 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8655 fi
8656 ac_cv_func_vfork_works=$ac_cv_func_vfork
8657 if test "x$ac_cv_func_vfork" = xyes; then
8658   echo "$as_me:$LINENO: checking for working vfork" >&5
8659 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8660 if test "${ac_cv_func_vfork_works+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   if test "$cross_compiling" = yes; then
8664   ac_cv_func_vfork_works=cross
8665 else
8666   cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673 /* Thanks to Paul Eggert for this test.  */
8674 #include <stdio.h>
8675 #include <stdlib.h>
8676 #include <sys/types.h>
8677 #include <sys/stat.h>
8678 #include <sys/wait.h>
8679 #if HAVE_UNISTD_H
8680 # include <unistd.h>
8681 #endif
8682 #if HAVE_VFORK_H
8683 # include <vfork.h>
8684 #endif
8685 /* On some sparc systems, changes by the child to local and incoming
8686    argument registers are propagated back to the parent.  The compiler
8687    is told about this with #include <vfork.h>, but some compilers
8688    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8689    static variable whose address is put into a register that is
8690    clobbered by the vfork.  */
8691 static void
8692 #ifdef __cplusplus
8693 sparc_address_test (int arg)
8694 # else
8695 sparc_address_test (arg) int arg;
8696 #endif
8697 {
8698   static pid_t child;
8699   if (!child) {
8700     child = vfork ();
8701     if (child < 0) {
8702       perror ("vfork");
8703       _exit(2);
8704     }
8705     if (!child) {
8706       arg = getpid();
8707       write(-1, "", 0);
8708       _exit (arg);
8709     }
8710   }
8711 }
8712
8713 int
8714 main ()
8715 {
8716   pid_t parent = getpid ();
8717   pid_t child;
8718
8719   sparc_address_test (0);
8720
8721   child = vfork ();
8722
8723   if (child == 0) {
8724     /* Here is another test for sparc vfork register problems.  This
8725        test uses lots of local variables, at least as many local
8726        variables as main has allocated so far including compiler
8727        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8728        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8729        reuse the register of parent for one of the local variables,
8730        since it will think that parent can't possibly be used any more
8731        in this routine.  Assigning to the local variable will thus
8732        munge parent in the parent process.  */
8733     pid_t
8734       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8735       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8736     /* Convince the compiler that p..p7 are live; otherwise, it might
8737        use the same hardware register for all 8 local variables.  */
8738     if (p != p1 || p != p2 || p != p3 || p != p4
8739         || p != p5 || p != p6 || p != p7)
8740       _exit(1);
8741
8742     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8743        from child file descriptors.  If the child closes a descriptor
8744        before it execs or exits, this munges the parent's descriptor
8745        as well.  Test for this by closing stdout in the child.  */
8746     _exit(close(fileno(stdout)) != 0);
8747   } else {
8748     int status;
8749     struct stat st;
8750
8751     while (wait(&status) != child)
8752       ;
8753     exit(
8754          /* Was there some problem with vforking?  */
8755          child < 0
8756
8757          /* Did the child fail?  (This shouldn't happen.)  */
8758          || status
8759
8760          /* Did the vfork/compiler bug occur?  */
8761          || parent != getpid()
8762
8763          /* Did the file descriptor bug occur?  */
8764          || fstat(fileno(stdout), &st) != 0
8765          );
8766   }
8767 }
8768 _ACEOF
8769 rm -f conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771   (eval $ac_link) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_cv_func_vfork_works=yes
8781 else
8782   echo "$as_me: program exited with status $ac_status" >&5
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ( exit $ac_status )
8787 ac_cv_func_vfork_works=no
8788 fi
8789 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8793 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8794
8795 fi;
8796 if test "x$ac_cv_func_fork_works" = xcross; then
8797   ac_cv_func_vfork_works=ac_cv_func_vfork
8798   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8799 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8800 fi
8801
8802 if test "x$ac_cv_func_vfork_works" = xyes; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_WORKING_VFORK 1
8806 _ACEOF
8807
8808 else
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define vfork fork
8812 _ACEOF
8813
8814 fi
8815 if test "x$ac_cv_func_fork_works" = xyes; then
8816
8817 cat >>confdefs.h <<\_ACEOF
8818 #define HAVE_WORKING_FORK 1
8819 _ACEOF
8820
8821 fi
8822
8823 echo "$as_me:$LINENO: checking for working memcmp" >&5
8824 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8825 if test "${ac_cv_func_memcmp_working+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828   if test "$cross_compiling" = yes; then
8829   ac_cv_func_memcmp_working=no
8830 else
8831   cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8833 /* confdefs.h.  */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h.  */
8838
8839 int
8840 main ()
8841 {
8842
8843   /* Some versions of memcmp are not 8-bit clean.  */
8844   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8845   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8846     exit (1);
8847
8848   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8849      or more and with at least one buffer not starting on a 4-byte boundary.
8850      William Lewis provided this test program.   */
8851   {
8852     char foo[21];
8853     char bar[21];
8854     int i;
8855     for (i = 0; i < 4; i++)
8856       {
8857         char *a = foo + i;
8858         char *b = bar + i;
8859         strcpy (a, "--------01111111");
8860         strcpy (b, "--------10000000");
8861         if (memcmp (a, b, 16) >= 0)
8862           exit (1);
8863       }
8864     exit (0);
8865   }
8866
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest$ac_exeext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873   (eval $ac_link) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_cv_func_memcmp_working=yes
8883 else
8884   echo "$as_me: program exited with status $ac_status" >&5
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ( exit $ac_status )
8889 ac_cv_func_memcmp_working=no
8890 fi
8891 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8892 fi
8893 fi
8894 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8895 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8896 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8897
8898
8899
8900 for ac_header in stdlib.h unistd.h
8901 do
8902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8904   echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 fi
8909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911 else
8912   # Is the header compilable?
8913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 $ac_includes_default
8923 #include <$ac_header>
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } &&
8931          { ac_try='test -s conftest.$ac_objext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_header_compiler=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 ac_header_compiler=no
8943 fi
8944 rm -f conftest.$ac_objext conftest.$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6
8947
8948 # Is the header present?
8949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 #include <$ac_header>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970   else
8971     ac_cpp_err=
8972   fi
8973 else
8974   ac_cpp_err=yes
8975 fi
8976 if test -z "$ac_cpp_err"; then
8977   ac_header_preproc=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982   ac_header_preproc=no
8983 fi
8984 rm -f conftest.err conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986 echo "${ECHO_T}$ac_header_preproc" >&6
8987
8988 # So?  What about this header?
8989 case $ac_header_compiler:$ac_header_preproc in
8990   yes:no )
8991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8995     (
8996       cat <<\_ASBOX
8997 ## ------------------------------------ ##
8998 ## Report this to bug-autoconf@gnu.org. ##
8999 ## ------------------------------------ ##
9000 _ASBOX
9001     ) |
9002       sed "s/^/$as_me: WARNING:     /" >&2
9003     ;;
9004   no:yes )
9005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011     (
9012       cat <<\_ASBOX
9013 ## ------------------------------------ ##
9014 ## Report this to bug-autoconf@gnu.org. ##
9015 ## ------------------------------------ ##
9016 _ASBOX
9017     ) |
9018       sed "s/^/$as_me: WARNING:     /" >&2
9019     ;;
9020 esac
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   eval "$as_ac_Header=$ac_header_preproc"
9027 fi
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030
9031 fi
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033   cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 _ACEOF
9036
9037 fi
9038
9039 done
9040
9041
9042 for ac_func in getpagesize
9043 do
9044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9045 echo "$as_me:$LINENO: checking for $ac_func" >&5
9046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9047 if eval "test \"\${$as_ac_var+set}\" = set"; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 /* System header to define __stub macros and hopefully few prototypes,
9058     which can conflict with char $ac_func (); below.  */
9059 #include <assert.h>
9060 /* Override any gcc2 internal prototype to avoid an error.  */
9061 #ifdef __cplusplus
9062 extern "C"
9063 {
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066    builtin and then its argument prototype would still apply.  */
9067 char $ac_func ();
9068 /* The GNU C library defines this for functions which it implements
9069     to always fail with ENOSYS.  Some functions are actually named
9070     something starting with __ and the normal name is an alias.  */
9071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9072 choke me
9073 #else
9074 char (*f) () = $ac_func;
9075 #endif
9076 #ifdef __cplusplus
9077 }
9078 #endif
9079
9080 int
9081 main ()
9082 {
9083
9084   ;
9085   return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090   (eval $ac_link) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); } &&
9094          { ac_try='test -s conftest$ac_exeext'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   eval "$as_ac_var=yes"
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 eval "$as_ac_var=no"
9106 fi
9107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9108 fi
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9111 if test `eval echo '${'$as_ac_var'}'` = yes; then
9112   cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9114 _ACEOF
9115
9116 fi
9117 done
9118
9119 echo "$as_me:$LINENO: checking for working mmap" >&5
9120 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9121 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   if test "$cross_compiling" = yes; then
9125   ac_cv_func_mmap_fixed_mapped=no
9126 else
9127   cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134 $ac_includes_default
9135 /* malloc might have been renamed as rpl_malloc. */
9136 #undef malloc
9137
9138 /* Thanks to Mike Haertel and Jim Avera for this test.
9139    Here is a matrix of mmap possibilities:
9140         mmap private not fixed
9141         mmap private fixed at somewhere currently unmapped
9142         mmap private fixed at somewhere already mapped
9143         mmap shared not fixed
9144         mmap shared fixed at somewhere currently unmapped
9145         mmap shared fixed at somewhere already mapped
9146    For private mappings, we should verify that changes cannot be read()
9147    back from the file, nor mmap's back from the file at a different
9148    address.  (There have been systems where private was not correctly
9149    implemented like the infamous i386 svr4.0, and systems where the
9150    VM page cache was not coherent with the file system buffer cache
9151    like early versions of FreeBSD and possibly contemporary NetBSD.)
9152    For shared mappings, we should conversely verify that changes get
9153    propagated back to all the places they're supposed to be.
9154
9155    Grep wants private fixed already mapped.
9156    The main things grep needs to know about mmap are:
9157    * does it exist and is it safe to write into the mmap'd area
9158    * how to use it (BSD variants)  */
9159
9160 #include <fcntl.h>
9161 #include <sys/mman.h>
9162
9163 #if !STDC_HEADERS && !HAVE_STDLIB_H
9164 char *malloc ();
9165 #endif
9166
9167 /* This mess was copied from the GNU getpagesize.h.  */
9168 #if !HAVE_GETPAGESIZE
9169 /* Assume that all systems that can run configure have sys/param.h.  */
9170 # if !HAVE_SYS_PARAM_H
9171 #  define HAVE_SYS_PARAM_H 1
9172 # endif
9173
9174 # ifdef _SC_PAGESIZE
9175 #  define getpagesize() sysconf(_SC_PAGESIZE)
9176 # else /* no _SC_PAGESIZE */
9177 #  if HAVE_SYS_PARAM_H
9178 #   include <sys/param.h>
9179 #   ifdef EXEC_PAGESIZE
9180 #    define getpagesize() EXEC_PAGESIZE
9181 #   else /* no EXEC_PAGESIZE */
9182 #    ifdef NBPG
9183 #     define getpagesize() NBPG * CLSIZE
9184 #     ifndef CLSIZE
9185 #      define CLSIZE 1
9186 #     endif /* no CLSIZE */
9187 #    else /* no NBPG */
9188 #     ifdef NBPC
9189 #      define getpagesize() NBPC
9190 #     else /* no NBPC */
9191 #      ifdef PAGESIZE
9192 #       define getpagesize() PAGESIZE
9193 #      endif /* PAGESIZE */
9194 #     endif /* no NBPC */
9195 #    endif /* no NBPG */
9196 #   endif /* no EXEC_PAGESIZE */
9197 #  else /* no HAVE_SYS_PARAM_H */
9198 #   define getpagesize() 8192   /* punt totally */
9199 #  endif /* no HAVE_SYS_PARAM_H */
9200 # endif /* no _SC_PAGESIZE */
9201
9202 #endif /* no HAVE_GETPAGESIZE */
9203
9204 int
9205 main ()
9206 {
9207   char *data, *data2, *data3;
9208   int i, pagesize;
9209   int fd;
9210
9211   pagesize = getpagesize ();
9212
9213   /* First, make a file with some known garbage in it. */
9214   data = (char *) malloc (pagesize);
9215   if (!data)
9216     exit (1);
9217   for (i = 0; i < pagesize; ++i)
9218     *(data + i) = rand ();
9219   umask (0);
9220   fd = creat ("conftest.mmap", 0600);
9221   if (fd < 0)
9222     exit (1);
9223   if (write (fd, data, pagesize) != pagesize)
9224     exit (1);
9225   close (fd);
9226
9227   /* Next, try to mmap the file at a fixed address which already has
9228      something else allocated at it.  If we can, also make sure that
9229      we see the same garbage.  */
9230   fd = open ("conftest.mmap", O_RDWR);
9231   if (fd < 0)
9232     exit (1);
9233   data2 = (char *) malloc (2 * pagesize);
9234   if (!data2)
9235     exit (1);
9236   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9237   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9238                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9239     exit (1);
9240   for (i = 0; i < pagesize; ++i)
9241     if (*(data + i) != *(data2 + i))
9242       exit (1);
9243
9244   /* Finally, make sure that changes to the mapped area do not
9245      percolate back to the file as seen by read().  (This is a bug on
9246      some variants of i386 svr4.0.)  */
9247   for (i = 0; i < pagesize; ++i)
9248     *(data2 + i) = *(data2 + i) + 1;
9249   data3 = (char *) malloc (pagesize);
9250   if (!data3)
9251     exit (1);
9252   if (read (fd, data3, pagesize) != pagesize)
9253     exit (1);
9254   for (i = 0; i < pagesize; ++i)
9255     if (*(data + i) != *(data3 + i))
9256       exit (1);
9257   close (fd);
9258   exit (0);
9259 }
9260 _ACEOF
9261 rm -f conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263   (eval $ac_link) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_cv_func_mmap_fixed_mapped=yes
9273 else
9274   echo "$as_me: program exited with status $ac_status" >&5
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 ( exit $ac_status )
9279 ac_cv_func_mmap_fixed_mapped=no
9280 fi
9281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9282 fi
9283 fi
9284 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9285 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9286 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9287
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_MMAP 1
9290 _ACEOF
9291
9292 fi
9293 rm -f conftest.mmap
9294
9295 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9296 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9297 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   ac_cv_func_setvbuf_reversed=no
9301    cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 #include <stdio.h>
9309 #         if PROTOTYPES
9310            int (setvbuf) (FILE *, int, char *, size_t);
9311 #         endif
9312 int
9313 main ()
9314 {
9315 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322   (eval $ac_link) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -s conftest$ac_exeext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339 #include <stdio.h>
9340 #            if PROTOTYPES
9341               int (setvbuf) (FILE *, int, char *, size_t);
9342 #            endif
9343 int
9344 main ()
9345 {
9346 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353   (eval $ac_link) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } &&
9357          { ac_try='test -s conftest$ac_exeext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   # It compiles and links either way, so it must not be declared
9364          # with a prototype and most likely this is a K&R C compiler.
9365          # Try running it.
9366          if test "$cross_compiling" = yes; then
9367   : # Assume setvbuf is not reversed when cross-compiling.
9368 else
9369   cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376 #include <stdio.h>
9377 int
9378 main ()
9379 {
9380 /* This call has the arguments reversed.
9381                    A reversed system may check and see that the address of buf
9382                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
9383                 char buf;
9384                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9385                   exit (1);
9386                 putchar ('\r');
9387                 exit (0); /* Non-reversed systems SEGV here.  */
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_func_setvbuf_reversed=yes
9404 else
9405   echo "$as_me: program exited with status $ac_status" >&5
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ( exit $ac_status )
9410 rm -f core core.* *.core
9411 fi
9412 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9413 fi
9414         ac_cv_func_setvbuf_reversed=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 fi
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 fi
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 fi
9428 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9429 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9430 if test $ac_cv_func_setvbuf_reversed = yes; then
9431
9432 cat >>confdefs.h <<\_ACEOF
9433 #define SETVBUF_REVERSED 1
9434 _ACEOF
9435
9436 fi
9437
9438 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9439 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9440 if test "${ac_cv_type_signal+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 #include <sys/types.h>
9451 #include <signal.h>
9452 #ifdef signal
9453 # undef signal
9454 #endif
9455 #ifdef __cplusplus
9456 extern "C" void (*signal (int, void (*)(int)))(int);
9457 #else
9458 void (*signal ()) ();
9459 #endif
9460
9461 int
9462 main ()
9463 {
9464 int i;
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471   (eval $ac_compile) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -s conftest.$ac_objext'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_type_signal=void
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 ac_cv_type_signal=int
9487 fi
9488 rm -f conftest.$ac_objext conftest.$ac_ext
9489 fi
9490 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9491 echo "${ECHO_T}$ac_cv_type_signal" >&6
9492
9493 cat >>confdefs.h <<_ACEOF
9494 #define RETSIGTYPE $ac_cv_type_signal
9495 _ACEOF
9496
9497
9498
9499 for ac_func in vprintf
9500 do
9501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502 echo "$as_me:$LINENO: checking for $ac_func" >&5
9503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_var+set}\" = set"; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char $ac_func (); below.  */
9516 #include <assert.h>
9517 /* Override any gcc2 internal prototype to avoid an error.  */
9518 #ifdef __cplusplus
9519 extern "C"
9520 {
9521 #endif
9522 /* We use char because int might match the return type of a gcc2
9523    builtin and then its argument prototype would still apply.  */
9524 char $ac_func ();
9525 /* The GNU C library defines this for functions which it implements
9526     to always fail with ENOSYS.  Some functions are actually named
9527     something starting with __ and the normal name is an alias.  */
9528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9529 choke me
9530 #else
9531 char (*f) () = $ac_func;
9532 #endif
9533 #ifdef __cplusplus
9534 }
9535 #endif
9536
9537 int
9538 main ()
9539 {
9540
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -s conftest$ac_exeext'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; }; then
9557   eval "$as_ac_var=yes"
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562 eval "$as_ac_var=no"
9563 fi
9564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9565 fi
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569   cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571 _ACEOF
9572
9573 echo "$as_me:$LINENO: checking for _doprnt" >&5
9574 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9575 if test "${ac_cv_func__doprnt+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 /* System header to define __stub macros and hopefully few prototypes,
9586     which can conflict with char _doprnt (); below.  */
9587 #include <assert.h>
9588 /* Override any gcc2 internal prototype to avoid an error.  */
9589 #ifdef __cplusplus
9590 extern "C"
9591 {
9592 #endif
9593 /* We use char because int might match the return type of a gcc2
9594    builtin and then its argument prototype would still apply.  */
9595 char _doprnt ();
9596 /* The GNU C library defines this for functions which it implements
9597     to always fail with ENOSYS.  Some functions are actually named
9598     something starting with __ and the normal name is an alias.  */
9599 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9600 choke me
9601 #else
9602 char (*f) () = _doprnt;
9603 #endif
9604 #ifdef __cplusplus
9605 }
9606 #endif
9607
9608 int
9609 main ()
9610 {
9611
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618   (eval $ac_link) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   ac_cv_func__doprnt=yes
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ac_cv_func__doprnt=no
9634 fi
9635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9638 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9639 if test $ac_cv_func__doprnt = yes; then
9640
9641 cat >>confdefs.h <<\_ACEOF
9642 #define HAVE_DOPRNT 1
9643 _ACEOF
9644
9645 fi
9646
9647 fi
9648 done
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685 for ac_func in \
9686   alarm \
9687   dup2 \
9688   floor \
9689   getcwd \
9690   getopt \
9691   gethostbyname \
9692   gettimeofday \
9693   getwd \
9694   isatty \
9695   memchr \
9696   memmove \
9697   memset \
9698   modf \
9699   munmap \
9700   popen \
9701   pow \
9702   select \
9703   signal \
9704   socket \
9705   socket \
9706   sleep \
9707   vsnprintf \
9708   snprintf \
9709   sqrt \
9710   strchr \
9711   strdup \
9712   strstr \
9713   strerror \
9714   strcasecmp \
9715   strncasecmp \
9716   strrchr \
9717   strstr \
9718   strtol \
9719   usleep
9720 do
9721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 echo "$as_me:$LINENO: checking for $ac_func" >&5
9723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9724 if eval "test \"\${$as_ac_var+set}\" = set"; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 /* System header to define __stub macros and hopefully few prototypes,
9735     which can conflict with char $ac_func (); below.  */
9736 #include <assert.h>
9737 /* Override any gcc2 internal prototype to avoid an error.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 {
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743    builtin and then its argument prototype would still apply.  */
9744 char $ac_func ();
9745 /* The GNU C library defines this for functions which it implements
9746     to always fail with ENOSYS.  Some functions are actually named
9747     something starting with __ and the normal name is an alias.  */
9748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9749 choke me
9750 #else
9751 char (*f) () = $ac_func;
9752 #endif
9753 #ifdef __cplusplus
9754 }
9755 #endif
9756
9757 int
9758 main ()
9759 {
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } &&
9771          { ac_try='test -s conftest$ac_exeext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   eval "$as_ac_var=yes"
9778 else
9779   echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 eval "$as_ac_var=no"
9783 fi
9784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788 if test `eval echo '${'$as_ac_var'}'` = yes; then
9789   cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9791 _ACEOF
9792
9793 fi
9794 done
9795
9796
9797 # Checks on cygnus
9798 if test "x$CYGNUS" = xyes; then
9799   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
9800   *yes*)
9801     echo "$as_me:$LINENO: checking for opendir" >&5
9802 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9803 if test "${ac_cv_func_opendir+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   cat >conftest.$ac_ext <<_ACEOF
9807 #line $LINENO "configure"
9808 /* confdefs.h.  */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h.  */
9813 /* System header to define __stub macros and hopefully few prototypes,
9814     which can conflict with char opendir (); below.  */
9815 #include <assert.h>
9816 /* Override any gcc2 internal prototype to avoid an error.  */
9817 #ifdef __cplusplus
9818 extern "C"
9819 {
9820 #endif
9821 /* We use char because int might match the return type of a gcc2
9822    builtin and then its argument prototype would still apply.  */
9823 char opendir ();
9824 /* The GNU C library defines this for functions which it implements
9825     to always fail with ENOSYS.  Some functions are actually named
9826     something starting with __ and the normal name is an alias.  */
9827 #if defined (__stub_opendir) || defined (__stub___opendir)
9828 choke me
9829 #else
9830 char (*f) () = opendir;
9831 #endif
9832 #ifdef __cplusplus
9833 }
9834 #endif
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846   (eval $ac_link) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_func_opendir=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_cv_func_opendir=no
9862 fi
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9864 fi
9865 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
9866 echo "${ECHO_T}$ac_cv_func_opendir" >&6
9867 if test $ac_cv_func_opendir = yes; then
9868   :
9869 else
9870    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9871     W32READDIR=yes
9872 fi
9873
9874     ;;
9875   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9876     W32READDIR=yes
9877     ;;
9878   esac
9879   if test "x$enable_network" = "xyes"; then
9880     echo "$as_me:$LINENO: checking for socket" >&5
9881 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9882 if test "${ac_cv_func_socket+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 #line $LINENO "configure"
9887 /* confdefs.h.  */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h.  */
9892 /* System header to define __stub macros and hopefully few prototypes,
9893     which can conflict with char socket (); below.  */
9894 #include <assert.h>
9895 /* Override any gcc2 internal prototype to avoid an error.  */
9896 #ifdef __cplusplus
9897 extern "C"
9898 {
9899 #endif
9900 /* We use char because int might match the return type of a gcc2
9901    builtin and then its argument prototype would still apply.  */
9902 char socket ();
9903 /* The GNU C library defines this for functions which it implements
9904     to always fail with ENOSYS.  Some functions are actually named
9905     something starting with __ and the normal name is an alias.  */
9906 #if defined (__stub_socket) || defined (__stub___socket)
9907 choke me
9908 #else
9909 char (*f) () = socket;
9910 #endif
9911 #ifdef __cplusplus
9912 }
9913 #endif
9914
9915 int
9916 main ()
9917 {
9918
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925   (eval $ac_link) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -s conftest$ac_exeext'
9930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   ac_cv_func_socket=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_cv_func_socket=no
9941 fi
9942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9943 fi
9944 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9945 echo "${ECHO_T}$ac_cv_func_socket" >&6
9946 if test $ac_cv_func_socket = yes; then
9947   :
9948 else
9949   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
9950 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
9951 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
9952 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   ac_save_LIBS="$LIBS"
9956 LIBS="-lwsock32  $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 #include <windows.h>
9965 #include <winsock.h>
9966
9967 int
9968 main ()
9969 {
9970 WSAStartup(0,0);
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977   (eval $ac_link) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -s conftest$ac_exeext'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987   eval "wapi_cv_lib_$ac_lib_var=yes"
9988 else
9989   echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 eval "wapi_cv_lib_$ac_lib_var=no"
9993 fi
9994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9995 LIBS="$ac_save_LIBS"
9996
9997 fi
9998 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
9999   echo "$as_me:$LINENO: result: yes" >&5
10000 echo "${ECHO_T}yes" >&6
10001    EXTRALIBS="$EXTRALIBS -lwsock32"
10002     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10003 else
10004   echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6
10006 fi
10007
10008 fi
10009
10010   fi
10011 fi
10012
10013 # Checks on Mingw
10014 if test "x$CYGWIN" = xyes; then
10015   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
10016   *yes*)
10017     echo "$as_me:$LINENO: checking for opendir" >&5
10018 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10019 if test "${ac_cv_func_opendir+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029 /* System header to define __stub macros and hopefully few prototypes,
10030     which can conflict with char opendir (); below.  */
10031 #include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 {
10036 #endif
10037 /* We use char because int might match the return type of a gcc2
10038    builtin and then its argument prototype would still apply.  */
10039 char opendir ();
10040 /* The GNU C library defines this for functions which it implements
10041     to always fail with ENOSYS.  Some functions are actually named
10042     something starting with __ and the normal name is an alias.  */
10043 #if defined (__stub_opendir) || defined (__stub___opendir)
10044 choke me
10045 #else
10046 char (*f) () = opendir;
10047 #endif
10048 #ifdef __cplusplus
10049 }
10050 #endif
10051
10052 int
10053 main ()
10054 {
10055
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062   (eval $ac_link) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_func_opendir=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 ac_cv_func_opendir=no
10078 fi
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10083 if test $ac_cv_func_opendir = yes; then
10084   :
10085 else
10086    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10087     W32READDIR=yes
10088 fi
10089
10090     ;;
10091   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10092     W32READDIR=yes
10093     ;;
10094   esac
10095   if test "x$enable_network" = "xyes"; then
10096     echo "$as_me:$LINENO: checking for socket" >&5
10097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10098 if test "${ac_cv_func_socket+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108 /* System header to define __stub macros and hopefully few prototypes,
10109     which can conflict with char socket (); below.  */
10110 #include <assert.h>
10111 /* Override any gcc2 internal prototype to avoid an error.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 {
10115 #endif
10116 /* We use char because int might match the return type of a gcc2
10117    builtin and then its argument prototype would still apply.  */
10118 char socket ();
10119 /* The GNU C library defines this for functions which it implements
10120     to always fail with ENOSYS.  Some functions are actually named
10121     something starting with __ and the normal name is an alias.  */
10122 #if defined (__stub_socket) || defined (__stub___socket)
10123 choke me
10124 #else
10125 char (*f) () = socket;
10126 #endif
10127 #ifdef __cplusplus
10128 }
10129 #endif
10130
10131 int
10132 main ()
10133 {
10134
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141   (eval $ac_link) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } &&
10145          { ac_try='test -s conftest$ac_exeext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_cv_func_socket=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_cv_func_socket=no
10157 fi
10158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10159 fi
10160 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10161 echo "${ECHO_T}$ac_cv_func_socket" >&6
10162 if test $ac_cv_func_socket = yes; then
10163   :
10164 else
10165   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10166 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10167 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10168 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   ac_save_LIBS="$LIBS"
10172 LIBS="-lwsock32  $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 #include <windows.h>
10181 #include <winsock.h>
10182
10183 int
10184 main ()
10185 {
10186 WSAStartup(0,0);
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193   (eval $ac_link) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } &&
10197          { ac_try='test -s conftest$ac_exeext'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   eval "wapi_cv_lib_$ac_lib_var=yes"
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 eval "wapi_cv_lib_$ac_lib_var=no"
10209 fi
10210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10211 LIBS="$ac_save_LIBS"
10212
10213 fi
10214 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10215   echo "$as_me:$LINENO: result: yes" >&5
10216 echo "${ECHO_T}yes" >&6
10217    EXTRALIBS="$EXTRALIBS -lwsock32"
10218     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10219 else
10220   echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10222 fi
10223
10224 fi
10225
10226   fi
10227 fi
10228
10229 # Checks on extra paths
10230
10231
10232 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10233 if test "${with_tcl_includes+set}" = set; then
10234   withval="$with_tcl_includes"
10235    if test ! -d $withval; then
10236       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10237 echo "$as_me: WARNING: $withval is not found." >&2;}
10238     fi
10239     tcl_include_dir="-I$withval"
10240
10241 fi;
10242
10243 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10244 if test "${with_tcl_libs+set}" = set; then
10245   withval="$with_tcl_libs"
10246    if test ! -d $withval; then
10247       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10248 echo "$as_me: WARNING: $withval is not found." >&2;}
10249     fi
10250     tcl_libdir="-L$withval"
10251 fi;
10252
10253 # Check whether --with-tk-includes or --without-tk-includes was given.
10254 if test "${with_tk_includes+set}" = set; then
10255   withval="$with_tk_includes"
10256    if test ! -d $withval; then
10257       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10258 echo "$as_me: WARNING: $withval is not found." >&2;}
10259     fi
10260     tk_includes="-I$withval"
10261 fi;
10262
10263 # Check whether --with-tk-libs or --without-tk-libs was given.
10264 if test "${with_tk_libs+set}" = set; then
10265   withval="$with_tk_libs"
10266    if test ! -d $withval; then
10267       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10268 echo "$as_me: WARNING: $withval is not found." >&2;}
10269     fi
10270     tk_libdir="-L$withval"
10271 fi;
10272
10273
10274 # Check whether --with-offix-includes or --without-offix-includes was given.
10275 if test "${with_offix_includes+set}" = set; then
10276   withval="$with_offix_includes"
10277    if test ! -d $withval; then
10278       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10279 echo "$as_me: WARNING: $withval is not found." >&2;}
10280     fi
10281     offix_include_dir="-I$withval"
10282 fi;
10283
10284 # Check whether --with-offix-libs or --without-offix-libs was given.
10285 if test "${with_offix_libs+set}" = set; then
10286   withval="$with_offix_libs"
10287    if test ! -d $withval; then
10288       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10289 echo "$as_me: WARNING: $withval is not found." >&2;}
10290     fi
10291     offix_lib_dir="-L$withval"
10292 fi;
10293
10294
10295 #
10296 # audio section
10297 #
10298
10299 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio'
10300
10301
10302 # Check whether --with-nas-library or --without-nas-library was given.
10303 if test "${with_nas_library+set}" = set; then
10304   withval="$with_nas_library"
10305
10306 fi;
10307
10308 # Check whether --with-nas-includes or --without-nas-includes was given.
10309 if test "${with_nas_includes+set}" = set; then
10310   withval="$with_nas_includes"
10311
10312 fi;
10313
10314
10315 # Check whether --enable-audio or --disable-audio was given.
10316 if test "${enable_audio+set}" = set; then
10317   enableval="$enable_audio"
10318    enable_audio=$enableval
10319     have_audio_opt=yes
10320 else
10321    enable_audio=yes
10322     have_audio_opt=no
10323 fi;
10324
10325 test "x$enable_audio" = xyes && enable_audio=default
10326
10327 if test "x$enable_audio" != xno; then
10328   for i in `echo $enable_audio | sed 's/,/ /g'`; do
10329     eval "au_enable_$i=yes"
10330   done
10331 fi
10332
10333 DEFAULT_PLAYMODE=
10334
10335 # Check whether --with-default-output or --without-default-output was given.
10336 if test "${with_default_output+set}" = set; then
10337   withval="$with_default_output"
10338    if test "$enable_audio" != no; then
10339     DEFAULT_PLAYMODE=$withval
10340     eval "au_enable_$DEFAULT_PLAYMODE=yes"
10341   else
10342     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10343 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10344   fi
10345 fi;
10346
10347
10348 if test "x$au_enable_default" = xyes; then
10349   case "$target" in
10350   *-*-linux*|*-*-freebsd*)
10351     au_enable_oss=yes
10352     ;;
10353   *-*-bsdi2.0)
10354     au_enable_sb_dsp=yes
10355     ;;
10356   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10357     au_enable_oss=yes
10358     ;;
10359   *-*-hpux*)
10360     au_enable_hpux=yes
10361     ;;
10362   *-dec-*)
10363     au_enable_mme=yes
10364     ;;
10365   *irix*)
10366     au_enable_irix=yes
10367     ;;
10368   *-*-sunos4*)
10369     au_enable_sun=yes
10370     ;;
10371   *-*-solaris*)
10372     au_enable_sun=yes
10373     ;;
10374   *-*-netbsd*)
10375     au_enable_sun=yes
10376     ;;
10377   *-*-cygwin*)
10378     au_enable_w32=yes
10379     ;;
10380   *-*-mingw*)
10381     au_enable_w32=yes
10382     ;;
10383   *-*-darwin*)
10384     au_enable_darwin=yes
10385     ;;
10386   *)
10387     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10388 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10389     ;;
10390   esac
10391 fi
10392
10393
10394 # Each audio mode's configurations
10395 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10396 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10397 if test "x$au_enable_oss" = xyes; then
10398   EXTRADEFS="$EXTRADEFS -DAU_OSS"
10399   SYSEXTRAS="$SYSEXTRAS oss_a.c"
10400   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10401     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10402 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10403   else
10404     case "$target" in
10405       *linux*|*freebsd*)
10406                 echo "$as_me:$LINENO: result: yes" >&5
10407 echo "${ECHO_T}yes" >&6
10408         ;;
10409       *)
10410         if test "x$ac_cv_header_soundcard_h" = xyes; then
10411           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10412 echo "${ECHO_T}yes - <soundcard.h>" >&6
10413         else
10414           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10415 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10416         fi
10417         ;;
10418     esac
10419   fi
10420
10421 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10422 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10423 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   ac_check_lib_save_LIBS=$LIBS
10427 LIBS="-lossaudio  $LIBS"
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line $LINENO "configure"
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435
10436 /* Override any gcc2 internal prototype to avoid an error.  */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 /* We use char because int might match the return type of a gcc2
10441    builtin and then its argument prototype would still apply.  */
10442 char open ();
10443 int
10444 main ()
10445 {
10446 open ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453   (eval $ac_link) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -s conftest$ac_exeext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_lib_ossaudio_open=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_cv_lib_ossaudio_open=no
10469 fi
10470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10472 fi
10473 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10474 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10475 if test $ac_cv_lib_ossaudio_open = yes; then
10476   cat >>confdefs.h <<_ACEOF
10477 #define HAVE_LIBOSSAUDIO 1
10478 _ACEOF
10479
10480   LIBS="-lossaudio $LIBS"
10481
10482 fi
10483
10484
10485     case "$target" in
10486     *openbsd*)
10487       if test ! -e "/dev/dsp"; then
10488         oss_device=/dev/audio
10489       fi
10490       ;;
10491   esac
10492 else
10493   echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6
10495 fi
10496
10497 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10498 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10499 if test "x$au_enable_sun" = xyes; then
10500   case "$target" in
10501     *-*-sunos4*)
10502       if test -f /usr/demo/SOUND/libaudio.a; then
10503         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10504         echo "$as_me:$LINENO: result: yes" >&5
10505 echo "${ECHO_T}yes" >&6
10506       else
10507         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10508 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10509       fi
10510       ;;
10511     *-*-solaris*)
10512       if test -f /usr/demo/SOUND/lib/libaudio.a; then
10513         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10514         echo "$as_me:$LINENO: result: yes" >&5
10515 echo "${ECHO_T}yes" >&6
10516       else
10517         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10518 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10519       fi
10520       ;;
10521     *)   echo "$as_me:$LINENO: result: yes" >&5
10522 echo "${ECHO_T}yes" >&6
10523       ;;
10524   esac
10525   EXTRADEFS="$EXTRADEFS -DAU_SUN"
10526   SYSEXTRAS="$SYSEXTRAS sun_a.c"
10527 else
10528   echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6
10530 fi
10531
10532 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10533 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10534 if test "x$au_enable_hpux" = xyes; then
10535   case "$target" in
10536     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10537 echo "${ECHO_T}yes" >&6 ;;
10538     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10539 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10540   esac
10541   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10542   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10543 else
10544   echo "$as_me:$LINENO: result: no" >&5
10545 echo "${ECHO_T}no" >&6
10546 fi
10547
10548 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10549 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10550 if test "x$au_enable_irix" = xyes; then
10551   case "$target" in
10552     *-sgi-irix5*|*-sgi-irix6.2)
10553       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10554       echo "$as_me:$LINENO: result: yes" >&5
10555 echo "${ECHO_T}yes" >&6
10556       ;;
10557     *-sgi-irix6*)
10558       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10559       echo "$as_me:$LINENO: result: yes" >&5
10560 echo "${ECHO_T}yes" >&6
10561       ;;
10562     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10563 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10564   esac
10565   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10566   EXTRALIBS="$EXTRASLIBS -laudio"
10567 else
10568   echo "$as_me:$LINENO: result: no" >&5
10569 echo "${ECHO_T}no" >&6
10570 fi
10571
10572 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10573 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10574 if test "x$au_enable_mme" = xyes; then
10575   case "$target" in
10576     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10577 echo "${ECHO_T}yes" >&6 ;;
10578     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10579 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10580   esac
10581   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10582   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10583   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10584   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10585 else
10586   echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10588 fi
10589
10590 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10591 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10592 if test "x$au_enable_sb_dsp" = xyes; then
10593   case "$target" in
10594     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6 ;;
10596     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10597 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10598   esac
10599   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10600   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10601 else
10602   echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10604 fi
10605
10606 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10607 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10608 if test "x$au_enable_w32" = xyes; then
10609   case "$target" in
10610     *-*-cygwin*)
10611      echo "$as_me:$LINENO: result: yes" >&5
10612 echo "${ECHO_T}yes" >&6
10613      ;;
10614     *-*-mingw32)
10615      echo "$as_me:$LINENO: result: yes" >&5
10616 echo "${ECHO_T}yes" >&6
10617      ;;
10618     *)
10619      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10620 echo "$as_me: WARNING: may not work on $target" >&2;}
10621      ;;
10622   esac
10623   SYSEXTRAS="$SYSEXTRAS w32_a.c"
10624   EXTRALIBS="$EXTRALIBS -lwinmm"
10625   EXTRADEFS="$EXTRADEFS -DAU_W32"
10626 else
10627   echo "$as_me:$LINENO: result: no" >&5
10628 echo "${ECHO_T}no" >&6
10629 fi
10630
10631 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10632 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10633 if test "x$au_enable_darwin" = xyes; then
10634   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10635   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10636   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10637     case "$target" in
10638     *-*-darwin*)
10639      echo "$as_me:$LINENO: result: yes" >&5
10640 echo "${ECHO_T}yes" >&6;;
10641    *)
10642      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10643 echo "$as_me: WARNING: may not work on $target" >&2;}
10644      ;;
10645   esac
10646 else
10647   echo "$as_me:$LINENO: result: no" >&5
10648 echo "${ECHO_T}no" >&6
10649 fi
10650
10651
10652 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10653 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10654 if test "x$au_enable_alsa" = xyes; then
10655   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10656 echo "${ECHO_T}yes, configuring alsa" >&6
10657   KEEPCFLAGS=$CFLAGS
10658   KEEPLIBS=$LIBS
10659   KEEPLDFLAGS=$LDFLAGS
10660   alsa_save_CFLAGS="$CFLAGS"
10661 alsa_save_LDFLAGS="$LDFLAGS"
10662 alsa_save_LIBS="$LIBS"
10663 alsa_found=yes
10664
10665
10666 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10667 if test "${with_alsa_prefix+set}" = set; then
10668   withval="$with_alsa_prefix"
10669   alsa_prefix="$withval"
10670 else
10671   alsa_prefix=""
10672 fi;
10673
10674
10675 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10676 if test "${with_alsa_inc_prefix+set}" = set; then
10677   withval="$with_alsa_inc_prefix"
10678   alsa_inc_prefix="$withval"
10679 else
10680   alsa_inc_prefix=""
10681 fi;
10682
10683 # Check whether --enable-alsatest or --disable-alsatest was given.
10684 if test "${enable_alsatest+set}" = set; then
10685   enableval="$enable_alsatest"
10686   enable_alsatest=no
10687 else
10688   enable_alsatest=yes
10689 fi;
10690
10691 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10692 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10693 if test "$alsa_inc_prefix" != "" ; then
10694         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10695         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10696 fi
10697 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10698 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10699
10700 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10701 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10702 if test "$alsa_prefix" != "" ; then
10703         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10704         LDFLAGS="$LDFLAGS $ALSA_LIBS"
10705 fi
10706
10707 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10708 LIBS=`echo $LIBS | sed 's/-lm//'`
10709 LIBS=`echo $LIBS | sed 's/-ldl//'`
10710 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10711 LIBS=`echo $LIBS | sed 's/  //'`
10712 LIBS="$ALSA_LIBS $LIBS"
10713 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10714 echo "${ECHO_T}$ALSA_LIBS" >&6
10715
10716 min_alsa_version=0.1.1
10717 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10718 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10719 no_alsa=""
10720     alsa_min_major_version=`echo $min_alsa_version | \
10721            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10722     alsa_min_minor_version=`echo $min_alsa_version | \
10723            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10724     alsa_min_micro_version=`echo $min_alsa_version | \
10725            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10726
10727
10728
10729
10730 ac_ext=c
10731 ac_cpp='$CPP $CPPFLAGS'
10732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10735
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 #include <alsa/asoundlib.h>
10745
10746 int
10747 main ()
10748 {
10749
10750 /* ensure backward compatibility */
10751 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10752 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10753 #endif
10754 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10755 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10756 #endif
10757 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10758 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10759 #endif
10760
10761 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10762   exit(0);
10763 #  else
10764 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10765 #       error not present
10766 #    endif
10767
10768 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10769   exit(0);
10770 #   else
10771 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10772 #          error not present
10773 #      endif
10774
10775 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10776 #        error not present
10777 #      endif
10778 #    endif
10779 #  endif
10780 exit(0);
10781
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788   (eval $ac_compile) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -s conftest.$ac_objext'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798   echo "$as_me:$LINENO: result: found." >&5
10799 echo "${ECHO_T}found." >&6
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811
10812 #include <sys/asoundlib.h>
10813
10814 int
10815 main ()
10816 {
10817
10818 /* ensure backward compatibility */
10819 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10820 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10821 #endif
10822 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10823 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10824 #endif
10825 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10826 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10827 #endif
10828
10829 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10830   exit(0);
10831 #  else
10832 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10833 #       error not present
10834 #    endif
10835
10836 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10837   exit(0);
10838 #   else
10839 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10840 #          error not present
10841 #      endif
10842
10843 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10844 #        error not present
10845 #      endif
10846 #    endif
10847 #  endif
10848 exit(0);
10849
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856   (eval $ac_compile) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } &&
10860          { ac_try='test -s conftest.$ac_objext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   echo "$as_me:$LINENO: result: found." >&5
10867 echo "${ECHO_T}found." >&6
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 echo "$as_me:$LINENO: result: not present." >&5
10873 echo "${ECHO_T}not present." >&6
10874    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
10875 echo "${ECHO_T}libasound was not found anywhere." >&6
10876    alsa_found=no
10877 fi
10878 rm -f conftest.$ac_objext conftest.$ac_ext
10879    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
10880 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
10881
10882 fi
10883 rm -f conftest.$ac_objext conftest.$ac_ext
10884 ac_ext=c
10885 ac_cpp='$CPP $CPPFLAGS'
10886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10889
10890
10891
10892 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
10893 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
10894 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-lasound  $LIBS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 #line $LINENO "configure"
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906
10907 /* Override any gcc2 internal prototype to avoid an error.  */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 /* We use char because int might match the return type of a gcc2
10912    builtin and then its argument prototype would still apply.  */
10913 char snd_ctl_open ();
10914 int
10915 main ()
10916 {
10917 snd_ctl_open ();
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924   (eval $ac_link) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } &&
10928          { ac_try='test -s conftest$ac_exeext'
10929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930   (eval $ac_try) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; }; then
10934   ac_cv_lib_asound_snd_ctl_open=yes
10935 else
10936   echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 ac_cv_lib_asound_snd_ctl_open=no
10940 fi
10941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
10945 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
10946 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
10947   cat >>confdefs.h <<_ACEOF
10948 #define HAVE_LIBASOUND 1
10949 _ACEOF
10950
10951   LIBS="-lasound $LIBS"
10952
10953 else
10954   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
10955 echo "${ECHO_T}No linkable libasound was found." >&6
10956    alsa_found=no
10957
10958 fi
10959
10960
10961 if test "x$alsa_found" = "xyes" ; then
10962    :
10963    LIBS=`echo $LIBS | sed 's/-lasound//g'`
10964    LIBS=`echo $LIBS | sed 's/  //'`
10965    LIBS="-lasound $LIBS"
10966 else
10967    :
10968    CFLAGS="$alsa_save_CFLAGS"
10969    LDFLAGS="$alsa_save_LDFLAGS"
10970    LIBS="$alsa_save_LIBS"
10971    ALSA_CFLAGS=""
10972    ALSA_LIBS=""
10973 fi
10974
10975
10976
10977
10978   if test "x$alsa_found" = "xyes" ; then
10979         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
10980     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
10981     for f in $ALSA_CFLAGS; do
10982     case ".$f" in
10983         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
10984         *)              CFLAGS="$CPPFLAGS $f" ;;
10985     esac
10986 done
10987
10988     LIBS="$KEEPLIBS $ALSA_LIBS"
10989   else
10990     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
10991 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
10992     CFLAGS=$KEEPCFLAGS
10993     LIBS=$KEEPLIBS
10994     LDFLAGS=$KEEPLDFLAGS
10995   fi
10996 else
10997   echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6
10999 fi
11000
11001 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11002 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11003 if test "x$au_enable_alib" = xyes; then
11004   case "$target" in
11005     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11006 echo "${ECHO_T}yes" >&6 ;;
11007     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11008 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11009   esac
11010   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11011   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11012   if test -d /opt/audio/include; then
11013     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11014   fi
11015   if test -d /opt/audio/lib; then
11016     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11017   fi
11018   EXTRALIBS="$EXTRALIBS -lAlib"
11019 else
11020   echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6
11022 fi
11023
11024 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11025 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11026 if test "x$au_enable_nas" = xyes; then
11027   if test "x$with_x" != xyes; then
11028     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11029 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11030    { (exit 1); exit 1; }; }
11031   fi
11032   EXTRADEFS="$EXTRADEFS -DAU_NAS"
11033   SYSEXTRAS="$SYSEXTRAS nas_a.c"
11034
11035
11036   if test "x$with_nas_library" != x; then
11037     echo "$as_me:$LINENO: result: $with_nas_library" >&5
11038 echo "${ECHO_T}$with_nas_library" >&6;
11039     EXTRALIBS="$EXTRALIBS $with_nas_library"
11040   else
11041     echo "$as_me:$LINENO: result: " >&5
11042 echo "${ECHO_T}" >&6
11043     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11044 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11045 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   ac_func_search_save_LIBS="$LIBS"
11049 timidity_cv_search_AuOpenServer="no"
11050 for i in $x_libraries/libaudio.a \
11051          /usr/lib/libaudio.so \
11052          /usr/lib/libaudio.a ; do
11053   LIBS="$i  $ac_func_search_save_LIBS"
11054   cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061
11062 /* Override any gcc2 internal prototype to avoid an error.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 /* We use char because int might match the return type of a gcc2
11067    builtin and then its argument prototype would still apply.  */
11068 char AuOpenServer ();
11069 int
11070 main ()
11071 {
11072 AuOpenServer ();
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079   (eval $ac_link) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -s conftest$ac_exeext'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   timidity_cv_search_AuOpenServer="$i"; break
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 fi
11095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11096 done
11097 LIBS="$ac_func_search_save_LIBS"
11098 fi
11099 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11100 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11101 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11102    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11103 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11104           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11105 else :
11106   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11107 echo "$as_me: WARNING: NAS library is not found." >&2;}
11108 fi
11109   fi
11110   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11111   lib_xt_opt=-lXt
11112   if test "x$have_xext" = xyes; then
11113     lib_xext_opt=-lXext
11114   fi
11115   if test "x$have_xprelibs" = xyes; then
11116     lib_xprelibs_opt='-lSM -lICE'
11117   fi
11118 else
11119   echo "$as_me:$LINENO: result: no" >&5
11120 echo "${ECHO_T}no" >&6
11121 fi
11122
11123 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11124 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11125 if test "x$au_enable_arts" = xyes; then
11126   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11127 echo "${ECHO_T}yes, configuring aRts" >&6
11128   KEEPCFLAGS=$CFLAGS
11129   KEEPLIBS=$LIBS
11130   KEEPLDFLAGS=$LDFLAGS
11131
11132 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11133 if test "${with_arts_prefix+set}" = set; then
11134   withval="$with_arts_prefix"
11135   arts_prefix="$withval"
11136 else
11137   arts_prefix=""
11138 fi;
11139 # Check whether --enable-artstest or --disable-artstest was given.
11140 if test "${enable_artstest+set}" = set; then
11141   enableval="$enable_artstest"
11142
11143 else
11144   enable_artstest=yes
11145 fi;
11146
11147   if test x$arts_prefix != x ; then
11148      arts_args="$arts_args --prefix=$arts_prefix"
11149      if test x${ARTS_CONFIG+set} != xset ; then
11150         ARTS_CONFIG=$arts_prefix/bin/artsc-config
11151      fi
11152   fi
11153
11154   # Extract the first word of "artsc-config", so it can be a program name with args.
11155 set dummy artsc-config; ac_word=$2
11156 echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11158 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   case $ARTS_CONFIG in
11162   [\\/]* | ?:[\\/]*)
11163   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11164   ;;
11165   *)
11166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11168 do
11169   IFS=$as_save_IFS
11170   test -z "$as_dir" && as_dir=.
11171   for ac_exec_ext in '' $ac_executable_extensions; do
11172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11175     break 2
11176   fi
11177 done
11178 done
11179
11180   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11181   ;;
11182 esac
11183 fi
11184 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11185
11186 if test -n "$ARTS_CONFIG"; then
11187   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11188 echo "${ECHO_T}$ARTS_CONFIG" >&6
11189 else
11190   echo "$as_me:$LINENO: result: no" >&5
11191 echo "${ECHO_T}no" >&6
11192 fi
11193
11194   min_arts_version=0.9.5
11195   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11196 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11197   no_arts=""
11198   if test "$ARTS_CONFIG" = "no" ; then
11199     no_arts=yes
11200   else
11201     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11202     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11203
11204     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11205            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11206     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11207            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11208     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11209            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11210     if test "x$enable_artstest" = "xyes" ; then
11211       ac_save_CFLAGS="$CFLAGS"
11212       ac_save_LIBS="$LIBS"
11213       CFLAGS="$CFLAGS $ARTS_CFLAGS"
11214       LIBS="$LIBS $ARTS_LIBS"
11215       rm -f conf.artstest
11216       if test "$cross_compiling" = yes; then
11217   echo $ac_n "cross compiling; assumed OK... $ac_c"
11218 else
11219   cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226
11227 #include <stdio.h>
11228 #include <stdlib.h>
11229 #include <string.h>
11230 #include <artsc.h>
11231
11232 char*
11233 my_strdup (char *str)
11234 {
11235   char *new_str;
11236
11237   if (str)
11238     {
11239       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11240       strcpy (new_str, str);
11241     }
11242   else
11243     new_str = NULL;
11244
11245   return new_str;
11246 }
11247
11248 int main ()
11249 {
11250   int major, minor, micro;
11251   char *tmp_version;
11252
11253   system ("touch conf.artstest");
11254
11255   /* HP/UX 9 (%@#!) writes to sscanf strings */
11256   tmp_version = my_strdup("$min_arts_version");
11257   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11258      printf("%s, bad version string\n", "$min_arts_version");
11259      exit(1);
11260    }
11261
11262    if (($arts_major_version > major) ||
11263       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11264       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11265     {
11266       return 0;
11267     }
11268   else
11269     {
11270       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11271       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11272       printf("*** best to upgrade to the required version.\n");
11273       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11274       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11275       printf("*** config.cache before re-running configure\n");
11276       return 1;
11277     }
11278 }
11279
11280
11281 _ACEOF
11282 rm -f conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284   (eval $ac_link) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289   (eval $ac_try) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; }; then
11293   :
11294 else
11295   echo "$as_me: program exited with status $ac_status" >&5
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ( exit $ac_status )
11300 no_arts=yes
11301 fi
11302 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11303 fi
11304        CFLAGS="$ac_save_CFLAGS"
11305        LIBS="$ac_save_LIBS"
11306      fi
11307   fi
11308   if test "x$no_arts" = x ; then
11309      echo "$as_me:$LINENO: result: yes" >&5
11310 echo "${ECHO_T}yes" >&6
11311      :
11312   else
11313      echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6
11315      if test "$ARTS_CONFIG" = "no" ; then
11316        echo "*** The artsc-config script installed by ARTS could not be found"
11317        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11318        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11319        echo "*** full path to artsc-config."
11320      else
11321        if test -f conf.artstest ; then
11322         :
11323        else
11324           echo "*** Could not run ARTS test program, checking why..."
11325           CFLAGS="$CFLAGS $ARTS_CFLAGS"
11326           LIBS="$LIBS $ARTS_LIBS"
11327           cat >conftest.$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11329 /* confdefs.h.  */
11330 _ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h.  */
11334
11335 #include <stdio.h>
11336 #include <artsc.h>
11337
11338 int
11339 main ()
11340 {
11341  return 0;
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348   (eval $ac_link) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } &&
11352          { ac_try='test -s conftest$ac_exeext'
11353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354   (eval $ac_try) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; }; then
11358    echo "*** The test program compiled, but did not run. This usually means"
11359           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11360           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11361           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11362           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11363           echo "*** is required on your system"
11364           echo "***"
11365           echo "*** If you have an old version installed, it is best to remove it, although"
11366           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371  echo "*** The test program failed to compile or link. See the file config.log for the"
11372           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11373           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11374           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11375 fi
11376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11377           CFLAGS="$ac_save_CFLAGS"
11378           LIBS="$ac_save_LIBS"
11379        fi
11380      fi
11381      ARTS_CFLAGS=""
11382      ARTS_LIBS=""
11383      :
11384   fi
11385
11386
11387   rm -f conf.artstest
11388
11389   CFLAGS=$KEEPCFLAGS
11390   LIBS=$KEEPLIBS
11391   LDFLAGS=$KEEPLDFLAGS
11392   if test "x$no_arts" = x; then
11393         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11394     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11395     for f in $ARTS_CFLAGS; do
11396     case ".$f" in
11397         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11398         *)              CFLAGS="$CPPFLAGS $f" ;;
11399     esac
11400 done
11401
11402     LIBS="$LIBS $ARTS_LIBS"
11403   else
11404     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11405 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11406   fi
11407 else
11408   echo "$as_me:$LINENO: result: no" >&5
11409 echo "${ECHO_T}no" >&6
11410 fi
11411
11412 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11413 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11414 if test "x$au_enable_esd" = xyes; then
11415   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11416 echo "${ECHO_T}yes, configuring esd" >&6
11417   KEEPCFLAGS=$CFLAGS
11418   KEEPLIBS=$LIBS
11419   KEEPLDFLAGS=$LDFLAGS
11420
11421 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11422 if test "${with_esd_prefix+set}" = set; then
11423   withval="$with_esd_prefix"
11424   esd_prefix="$withval"
11425 else
11426   esd_prefix=""
11427 fi;
11428
11429 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11430 if test "${with_esd_exec_prefix+set}" = set; then
11431   withval="$with_esd_exec_prefix"
11432   esd_exec_prefix="$withval"
11433 else
11434   esd_exec_prefix=""
11435 fi;
11436 # Check whether --enable-esdtest or --disable-esdtest was given.
11437 if test "${enable_esdtest+set}" = set; then
11438   enableval="$enable_esdtest"
11439
11440 else
11441   enable_esdtest=yes
11442 fi;
11443
11444   if test x$esd_exec_prefix != x ; then
11445      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11446      if test x${ESD_CONFIG+set} != xset ; then
11447         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11448      fi
11449   fi
11450   if test x$esd_prefix != x ; then
11451      esd_args="$esd_args --prefix=$esd_prefix"
11452      if test x${ESD_CONFIG+set} != xset ; then
11453         ESD_CONFIG=$esd_prefix/bin/esd-config
11454      fi
11455   fi
11456
11457   # Extract the first word of "esd-config", so it can be a program name with args.
11458 set dummy esd-config; ac_word=$2
11459 echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11461 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   case $ESD_CONFIG in
11465   [\\/]* | ?:[\\/]*)
11466   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11467   ;;
11468   *)
11469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472   IFS=$as_save_IFS
11473   test -z "$as_dir" && as_dir=.
11474   for ac_exec_ext in '' $ac_executable_extensions; do
11475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11478     break 2
11479   fi
11480 done
11481 done
11482
11483   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11484   ;;
11485 esac
11486 fi
11487 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11488
11489 if test -n "$ESD_CONFIG"; then
11490   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11491 echo "${ECHO_T}$ESD_CONFIG" >&6
11492 else
11493   echo "$as_me:$LINENO: result: no" >&5
11494 echo "${ECHO_T}no" >&6
11495 fi
11496
11497   min_esd_version=0.2.7
11498   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11499 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11500   no_esd=""
11501   if test "$ESD_CONFIG" = "no" ; then
11502     no_esd=yes
11503   else
11504
11505
11506     ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511
11512     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11513     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11514
11515     esd_major_version=`$ESD_CONFIG $esd_args --version | \
11516            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11517     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11518            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11519     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11520            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11521     if test "x$enable_esdtest" = "xyes" ; then
11522       ac_save_CFLAGS="$CFLAGS"
11523       ac_save_LIBS="$LIBS"
11524       CFLAGS="$CFLAGS $ESD_CFLAGS"
11525       LIBS="$LIBS $ESD_LIBS"
11526       rm -f conf.esdtest
11527       if test "$cross_compiling" = yes; then
11528   echo $ac_n "cross compiling; assumed OK... $ac_c"
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537
11538 #include <stdio.h>
11539 #include <stdlib.h>
11540 #include <string.h>
11541 #include <esd.h>
11542
11543 char*
11544 my_strdup (char *str)
11545 {
11546   char *new_str;
11547
11548   if (str)
11549     {
11550       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11551       strcpy (new_str, str);
11552     }
11553   else
11554     new_str = NULL;
11555
11556   return new_str;
11557 }
11558
11559 int main ()
11560 {
11561   int major, minor, micro;
11562   char *tmp_version;
11563
11564   system ("touch conf.esdtest");
11565
11566   /* HP/UX 9 (%@#!) writes to sscanf strings */
11567   tmp_version = my_strdup("$min_esd_version");
11568   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11569      printf("%s, bad version string\n", "$min_esd_version");
11570      exit(1);
11571    }
11572
11573    if (($esd_major_version > major) ||
11574       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11575       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11576     {
11577       return 0;
11578     }
11579   else
11580     {
11581       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11582       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11583       printf("*** best to upgrade to the required version.\n");
11584       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11585       printf("*** to point to the correct copy of esd-config, and remove the file\n");
11586       printf("*** config.cache before re-running configure\n");
11587       return 1;
11588     }
11589 }
11590
11591
11592 _ACEOF
11593 rm -f conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   :
11605 else
11606   echo "$as_me: program exited with status $ac_status" >&5
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 ( exit $ac_status )
11611 no_esd=yes
11612 fi
11613 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11614 fi
11615        CFLAGS="$ac_save_CFLAGS"
11616        LIBS="$ac_save_LIBS"
11617        ac_ext=c
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622
11623      fi
11624   fi
11625   if test "x$no_esd" = x ; then
11626      echo "$as_me:$LINENO: result: yes" >&5
11627 echo "${ECHO_T}yes" >&6
11628      :
11629   else
11630      echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6
11632      if test "$ESD_CONFIG" = "no" ; then
11633        echo "*** The esd-config script installed by ESD could not be found"
11634        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11635        echo "*** your path, or set the ESD_CONFIG environment variable to the"
11636        echo "*** full path to esd-config."
11637      else
11638        if test -f conf.esdtest ; then
11639         :
11640        else
11641           echo "*** Could not run ESD test program, checking why..."
11642           CFLAGS="$CFLAGS $ESD_CFLAGS"
11643           LIBS="$LIBS $ESD_LIBS"
11644
11645
11646           ac_ext=c
11647 ac_cpp='$CPP $CPPFLAGS'
11648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651
11652           cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659
11660 #include <stdio.h>
11661 #include <esd.h>
11662
11663 int
11664 main ()
11665 {
11666  return 0;
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673   (eval $ac_link) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683    echo "*** The test program compiled, but did not run. This usually means"
11684           echo "*** that the run-time linker is not finding ESD or finding the wrong"
11685           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11686           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11687           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11688           echo "*** is required on your system"
11689           echo "***"
11690           echo "*** If you have an old version installed, it is best to remove it, although"
11691           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696  echo "*** The test program failed to compile or link. See the file config.log for the"
11697           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11698           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11699           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11700 fi
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702           CFLAGS="$ac_save_CFLAGS"
11703           LIBS="$ac_save_LIBS"
11704           ac_ext=c
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709
11710        fi
11711      fi
11712      ESD_CFLAGS=""
11713      ESD_LIBS=""
11714      :
11715   fi
11716
11717
11718   rm -f conf.esdtest
11719
11720   CFLAGS=$KEEPCFLAGS
11721   LIBS=$KEEPLIBS
11722   LDFLAGS=$KEEPLDFLAGS
11723   if test "x$no_esd" = x; then
11724         EXTRADEFS="$EXTRADEFS -DAU_ESD"
11725     SYSEXTRAS="$SYSEXTRAS esd_a.c"
11726     for f in $ESD_CFLAGS; do
11727     case ".$f" in
11728         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11729         *)              CFLAGS="$CPPFLAGS $f" ;;
11730     esac
11731 done
11732
11733     LIBS="$LIBS $ESD_LIBS"
11734   else
11735     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
11736 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
11737   fi
11738 else
11739   echo "$as_me:$LINENO: result: no" >&5
11740 echo "${ECHO_T}no" >&6
11741 fi
11742
11743 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
11744 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
11745 if test "x$au_enable_portaudio" = xyes; then
11746   echo "$as_me:$LINENO: result: yes" >&5
11747 echo "${ECHO_T}yes" >&6
11748   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
11749   EXTRALIBS="$EXTRALIBS -lportaudio"
11750   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
11751 else
11752   echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6
11754 fi
11755
11756 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
11757 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
11758 if test "x$au_enable_vorbis" = xyes; then
11759   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
11760 echo "${ECHO_T}yes, configuring vorbis" >&6
11761
11762 # Check whether --with-ogg or --without-ogg was given.
11763 if test "${with_ogg+set}" = set; then
11764   withval="$with_ogg"
11765   ogg_prefix="$withval"
11766 else
11767   ogg_prefix=""
11768 fi;
11769
11770 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
11771 if test "${with_ogg_libraries+set}" = set; then
11772   withval="$with_ogg_libraries"
11773   ogg_libraries="$withval"
11774 else
11775   ogg_libraries=""
11776 fi;
11777
11778 # Check whether --with-ogg-includes or --without-ogg-includes was given.
11779 if test "${with_ogg_includes+set}" = set; then
11780   withval="$with_ogg_includes"
11781   ogg_includes="$withval"
11782 else
11783   ogg_includes=""
11784 fi;
11785 # Check whether --enable-oggtest or --disable-oggtest was given.
11786 if test "${enable_oggtest+set}" = set; then
11787   enableval="$enable_oggtest"
11788
11789 else
11790   enable_oggtest=yes
11791 fi;
11792
11793   if test "x$ogg_libraries" != "x" ; then
11794     OGG_LIBS="-L$ogg_libraries"
11795   elif test "x$ogg_prefix" != "x" ; then
11796     OGG_LIBS="-L$ogg_prefix/lib"
11797   elif test "x$prefix" != "xNONE" ; then
11798     OGG_LIBS="-L$prefix/lib"
11799   fi
11800
11801   OGG_LIBS="$OGG_LIBS -logg"
11802
11803   if test "x$ogg_includes" != "x" ; then
11804     OGG_CFLAGS="-I$ogg_includes"
11805   elif test "x$ogg_prefix" != "x" ; then
11806     OGG_CFLAGS="-I$ogg_prefix/include"
11807   elif test "x$prefix" != "xNONE"; then
11808     OGG_CFLAGS="-I$prefix/include"
11809   fi
11810
11811   echo "$as_me:$LINENO: checking for Ogg" >&5
11812 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
11813   no_ogg=""
11814
11815
11816   if test "x$enable_oggtest" = "xyes" ; then
11817     ac_save_CFLAGS="$CFLAGS"
11818     ac_save_LIBS="$LIBS"
11819     CFLAGS="$CFLAGS $OGG_CFLAGS"
11820     LIBS="$LIBS $OGG_LIBS"
11821       rm -f conf.oggtest
11822       if test "$cross_compiling" = yes; then
11823   echo $ac_n "cross compiling; assumed OK... $ac_c"
11824 else
11825   cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832
11833 #include <stdio.h>
11834 #include <stdlib.h>
11835 #include <string.h>
11836 #include <ogg/ogg.h>
11837
11838 int main ()
11839 {
11840   system("touch conf.oggtest");
11841   return 0;
11842 }
11843
11844
11845 _ACEOF
11846 rm -f conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   :
11858 else
11859   echo "$as_me: program exited with status $ac_status" >&5
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 ( exit $ac_status )
11864 no_ogg=yes
11865 fi
11866 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11867 fi
11868        CFLAGS="$ac_save_CFLAGS"
11869        LIBS="$ac_save_LIBS"
11870   fi
11871
11872   if test "x$no_ogg" = "x" ; then
11873      echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6
11875
11876
11877 # Check whether --with-vorbis or --without-vorbis was given.
11878 if test "${with_vorbis+set}" = set; then
11879   withval="$with_vorbis"
11880   vorbis_prefix="$withval"
11881 else
11882   vorbis_prefix=""
11883 fi;
11884
11885 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
11886 if test "${with_vorbis_libraries+set}" = set; then
11887   withval="$with_vorbis_libraries"
11888   vorbis_libraries="$withval"
11889 else
11890   vorbis_libraries=""
11891 fi;
11892
11893 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
11894 if test "${with_vorbis_includes+set}" = set; then
11895   withval="$with_vorbis_includes"
11896   vorbis_includes="$withval"
11897 else
11898   vorbis_includes=""
11899 fi;
11900 # Check whether --enable-vorbistest or --disable-vorbistest was given.
11901 if test "${enable_vorbistest+set}" = set; then
11902   enableval="$enable_vorbistest"
11903
11904 else
11905   enable_vorbistest=yes
11906 fi;
11907
11908   if test "x$vorbis_libraries" != "x" ; then
11909     VORBIS_LIBS="-L$vorbis_libraries"
11910   elif test "x$vorbis_prefix" != "x" ; then
11911     VORBIS_LIBS="-L$vorbis_prefix/lib"
11912   elif test "x$prefix" != "xNONE"; then
11913     VORBIS_LIBS="-L$prefix/lib"
11914   fi
11915
11916   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
11917   VORBISFILE_LIBS="-lvorbisfile"
11918   VORBISENC_LIBS="-lvorbisenc"
11919
11920   if test "x$vorbis_includes" != "x" ; then
11921     VORBIS_CFLAGS="-I$vorbis_includes"
11922   elif test "x$vorbis_prefix" != "x" ; then
11923     VORBIS_CFLAGS="-I$vorbis_prefix/include"
11924   elif test "x$prefix" != "xNONE"; then
11925     VORBIS_CFLAGS="-I$prefix/include"
11926   fi
11927
11928
11929   echo "$as_me:$LINENO: checking for Vorbis" >&5
11930 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
11931   no_vorbis=""
11932
11933
11934   if test "x$enable_vorbistest" = "xyes" ; then
11935     ac_save_CFLAGS="$CFLAGS"
11936     ac_save_LIBS="$LIBS"
11937     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
11938     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
11939       rm -f conf.vorbistest
11940       if test "$cross_compiling" = yes; then
11941   echo $ac_n "cross compiling; assumed OK... $ac_c"
11942 else
11943   cat >conftest.$ac_ext <<_ACEOF
11944 #line $LINENO "configure"
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950
11951 #include <stdio.h>
11952 #include <stdlib.h>
11953 #include <string.h>
11954 #include <vorbis/codec.h>
11955
11956 int main ()
11957 {
11958   system("touch conf.vorbistest");
11959   return 0;
11960 }
11961
11962
11963 _ACEOF
11964 rm -f conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   :
11976 else
11977   echo "$as_me: program exited with status $ac_status" >&5
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 ( exit $ac_status )
11982 no_vorbis=yes
11983 fi
11984 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11985 fi
11986        CFLAGS="$ac_save_CFLAGS"
11987        LIBS="$ac_save_LIBS"
11988   fi
11989
11990   if test "x$no_vorbis" = "x" ; then
11991      echo "$as_me:$LINENO: result: yes" >&5
11992 echo "${ECHO_T}yes" >&6
11993
11994       have_vorbis=yes
11995       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
11996       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
11997       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
11998       if test "x$CYGNUS" = "xyes"; then
11999       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12000           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12001       fi
12002       if test "x$MINGW" = "xyes"; then
12003       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12004           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12005       fi
12006
12007   else
12008      echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12010      if test -f conf.vorbistest ; then
12011        :
12012      else
12013        echo "*** Could not run Vorbis test program, checking why..."
12014        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12015        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12016        cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023
12024 #include <stdio.h>
12025 #include <vorbis/codec.h>
12026
12027 int
12028 main ()
12029 {
12030  return 0;
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (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); } &&
12041          { ac_try='test -s conftest$ac_exeext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047    echo "*** The test program compiled, but did not run. This usually means"
12048        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12049        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12050        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12051        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12052        echo "*** is required on your system"
12053        echo "***"
12054        echo "*** If you have an old version installed, it is best to remove it, although"
12055        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060  echo "*** The test program failed to compile or link. See the file config.log for the"
12061        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12062        echo "*** or that you have moved Vorbis since it was installed."
12063 fi
12064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12065        CFLAGS="$ac_save_CFLAGS"
12066        LIBS="$ac_save_LIBS"
12067      fi
12068      VORBIS_CFLAGS=""
12069      VORBIS_LIBS=""
12070      VORBISFILE_LIBS=""
12071      VORBISENC_LIBS=""
12072
12073       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12074 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12075
12076   fi
12077
12078
12079
12080
12081   rm -f conf.vorbistest
12082
12083
12084   else
12085      echo "$as_me:$LINENO: result: no" >&5
12086 echo "${ECHO_T}no" >&6
12087      if test -f conf.oggtest ; then
12088        :
12089      else
12090        echo "*** Could not run Ogg test program, checking why..."
12091        CFLAGS="$CFLAGS $OGG_CFLAGS"
12092        LIBS="$LIBS $OGG_LIBS"
12093        cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100
12101 #include <stdio.h>
12102 #include <ogg/ogg.h>
12103
12104 int
12105 main ()
12106 {
12107  return 0;
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124    echo "*** The test program compiled, but did not run. This usually means"
12125        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12126        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12127        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12128        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12129        echo "*** is required on your system"
12130        echo "***"
12131        echo "*** If you have an old version installed, it is best to remove it, although"
12132        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12133 else
12134   echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137  echo "*** The test program failed to compile or link. See the file config.log for the"
12138        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12139        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12140        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12141 fi
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143        CFLAGS="$ac_save_CFLAGS"
12144        LIBS="$ac_save_LIBS"
12145      fi
12146      OGG_CFLAGS=""
12147      OGG_LIBS=""
12148
12149     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12150 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12151     have_vorbis=no
12152
12153   fi
12154
12155
12156   rm -f conf.oggtest
12157
12158 else
12159   echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6
12161 fi
12162
12163 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12164 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12165 if test "x$au_enable_gogo" = xyes; then
12166   if test "x$CYGNUS" = "xyes"; then
12167     echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12169   else
12170     if test "x$MINGW" = "xyes"; then
12171     echo "$as_me:$LINENO: result: yes" >&5
12172 echo "${ECHO_T}yes" >&6
12173     else
12174       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
12175 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
12176     fi
12177   fi
12178   have_gogo=yes
12179   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12180   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12181   EXTRALIBS="$EXTRALIBS -lgogo"
12182 else
12183   echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6
12185 fi
12186
12187 if test "x$au_enable_none" = xyes; then
12188     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12189     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12190 fi
12191 echo "$as_me:$LINENO: checking default output mode" >&5
12192 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12193 if test "x$DEFAULT_PLAYMODE" = x; then
12194   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12195 fi
12196 case ".$DEFAULT_PLAYMODE" in
12197   .default)  TIMIDITY_OUTPUT_ID=d ;;
12198   .oss)      TIMIDITY_OUTPUT_ID=d ;;
12199   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
12200   .sun)      TIMIDITY_OUTPUT_ID=d ;;
12201   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
12202   .irix)     TIMIDITY_OUTPUT_ID=d ;;
12203   .mme)      TIMIDITY_OUTPUT_ID=d ;;
12204   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
12205   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
12206   .w32)      TIMIDITY_OUTPUT_ID=d ;;
12207   .alib)     TIMIDITY_OUTPUT_ID=A ;;
12208   .nas)      TIMIDITY_OUTPUT_ID=n ;;
12209   .arts)     TIMIDITY_OUTPUT_ID=R ;;
12210   .esd)      TIMIDITY_OUTPUT_ID=e ;;
12211   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
12212   .wav)      TIMIDITY_OUTPUT_ID=w ;;
12213   .au)       TIMIDITY_OUTPUT_ID=u ;;
12214   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
12215   .list)     TIMIDITY_OUTPUT_ID=l ;;
12216   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
12217   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
12218   *)         TIMIDITY_OUTPUT_ID= ;;
12219 esac
12220 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12221 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12222
12223 #
12224 # Interface Section
12225 #
12226
12227 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12228
12229 # Check whether --enable-interface or --disable-interface was given.
12230 if test "${enable_interface+set}" = set; then
12231   enableval="$enable_interface"
12232    for i in `echo $enableval | sed 's/,/ /g'`; do
12233       eval "enable_$i=yes"
12234     done
12235 fi;
12236
12237 #  Dynamic link configuration
12238 # Check whether --enable-dynamic or --disable-dynamic was given.
12239 if test "${enable_dynamic+set}" = set; then
12240   enableval="$enable_dynamic"
12241        if test "x$enable_dynamic" = xyes; then
12242       enable_dynamic=dynamic
12243     elif test "x$enable_dynamic" != xno; then
12244       for i in `echo $enableval | sed 's/,/ /g'`; do
12245         eval "enable_$i=dynamic"
12246       done
12247     fi
12248 fi;
12249
12250 join_targets=
12251 for i in $interface_targets; do
12252   eval "join_targets=$join_targets\$enable_$i"
12253 done
12254
12255 case ".$join_targets" in
12256 .*dynamic*) NEEDDLOPEN=yes;;
12257 *)          NEEDDLOPEN=no;;
12258 esac
12259
12260 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12261 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12262
12263 if test "$NEEDDLOPEN" = "yes"; then
12264   have_dl=no
12265
12266   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12267 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12268 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 #include <windows.h>
12279
12280
12281 int
12282 main ()
12283 {
12284 LoadLibrary(0);
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291   (eval $ac_link) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   wapi_cv_func_LoadLibrary=yes
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 wapi_cv_func_LoadLibrary=no
12307 fi
12308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12309 fi
12310
12311 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12312   echo "$as_me:$LINENO: result: yes" >&5
12313 echo "${ECHO_T}yes" >&6
12314   have_dl=w32
12315 else
12316   echo "$as_me:$LINENO: result: no" >&5
12317 echo "${ECHO_T}no" >&6
12318 fi
12319
12320   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12321
12322   if test "$have_dl" = "no"; then
12323     echo "$as_me:$LINENO: checking for shl_load" >&5
12324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12325 if test "${ac_cv_func_shl_load+set}" = set; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328   cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 /* System header to define __stub macros and hopefully few prototypes,
12336     which can conflict with char shl_load (); below.  */
12337 #include <assert.h>
12338 /* Override any gcc2 internal prototype to avoid an error.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 {
12342 #endif
12343 /* We use char because int might match the return type of a gcc2
12344    builtin and then its argument prototype would still apply.  */
12345 char shl_load ();
12346 /* The GNU C library defines this for functions which it implements
12347     to always fail with ENOSYS.  Some functions are actually named
12348     something starting with __ and the normal name is an alias.  */
12349 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12350 choke me
12351 #else
12352 char (*f) () = shl_load;
12353 #endif
12354 #ifdef __cplusplus
12355 }
12356 #endif
12357
12358 int
12359 main ()
12360 {
12361
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368   (eval $ac_link) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -s conftest$ac_exeext'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_cv_func_shl_load=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_cv_func_shl_load=no
12384 fi
12385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12389 if test $ac_cv_func_shl_load = yes; then
12390   have_dl=hpux
12391 fi
12392
12393   fi
12394   if test "$have_dl" = "no"; then
12395             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12396 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12397 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 /* System header to define __stub macros and hopefully few prototypes,
12408     which can conflict with char NSLinkModule (); below.  */
12409 #include <assert.h>
12410 /* Override any gcc2 internal prototype to avoid an error.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 {
12414 #endif
12415 /* We use char because int might match the return type of a gcc2
12416    builtin and then its argument prototype would still apply.  */
12417 char NSLinkModule ();
12418 /* The GNU C library defines this for functions which it implements
12419     to always fail with ENOSYS.  Some functions are actually named
12420     something starting with __ and the normal name is an alias.  */
12421 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12422 choke me
12423 #else
12424 char (*f) () = NSLinkModule;
12425 #endif
12426 #ifdef __cplusplus
12427 }
12428 #endif
12429
12430 int
12431 main ()
12432 {
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440   (eval $ac_link) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -s conftest$ac_exeext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_cv_func_NSLinkModule=yes
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_cv_func_NSLinkModule=no
12456 fi
12457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12460 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12461 if test $ac_cv_func_NSLinkModule = yes; then
12462   have_dl=dyld
12463 fi
12464
12465   fi
12466   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12467     have_dl=dlopen
12468   fi
12469   if test "$have_dl" = "no"; then
12470     echo "$as_me:$LINENO: checking for dlopen" >&5
12471 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12472 if test "${ac_cv_func_dlopen+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482 /* System header to define __stub macros and hopefully few prototypes,
12483     which can conflict with char dlopen (); below.  */
12484 #include <assert.h>
12485 /* Override any gcc2 internal prototype to avoid an error.  */
12486 #ifdef __cplusplus
12487 extern "C"
12488 {
12489 #endif
12490 /* We use char because int might match the return type of a gcc2
12491    builtin and then its argument prototype would still apply.  */
12492 char dlopen ();
12493 /* The GNU C library defines this for functions which it implements
12494     to always fail with ENOSYS.  Some functions are actually named
12495     something starting with __ and the normal name is an alias.  */
12496 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12497 choke me
12498 #else
12499 char (*f) () = dlopen;
12500 #endif
12501 #ifdef __cplusplus
12502 }
12503 #endif
12504
12505 int
12506 main ()
12507 {
12508
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515   (eval $ac_link) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -s conftest$ac_exeext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_func_dlopen=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_cv_func_dlopen=no
12531 fi
12532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12533 fi
12534 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12535 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12536 if test $ac_cv_func_dlopen = yes; then
12537   have_dl=dlopen
12538 fi
12539
12540   fi
12541   if test "$have_dl" = "no"; then
12542     echo "$as_me:$LINENO: checking for dld_init" >&5
12543 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12544 if test "${ac_cv_func_dld_init+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554 /* System header to define __stub macros and hopefully few prototypes,
12555     which can conflict with char dld_init (); below.  */
12556 #include <assert.h>
12557 /* Override any gcc2 internal prototype to avoid an error.  */
12558 #ifdef __cplusplus
12559 extern "C"
12560 {
12561 #endif
12562 /* We use char because int might match the return type of a gcc2
12563    builtin and then its argument prototype would still apply.  */
12564 char dld_init ();
12565 /* The GNU C library defines this for functions which it implements
12566     to always fail with ENOSYS.  Some functions are actually named
12567     something starting with __ and the normal name is an alias.  */
12568 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12569 choke me
12570 #else
12571 char (*f) () = dld_init;
12572 #endif
12573 #ifdef __cplusplus
12574 }
12575 #endif
12576
12577 int
12578 main ()
12579 {
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587   (eval $ac_link) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } &&
12591          { ac_try='test -s conftest$ac_exeext'
12592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593   (eval $ac_try) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; }; then
12597   ac_cv_func_dld_init=yes
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 ac_cv_func_dld_init=no
12603 fi
12604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12605 fi
12606 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12607 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12608 if test $ac_cv_func_dld_init = yes; then
12609   have_dl=dld
12610 fi
12611
12612   fi
12613   if test "$have_dl" = "no"; then
12614     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12615 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12616 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-ldld  $LIBS"
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628
12629 /* Override any gcc2 internal prototype to avoid an error.  */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 /* We use char because int might match the return type of a gcc2
12634    builtin and then its argument prototype would still apply.  */
12635 char dld_init ();
12636 int
12637 main ()
12638 {
12639 dld_init ();
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646   (eval $ac_link) 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } &&
12650          { ac_try='test -s conftest$ac_exeext'
12651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652   (eval $ac_try) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; }; then
12656   ac_cv_lib_dld_dld_init=yes
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661 ac_cv_lib_dld_dld_init=no
12662 fi
12663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12665 fi
12666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12667 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12668 if test $ac_cv_lib_dld_dld_init = yes; then
12669   have_dl=dld;lib_dl_opt=-ldld
12670 fi
12671
12672   fi
12673
12674   echo "$as_me:$LINENO: checking dynamic link method" >&5
12675 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
12676   case "$have_dl" in
12677     dlopen)
12678       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
12679 echo "${ECHO_T}use dl_dlopen.c" >&6
12680       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
12681       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
12682 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
12683 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   case "$ac_cv_header_dlfcn_h" in
12687 yes) i_dlfcn=define;;
12688 *)   i_dlfcn=undef;;
12689 esac
12690 cat > dyna.c <<EOM
12691 fred () { }
12692 EOM
12693
12694 cat > fred.c <<EOM
12695 #include <stdio.h>
12696 #$i_dlfcn I_DLFCN
12697 #ifdef I_DLFCN
12698 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
12699 #else
12700 #include <sys/types.h>
12701 #include <nlist.h>
12702 #include <link.h>
12703 #endif
12704
12705 extern int fred() ;
12706
12707 main()
12708 {
12709     void * handle ;
12710     void * symbol ;
12711 #ifndef RTLD_LAZY
12712     int mode = 1 ;
12713 #else
12714     int mode = RTLD_LAZY ;
12715 #endif
12716     handle = dlopen("./dyna.$so", mode) ;
12717     if (handle == NULL) {
12718         printf ("1\n") ;
12719         fflush (stdout) ;
12720         exit(0);
12721     }
12722     symbol = dlsym(handle, "fred") ;
12723     if (symbol == NULL) {
12724         /* try putting a leading underscore */
12725         symbol = dlsym(handle, "_fred") ;
12726         if (symbol == NULL) {
12727             printf ("2\n") ;
12728             fflush (stdout) ;
12729             exit(0);
12730         }
12731         printf ("3\n") ;
12732     }
12733     else
12734         printf ("4\n") ;
12735     fflush (stdout) ;
12736     exit(0);
12737 }
12738 EOM
12739 : Call the object file tmp-dyna.o in case dlext=o.
12740 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
12741         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
12742         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
12743         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
12744         xxx=`./fred`
12745         case $xxx in
12746         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
12747 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
12748                 ;;
12749         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
12750 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
12751                 ;;
12752         3)      timidity_cv_func_dlsym_underscore=yes
12753                 ;;
12754         4)      timidity_cv_func_dlsym_underscore=no
12755                 ;;
12756         esac
12757 else
12758         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
12759 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
12760 fi
12761 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
12762
12763 fi
12764
12765 case "x$timidity_cv_func_dlsym_underscore" in
12766 xyes)
12767 cat >>confdefs.h <<\_ACEOF
12768 #define DLSYM_NEEDS_UNDERSCORE 1
12769 _ACEOF
12770
12771         echo "$as_me:$LINENO: result: yes" >&5
12772 echo "${ECHO_T}yes" >&6
12773         ;;
12774 xno)
12775         echo "$as_me:$LINENO: result: no" >&5
12776 echo "${ECHO_T}no" >&6
12777         ;;
12778 esac
12779
12780       ;;
12781     dld)
12782       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
12783 echo "${ECHO_T}use dl_dld.c" >&6
12784       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
12785       ;;
12786     hpux)
12787       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
12788 echo "${ECHO_T}use dl_hpux.c" >&6
12789       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
12790       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
12791       ;;
12792     w32)
12793       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
12794 echo "${ECHO_T}use dl_w32.c" >&6
12795       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
12796       ;;
12797     dyld)
12798       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
12799 echo "${ECHO_T}use dl_dyld.c" >&6
12800       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
12801       ;;
12802     *)
12803       NEEDDLOPEN="no"
12804       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
12805 echo "$as_me: WARNING: no method to open a shared object" >&2;}
12806       ;;
12807   esac
12808 fi
12809
12810 if test "$NEEDDLOPEN" = "yes"; then
12811   cat >> confdefs.h <<EOF
12812 #define IA_DYNAMIC 1
12813 EOF
12814
12815
12816 cat >>confdefs.h <<_ACEOF
12817 #define SHARED_LIB_EXT ".$so"
12818 _ACEOF
12819
12820       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
12821 fi
12822
12823
12824
12825 if test "$NEEDDLOPEN" = "yes"; then
12826   NEEDDLOPEN_TRUE=
12827   NEEDDLOPEN_FALSE='#'
12828 else
12829   NEEDDLOPEN_TRUE='#'
12830   NEEDDLOPEN_FALSE=
12831 fi
12832
12833
12834
12835
12836
12837 if false; then
12838   ENABLE_NCURSES_TRUE=
12839   ENABLE_NCURSES_FALSE='#'
12840 else
12841   ENABLE_NCURSES_TRUE='#'
12842   ENABLE_NCURSES_FALSE=
12843 fi
12844
12845 # Check whether --enable-ncurses or --disable-ncurses was given.
12846 if test "${enable_ncurses+set}" = set; then
12847   enableval="$enable_ncurses"
12848   case "x$enable_ncurses" in xyes|xdynamic)
12849
12850
12851 for ac_header in ncurses.h ncurses/curses.h curses.h
12852 do
12853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855   echo "$as_me:$LINENO: checking for $ac_header" >&5
12856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12858   echo $ECHO_N "(cached) $ECHO_C" >&6
12859 fi
12860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12862 else
12863   # Is the header compilable?
12864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873 $ac_includes_default
12874 #include <$ac_header>
12875 _ACEOF
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878   (eval $ac_compile) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } &&
12882          { ac_try='test -s conftest.$ac_objext'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   ac_header_compiler=yes
12889 else
12890   echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893 ac_header_compiler=no
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897 echo "${ECHO_T}$ac_header_compiler" >&6
12898
12899 # Is the header present?
12900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909 #include <$ac_header>
12910 _ACEOF
12911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } >/dev/null; then
12919   if test -s conftest.err; then
12920     ac_cpp_err=$ac_c_preproc_warn_flag
12921   else
12922     ac_cpp_err=
12923   fi
12924 else
12925   ac_cpp_err=yes
12926 fi
12927 if test -z "$ac_cpp_err"; then
12928   ac_header_preproc=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933   ac_header_preproc=no
12934 fi
12935 rm -f conftest.err conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12937 echo "${ECHO_T}$ac_header_preproc" >&6
12938
12939 # So?  What about this header?
12940 case $ac_header_compiler:$ac_header_preproc in
12941   yes:no )
12942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12946     (
12947       cat <<\_ASBOX
12948 ## ------------------------------------ ##
12949 ## Report this to bug-autoconf@gnu.org. ##
12950 ## ------------------------------------ ##
12951 _ASBOX
12952     ) |
12953       sed "s/^/$as_me: WARNING:     /" >&2
12954     ;;
12955   no:yes )
12956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12958     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12962     (
12963       cat <<\_ASBOX
12964 ## ------------------------------------ ##
12965 ## Report this to bug-autoconf@gnu.org. ##
12966 ## ------------------------------------ ##
12967 _ASBOX
12968     ) |
12969       sed "s/^/$as_me: WARNING:     /" >&2
12970     ;;
12971 esac
12972 echo "$as_me:$LINENO: checking for $ac_header" >&5
12973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   eval "$as_ac_Header=$ac_header_preproc"
12978 fi
12979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12981
12982 fi
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984   cat >>confdefs.h <<_ACEOF
12985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12986 _ACEOF
12987
12988 fi
12989
12990 done
12991
12992
12993
12994   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
12995     *yes*);;
12996     *)  for i in /usr/include /usr/local/include; do
12997           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
12998             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
12999 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
13000             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13001             break
13002           fi
13003         done
13004         ;;
13005     esac
13006
13007     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13008 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13009 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   ac_check_lib_save_LIBS=$LIBS
13013 LIBS="-lncurses  $LIBS"
13014 cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021
13022 /* Override any gcc2 internal prototype to avoid an error.  */
13023 #ifdef __cplusplus
13024 extern "C"
13025 #endif
13026 /* We use char because int might match the return type of a gcc2
13027    builtin and then its argument prototype would still apply.  */
13028 char initscr ();
13029 int
13030 main ()
13031 {
13032 initscr ();
13033   ;
13034   return 0;
13035 }
13036 _ACEOF
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -s conftest$ac_exeext'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   ac_cv_lib_ncurses_initscr=yes
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ac_cv_lib_ncurses_initscr=no
13055 fi
13056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13060 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13061 if test $ac_cv_lib_ncurses_initscr = yes; then
13062   lib_curses_opt=-lncurses
13063 else
13064         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13065 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13066 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-lcurses $lib_user32_test $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 #line $LINENO "configure"
13073 /* confdefs.h.  */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h.  */
13078
13079 /* Override any gcc2 internal prototype to avoid an error.  */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 /* We use char because int might match the return type of a gcc2
13084    builtin and then its argument prototype would still apply.  */
13085 char PDC_set_ctrl_break ();
13086 int
13087 main ()
13088 {
13089 PDC_set_ctrl_break ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096   (eval $ac_link) 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } &&
13100          { ac_try='test -s conftest$ac_exeext'
13101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102   (eval $ac_try) 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; }; then
13106   ac_cv_lib_curses_PDC_set_ctrl_break=yes
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_cv_lib_curses_PDC_set_ctrl_break=no
13112 fi
13113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13117 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13118 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13119    lib_curses_opt=-lcurses
13120
13121 cat >>confdefs.h <<\_ACEOF
13122 #define USE_PDCURSES 1
13123 _ACEOF
13124
13125             lib_user32_opt="$lib_user32_test"
13126
13127 else
13128             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13129 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13130 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lpdcurses  $LIBS"
13135 cat >conftest.$ac_ext <<_ACEOF
13136 #line $LINENO "configure"
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142
13143 /* Override any gcc2 internal prototype to avoid an error.  */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 /* We use char because int might match the return type of a gcc2
13148    builtin and then its argument prototype would still apply.  */
13149 char PDC_set_ctrl_break ();
13150 int
13151 main ()
13152 {
13153 PDC_set_ctrl_break ();
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13160   (eval $ac_link) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -s conftest$ac_exeext'
13165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166   (eval $ac_try) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13176 fi
13177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13179 fi
13180 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13181 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13182 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13183    lib_curses_opt=-lpdcurses
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define USE_PDCURSES 1
13187 _ACEOF
13188
13189               lib_user32_opt="$lib_user32_test"
13190
13191 else
13192               case "$target" in
13193                 *openbsd*)
13194                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13195 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13196 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-lcurses  $LIBS"
13201 cat >conftest.$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208
13209 /* Override any gcc2 internal prototype to avoid an error.  */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 /* We use char because int might match the return type of a gcc2
13214    builtin and then its argument prototype would still apply.  */
13215 char initscr ();
13216 int
13217 main ()
13218 {
13219 initscr ();
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226   (eval $ac_link) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -s conftest$ac_exeext'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   ac_cv_lib_curses_initscr=yes
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 ac_cv_lib_curses_initscr=no
13242 fi
13243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13247 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13248 if test $ac_cv_lib_curses_initscr = yes; then
13249   lib_curses_opt=-lcurses
13250 else
13251    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13252 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13253                       enable_ncurses=no
13254 fi
13255
13256                   ;;
13257                 *)
13258                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13259 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13260                   enable_ncurses=no
13261                   ;;
13262               esac
13263
13264 fi
13265
13266
13267 fi
13268
13269
13270 fi
13271
13272    ;; esac
13273 fi;
13274 case "x$enable_ncurses" in
13275 xyes)
13276   cat >> confdefs.h <<EOF
13277 #define IA_NCURSES 1
13278 EOF
13279
13280
13281
13282 if true; then
13283   ENABLE_NCURSES_TRUE=
13284   ENABLE_NCURSES_FALSE='#'
13285 else
13286   ENABLE_NCURSES_TRUE='#'
13287   ENABLE_NCURSES_FALSE=
13288 fi
13289
13290    LIBS="$LIBS $lib_curses_opt"
13291     case "$target" in
13292        *-*-freebsd123*)
13293          EXTRALIBS="$EXTRALIBS -lmytinfo"
13294          ;;
13295      esac
13296     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13297
13298   ;;
13299 xdynamic)
13300   dynamic_targets="$dynamic_targets interface_n.\$(so)"
13301    n_so_libs="$lib_curses_opt"
13302     case "$target" in
13303        *-*-freebsd123*)
13304          EXTRALIBS="$EXTRALIBS -lmytinfo"
13305          ;;
13306      esac
13307   ;;
13308 *)
13309
13310   ;;
13311 esac
13312
13313
13314
13315
13316
13317 if false; then
13318   ENABLE_SLANG_TRUE=
13319   ENABLE_SLANG_FALSE='#'
13320 else
13321   ENABLE_SLANG_TRUE='#'
13322   ENABLE_SLANG_FALSE=
13323 fi
13324
13325 # Check whether --enable-slang or --disable-slang was given.
13326 if test "${enable_slang+set}" = set; then
13327   enableval="$enable_slang"
13328   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13329 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13330 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-lslang  $LIBS"
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342
13343 /* Override any gcc2 internal prototype to avoid an error.  */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 /* We use char because int might match the return type of a gcc2
13348    builtin and then its argument prototype would still apply.  */
13349 char SLang_init_tty ();
13350 int
13351 main ()
13352 {
13353 SLang_init_tty ();
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360   (eval $ac_link) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -s conftest$ac_exeext'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; }; then
13370   ac_cv_lib_slang_SLang_init_tty=yes
13371 else
13372   echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 ac_cv_lib_slang_SLang_init_tty=no
13376 fi
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13379 fi
13380 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13381 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13382 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13383   :
13384 else
13385    enable_slang=no
13386       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13387 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13388
13389 fi
13390
13391
13392
13393 for ac_header in slang/slang.h slang.h
13394 do
13395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397   echo "$as_me:$LINENO: checking for $ac_header" >&5
13398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13400   echo $ECHO_N "(cached) $ECHO_C" >&6
13401 fi
13402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13404 else
13405   # Is the header compilable?
13406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13409 #line $LINENO "configure"
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415 $ac_includes_default
13416 #include <$ac_header>
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420   (eval $ac_compile) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); } &&
13424          { ac_try='test -s conftest.$ac_objext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_header_compiler=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_header_compiler=no
13436 fi
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13439 echo "${ECHO_T}$ac_header_compiler" >&6
13440
13441 # Is the header present?
13442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13445 #line $LINENO "configure"
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 #include <$ac_header>
13452 _ACEOF
13453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } >/dev/null; then
13461   if test -s conftest.err; then
13462     ac_cpp_err=$ac_c_preproc_warn_flag
13463   else
13464     ac_cpp_err=
13465   fi
13466 else
13467   ac_cpp_err=yes
13468 fi
13469 if test -z "$ac_cpp_err"; then
13470   ac_header_preproc=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475   ac_header_preproc=no
13476 fi
13477 rm -f conftest.err conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13479 echo "${ECHO_T}$ac_header_preproc" >&6
13480
13481 # So?  What about this header?
13482 case $ac_header_compiler:$ac_header_preproc in
13483   yes:no )
13484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13488     (
13489       cat <<\_ASBOX
13490 ## ------------------------------------ ##
13491 ## Report this to bug-autoconf@gnu.org. ##
13492 ## ------------------------------------ ##
13493 _ASBOX
13494     ) |
13495       sed "s/^/$as_me: WARNING:     /" >&2
13496     ;;
13497   no:yes )
13498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13500     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13504     (
13505       cat <<\_ASBOX
13506 ## ------------------------------------ ##
13507 ## Report this to bug-autoconf@gnu.org. ##
13508 ## ------------------------------------ ##
13509 _ASBOX
13510     ) |
13511       sed "s/^/$as_me: WARNING:     /" >&2
13512     ;;
13513 esac
13514 echo "$as_me:$LINENO: checking for $ac_header" >&5
13515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517   echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519   eval "$as_ac_Header=$ac_header_preproc"
13520 fi
13521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13523
13524 fi
13525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13526   cat >>confdefs.h <<_ACEOF
13527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13528 _ACEOF
13529
13530 fi
13531
13532 done
13533
13534    ;; esac
13535 fi;
13536 case "x$enable_slang" in
13537 xyes)
13538   cat >> confdefs.h <<EOF
13539 #define IA_SLANG 1
13540 EOF
13541
13542
13543
13544 if true; then
13545   ENABLE_SLANG_TRUE=
13546   ENABLE_SLANG_FALSE='#'
13547 else
13548   ENABLE_SLANG_TRUE='#'
13549   ENABLE_SLANG_FALSE=
13550 fi
13551
13552    LIBS="$LIBS -lslang"
13553     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13554
13555   ;;
13556 xdynamic)
13557   dynamic_targets="$dynamic_targets interface_s.\$(so)"
13558    s_so_libs="-lslang"
13559     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13560 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13561 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   ac_check_lib_save_LIBS=$LIBS
13565 LIBS="-ltermcap  $LIBS"
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 /* confdefs.h.  */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h.  */
13573
13574 /* Override any gcc2 internal prototype to avoid an error.  */
13575 #ifdef __cplusplus
13576 extern "C"
13577 #endif
13578 /* We use char because int might match the return type of a gcc2
13579    builtin and then its argument prototype would still apply.  */
13580 char initscr ();
13581 int
13582 main ()
13583 {
13584 initscr ();
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591   (eval $ac_link) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -s conftest$ac_exeext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601   ac_cv_lib_termcap_initscr=yes
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 ac_cv_lib_termcap_initscr=no
13607 fi
13608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13610 fi
13611 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13612 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13613 if test $ac_cv_lib_termcap_initscr = yes; then
13614   s_so_libs="$s_so_libs -ltermcap"
13615 fi
13616
13617
13618   ;;
13619 *)
13620
13621   ;;
13622 esac
13623
13624
13625
13626
13627
13628 if false; then
13629   ENABLE_MOTIF_TRUE=
13630   ENABLE_MOTIF_FALSE='#'
13631 else
13632   ENABLE_MOTIF_TRUE='#'
13633   ENABLE_MOTIF_FALSE=
13634 fi
13635
13636 # Check whether --enable-motif or --disable-motif was given.
13637 if test "${enable_motif+set}" = set; then
13638   enableval="$enable_motif"
13639   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13640         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13641 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13642    { (exit 1); exit 1; }; }
13643     fi
13644     if test "x$have_xm" != xyes; then
13645       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13646 echo "$as_me: WARNING: Motif library is not found." >&2;}
13647       enable_motif=no
13648     fi
13649    ;; esac
13650 fi;
13651 case "x$enable_motif" in
13652 xyes)
13653   cat >> confdefs.h <<EOF
13654 #define IA_MOTIF 1
13655 EOF
13656
13657
13658
13659 if true; then
13660   ENABLE_MOTIF_TRUE=
13661   ENABLE_MOTIF_FALSE='#'
13662 else
13663   ENABLE_MOTIF_TRUE='#'
13664   ENABLE_MOTIF_FALSE=
13665 fi
13666
13667    lib_xm_opt=-lXm
13668     lib_xt_opt=-lXt
13669     lib_xext_opt=-lXext
13670     if test "x$have_xprelibs" = xyes; then
13671         lib_xprelibs_opt='-lSM -lICE'
13672     fi
13673     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
13674
13675   ;;
13676 xdynamic)
13677   dynamic_targets="$dynamic_targets interface_m.\$(so)"
13678    if test x$have_xprelibs = xyes; then
13679       m_so_libs="-lXext -lSM -lICE"
13680     fi
13681     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
13682
13683   ;;
13684 *)
13685
13686   ;;
13687 esac
13688
13689
13690
13691
13692
13693 if false; then
13694   ENABLE_TCLTK_TRUE=
13695   ENABLE_TCLTK_FALSE='#'
13696 else
13697   ENABLE_TCLTK_TRUE='#'
13698   ENABLE_TCLTK_FALSE=
13699 fi
13700
13701 # Check whether --enable-tcltk or --disable-tcltk was given.
13702 if test "${enable_tcltk+set}" = set; then
13703   enableval="$enable_tcltk"
13704   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13705         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
13706 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
13707    { (exit 1); exit 1; }; }
13708     fi
13709
13710         KEEPCPPFLAGS=$CPPFLAGS
13711     KEEPLDFLAGS=$LDFLAGS
13712     KEEPLIBS=$LIBS
13713
13714     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
13715     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
13716     LIBS="$LIBS $lib_dl_opt"
13717
13718     tcl_lib=
13719     tk_lib=
13720     for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
13721       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
13722 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
13723 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
13724 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   ac_check_lib_save_LIBS=$LIBS
13728 LIBS="-l$l  $LIBS"
13729 cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736
13737 /* Override any gcc2 internal prototype to avoid an error.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 /* We use char because int might match the return type of a gcc2
13742    builtin and then its argument prototype would still apply.  */
13743 char Tcl_Init ();
13744 int
13745 main ()
13746 {
13747 Tcl_Init ();
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754   (eval $ac_link) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -s conftest$ac_exeext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   eval "$as_ac_Lib=yes"
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 eval "$as_ac_Lib=no"
13770 fi
13771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13773 fi
13774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13775 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13776 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13777   tcl_lib=-l$l
13778 fi
13779 ;; esac
13780     done
13781     LIBS="$LIBS $tcl_lib"
13782     for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
13783       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
13784 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
13785 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
13786 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   ac_check_lib_save_LIBS=$LIBS
13790 LIBS="-l$l  $LIBS"
13791 cat >conftest.$ac_ext <<_ACEOF
13792 #line $LINENO "configure"
13793 /* confdefs.h.  */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h.  */
13798
13799 /* Override any gcc2 internal prototype to avoid an error.  */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 /* We use char because int might match the return type of a gcc2
13804    builtin and then its argument prototype would still apply.  */
13805 char Tk_Init ();
13806 int
13807 main ()
13808 {
13809 Tk_Init ();
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816   (eval $ac_link) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -s conftest$ac_exeext'
13821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822   (eval $ac_try) 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; }; then
13826   eval "$as_ac_Lib=yes"
13827 else
13828   echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831 eval "$as_ac_Lib=no"
13832 fi
13833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13835 fi
13836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13837 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13838 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13839   tk_lib=-l$l
13840 fi
13841 ;; esac
13842     done
13843
13844     LIBS=$KEEPLIBS
13845     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
13846       CPPFLAGS=$KEEPCPPFLAGS
13847       LDFLAGS=$KEEPLDFLAGS
13848       enable_tcltk=no
13849       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
13850 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
13851     else
13852       tcltk_dep='tclIndex'
13853     fi
13854    ;; esac
13855 fi;
13856 case "x$enable_tcltk" in
13857 xyes)
13858   cat >> confdefs.h <<EOF
13859 #define IA_TCLTK 1
13860 EOF
13861
13862
13863
13864 if true; then
13865   ENABLE_TCLTK_TRUE=
13866   ENABLE_TCLTK_FALSE='#'
13867 else
13868   ENABLE_TCLTK_TRUE='#'
13869   ENABLE_TCLTK_FALSE=
13870 fi
13871
13872    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
13873     case "$target" in
13874       *-*-bsdi*)
13875         EXTRALIBS="$EXTRALIBS -lipc"
13876         ;;
13877     esac
13878     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
13879
13880   ;;
13881 xdynamic)
13882   dynamic_targets="$dynamic_targets interface_k.\$(so)"
13883    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
13884     case "$target" in
13885       *-*-bsdi*)
13886         k_so_libs="$k_so_libs -lipc"
13887         ;;
13888     esac
13889     k_so_libs="$k_so_libs -lX11 -lm"
13890
13891   ;;
13892 *)
13893
13894   ;;
13895 esac
13896
13897
13898
13899
13900 if test "x$enable_tcltk" = "xdynamic"; then
13901   ENABLE_DYNAMIC_TCLTK_TRUE=
13902   ENABLE_DYNAMIC_TCLTK_FALSE='#'
13903 else
13904   ENABLE_DYNAMIC_TCLTK_TRUE='#'
13905   ENABLE_DYNAMIC_TCLTK_FALSE=
13906 fi
13907
13908
13909
13910
13911 if false; then
13912   ENABLE_EMACS_TRUE=
13913   ENABLE_EMACS_FALSE='#'
13914 else
13915   ENABLE_EMACS_TRUE='#'
13916   ENABLE_EMACS_FALSE=
13917 fi
13918
13919 # Check whether --enable-emacs or --disable-emacs was given.
13920 if test "${enable_emacs+set}" = set; then
13921   enableval="$enable_emacs"
13922   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
13923 fi;
13924 case "x$enable_emacs" in
13925 xyes)
13926   cat >> confdefs.h <<EOF
13927 #define IA_EMACS 1
13928 EOF
13929
13930
13931
13932 if true; then
13933   ENABLE_EMACS_TRUE=
13934   ENABLE_EMACS_FALSE='#'
13935 else
13936   ENABLE_EMACS_TRUE='#'
13937   ENABLE_EMACS_FALSE=
13938 fi
13939
13940    ELFILES="$ELFILES timidity.el"
13941     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
13942
13943   ;;
13944 xdynamic)
13945   dynamic_targets="$dynamic_targets interface_e.\$(so)"
13946    ELFILES="$ELFILES timidity.el"
13947   ;;
13948 *)
13949
13950   ;;
13951 esac
13952
13953
13954
13955
13956
13957 if false; then
13958   ENABLE_VT100_TRUE=
13959   ENABLE_VT100_FALSE='#'
13960 else
13961   ENABLE_VT100_TRUE='#'
13962   ENABLE_VT100_FALSE=
13963 fi
13964
13965 # Check whether --enable-vt100 or --disable-vt100 was given.
13966 if test "${enable_vt100+set}" = set; then
13967   enableval="$enable_vt100"
13968   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
13969 fi;
13970 case "x$enable_vt100" in
13971 xyes)
13972   cat >> confdefs.h <<EOF
13973 #define IA_VT100 1
13974 EOF
13975
13976
13977
13978 if true; then
13979   ENABLE_VT100_TRUE=
13980   ENABLE_VT100_FALSE='#'
13981 else
13982   ENABLE_VT100_TRUE='#'
13983   ENABLE_VT100_FALSE=
13984 fi
13985
13986    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
13987   ;;
13988 xdynamic)
13989   dynamic_targets="$dynamic_targets interface_T.\$(so)"
13990
13991   ;;
13992 *)
13993
13994   ;;
13995 esac
13996
13997
13998
13999
14000
14001 if false; then
14002   ENABLE_XAW_TRUE=
14003   ENABLE_XAW_FALSE='#'
14004 else
14005   ENABLE_XAW_TRUE='#'
14006   ENABLE_XAW_FALSE=
14007 fi
14008
14009 # Check whether --enable-xaw or --disable-xaw was given.
14010 if test "${enable_xaw+set}" = set; then
14011   enableval="$enable_xaw"
14012   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14013         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14014 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14015    { (exit 1); exit 1; }; }
14016     fi
14017     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14018       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14019 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14020       enable_xaw=no
14021     fi  ;; esac
14022 fi;
14023 case "x$enable_xaw" in
14024 xyes)
14025   cat >> confdefs.h <<EOF
14026 #define IA_XAW 1
14027 EOF
14028
14029
14030
14031 if true; then
14032   ENABLE_XAW_TRUE=
14033   ENABLE_XAW_FALSE='#'
14034 else
14035   ENABLE_XAW_TRUE='#'
14036   ENABLE_XAW_FALSE=
14037 fi
14038
14039        if test "x$have_xext" = xyes; then
14040       lib_xext_opt=-lXext
14041     fi
14042     if test "x$have_xprelibs" = xyes; then
14043       lib_xprelibs_opt='-lSM -lICE'
14044     fi
14045     lib_xmu_opt=-lXmu
14046     lib_xt_opt=-lXt
14047     if test "x$have_xaw" = x3d; then
14048
14049 cat >>confdefs.h <<\_ACEOF
14050 #define XAW3D 1
14051 _ACEOF
14052
14053       lib_xaw_opt=-lXaw3d
14054     else
14055       lib_xaw_opt=-lXaw
14056     fi
14057     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14058
14059   ;;
14060 xdynamic)
14061   dynamic_targets="$dynamic_targets interface_a.\$(so)"
14062    if test "x$have_xext" = xyes; then
14063       a_so_libs="-lXext -lX11"
14064     else
14065       a_so_libs="-lX11"
14066     fi
14067     case "$target" in
14068       *darwin*)
14069         a_so_libs="$a_so_libs -lcc_dynamic"
14070         ;;
14071     esac
14072     if test "x$have_xprelibs" = xyes; then
14073       a_so_libs="-lSM -lICE $a_so_libs"
14074     fi
14075     if test "x$have_xaw" = xyes; then
14076       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14077     elif test "x$have_xaw" = x3d; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define XAW3D 1
14081 _ACEOF
14082
14083       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14084     fi
14085     a_so_libs="$ldflags_x_opt $a_so_libs"
14086
14087   ;;
14088 *)
14089
14090   ;;
14091 esac
14092
14093
14094
14095
14096 if test "x$enable_xaw" = "xdynamic"; then
14097   ENABLE_DYNAMIC_XAW_TRUE=
14098   ENABLE_DYNAMIC_XAW_FALSE='#'
14099 else
14100   ENABLE_DYNAMIC_XAW_TRUE='#'
14101   ENABLE_DYNAMIC_XAW_FALSE=
14102 fi
14103
14104
14105
14106
14107 if false; then
14108   ENABLE_XSKIN_TRUE=
14109   ENABLE_XSKIN_FALSE='#'
14110 else
14111   ENABLE_XSKIN_TRUE='#'
14112   ENABLE_XSKIN_FALSE=
14113 fi
14114
14115 # Check whether --enable-xskin or --disable-xskin was given.
14116 if test "${enable_xskin+set}" = set; then
14117   enableval="$enable_xskin"
14118   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14119         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14120 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14121    { (exit 1); exit 1; }; }
14122     fi
14123    ;; esac
14124 fi;
14125 case "x$enable_xskin" in
14126 xyes)
14127   cat >> confdefs.h <<EOF
14128 #define IA_XSKIN 1
14129 EOF
14130
14131
14132
14133 if true; then
14134   ENABLE_XSKIN_TRUE=
14135   ENABLE_XSKIN_FALSE='#'
14136 else
14137   ENABLE_XSKIN_TRUE='#'
14138   ENABLE_XSKIN_FALSE=
14139 fi
14140
14141    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14142   ;;
14143 xdynamic)
14144   dynamic_targets="$dynamic_targets interface_i.\$(so)"
14145    i_so_libs="$ldflags_x_opt -lX11"
14146   ;;
14147 *)
14148
14149   ;;
14150 esac
14151
14152
14153
14154
14155
14156 if false; then
14157   ENABLE_GTK_TRUE=
14158   ENABLE_GTK_FALSE='#'
14159 else
14160   ENABLE_GTK_TRUE='#'
14161   ENABLE_GTK_FALSE=
14162 fi
14163
14164 # Check whether --enable-gtk or --disable-gtk was given.
14165 if test "${enable_gtk+set}" = set; then
14166   enableval="$enable_gtk"
14167   case "x$enable_gtk" in xyes|xdynamic)
14168 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14169 if test "${with_gtk_prefix+set}" = set; then
14170   withval="$with_gtk_prefix"
14171   gtk_config_prefix="$withval"
14172 else
14173   gtk_config_prefix=""
14174 fi;
14175
14176 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14177 if test "${with_gtk_exec_prefix+set}" = set; then
14178   withval="$with_gtk_exec_prefix"
14179   gtk_config_exec_prefix="$withval"
14180 else
14181   gtk_config_exec_prefix=""
14182 fi;
14183 # Check whether --enable-gtktest or --disable-gtktest was given.
14184 if test "${enable_gtktest+set}" = set; then
14185   enableval="$enable_gtktest"
14186
14187 else
14188   enable_gtktest=yes
14189 fi;
14190
14191   for module in .
14192   do
14193       case "$module" in
14194          gthread)
14195              gtk_config_args="$gtk_config_args gthread"
14196          ;;
14197       esac
14198   done
14199
14200   if test x$gtk_config_exec_prefix != x ; then
14201      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14202      if test x${GTK_CONFIG+set} != xset ; then
14203         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14204      fi
14205   fi
14206   if test x$gtk_config_prefix != x ; then
14207      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14208      if test x${GTK_CONFIG+set} != xset ; then
14209         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14210      fi
14211   fi
14212
14213   # Extract the first word of "gtk-config", so it can be a program name with args.
14214 set dummy gtk-config; ac_word=$2
14215 echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14217 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   case $GTK_CONFIG in
14221   [\\/]* | ?:[\\/]*)
14222   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14223   ;;
14224   *)
14225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14227 do
14228   IFS=$as_save_IFS
14229   test -z "$as_dir" && as_dir=.
14230   for ac_exec_ext in '' $ac_executable_extensions; do
14231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14234     break 2
14235   fi
14236 done
14237 done
14238
14239   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14240   ;;
14241 esac
14242 fi
14243 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14244
14245 if test -n "$GTK_CONFIG"; then
14246   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14247 echo "${ECHO_T}$GTK_CONFIG" >&6
14248 else
14249   echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6
14251 fi
14252
14253   min_gtk_version=1.1.3
14254   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14255 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14256   no_gtk=""
14257   if test "$GTK_CONFIG" = "no" ; then
14258     no_gtk=yes
14259   else
14260     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14261     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14262     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14263            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14264     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14265            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14266     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14267            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14268     if test "x$enable_gtktest" = "xyes" ; then
14269       ac_save_CFLAGS="$CFLAGS"
14270       ac_save_LIBS="$LIBS"
14271       CFLAGS="$CFLAGS $GTK_CFLAGS"
14272       LIBS="$GTK_LIBS $LIBS"
14273       rm -f conf.gtktest
14274       if test "$cross_compiling" = yes; then
14275   echo $ac_n "cross compiling; assumed OK... $ac_c"
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284
14285 #include <gtk/gtk.h>
14286 #include <stdio.h>
14287 #include <stdlib.h>
14288
14289 int
14290 main ()
14291 {
14292   int major, minor, micro;
14293   char *tmp_version;
14294
14295   system ("touch conf.gtktest");
14296
14297   /* HP/UX 9 (%@#!) writes to sscanf strings */
14298   tmp_version = g_strdup("$min_gtk_version");
14299   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14300      printf("%s, bad version string\n", "$min_gtk_version");
14301      exit(1);
14302    }
14303
14304   if ((gtk_major_version != $gtk_config_major_version) ||
14305       (gtk_minor_version != $gtk_config_minor_version) ||
14306       (gtk_micro_version != $gtk_config_micro_version))
14307     {
14308       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14309              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14310              gtk_major_version, gtk_minor_version, gtk_micro_version);
14311       printf ("*** was found! If gtk-config was correct, then it is best\n");
14312       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14313       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14314       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14315       printf("*** required on your system.\n");
14316       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14317       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14318       printf("*** before re-running configure\n");
14319     }
14320 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14321   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14322            (gtk_minor_version != GTK_MINOR_VERSION) ||
14323            (gtk_micro_version != GTK_MICRO_VERSION))
14324     {
14325       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14326              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14327       printf("*** library (version %d.%d.%d)\n",
14328              gtk_major_version, gtk_minor_version, gtk_micro_version);
14329     }
14330 #endif /* defined (GTK_MAJOR_VERSION) ... */
14331   else
14332     {
14333       if ((gtk_major_version > major) ||
14334         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14335         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14336       {
14337         return 0;
14338        }
14339      else
14340       {
14341         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14342                gtk_major_version, gtk_minor_version, gtk_micro_version);
14343         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14344                major, minor, micro);
14345         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14346         printf("***\n");
14347         printf("*** If you have already installed a sufficiently new version, this error\n");
14348         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14349         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14350         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14351         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14352         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14353         printf("*** so that the correct libraries are found at run-time))\n");
14354       }
14355     }
14356   return 1;
14357 }
14358
14359 _ACEOF
14360 rm -f conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362   (eval $ac_link) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   :
14372 else
14373   echo "$as_me: program exited with status $ac_status" >&5
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ( exit $ac_status )
14378 no_gtk=yes
14379 fi
14380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14381 fi
14382        CFLAGS="$ac_save_CFLAGS"
14383        LIBS="$ac_save_LIBS"
14384      fi
14385   fi
14386   if test "x$no_gtk" = x ; then
14387      echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14389      :
14390   else
14391      echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6
14393      if test "$GTK_CONFIG" = "no" ; then
14394        echo "*** The gtk-config script installed by GTK could not be found"
14395        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14396        echo "*** your path, or set the GTK_CONFIG environment variable to the"
14397        echo "*** full path to gtk-config."
14398      else
14399        if test -f conf.gtktest ; then
14400         :
14401        else
14402           echo "*** Could not run GTK test program, checking why..."
14403           CFLAGS="$CFLAGS $GTK_CFLAGS"
14404           LIBS="$LIBS $GTK_LIBS"
14405           cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412
14413 #include <gtk/gtk.h>
14414 #include <stdio.h>
14415
14416 int
14417 main ()
14418 {
14419  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426   (eval $ac_link) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -s conftest$ac_exeext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436    echo "*** The test program compiled, but did not run. This usually means"
14437           echo "*** that the run-time linker is not finding GTK or finding the wrong"
14438           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14439           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14440           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14441           echo "*** is required on your system"
14442           echo "***"
14443           echo "*** If you have an old version installed, it is best to remove it, although"
14444           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14445           echo "***"
14446           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14447           echo "*** came with the system with the command"
14448           echo "***"
14449           echo "***    rpm --erase --nodeps gtk gtk-devel"
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454  echo "*** The test program failed to compile or link. See the file config.log for the"
14455           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14456           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14457           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14458 fi
14459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14460           CFLAGS="$ac_save_CFLAGS"
14461           LIBS="$ac_save_LIBS"
14462        fi
14463      fi
14464      GTK_CFLAGS=""
14465      GTK_LIBS=""
14466      enable_gtk=no
14467   fi
14468
14469
14470   rm -f conf.gtktest
14471   ;; esac
14472 fi;
14473 case "x$enable_gtk" in
14474 xyes)
14475   cat >> confdefs.h <<EOF
14476 #define IA_GTK 1
14477 EOF
14478
14479
14480
14481 if true; then
14482   ENABLE_GTK_TRUE=
14483   ENABLE_GTK_FALSE='#'
14484 else
14485   ENABLE_GTK_TRUE='#'
14486   ENABLE_GTK_FALSE=
14487 fi
14488
14489    LIBS="$LIBS $GTK_LIBS"
14490     for f in $GTK_CFLAGS; do
14491     case ".$f" in
14492         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14493         *)              CFLAGS="$CPPFLAGS $f" ;;
14494     esac
14495 done
14496
14497     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14498
14499   ;;
14500 xdynamic)
14501   dynamic_targets="$dynamic_targets interface_g.\$(so)"
14502    if test "x$GCC" = xyes; then
14503                 for i in $GTK_LIBS; do
14504             case "x$i" in
14505                 x-rdynamic) ;;
14506                 *) g_so_libs="$g_so_libs $i" ;;
14507             esac
14508         done
14509     else
14510         g_so_libs="$GTK_LIBS"
14511     fi
14512     for f in $GTK_CFLAGS; do
14513     case ".$f" in
14514         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14515         *)              CFLAGS="$CPPFLAGS $f" ;;
14516     esac
14517 done
14518
14519   ;;
14520 *)
14521
14522   ;;
14523 esac
14524
14525
14526
14527
14528
14529 if false; then
14530   ENABLE_SERVER_TRUE=
14531   ENABLE_SERVER_FALSE='#'
14532 else
14533   ENABLE_SERVER_TRUE='#'
14534   ENABLE_SERVER_FALSE=
14535 fi
14536
14537 # Check whether --enable-server or --disable-server was given.
14538 if test "${enable_server+set}" = set; then
14539   enableval="$enable_server"
14540   case "x$enable_server" in xyes|xdynamic)  ;; esac
14541 fi;
14542 case "x$enable_server" in
14543 xyes)
14544   cat >> confdefs.h <<EOF
14545 #define IA_SERVER 1
14546 EOF
14547
14548
14549
14550 if true; then
14551   ENABLE_SERVER_TRUE=
14552   ENABLE_SERVER_FALSE='#'
14553 else
14554   ENABLE_SERVER_TRUE='#'
14555   ENABLE_SERVER_FALSE=
14556 fi
14557
14558    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14559
14560 for ac_header in sys/soundcard.h
14561 do
14562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564   echo "$as_me:$LINENO: checking for $ac_header" >&5
14565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 fi
14569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14571 else
14572   # Is the header compilable?
14573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14575 cat >conftest.$ac_ext <<_ACEOF
14576 #line $LINENO "configure"
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582 $ac_includes_default
14583 #include <$ac_header>
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587   (eval $ac_compile) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -s conftest.$ac_objext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ac_header_compiler=yes
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 ac_header_compiler=no
14603 fi
14604 rm -f conftest.$ac_objext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6
14607
14608 # Is the header present?
14609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14613 /* confdefs.h.  */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h.  */
14618 #include <$ac_header>
14619 _ACEOF
14620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } >/dev/null; then
14628   if test -s conftest.err; then
14629     ac_cpp_err=$ac_c_preproc_warn_flag
14630   else
14631     ac_cpp_err=
14632   fi
14633 else
14634   ac_cpp_err=yes
14635 fi
14636 if test -z "$ac_cpp_err"; then
14637   ac_header_preproc=yes
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642   ac_header_preproc=no
14643 fi
14644 rm -f conftest.err conftest.$ac_ext
14645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646 echo "${ECHO_T}$ac_header_preproc" >&6
14647
14648 # So?  What about this header?
14649 case $ac_header_compiler:$ac_header_preproc in
14650   yes:no )
14651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14655     (
14656       cat <<\_ASBOX
14657 ## ------------------------------------ ##
14658 ## Report this to bug-autoconf@gnu.org. ##
14659 ## ------------------------------------ ##
14660 _ASBOX
14661     ) |
14662       sed "s/^/$as_me: WARNING:     /" >&2
14663     ;;
14664   no:yes )
14665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14667     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14671     (
14672       cat <<\_ASBOX
14673 ## ------------------------------------ ##
14674 ## Report this to bug-autoconf@gnu.org. ##
14675 ## ------------------------------------ ##
14676 _ASBOX
14677     ) |
14678       sed "s/^/$as_me: WARNING:     /" >&2
14679     ;;
14680 esac
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   eval "$as_ac_Header=$ac_header_preproc"
14687 fi
14688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14690
14691 fi
14692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14693   cat >>confdefs.h <<_ACEOF
14694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14695 _ACEOF
14696
14697 fi
14698
14699 done
14700
14701
14702   ;;
14703 xdynamic)
14704   dynamic_targets="$dynamic_targets interface_r.\$(so)"
14705
14706   ;;
14707 *)
14708
14709   ;;
14710 esac
14711
14712
14713
14714
14715
14716 if false; then
14717   ENABLE_ALSASEQ_TRUE=
14718   ENABLE_ALSASEQ_FALSE='#'
14719 else
14720   ENABLE_ALSASEQ_TRUE='#'
14721   ENABLE_ALSASEQ_FALSE=
14722 fi
14723
14724 # Check whether --enable-alsaseq or --disable-alsaseq was given.
14725 if test "${enable_alsaseq+set}" = set; then
14726   enableval="$enable_alsaseq"
14727   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
14728 fi;
14729 case "x$enable_alsaseq" in
14730 xyes)
14731   cat >> confdefs.h <<EOF
14732 #define IA_ALSASEQ 1
14733 EOF
14734
14735
14736
14737 if true; then
14738   ENABLE_ALSASEQ_TRUE=
14739   ENABLE_ALSASEQ_FALSE='#'
14740 else
14741   ENABLE_ALSASEQ_TRUE='#'
14742   ENABLE_ALSASEQ_FALSE=
14743 fi
14744
14745    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
14746
14747 for ac_header in sys/asoundlib.h
14748 do
14749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751   echo "$as_me:$LINENO: checking for $ac_header" >&5
14752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 fi
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14758 else
14759   # Is the header compilable?
14760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14763 #line $LINENO "configure"
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 $ac_includes_default
14770 #include <$ac_header>
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774   (eval $ac_compile) 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -s conftest.$ac_objext'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; }; then
14784   ac_header_compiler=yes
14785 else
14786   echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14788
14789 ac_header_compiler=no
14790 fi
14791 rm -f conftest.$ac_objext conftest.$ac_ext
14792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6
14794
14795 # Is the header present?
14796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 #include <$ac_header>
14806 _ACEOF
14807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14809   ac_status=$?
14810   grep -v '^ *+' conftest.er1 >conftest.err
14811   rm -f conftest.er1
14812   cat conftest.err >&5
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } >/dev/null; then
14815   if test -s conftest.err; then
14816     ac_cpp_err=$ac_c_preproc_warn_flag
14817   else
14818     ac_cpp_err=
14819   fi
14820 else
14821   ac_cpp_err=yes
14822 fi
14823 if test -z "$ac_cpp_err"; then
14824   ac_header_preproc=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829   ac_header_preproc=no
14830 fi
14831 rm -f conftest.err conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14833 echo "${ECHO_T}$ac_header_preproc" >&6
14834
14835 # So?  What about this header?
14836 case $ac_header_compiler:$ac_header_preproc in
14837   yes:no )
14838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14842     (
14843       cat <<\_ASBOX
14844 ## ------------------------------------ ##
14845 ## Report this to bug-autoconf@gnu.org. ##
14846 ## ------------------------------------ ##
14847 _ASBOX
14848     ) |
14849       sed "s/^/$as_me: WARNING:     /" >&2
14850     ;;
14851   no:yes )
14852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14854     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14858     (
14859       cat <<\_ASBOX
14860 ## ------------------------------------ ##
14861 ## Report this to bug-autoconf@gnu.org. ##
14862 ## ------------------------------------ ##
14863 _ASBOX
14864     ) |
14865       sed "s/^/$as_me: WARNING:     /" >&2
14866     ;;
14867 esac
14868 echo "$as_me:$LINENO: checking for $ac_header" >&5
14869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14871   echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873   eval "$as_ac_Header=$ac_header_preproc"
14874 fi
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14877
14878 fi
14879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14880   cat >>confdefs.h <<_ACEOF
14881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14882 _ACEOF
14883
14884 fi
14885
14886 done
14887
14888
14889   ;;
14890 xdynamic)
14891   dynamic_targets="$dynamic_targets interface_A.\$(so)"
14892
14893   ;;
14894 *)
14895
14896   ;;
14897 esac
14898
14899
14900
14901
14902
14903 if false; then
14904   ENABLE_WINSYN_TRUE=
14905   ENABLE_WINSYN_FALSE='#'
14906 else
14907   ENABLE_WINSYN_TRUE='#'
14908   ENABLE_WINSYN_FALSE=
14909 fi
14910
14911 # Check whether --enable-winsyn or --disable-winsyn was given.
14912 if test "${enable_winsyn+set}" = set; then
14913   enableval="$enable_winsyn"
14914   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
14915 fi;
14916 case "x$enable_winsyn" in
14917 xyes)
14918   cat >> confdefs.h <<EOF
14919 #define IA_WINSYN 1
14920 EOF
14921
14922
14923
14924 if true; then
14925   ENABLE_WINSYN_TRUE=
14926   ENABLE_WINSYN_FALSE='#'
14927 else
14928   ENABLE_WINSYN_TRUE='#'
14929   ENABLE_WINSYN_FALSE=
14930 fi
14931
14932    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
14933   ;;
14934 xdynamic)
14935   dynamic_targets="$dynamic_targets interface_W.\$(so)"
14936
14937   ;;
14938 *)
14939
14940   ;;
14941 esac
14942
14943
14944
14945
14946
14947 if false; then
14948   ENABLE_PORTMIDISYN_TRUE=
14949   ENABLE_PORTMIDISYN_FALSE='#'
14950 else
14951   ENABLE_PORTMIDISYN_TRUE='#'
14952   ENABLE_PORTMIDISYN_FALSE=
14953 fi
14954
14955 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
14956 if test "${enable_portmidisyn+set}" = set; then
14957   enableval="$enable_portmidisyn"
14958   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
14959 fi;
14960 case "x$enable_portmidisyn" in
14961 xyes)
14962   cat >> confdefs.h <<EOF
14963 #define IA_PORTMIDISYN 1
14964 EOF
14965
14966
14967
14968 if true; then
14969   ENABLE_PORTMIDISYN_TRUE=
14970   ENABLE_PORTMIDISYN_FALSE='#'
14971 else
14972   ENABLE_PORTMIDISYN_TRUE='#'
14973   ENABLE_PORTMIDISYN_FALSE=
14974 fi
14975
14976    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
14977   ;;
14978 xdynamic)
14979   dynamic_targets="$dynamic_targets interface_P.\$(so)"
14980
14981   ;;
14982 *)
14983
14984   ;;
14985 esac
14986
14987
14988
14989
14990
14991 if false; then
14992   ENABLE_W32G_SYN_TRUE=
14993   ENABLE_W32G_SYN_FALSE='#'
14994 else
14995   ENABLE_W32G_SYN_TRUE='#'
14996   ENABLE_W32G_SYN_FALSE=
14997 fi
14998
14999 # Check whether --enable-winsyng or --disable-winsyng was given.
15000 if test "${enable_winsyng+set}" = set; then
15001   enableval="$enable_winsyng"
15002   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
15003 fi;
15004 case "x$enable_winsyng" in
15005 xyes)
15006   cat >> confdefs.h <<EOF
15007 #define IA_W32G_SYN 1
15008 EOF
15009
15010
15011
15012 if true; then
15013   ENABLE_W32G_SYN_TRUE=
15014   ENABLE_W32G_SYN_FALSE='#'
15015 else
15016   ENABLE_W32G_SYN_TRUE='#'
15017   ENABLE_W32G_SYN_FALSE=
15018 fi
15019
15020    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15021     lib_user32_opt='-luser32'
15022     LDFLAGS="-mwindows $LDFLAGS"
15023     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"
15024
15025   ;;
15026 xdynamic)
15027   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15028
15029   ;;
15030 *)
15031
15032   ;;
15033 esac
15034
15035
15036
15037
15038
15039
15040 if false; then
15041   ENABLE_W32GUI_TRUE=
15042   ENABLE_W32GUI_FALSE='#'
15043 else
15044   ENABLE_W32GUI_TRUE='#'
15045   ENABLE_W32GUI_FALSE=
15046 fi
15047
15048 # Check whether --enable-w32gui or --disable-w32gui was given.
15049 if test "${enable_w32gui+set}" = set; then
15050   enableval="$enable_w32gui"
15051   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
15052 fi;
15053 case "x$enable_w32gui" in
15054 xyes)
15055   cat >> confdefs.h <<EOF
15056 #define IA_W32GUI 1
15057 EOF
15058
15059
15060
15061 if true; then
15062   ENABLE_W32GUI_TRUE=
15063   ENABLE_W32GUI_FALSE='#'
15064 else
15065   ENABLE_W32GUI_TRUE='#'
15066   ENABLE_W32GUI_FALSE=
15067 fi
15068
15069    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15070     lib_user32_opt='-luser32'
15071     LDFLAGS="-mwindows $LDFLAGS"
15072     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"
15073
15074   ;;
15075 xdynamic)
15076   dynamic_targets="$dynamic_targets interface_w.\$(so)"
15077
15078   ;;
15079 *)
15080
15081   ;;
15082 esac
15083
15084
15085
15086
15087
15088 if false; then
15089   ENABLE_PLUGIN_TRUE=
15090   ENABLE_PLUGIN_FALSE='#'
15091 else
15092   ENABLE_PLUGIN_TRUE='#'
15093   ENABLE_PLUGIN_FALSE=
15094 fi
15095
15096 # Check whether --enable-ump or --disable-ump was given.
15097 if test "${enable_ump+set}" = set; then
15098   enableval="$enable_ump"
15099   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
15100         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
15101 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
15102    { (exit 1); exit 1; }; }
15103     fi
15104     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15105   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15106 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15107 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15108   echo $ECHO_N "(cached) $ECHO_C" >&6
15109 fi
15110 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15112 else
15113   # Is the header compilable?
15114 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15115 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 $ac_includes_default
15124 #include <X11/xpm.h>
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128   (eval $ac_compile) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -s conftest.$ac_objext'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138   ac_header_compiler=yes
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 ac_header_compiler=no
15144 fi
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147 echo "${ECHO_T}$ac_header_compiler" >&6
15148
15149 # Is the header present?
15150 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15151 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 #include <X11/xpm.h>
15160 _ACEOF
15161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } >/dev/null; then
15169   if test -s conftest.err; then
15170     ac_cpp_err=$ac_c_preproc_warn_flag
15171   else
15172     ac_cpp_err=
15173   fi
15174 else
15175   ac_cpp_err=yes
15176 fi
15177 if test -z "$ac_cpp_err"; then
15178   ac_header_preproc=yes
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183   ac_header_preproc=no
15184 fi
15185 rm -f conftest.err conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15187 echo "${ECHO_T}$ac_header_preproc" >&6
15188
15189 # So?  What about this header?
15190 case $ac_header_compiler:$ac_header_preproc in
15191   yes:no )
15192     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15193 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15194     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15195 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15196     (
15197       cat <<\_ASBOX
15198 ## ------------------------------------ ##
15199 ## Report this to bug-autoconf@gnu.org. ##
15200 ## ------------------------------------ ##
15201 _ASBOX
15202     ) |
15203       sed "s/^/$as_me: WARNING:     /" >&2
15204     ;;
15205   no:yes )
15206     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15208     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15210     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15212     (
15213       cat <<\_ASBOX
15214 ## ------------------------------------ ##
15215 ## Report this to bug-autoconf@gnu.org. ##
15216 ## ------------------------------------ ##
15217 _ASBOX
15218     ) |
15219       sed "s/^/$as_me: WARNING:     /" >&2
15220     ;;
15221 esac
15222 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15223 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15224 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227   ac_cv_header_X11_xpm_h=$ac_header_preproc
15228 fi
15229 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15230 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15231
15232 fi
15233 if test $ac_cv_header_X11_xpm_h = yes; then
15234   :
15235 else
15236   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15237 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15238    { (exit 1); exit 1; }; }
15239 fi
15240
15241
15242     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15243 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15244 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15245   echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247   ac_check_lib_save_LIBS=$LIBS
15248 LIBS="-lXpm  $LIBS"
15249 cat >conftest.$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256
15257 /* Override any gcc2 internal prototype to avoid an error.  */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 /* We use char because int might match the return type of a gcc2
15262    builtin and then its argument prototype would still apply.  */
15263 char XpmCreatePixmapFromData ();
15264 int
15265 main ()
15266 {
15267 XpmCreatePixmapFromData ();
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274   (eval $ac_link) 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -s conftest$ac_exeext'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15290 fi
15291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15293 fi
15294 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15295 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15296 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15297   :
15298 else
15299   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15300 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15301    { (exit 1); exit 1; }; }
15302 fi
15303
15304     if test "x$have_xext" = xyes; then
15305       lib_xext_opt=-lXext
15306     fi
15307     if test "x$have_xprelibs" = xyes; then
15308       lib_xprelibs_opt='-lSM -lICE'
15309     fi
15310     lib_xmu_opt=-lXmu
15311     lib_xt_opt=-lXt
15312    ;; esac
15313 fi;
15314 case "x$enable_ump" in
15315 xyes)
15316   cat >> confdefs.h <<EOF
15317 #define IA_PLUGIN 1
15318 EOF
15319
15320
15321
15322 if true; then
15323   ENABLE_PLUGIN_TRUE=
15324   ENABLE_PLUGIN_FALSE='#'
15325 else
15326   ENABLE_PLUGIN_TRUE='#'
15327   ENABLE_PLUGIN_FALSE=
15328 fi
15329
15330
15331   ;;
15332 xdynamic)
15333   dynamic_targets="$dynamic_targets interface_p.\$(so)"
15334
15335   ;;
15336 *)
15337
15338   ;;
15339 esac
15340
15341
15342
15343
15344 # Check whether --enable-offix or --disable-offix was given.
15345 if test "${enable_offix+set}" = set; then
15346   enableval="$enable_offix"
15347    if test "$enableval" = "yes"; then
15348       KEEPCPPFLAGS=$CPPFLAGS
15349       KEEPLIBS=$LIBS
15350       KEEPLDFLAGS=$LDFLAGS
15351       CPPFLAGS="$CPPFLAGS $offix_include_dir"
15352       LDFLAGS="$LDFLAGS $offix_lib_dir"
15353       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15354       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15355 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15356 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359   ac_check_lib_save_LIBS=$LIBS
15360 LIBS="-lDnd  $LIBS"
15361 cat >conftest.$ac_ext <<_ACEOF
15362 #line $LINENO "configure"
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368
15369 /* Override any gcc2 internal prototype to avoid an error.  */
15370 #ifdef __cplusplus
15371 extern "C"
15372 #endif
15373 /* We use char because int might match the return type of a gcc2
15374    builtin and then its argument prototype would still apply.  */
15375 char DndInitialize ();
15376 int
15377 main ()
15378 {
15379 DndInitialize ();
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386   (eval $ac_link) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -s conftest$ac_exeext'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; }; then
15396   ac_cv_lib_Dnd_DndInitialize=yes
15397 else
15398   echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401 ac_cv_lib_Dnd_DndInitialize=no
15402 fi
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 LIBS=$ac_check_lib_save_LIBS
15405 fi
15406 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15407 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15408 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15409
15410         LIBS=$KEEPLIBS
15411         lib_offix_opt="-lDnd"
15412
15413 cat >>confdefs.h <<\_ACEOF
15414 #define OFFIX 1
15415 _ACEOF
15416
15417
15418 else
15419    LDFLAGS=$KEEPLDFLAGS
15420         CPPFLAGS=$KEEPCPPFLAGS
15421         LIBS=$KEEPLIBS
15422
15423 fi
15424
15425     fi
15426
15427 fi;
15428
15429 # Check whether --enable-network or --disable-network was given.
15430 if test "${enable_network+set}" = set; then
15431   enableval="$enable_network"
15432    if test "$enableval" = "yes"; then
15433
15434 cat >>confdefs.h <<\_ACEOF
15435 #define SUPPORT_SOCKET 1
15436 _ACEOF
15437
15438     fi
15439 fi;
15440
15441
15442 if test "x$enable_network" = "xyes"; then
15443   ENABLE_NETWORK_TRUE=
15444   ENABLE_NETWORK_FALSE='#'
15445 else
15446   ENABLE_NETWORK_TRUE='#'
15447   ENABLE_NETWORK_FALSE=
15448 fi
15449
15450
15451 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15452 if test "${enable_spectrogram+set}" = set; then
15453   enableval="$enable_spectrogram"
15454    if test "$enableval" = "yes"; then
15455       if test "x$with_x" != xyes; then
15456         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15457 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15458    { (exit 1); exit 1; }; }
15459       fi
15460
15461 cat >>confdefs.h <<\_ACEOF
15462 #define SUPPORT_SOUNDSPEC 1
15463 _ACEOF
15464
15465     fi
15466 fi;
15467
15468
15469 if test "x$enable_spectrogram" = "xyes"; then
15470   ENABLE_SOUND_SPEC_TRUE=
15471   ENABLE_SOUND_SPEC_FALSE='#'
15472 else
15473   ENABLE_SOUND_SPEC_TRUE='#'
15474   ENABLE_SOUND_SPEC_FALSE=
15475 fi
15476
15477
15478 # Check whether --enable-spline or --disable-spline was given.
15479 if test "${enable_spline+set}" = set; then
15480   enableval="$enable_spline"
15481    case "x$enableval" in
15482       xlinear)
15483
15484 cat >>confdefs.h <<\_ACEOF
15485 #define LINEAR_INTERPOLATION 1
15486 _ACEOF
15487
15488         ;;
15489       xcubic)
15490
15491 cat >>confdefs.h <<\_ACEOF
15492 #define CSPLINE_INTERPOLATION 1
15493 _ACEOF
15494
15495         ;;
15496       xlagrange)
15497
15498 cat >>confdefs.h <<\_ACEOF
15499 #define LAGRANGE_INTERPOLATION 1
15500 _ACEOF
15501
15502         ;;
15503       xnewton)
15504
15505 cat >>confdefs.h <<\_ACEOF
15506 #define NEWTON_INTERPOLATION 1
15507 _ACEOF
15508
15509         ;;
15510       xgauss)
15511
15512 cat >>confdefs.h <<\_ACEOF
15513 #define GAUSS_INTERPOLATION 1
15514 _ACEOF
15515
15516         ;;
15517       xno)
15518
15519 cat >>confdefs.h <<\_ACEOF
15520 #define NO_INTERPOLATION 1
15521 _ACEOF
15522
15523         ;;
15524       *)
15525         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15526 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15527    { (exit 1); exit 1; }; }
15528         ;;
15529     esac
15530 fi;
15531
15532 # Check whether --enable-wrd or --disable-wrd was given.
15533 if test "${enable_wrd+set}" = set; then
15534   enableval="$enable_wrd"
15535    if test "$enableval" = "yes"; then
15536       if test "x$with_x" != xyes; then
15537         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15538 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15539    { (exit 1); exit 1; }; }
15540       fi
15541
15542 cat >>confdefs.h <<\_ACEOF
15543 #define WRDT_X 1
15544 _ACEOF
15545
15546       enable_sherry_wrd=yes
15547       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15548 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15549 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-lz  $LIBS"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line $LINENO "configure"
15556 /* confdefs.h.  */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h.  */
15561
15562 /* Override any gcc2 internal prototype to avoid an error.  */
15563 #ifdef __cplusplus
15564 extern "C"
15565 #endif
15566 /* We use char because int might match the return type of a gcc2
15567    builtin and then its argument prototype would still apply.  */
15568 char zlibVersion ();
15569 int
15570 main ()
15571 {
15572 zlibVersion ();
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579   (eval $ac_link) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -s conftest$ac_exeext'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_cv_lib_z_zlibVersion=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 ac_cv_lib_z_zlibVersion=no
15595 fi
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15598 fi
15599 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15600 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15601 if test $ac_cv_lib_z_zlibVersion = yes; then
15602   :
15603 else
15604   enable_sherry_wrd=no
15605 fi
15606
15607       if test "${ac_cv_header_png_h+set}" = set; then
15608   echo "$as_me:$LINENO: checking for png.h" >&5
15609 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15610 if test "${ac_cv_header_png_h+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 fi
15613 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15614 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15615 else
15616   # Is the header compilable?
15617 echo "$as_me:$LINENO: checking png.h usability" >&5
15618 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 $ac_includes_default
15627 #include <png.h>
15628 _ACEOF
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631   (eval $ac_compile) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); } &&
15635          { ac_try='test -s conftest.$ac_objext'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641   ac_header_compiler=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_compiler=no
15647 fi
15648 rm -f conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15650 echo "${ECHO_T}$ac_header_compiler" >&6
15651
15652 # Is the header present?
15653 echo "$as_me:$LINENO: checking png.h presence" >&5
15654 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 #include <png.h>
15663 _ACEOF
15664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } >/dev/null; then
15672   if test -s conftest.err; then
15673     ac_cpp_err=$ac_c_preproc_warn_flag
15674   else
15675     ac_cpp_err=
15676   fi
15677 else
15678   ac_cpp_err=yes
15679 fi
15680 if test -z "$ac_cpp_err"; then
15681   ac_header_preproc=yes
15682 else
15683   echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15685
15686   ac_header_preproc=no
15687 fi
15688 rm -f conftest.err conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15690 echo "${ECHO_T}$ac_header_preproc" >&6
15691
15692 # So?  What about this header?
15693 case $ac_header_compiler:$ac_header_preproc in
15694   yes:no )
15695     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15696 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15698 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15699     (
15700       cat <<\_ASBOX
15701 ## ------------------------------------ ##
15702 ## Report this to bug-autoconf@gnu.org. ##
15703 ## ------------------------------------ ##
15704 _ASBOX
15705     ) |
15706       sed "s/^/$as_me: WARNING:     /" >&2
15707     ;;
15708   no:yes )
15709     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15711     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15713     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15714 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15715     (
15716       cat <<\_ASBOX
15717 ## ------------------------------------ ##
15718 ## Report this to bug-autoconf@gnu.org. ##
15719 ## ------------------------------------ ##
15720 _ASBOX
15721     ) |
15722       sed "s/^/$as_me: WARNING:     /" >&2
15723     ;;
15724 esac
15725 echo "$as_me:$LINENO: checking for png.h" >&5
15726 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15727 if test "${ac_cv_header_png_h+set}" = set; then
15728   echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730   ac_cv_header_png_h=$ac_header_preproc
15731 fi
15732 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15733 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15734
15735 fi
15736 if test $ac_cv_header_png_h = yes; then
15737   :
15738 else
15739   enable_sherry_wrd=no
15740 fi
15741
15742
15743       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
15744 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
15745 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   ac_check_lib_save_LIBS=$LIBS
15749 LIBS="-lpng -lz $LIBS"
15750 cat >conftest.$ac_ext <<_ACEOF
15751 #line $LINENO "configure"
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757
15758 /* Override any gcc2 internal prototype to avoid an error.  */
15759 #ifdef __cplusplus
15760 extern "C"
15761 #endif
15762 /* We use char because int might match the return type of a gcc2
15763    builtin and then its argument prototype would still apply.  */
15764 char png_init_io ();
15765 int
15766 main ()
15767 {
15768 png_init_io ();
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15775   (eval $ac_link) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -s conftest$ac_exeext'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; }; then
15785   ac_cv_lib_png_png_init_io=yes
15786 else
15787   echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790 ac_cv_lib_png_png_init_io=no
15791 fi
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15794 fi
15795 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
15796 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
15797 if test $ac_cv_lib_png_png_init_io = yes; then
15798   :
15799 else
15800   enable_sherry_wrd=no
15801 fi
15802
15803       if test "$enable_sherry_wrd" = yes; then
15804
15805 cat >>confdefs.h <<\_ACEOF
15806 #define ENABLE_SHERRY 1
15807 _ACEOF
15808
15809         lib_zip_opt=-lz
15810         lib_png_opt=-lpng
15811       else
15812          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
15813 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
15814       fi
15815       if test "x$have_xext" = xyes; then
15816         lib_xext_opt=-lXext
15817       fi
15818     fi
15819 fi;
15820
15821
15822
15823 #
15824 # Finish up
15825 #
15826
15827
15828
15829 if test "x$enable_wrd" = "xyes"; then
15830   ENABLE_WRD_TRUE=
15831   ENABLE_WRD_FALSE='#'
15832 else
15833   ENABLE_WRD_TRUE='#'
15834   ENABLE_WRD_FALSE=
15835 fi
15836
15837
15838
15839
15840 if test "x$CYGNUS" = xyes; then
15841   CYGNUS_TRUE=
15842   CYGNUS_FALSE='#'
15843 else
15844   CYGNUS_TRUE='#'
15845   CYGNUS_FALSE=
15846 fi
15847
15848
15849
15850 if test "x$MINGW" = xyes; then
15851   MINGW_TRUE=
15852   MINGW_FALSE='#'
15853 else
15854   MINGW_TRUE='#'
15855   MINGW_FALSE=
15856 fi
15857
15858
15859
15860 if test "x$W32READDIR" = "xyes"; then
15861   W32READDIR_TRUE=
15862   W32READDIR_FALSE='#'
15863 else
15864   W32READDIR_TRUE='#'
15865   W32READDIR_FALSE=
15866 fi
15867
15868
15869 rm -f wordtmp >/dev/null 2>&1
15870 val=''
15871 for f in $LDFLAGS; do
15872   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15873   :
15874 else
15875   echo $f >>wordtmp; val="$val $f"
15876 fi
15877
15878 done
15879 LDFLAGS="$val"
15880 rm -f wordtmp >/dev/null 2>&1
15881
15882 rm -f wordtmp >/dev/null 2>&1
15883 val=''
15884 for f in $SHLDFLAGS; do
15885   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15886   :
15887 else
15888   echo $f >>wordtmp; val="$val $f"
15889 fi
15890
15891 done
15892 SHLDFLAGS="$val"
15893 rm -f wordtmp >/dev/null 2>&1
15894
15895 rm -f wordtmp >/dev/null 2>&1
15896 val=''
15897 for f in $EXTRACFLAGS $CFLAGS; do
15898   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15899   :
15900 else
15901   echo $f >>wordtmp; val="$val $f"
15902 fi
15903
15904 done
15905 CFLAGS="$val"
15906 rm -f wordtmp >/dev/null 2>&1
15907
15908 rm -f wordtmp >/dev/null 2>&1
15909 val=''
15910 for f in $CPPFLAGS $EXTRADEFS; do
15911   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15912   :
15913 else
15914   echo $f >>wordtmp; val="$val $f"
15915 fi
15916
15917 done
15918 CPPFLAGS="$val"
15919 rm -f wordtmp >/dev/null 2>&1
15920
15921
15922 if test "x$oss_device" != x; then
15923
15924 cat >>confdefs.h <<_ACEOF
15925 #define OSS_DEVICE "$oss_device"
15926 _ACEOF
15927
15928 fi
15929
15930 if test "x$TIMIDITY_OUTPUT_ID" != x; then
15931
15932 cat >>confdefs.h <<_ACEOF
15933 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
15934 _ACEOF
15935
15936 fi
15937
15938 if test "x$with_x" = xyes; then
15939     LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
15940 fi
15941 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
15942 SHLD="$SHLD $SHLDFLAGS"
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962                                                                                                                                                                 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile"
15963
15964 cat >confcache <<\_ACEOF
15965 # This file is a shell script that caches the results of configure
15966 # tests run on this system so they can be shared between configure
15967 # scripts and configure runs, see configure's option --config-cache.
15968 # It is not useful on other systems.  If it contains results you don't
15969 # want to keep, you may remove or edit it.
15970 #
15971 # config.status only pays attention to the cache file if you give it
15972 # the --recheck option to rerun configure.
15973 #
15974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15976 # following values.
15977
15978 _ACEOF
15979
15980 # The following way of writing the cache mishandles newlines in values,
15981 # but we know of no workaround that is simple, portable, and efficient.
15982 # So, don't put newlines in cache variables' values.
15983 # Ultrix sh set writes to stderr and can't be redirected directly,
15984 # and sets the high bit in the cache file unless we assign to the vars.
15985 {
15986   (set) 2>&1 |
15987     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15988     *ac_space=\ *)
15989       # `set' does not quote correctly, so add quotes (double-quote
15990       # substitution turns \\\\ into \\, and sed turns \\ into \).
15991       sed -n \
15992         "s/'/'\\\\''/g;
15993           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15994       ;;
15995     *)
15996       # `set' quotes correctly as required by POSIX, so do not add quotes.
15997       sed -n \
15998         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15999       ;;
16000     esac;
16001 } |
16002   sed '
16003      t clear
16004      : clear
16005      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16006      t end
16007      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16008      : end' >>confcache
16009 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16010   if test -w $cache_file; then
16011     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16012     cat confcache >$cache_file
16013   else
16014     echo "not updating unwritable cache $cache_file"
16015   fi
16016 fi
16017 rm -f confcache
16018
16019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16020 # Let make expand exec_prefix.
16021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16022
16023 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16024 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16025 # trailing colons and then remove the whole line if VPATH becomes empty
16026 # (actually we leave an empty line to preserve line numbers).
16027 if test "x$srcdir" = x.; then
16028   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16029 s/:*\$(srcdir):*/:/;
16030 s/:*\${srcdir}:*/:/;
16031 s/:*@srcdir@:*/:/;
16032 s/^\([^=]*=[    ]*\):*/\1/;
16033 s/:*$//;
16034 s/^[^=]*=[      ]*$//;
16035 }'
16036 fi
16037
16038 DEFS=-DHAVE_CONFIG_H
16039
16040 ac_libobjs=
16041 ac_ltlibobjs=
16042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16043   # 1. Remove the extension, and $U if already installed.
16044   ac_i=`echo "$ac_i" |
16045          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16046   # 2. Add them.
16047   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16048   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16049 done
16050 LIBOBJS=$ac_libobjs
16051
16052 LTLIBOBJS=$ac_ltlibobjs
16053
16054
16055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16056   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16057 Usually this means the macro was only invoked conditionally." >&5
16058 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16059 Usually this means the macro was only invoked conditionally." >&2;}
16060    { (exit 1); exit 1; }; }
16061 fi
16062 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16063   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16064 Usually this means the macro was only invoked conditionally." >&5
16065 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16066 Usually this means the macro was only invoked conditionally." >&2;}
16067    { (exit 1); exit 1; }; }
16068 fi
16069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16070   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16071 Usually this means the macro was only invoked conditionally." >&5
16072 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16073 Usually this means the macro was only invoked conditionally." >&2;}
16074    { (exit 1); exit 1; }; }
16075 fi
16076 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16077   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16078 Usually this means the macro was only invoked conditionally." >&5
16079 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16080 Usually this means the macro was only invoked conditionally." >&2;}
16081    { (exit 1); exit 1; }; }
16082 fi
16083 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16084   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16085 Usually this means the macro was only invoked conditionally." >&5
16086 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16087 Usually this means the macro was only invoked conditionally." >&2;}
16088    { (exit 1); exit 1; }; }
16089 fi
16090 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16091   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16092 Usually this means the macro was only invoked conditionally." >&5
16093 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16094 Usually this means the macro was only invoked conditionally." >&2;}
16095    { (exit 1); exit 1; }; }
16096 fi
16097 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16098   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16099 Usually this means the macro was only invoked conditionally." >&5
16100 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16101 Usually this means the macro was only invoked conditionally." >&2;}
16102    { (exit 1); exit 1; }; }
16103 fi
16104 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16105   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16106 Usually this means the macro was only invoked conditionally." >&5
16107 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16108 Usually this means the macro was only invoked conditionally." >&2;}
16109    { (exit 1); exit 1; }; }
16110 fi
16111 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16112   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16113 Usually this means the macro was only invoked conditionally." >&5
16114 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16115 Usually this means the macro was only invoked conditionally." >&2;}
16116    { (exit 1); exit 1; }; }
16117 fi
16118 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16119   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16120 Usually this means the macro was only invoked conditionally." >&5
16121 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16122 Usually this means the macro was only invoked conditionally." >&2;}
16123    { (exit 1); exit 1; }; }
16124 fi
16125 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16126   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16127 Usually this means the macro was only invoked conditionally." >&5
16128 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16129 Usually this means the macro was only invoked conditionally." >&2;}
16130    { (exit 1); exit 1; }; }
16131 fi
16132 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16133   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16134 Usually this means the macro was only invoked conditionally." >&5
16135 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16136 Usually this means the macro was only invoked conditionally." >&2;}
16137    { (exit 1); exit 1; }; }
16138 fi
16139 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16140   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16141 Usually this means the macro was only invoked conditionally." >&5
16142 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16143 Usually this means the macro was only invoked conditionally." >&2;}
16144    { (exit 1); exit 1; }; }
16145 fi
16146 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16147   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16148 Usually this means the macro was only invoked conditionally." >&5
16149 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16150 Usually this means the macro was only invoked conditionally." >&2;}
16151    { (exit 1); exit 1; }; }
16152 fi
16153 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16154   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16155 Usually this means the macro was only invoked conditionally." >&5
16156 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16157 Usually this means the macro was only invoked conditionally." >&2;}
16158    { (exit 1); exit 1; }; }
16159 fi
16160 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16161   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16162 Usually this means the macro was only invoked conditionally." >&5
16163 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16164 Usually this means the macro was only invoked conditionally." >&2;}
16165    { (exit 1); exit 1; }; }
16166 fi
16167 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16168   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16169 Usually this means the macro was only invoked conditionally." >&5
16170 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16171 Usually this means the macro was only invoked conditionally." >&2;}
16172    { (exit 1); exit 1; }; }
16173 fi
16174 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16175   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16176 Usually this means the macro was only invoked conditionally." >&5
16177 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16178 Usually this means the macro was only invoked conditionally." >&2;}
16179    { (exit 1); exit 1; }; }
16180 fi
16181 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16182   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16183 Usually this means the macro was only invoked conditionally." >&5
16184 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16185 Usually this means the macro was only invoked conditionally." >&2;}
16186    { (exit 1); exit 1; }; }
16187 fi
16188 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16189   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16190 Usually this means the macro was only invoked conditionally." >&5
16191 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16192 Usually this means the macro was only invoked conditionally." >&2;}
16193    { (exit 1); exit 1; }; }
16194 fi
16195 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16196   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16197 Usually this means the macro was only invoked conditionally." >&5
16198 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16199 Usually this means the macro was only invoked conditionally." >&2;}
16200    { (exit 1); exit 1; }; }
16201 fi
16202 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16203   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16204 Usually this means the macro was only invoked conditionally." >&5
16205 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16206 Usually this means the macro was only invoked conditionally." >&2;}
16207    { (exit 1); exit 1; }; }
16208 fi
16209 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16210   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16211 Usually this means the macro was only invoked conditionally." >&5
16212 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16213 Usually this means the macro was only invoked conditionally." >&2;}
16214    { (exit 1); exit 1; }; }
16215 fi
16216 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16217   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16218 Usually this means the macro was only invoked conditionally." >&5
16219 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16220 Usually this means the macro was only invoked conditionally." >&2;}
16221    { (exit 1); exit 1; }; }
16222 fi
16223 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16224   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16225 Usually this means the macro was only invoked conditionally." >&5
16226 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16227 Usually this means the macro was only invoked conditionally." >&2;}
16228    { (exit 1); exit 1; }; }
16229 fi
16230 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16231   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16232 Usually this means the macro was only invoked conditionally." >&5
16233 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16234 Usually this means the macro was only invoked conditionally." >&2;}
16235    { (exit 1); exit 1; }; }
16236 fi
16237 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16238   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16239 Usually this means the macro was only invoked conditionally." >&5
16240 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16241 Usually this means the macro was only invoked conditionally." >&2;}
16242    { (exit 1); exit 1; }; }
16243 fi
16244 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16245   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16246 Usually this means the macro was only invoked conditionally." >&5
16247 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16248 Usually this means the macro was only invoked conditionally." >&2;}
16249    { (exit 1); exit 1; }; }
16250 fi
16251 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16252   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16253 Usually this means the macro was only invoked conditionally." >&5
16254 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16255 Usually this means the macro was only invoked conditionally." >&2;}
16256    { (exit 1); exit 1; }; }
16257 fi
16258 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16259   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16260 Usually this means the macro was only invoked conditionally." >&5
16261 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16262 Usually this means the macro was only invoked conditionally." >&2;}
16263    { (exit 1); exit 1; }; }
16264 fi
16265 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16266   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16267 Usually this means the macro was only invoked conditionally." >&5
16268 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16269 Usually this means the macro was only invoked conditionally." >&2;}
16270    { (exit 1); exit 1; }; }
16271 fi
16272 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16273   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16274 Usually this means the macro was only invoked conditionally." >&5
16275 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16276 Usually this means the macro was only invoked conditionally." >&2;}
16277    { (exit 1); exit 1; }; }
16278 fi
16279 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16280   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16281 Usually this means the macro was only invoked conditionally." >&5
16282 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16283 Usually this means the macro was only invoked conditionally." >&2;}
16284    { (exit 1); exit 1; }; }
16285 fi
16286 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16287   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16288 Usually this means the macro was only invoked conditionally." >&5
16289 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16290 Usually this means the macro was only invoked conditionally." >&2;}
16291    { (exit 1); exit 1; }; }
16292 fi
16293 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16294   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16295 Usually this means the macro was only invoked conditionally." >&5
16296 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16297 Usually this means the macro was only invoked conditionally." >&2;}
16298    { (exit 1); exit 1; }; }
16299 fi
16300 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16301   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16302 Usually this means the macro was only invoked conditionally." >&5
16303 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16304 Usually this means the macro was only invoked conditionally." >&2;}
16305    { (exit 1); exit 1; }; }
16306 fi
16307 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16308   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16309 Usually this means the macro was only invoked conditionally." >&5
16310 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16311 Usually this means the macro was only invoked conditionally." >&2;}
16312    { (exit 1); exit 1; }; }
16313 fi
16314 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16315   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16316 Usually this means the macro was only invoked conditionally." >&5
16317 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16318 Usually this means the macro was only invoked conditionally." >&2;}
16319    { (exit 1); exit 1; }; }
16320 fi
16321 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16322   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16323 Usually this means the macro was only invoked conditionally." >&5
16324 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16325 Usually this means the macro was only invoked conditionally." >&2;}
16326    { (exit 1); exit 1; }; }
16327 fi
16328 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16329   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16330 Usually this means the macro was only invoked conditionally." >&5
16331 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16332 Usually this means the macro was only invoked conditionally." >&2;}
16333    { (exit 1); exit 1; }; }
16334 fi
16335 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16336   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16337 Usually this means the macro was only invoked conditionally." >&5
16338 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16339 Usually this means the macro was only invoked conditionally." >&2;}
16340    { (exit 1); exit 1; }; }
16341 fi
16342 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16343   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16344 Usually this means the macro was only invoked conditionally." >&5
16345 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16346 Usually this means the macro was only invoked conditionally." >&2;}
16347    { (exit 1); exit 1; }; }
16348 fi
16349 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16350   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16351 Usually this means the macro was only invoked conditionally." >&5
16352 echo "$as_me: error: conditional \"MINGW\" was never defined.
16353 Usually this means the macro was only invoked conditionally." >&2;}
16354    { (exit 1); exit 1; }; }
16355 fi
16356 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16357   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16358 Usually this means the macro was only invoked conditionally." >&5
16359 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16360 Usually this means the macro was only invoked conditionally." >&2;}
16361    { (exit 1); exit 1; }; }
16362 fi
16363
16364 : ${CONFIG_STATUS=./config.status}
16365 ac_clean_files_save=$ac_clean_files
16366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16369 cat >$CONFIG_STATUS <<_ACEOF
16370 #! $SHELL
16371 # Generated by $as_me.
16372 # Run this file to recreate the current configuration.
16373 # Compiler output produced by configure, useful for debugging
16374 # configure, is in config.log if it exists.
16375
16376 debug=false
16377 ac_cs_recheck=false
16378 ac_cs_silent=false
16379 SHELL=\${CONFIG_SHELL-$SHELL}
16380 _ACEOF
16381
16382 cat >>$CONFIG_STATUS <<\_ACEOF
16383 ## --------------------- ##
16384 ## M4sh Initialization.  ##
16385 ## --------------------- ##
16386
16387 # Be Bourne compatible
16388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16389   emulate sh
16390   NULLCMD=:
16391   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16392   # is contrary to our usage.  Disable this feature.
16393   alias -g '${1+"$@"}'='"$@"'
16394 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16395   set -o posix
16396 fi
16397
16398 # Support unset when possible.
16399 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16400   as_unset=unset
16401 else
16402   as_unset=false
16403 fi
16404
16405
16406 # Work around bugs in pre-3.0 UWIN ksh.
16407 $as_unset ENV MAIL MAILPATH
16408 PS1='$ '
16409 PS2='> '
16410 PS4='+ '
16411
16412 # NLS nuisances.
16413 for as_var in \
16414   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16415   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16416   LC_TELEPHONE LC_TIME
16417 do
16418   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16419     eval $as_var=C; export $as_var
16420   else
16421     $as_unset $as_var
16422   fi
16423 done
16424
16425 # Required to use basename.
16426 if expr a : '\(a\)' >/dev/null 2>&1; then
16427   as_expr=expr
16428 else
16429   as_expr=false
16430 fi
16431
16432 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16433   as_basename=basename
16434 else
16435   as_basename=false
16436 fi
16437
16438
16439 # Name of the executable.
16440 as_me=`$as_basename "$0" ||
16441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16442          X"$0" : 'X\(//\)$' \| \
16443          X"$0" : 'X\(/\)$' \| \
16444          .     : '\(.\)' 2>/dev/null ||
16445 echo X/"$0" |
16446     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16447           /^X\/\(\/\/\)$/{ s//\1/; q; }
16448           /^X\/\(\/\).*/{ s//\1/; q; }
16449           s/.*/./; q'`
16450
16451
16452 # PATH needs CR, and LINENO needs CR and PATH.
16453 # Avoid depending upon Character Ranges.
16454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16457 as_cr_digits='0123456789'
16458 as_cr_alnum=$as_cr_Letters$as_cr_digits
16459
16460 # The user is always right.
16461 if test "${PATH_SEPARATOR+set}" != set; then
16462   echo "#! /bin/sh" >conf$$.sh
16463   echo  "exit 0"   >>conf$$.sh
16464   chmod +x conf$$.sh
16465   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16466     PATH_SEPARATOR=';'
16467   else
16468     PATH_SEPARATOR=:
16469   fi
16470   rm -f conf$$.sh
16471 fi
16472
16473
16474   as_lineno_1=$LINENO
16475   as_lineno_2=$LINENO
16476   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16477   test "x$as_lineno_1" != "x$as_lineno_2" &&
16478   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16479   # Find who we are.  Look in the path if we contain no path at all
16480   # relative or not.
16481   case $0 in
16482     *[\\/]* ) as_myself=$0 ;;
16483     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16485 do
16486   IFS=$as_save_IFS
16487   test -z "$as_dir" && as_dir=.
16488   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16489 done
16490
16491        ;;
16492   esac
16493   # We did not find ourselves, most probably we were run as `sh COMMAND'
16494   # in which case we are not to be found in the path.
16495   if test "x$as_myself" = x; then
16496     as_myself=$0
16497   fi
16498   if test ! -f "$as_myself"; then
16499     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16500 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16501    { (exit 1); exit 1; }; }
16502   fi
16503   case $CONFIG_SHELL in
16504   '')
16505     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16507 do
16508   IFS=$as_save_IFS
16509   test -z "$as_dir" && as_dir=.
16510   for as_base in sh bash ksh sh5; do
16511          case $as_dir in
16512          /*)
16513            if ("$as_dir/$as_base" -c '
16514   as_lineno_1=$LINENO
16515   as_lineno_2=$LINENO
16516   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16517   test "x$as_lineno_1" != "x$as_lineno_2" &&
16518   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16519              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16520              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16521              CONFIG_SHELL=$as_dir/$as_base
16522              export CONFIG_SHELL
16523              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16524            fi;;
16525          esac
16526        done
16527 done
16528 ;;
16529   esac
16530
16531   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16532   # uniformly replaced by the line number.  The first 'sed' inserts a
16533   # line-number line before each line; the second 'sed' does the real
16534   # work.  The second script uses 'N' to pair each line-number line
16535   # with the numbered line, and appends trailing '-' during
16536   # substitution so that $LINENO is not a special case at line end.
16537   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16538   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16539   sed '=' <$as_myself |
16540     sed '
16541       N
16542       s,$,-,
16543       : loop
16544       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16545       t loop
16546       s,-$,,
16547       s,^['$as_cr_digits']*\n,,
16548     ' >$as_me.lineno &&
16549   chmod +x $as_me.lineno ||
16550     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16551 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16552    { (exit 1); exit 1; }; }
16553
16554   # Don't try to exec as it changes $[0], causing all sort of problems
16555   # (the dirname of $[0] is not the place where we might find the
16556   # original and so on.  Autoconf is especially sensible to this).
16557   . ./$as_me.lineno
16558   # Exit status is that of the last command.
16559   exit
16560 }
16561
16562
16563 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16564   *c*,-n*) ECHO_N= ECHO_C='
16565 ' ECHO_T='      ' ;;
16566   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16567   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16568 esac
16569
16570 if expr a : '\(a\)' >/dev/null 2>&1; then
16571   as_expr=expr
16572 else
16573   as_expr=false
16574 fi
16575
16576 rm -f conf$$ conf$$.exe conf$$.file
16577 echo >conf$$.file
16578 if ln -s conf$$.file conf$$ 2>/dev/null; then
16579   # We could just check for DJGPP; but this test a) works b) is more generic
16580   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16581   if test -f conf$$.exe; then
16582     # Don't use ln at all; we don't have any links
16583     as_ln_s='cp -p'
16584   else
16585     as_ln_s='ln -s'
16586   fi
16587 elif ln conf$$.file conf$$ 2>/dev/null; then
16588   as_ln_s=ln
16589 else
16590   as_ln_s='cp -p'
16591 fi
16592 rm -f conf$$ conf$$.exe conf$$.file
16593
16594 if mkdir -p . 2>/dev/null; then
16595   as_mkdir_p=:
16596 else
16597   as_mkdir_p=false
16598 fi
16599
16600 as_executable_p="test -f"
16601
16602 # Sed expression to map a string onto a valid CPP name.
16603 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16604
16605 # Sed expression to map a string onto a valid variable name.
16606 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16607
16608
16609 # IFS
16610 # We need space, tab and new line, in precisely that order.
16611 as_nl='
16612 '
16613 IFS="   $as_nl"
16614
16615 # CDPATH.
16616 $as_unset CDPATH
16617
16618 exec 6>&1
16619
16620 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16621 # report actual input values of CONFIG_FILES etc. instead of their
16622 # values after options handling.  Logging --version etc. is OK.
16623 exec 5>>config.log
16624 {
16625   echo
16626   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16627 ## Running $as_me. ##
16628 _ASBOX
16629 } >&5
16630 cat >&5 <<_CSEOF
16631
16632 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16633 generated by GNU Autoconf 2.56.  Invocation command line was
16634
16635   CONFIG_FILES    = $CONFIG_FILES
16636   CONFIG_HEADERS  = $CONFIG_HEADERS
16637   CONFIG_LINKS    = $CONFIG_LINKS
16638   CONFIG_COMMANDS = $CONFIG_COMMANDS
16639   $ $0 $@
16640
16641 _CSEOF
16642 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16643 echo >&5
16644 _ACEOF
16645
16646 # Files that config.status was made for.
16647 if test -n "$ac_config_files"; then
16648   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16649 fi
16650
16651 if test -n "$ac_config_headers"; then
16652   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16653 fi
16654
16655 if test -n "$ac_config_links"; then
16656   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16657 fi
16658
16659 if test -n "$ac_config_commands"; then
16660   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16661 fi
16662
16663 cat >>$CONFIG_STATUS <<\_ACEOF
16664
16665 ac_cs_usage="\
16666 \`$as_me' instantiates files from templates according to the
16667 current configuration.
16668
16669 Usage: $0 [OPTIONS] [FILE]...
16670
16671   -h, --help       print this help, then exit
16672   -V, --version    print version number, then exit
16673   -q, --quiet      do not print progress messages
16674   -d, --debug      don't remove temporary files
16675       --recheck    update $as_me by reconfiguring in the same conditions
16676   --file=FILE[:TEMPLATE]
16677                    instantiate the configuration file FILE
16678   --header=FILE[:TEMPLATE]
16679                    instantiate the configuration header FILE
16680
16681 Configuration files:
16682 $config_files
16683
16684 Configuration headers:
16685 $config_headers
16686
16687 Configuration commands:
16688 $config_commands
16689
16690 Report bugs to <bug-autoconf@gnu.org>."
16691 _ACEOF
16692
16693 cat >>$CONFIG_STATUS <<_ACEOF
16694 ac_cs_version="\\
16695 TiMidity++ config.status 2.12.0-pre1b
16696 configured by $0, generated by GNU Autoconf 2.56,
16697   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16698
16699 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16700 Free Software Foundation, Inc.
16701 This config.status script is free software; the Free Software Foundation
16702 gives unlimited permission to copy, distribute and modify it."
16703 srcdir=$srcdir
16704 INSTALL="$INSTALL"
16705 _ACEOF
16706
16707 cat >>$CONFIG_STATUS <<\_ACEOF
16708 # If no file are specified by the user, then we need to provide default
16709 # value.  By we need to know if files were specified by the user.
16710 ac_need_defaults=:
16711 while test $# != 0
16712 do
16713   case $1 in
16714   --*=*)
16715     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16716     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16717     ac_shift=:
16718     ;;
16719   -*)
16720     ac_option=$1
16721     ac_optarg=$2
16722     ac_shift=shift
16723     ;;
16724   *) # This is not an option, so the user has probably given explicit
16725      # arguments.
16726      ac_option=$1
16727      ac_need_defaults=false;;
16728   esac
16729
16730   case $ac_option in
16731   # Handling of the options.
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<\_ACEOF
16734   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16735     ac_cs_recheck=: ;;
16736   --version | --vers* | -V )
16737     echo "$ac_cs_version"; exit 0 ;;
16738   --he | --h)
16739     # Conflict between --help and --header
16740     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16741 Try \`$0 --help' for more information." >&5
16742 echo "$as_me: error: ambiguous option: $1
16743 Try \`$0 --help' for more information." >&2;}
16744    { (exit 1); exit 1; }; };;
16745   --help | --hel | -h )
16746     echo "$ac_cs_usage"; exit 0 ;;
16747   --debug | --d* | -d )
16748     debug=: ;;
16749   --file | --fil | --fi | --f )
16750     $ac_shift
16751     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16752     ac_need_defaults=false;;
16753   --header | --heade | --head | --hea )
16754     $ac_shift
16755     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16756     ac_need_defaults=false;;
16757   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16758   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16759     ac_cs_silent=: ;;
16760
16761   # This is an error.
16762   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16763 Try \`$0 --help' for more information." >&5
16764 echo "$as_me: error: unrecognized option: $1
16765 Try \`$0 --help' for more information." >&2;}
16766    { (exit 1); exit 1; }; } ;;
16767
16768   *) ac_config_targets="$ac_config_targets $1" ;;
16769
16770   esac
16771   shift
16772 done
16773
16774 ac_configure_extra_args=
16775
16776 if $ac_cs_silent; then
16777   exec 6>/dev/null
16778   ac_configure_extra_args="$ac_configure_extra_args --silent"
16779 fi
16780
16781 _ACEOF
16782 cat >>$CONFIG_STATUS <<_ACEOF
16783 if \$ac_cs_recheck; then
16784   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16785   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16786 fi
16787
16788 _ACEOF
16789
16790 cat >>$CONFIG_STATUS <<_ACEOF
16791 #
16792 # INIT-COMMANDS section.
16793 #
16794
16795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16796
16797 _ACEOF
16798
16799
16800
16801 cat >>$CONFIG_STATUS <<\_ACEOF
16802 for ac_config_target in $ac_config_targets
16803 do
16804   case "$ac_config_target" in
16805   # Handling of arguments.
16806   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16807   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
16808   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
16809   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
16810   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16811   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
16812   "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
16813   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
16814   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
16815   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
16816   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
16817   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
16818   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
16819   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
16820   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16821   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
16822   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16823   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16824   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
16825   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16826 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16827    { (exit 1); exit 1; }; };;
16828   esac
16829 done
16830
16831 # If the user did not use the arguments to specify the items to instantiate,
16832 # then the envvar interface is used.  Set only those that are not.
16833 # We use the long form for the default assignment because of an extremely
16834 # bizarre bug on SunOS 4.1.3.
16835 if $ac_need_defaults; then
16836   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16837   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16838   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16839 fi
16840
16841 # Have a temporary directory for convenience.  Make it in the build tree
16842 # simply because there is no reason to put it here, and in addition,
16843 # creating and moving files from /tmp can sometimes cause problems.
16844 # Create a temporary directory, and hook for its removal unless debugging.
16845 $debug ||
16846 {
16847   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16848   trap '{ (exit 1); exit 1; }' 1 2 13 15
16849 }
16850
16851 # Create a (secure) tmp directory for tmp files.
16852
16853 {
16854   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16855   test -n "$tmp" && test -d "$tmp"
16856 }  ||
16857 {
16858   tmp=./confstat$$-$RANDOM
16859   (umask 077 && mkdir $tmp)
16860 } ||
16861 {
16862    echo "$me: cannot create a temporary directory in ." >&2
16863    { (exit 1); exit 1; }
16864 }
16865
16866 _ACEOF
16867
16868 cat >>$CONFIG_STATUS <<_ACEOF
16869
16870 #
16871 # CONFIG_FILES section.
16872 #
16873
16874 # No need to generate the scripts if there are no CONFIG_FILES.
16875 # This happens for instance when ./config.status config.h
16876 if test -n "\$CONFIG_FILES"; then
16877   # Protect against being on the right side of a sed subst in config.status.
16878   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16879    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16880 s,@SHELL@,$SHELL,;t t
16881 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16887 s,@exec_prefix@,$exec_prefix,;t t
16888 s,@prefix@,$prefix,;t t
16889 s,@program_transform_name@,$program_transform_name,;t t
16890 s,@bindir@,$bindir,;t t
16891 s,@sbindir@,$sbindir,;t t
16892 s,@libexecdir@,$libexecdir,;t t
16893 s,@datadir@,$datadir,;t t
16894 s,@sysconfdir@,$sysconfdir,;t t
16895 s,@sharedstatedir@,$sharedstatedir,;t t
16896 s,@localstatedir@,$localstatedir,;t t
16897 s,@libdir@,$libdir,;t t
16898 s,@includedir@,$includedir,;t t
16899 s,@oldincludedir@,$oldincludedir,;t t
16900 s,@infodir@,$infodir,;t t
16901 s,@mandir@,$mandir,;t t
16902 s,@build_alias@,$build_alias,;t t
16903 s,@host_alias@,$host_alias,;t t
16904 s,@target_alias@,$target_alias,;t t
16905 s,@DEFS@,$DEFS,;t t
16906 s,@ECHO_C@,$ECHO_C,;t t
16907 s,@ECHO_N@,$ECHO_N,;t t
16908 s,@ECHO_T@,$ECHO_T,;t t
16909 s,@LIBS@,$LIBS,;t t
16910 s,@build@,$build,;t t
16911 s,@build_cpu@,$build_cpu,;t t
16912 s,@build_vendor@,$build_vendor,;t t
16913 s,@build_os@,$build_os,;t t
16914 s,@host@,$host,;t t
16915 s,@host_cpu@,$host_cpu,;t t
16916 s,@host_vendor@,$host_vendor,;t t
16917 s,@host_os@,$host_os,;t t
16918 s,@target@,$target,;t t
16919 s,@target_cpu@,$target_cpu,;t t
16920 s,@target_vendor@,$target_vendor,;t t
16921 s,@target_os@,$target_os,;t t
16922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16925 s,@CYGPATH_W@,$CYGPATH_W,;t t
16926 s,@PACKAGE@,$PACKAGE,;t t
16927 s,@VERSION@,$VERSION,;t t
16928 s,@ACLOCAL@,$ACLOCAL,;t t
16929 s,@AUTOCONF@,$AUTOCONF,;t t
16930 s,@AUTOMAKE@,$AUTOMAKE,;t t
16931 s,@AUTOHEADER@,$AUTOHEADER,;t t
16932 s,@MAKEINFO@,$MAKEINFO,;t t
16933 s,@AMTAR@,$AMTAR,;t t
16934 s,@install_sh@,$install_sh,;t t
16935 s,@STRIP@,$STRIP,;t t
16936 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16937 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16938 s,@AWK@,$AWK,;t t
16939 s,@SET_MAKE@,$SET_MAKE,;t t
16940 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16941 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16942 s,@MAINT@,$MAINT,;t t
16943 s,@EMACS@,$EMACS,;t t
16944 s,@lispdir@,$lispdir,;t t
16945 s,@CC@,$CC,;t t
16946 s,@CFLAGS@,$CFLAGS,;t t
16947 s,@LDFLAGS@,$LDFLAGS,;t t
16948 s,@CPPFLAGS@,$CPPFLAGS,;t t
16949 s,@ac_ct_CC@,$ac_ct_CC,;t t
16950 s,@EXEEXT@,$EXEEXT,;t t
16951 s,@OBJEXT@,$OBJEXT,;t t
16952 s,@DEPDIR@,$DEPDIR,;t t
16953 s,@am__include@,$am__include,;t t
16954 s,@am__quote@,$am__quote,;t t
16955 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16956 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16957 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16958 s,@CCDEPMODE@,$CCDEPMODE,;t t
16959 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16960 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16961 s,@CPP@,$CPP,;t t
16962 s,@EGREP@,$EGREP,;t t
16963 s,@RANLIB@,$RANLIB,;t t
16964 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16965 s,@LN_S@,$LN_S,;t t
16966 s,@X_CFLAGS@,$X_CFLAGS,;t t
16967 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16968 s,@X_LIBS@,$X_LIBS,;t t
16969 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16970 s,@LIBOBJS@,$LIBOBJS,;t t
16971 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
16972 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
16973 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
16974 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
16975 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
16976 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
16977 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
16978 s,@ESD_LIBS@,$ESD_LIBS,;t t
16979 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
16980 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
16981 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
16982 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
16983 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
16984 s,@OGG_LIBS@,$OGG_LIBS,;t t
16985 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
16986 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
16987 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
16988 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
16989 s,@n_so_libs@,$n_so_libs,;t t
16990 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
16991 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
16992 s,@s_so_libs@,$s_so_libs,;t t
16993 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
16994 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
16995 s,@m_so_libs@,$m_so_libs,;t t
16996 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
16997 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
16998 s,@k_so_libs@,$k_so_libs,;t t
16999 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17000 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17001 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17002 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17003 s,@e_so_libs@,$e_so_libs,;t t
17004 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17005 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17006 s,@T_so_libs@,$T_so_libs,;t t
17007 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17008 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17009 s,@a_so_libs@,$a_so_libs,;t t
17010 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17011 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17012 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17013 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17014 s,@i_so_libs@,$i_so_libs,;t t
17015 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17016 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17017 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17018 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17019 s,@GTK_LIBS@,$GTK_LIBS,;t t
17020 s,@g_so_libs@,$g_so_libs,;t t
17021 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17022 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17023 s,@r_so_libs@,$r_so_libs,;t t
17024 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17025 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17026 s,@A_so_libs@,$A_so_libs,;t t
17027 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17028 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17029 s,@W_so_libs@,$W_so_libs,;t t
17030 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17031 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17032 s,@P_so_libs@,$P_so_libs,;t t
17033 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17034 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17035 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17036 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17037 s,@w_so_libs@,$w_so_libs,;t t
17038 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17039 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17040 s,@p_so_libs@,$p_so_libs,;t t
17041 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17042 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17043 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17044 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17045 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17046 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17047 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17048 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17049 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17050 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17051 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17052 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17053 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17054 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17055 s,@EXTRALIBS@,$EXTRALIBS,;t t
17056 s,@NETSRCS@,$NETSRCS,;t t
17057 s,@ELFILES@,$ELFILES,;t t
17058 s,@SHLD@,$SHLD,;t t
17059 s,@SHCFLAGS@,$SHCFLAGS,;t t
17060 s,@dynamic_targets@,$dynamic_targets,;t t
17061 s,@so@,$so,;t t
17062 s,@WISH@,$WISH,;t t
17063 s,@tcltk_dep@,$tcltk_dep,;t t
17064 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17065 s,@pkgdatadir@,$pkgdatadir,;t t
17066 s,@pkglibdir@,$pkglibdir,;t t
17067 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17068 CEOF
17069
17070 _ACEOF
17071
17072   cat >>$CONFIG_STATUS <<\_ACEOF
17073   # Split the substitutions into bite-sized pieces for seds with
17074   # small command number limits, like on Digital OSF/1 and HP-UX.
17075   ac_max_sed_lines=48
17076   ac_sed_frag=1 # Number of current file.
17077   ac_beg=1 # First line for current file.
17078   ac_end=$ac_max_sed_lines # Line after last line for current file.
17079   ac_more_lines=:
17080   ac_sed_cmds=
17081   while $ac_more_lines; do
17082     if test $ac_beg -gt 1; then
17083       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17084     else
17085       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17086     fi
17087     if test ! -s $tmp/subs.frag; then
17088       ac_more_lines=false
17089     else
17090       # The purpose of the label and of the branching condition is to
17091       # speed up the sed processing (if there are no `@' at all, there
17092       # is no need to browse any of the substitutions).
17093       # These are the two extra sed commands mentioned above.
17094       (echo ':t
17095   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17096       if test -z "$ac_sed_cmds"; then
17097         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17098       else
17099         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17100       fi
17101       ac_sed_frag=`expr $ac_sed_frag + 1`
17102       ac_beg=$ac_end
17103       ac_end=`expr $ac_end + $ac_max_sed_lines`
17104     fi
17105   done
17106   if test -z "$ac_sed_cmds"; then
17107     ac_sed_cmds=cat
17108   fi
17109 fi # test -n "$CONFIG_FILES"
17110
17111 _ACEOF
17112 cat >>$CONFIG_STATUS <<\_ACEOF
17113 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17114   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17115   case $ac_file in
17116   - | *:- | *:-:* ) # input from stdin
17117         cat >$tmp/stdin
17118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17120   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17122   * )   ac_file_in=$ac_file.in ;;
17123   esac
17124
17125   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17126   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128          X"$ac_file" : 'X\(//\)[^/]' \| \
17129          X"$ac_file" : 'X\(//\)$' \| \
17130          X"$ac_file" : 'X\(/\)' \| \
17131          .     : '\(.\)' 2>/dev/null ||
17132 echo X"$ac_file" |
17133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17134           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17135           /^X\(\/\/\)$/{ s//\1/; q; }
17136           /^X\(\/\).*/{ s//\1/; q; }
17137           s/.*/./; q'`
17138   { if $as_mkdir_p; then
17139     mkdir -p "$ac_dir"
17140   else
17141     as_dir="$ac_dir"
17142     as_dirs=
17143     while test ! -d "$as_dir"; do
17144       as_dirs="$as_dir $as_dirs"
17145       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17147          X"$as_dir" : 'X\(//\)[^/]' \| \
17148          X"$as_dir" : 'X\(//\)$' \| \
17149          X"$as_dir" : 'X\(/\)' \| \
17150          .     : '\(.\)' 2>/dev/null ||
17151 echo X"$as_dir" |
17152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17154           /^X\(\/\/\)$/{ s//\1/; q; }
17155           /^X\(\/\).*/{ s//\1/; q; }
17156           s/.*/./; q'`
17157     done
17158     test ! -n "$as_dirs" || mkdir $as_dirs
17159   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17160 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17161    { (exit 1); exit 1; }; }; }
17162
17163   ac_builddir=.
17164
17165 if test "$ac_dir" != .; then
17166   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17167   # A "../" for each directory in $ac_dir_suffix.
17168   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17169 else
17170   ac_dir_suffix= ac_top_builddir=
17171 fi
17172
17173 case $srcdir in
17174   .)  # No --srcdir option.  We are building in place.
17175     ac_srcdir=.
17176     if test -z "$ac_top_builddir"; then
17177        ac_top_srcdir=.
17178     else
17179        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17180     fi ;;
17181   [\\/]* | ?:[\\/]* )  # Absolute path.
17182     ac_srcdir=$srcdir$ac_dir_suffix;
17183     ac_top_srcdir=$srcdir ;;
17184   *) # Relative path.
17185     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17186     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17187 esac
17188 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17189 # absolute.
17190 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17191 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17192 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17193 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17194
17195
17196   case $INSTALL in
17197   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17198   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17199   esac
17200
17201   if test x"$ac_file" != x-; then
17202     { echo "$as_me:$LINENO: creating $ac_file" >&5
17203 echo "$as_me: creating $ac_file" >&6;}
17204     rm -f "$ac_file"
17205   fi
17206   # Let's still pretend it is `configure' which instantiates (i.e., don't
17207   # use $as_me), people would be surprised to read:
17208   #    /* config.h.  Generated by config.status.  */
17209   if test x"$ac_file" = x-; then
17210     configure_input=
17211   else
17212     configure_input="$ac_file.  "
17213   fi
17214   configure_input=$configure_input"Generated from `echo $ac_file_in |
17215                                      sed 's,.*/,,'` by configure."
17216
17217   # First look for the input files in the build tree, otherwise in the
17218   # src tree.
17219   ac_file_inputs=`IFS=:
17220     for f in $ac_file_in; do
17221       case $f in
17222       -) echo $tmp/stdin ;;
17223       [\\/$]*)
17224          # Absolute (can't be DOS-style, as IFS=:)
17225          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17226 echo "$as_me: error: cannot find input file: $f" >&2;}
17227    { (exit 1); exit 1; }; }
17228          echo $f;;
17229       *) # Relative
17230          if test -f "$f"; then
17231            # Build tree
17232            echo $f
17233          elif test -f "$srcdir/$f"; then
17234            # Source tree
17235            echo $srcdir/$f
17236          else
17237            # /dev/null tree
17238            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17239 echo "$as_me: error: cannot find input file: $f" >&2;}
17240    { (exit 1); exit 1; }; }
17241          fi;;
17242       esac
17243     done` || { (exit 1); exit 1; }
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<_ACEOF
17246   sed "$ac_vpsub
17247 $extrasub
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<\_ACEOF
17250 :t
17251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17252 s,@configure_input@,$configure_input,;t t
17253 s,@srcdir@,$ac_srcdir,;t t
17254 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17255 s,@top_srcdir@,$ac_top_srcdir,;t t
17256 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17257 s,@builddir@,$ac_builddir,;t t
17258 s,@abs_builddir@,$ac_abs_builddir,;t t
17259 s,@top_builddir@,$ac_top_builddir,;t t
17260 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17261 s,@INSTALL@,$ac_INSTALL,;t t
17262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17263   rm -f $tmp/stdin
17264   if test x"$ac_file" != x-; then
17265     mv $tmp/out $ac_file
17266   else
17267     cat $tmp/out
17268     rm -f $tmp/out
17269   fi
17270
17271 done
17272 _ACEOF
17273 cat >>$CONFIG_STATUS <<\_ACEOF
17274
17275 #
17276 # CONFIG_HEADER section.
17277 #
17278
17279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17281 #
17282 # ac_d sets the value in "#define NAME VALUE" lines.
17283 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17284 ac_dB='[        ].*$,\1#\2'
17285 ac_dC=' '
17286 ac_dD=',;t'
17287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17288 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17289 ac_uB='$,\1#\2define\3'
17290 ac_uC=' '
17291 ac_uD=',;t'
17292
17293 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17294   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17295   case $ac_file in
17296   - | *:- | *:-:* ) # input from stdin
17297         cat >$tmp/stdin
17298         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17299         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17300   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17302   * )   ac_file_in=$ac_file.in ;;
17303   esac
17304
17305   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17306 echo "$as_me: creating $ac_file" >&6;}
17307
17308   # First look for the input files in the build tree, otherwise in the
17309   # src tree.
17310   ac_file_inputs=`IFS=:
17311     for f in $ac_file_in; do
17312       case $f in
17313       -) echo $tmp/stdin ;;
17314       [\\/$]*)
17315          # Absolute (can't be DOS-style, as IFS=:)
17316          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17317 echo "$as_me: error: cannot find input file: $f" >&2;}
17318    { (exit 1); exit 1; }; }
17319          echo $f;;
17320       *) # Relative
17321          if test -f "$f"; then
17322            # Build tree
17323            echo $f
17324          elif test -f "$srcdir/$f"; then
17325            # Source tree
17326            echo $srcdir/$f
17327          else
17328            # /dev/null tree
17329            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17330 echo "$as_me: error: cannot find input file: $f" >&2;}
17331    { (exit 1); exit 1; }; }
17332          fi;;
17333       esac
17334     done` || { (exit 1); exit 1; }
17335   # Remove the trailing spaces.
17336   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17337
17338 _ACEOF
17339
17340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17341 # `conftest.undefs', that substitutes the proper values into
17342 # config.h.in to produce config.h.  The first handles `#define'
17343 # templates, and the second `#undef' templates.
17344 # And first: Protect against being on the right side of a sed subst in
17345 # config.status.  Protect against being in an unquoted here document
17346 # in config.status.
17347 rm -f conftest.defines conftest.undefs
17348 # Using a here document instead of a string reduces the quoting nightmare.
17349 # Putting comments in sed scripts is not portable.
17350 #
17351 # `end' is used to avoid that the second main sed command (meant for
17352 # 0-ary CPP macros) applies to n-ary macro definitions.
17353 # See the Autoconf documentation for `clear'.
17354 cat >confdef2sed.sed <<\_ACEOF
17355 s/[\\&,]/\\&/g
17356 s,[\\$`],\\&,g
17357 t clear
17358 : clear
17359 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17360 t end
17361 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17362 : end
17363 _ACEOF
17364 # If some macros were called several times there might be several times
17365 # the same #defines, which is useless.  Nevertheless, we may not want to
17366 # sort them, since we want the *last* AC-DEFINE to be honored.
17367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17369 rm -f confdef2sed.sed
17370
17371 # This sed command replaces #undef with comments.  This is necessary, for
17372 # example, in the case of _POSIX_SOURCE, which is predefined and required
17373 # on some systems where configure will not decide to define it.
17374 cat >>conftest.undefs <<\_ACEOF
17375 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17376 _ACEOF
17377
17378 # Break up conftest.defines because some shells have a limit on the size
17379 # of here documents, and old seds have small limits too (100 cmds).
17380 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17381 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17382 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17383 echo '  :' >>$CONFIG_STATUS
17384 rm -f conftest.tail
17385 while grep . conftest.defines >/dev/null
17386 do
17387   # Write a limited-size here document to $tmp/defines.sed.
17388   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17389   # Speed up: don't consider the non `#define' lines.
17390   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17391   # Work around the forget-to-reset-the-flag bug.
17392   echo 't clr' >>$CONFIG_STATUS
17393   echo ': clr' >>$CONFIG_STATUS
17394   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17395   echo 'CEOF
17396   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17397   rm -f $tmp/in
17398   mv $tmp/out $tmp/in
17399 ' >>$CONFIG_STATUS
17400   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17401   rm -f conftest.defines
17402   mv conftest.tail conftest.defines
17403 done
17404 rm -f conftest.defines
17405 echo '  fi # grep' >>$CONFIG_STATUS
17406 echo >>$CONFIG_STATUS
17407
17408 # Break up conftest.undefs because some shells have a limit on the size
17409 # of here documents, and old seds have small limits too (100 cmds).
17410 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17411 rm -f conftest.tail
17412 while grep . conftest.undefs >/dev/null
17413 do
17414   # Write a limited-size here document to $tmp/undefs.sed.
17415   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17416   # Speed up: don't consider the non `#undef'
17417   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17418   # Work around the forget-to-reset-the-flag bug.
17419   echo 't clr' >>$CONFIG_STATUS
17420   echo ': clr' >>$CONFIG_STATUS
17421   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17422   echo 'CEOF
17423   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17424   rm -f $tmp/in
17425   mv $tmp/out $tmp/in
17426 ' >>$CONFIG_STATUS
17427   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17428   rm -f conftest.undefs
17429   mv conftest.tail conftest.undefs
17430 done
17431 rm -f conftest.undefs
17432
17433 cat >>$CONFIG_STATUS <<\_ACEOF
17434   # Let's still pretend it is `configure' which instantiates (i.e., don't
17435   # use $as_me), people would be surprised to read:
17436   #    /* config.h.  Generated by config.status.  */
17437   if test x"$ac_file" = x-; then
17438     echo "/* Generated by configure.  */" >$tmp/config.h
17439   else
17440     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17441   fi
17442   cat $tmp/in >>$tmp/config.h
17443   rm -f $tmp/in
17444   if test x"$ac_file" != x-; then
17445     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17446       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17447 echo "$as_me: $ac_file is unchanged" >&6;}
17448     else
17449       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451          X"$ac_file" : 'X\(//\)[^/]' \| \
17452          X"$ac_file" : 'X\(//\)$' \| \
17453          X"$ac_file" : 'X\(/\)' \| \
17454          .     : '\(.\)' 2>/dev/null ||
17455 echo X"$ac_file" |
17456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17458           /^X\(\/\/\)$/{ s//\1/; q; }
17459           /^X\(\/\).*/{ s//\1/; q; }
17460           s/.*/./; q'`
17461       { if $as_mkdir_p; then
17462     mkdir -p "$ac_dir"
17463   else
17464     as_dir="$ac_dir"
17465     as_dirs=
17466     while test ! -d "$as_dir"; do
17467       as_dirs="$as_dir $as_dirs"
17468       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17470          X"$as_dir" : 'X\(//\)[^/]' \| \
17471          X"$as_dir" : 'X\(//\)$' \| \
17472          X"$as_dir" : 'X\(/\)' \| \
17473          .     : '\(.\)' 2>/dev/null ||
17474 echo X"$as_dir" |
17475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17476           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17477           /^X\(\/\/\)$/{ s//\1/; q; }
17478           /^X\(\/\).*/{ s//\1/; q; }
17479           s/.*/./; q'`
17480     done
17481     test ! -n "$as_dirs" || mkdir $as_dirs
17482   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17484    { (exit 1); exit 1; }; }; }
17485
17486       rm -f $ac_file
17487       mv $tmp/config.h $ac_file
17488     fi
17489   else
17490     cat $tmp/config.h
17491     rm -f $tmp/config.h
17492   fi
17493 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
17494 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17495 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17496          X$ac_file : 'X\(//\)[^/]' \| \
17497          X$ac_file : 'X\(//\)$' \| \
17498          X$ac_file : 'X\(/\)' \| \
17499          .     : '\(.\)' 2>/dev/null ||
17500 echo X$ac_file |
17501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17503           /^X\(\/\/\)$/{ s//\1/; q; }
17504           /^X\(\/\).*/{ s//\1/; q; }
17505           s/.*/./; q'`/stamp-h$_am_stamp_count
17506 done
17507 _ACEOF
17508 cat >>$CONFIG_STATUS <<\_ACEOF
17509
17510 #
17511 # CONFIG_COMMANDS section.
17512 #
17513 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17514   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17515   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17516   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17517 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17518          X"$ac_dest" : 'X\(//\)[^/]' \| \
17519          X"$ac_dest" : 'X\(//\)$' \| \
17520          X"$ac_dest" : 'X\(/\)' \| \
17521          .     : '\(.\)' 2>/dev/null ||
17522 echo X"$ac_dest" |
17523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17524           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17525           /^X\(\/\/\)$/{ s//\1/; q; }
17526           /^X\(\/\).*/{ s//\1/; q; }
17527           s/.*/./; q'`
17528   ac_builddir=.
17529
17530 if test "$ac_dir" != .; then
17531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17532   # A "../" for each directory in $ac_dir_suffix.
17533   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17534 else
17535   ac_dir_suffix= ac_top_builddir=
17536 fi
17537
17538 case $srcdir in
17539   .)  # No --srcdir option.  We are building in place.
17540     ac_srcdir=.
17541     if test -z "$ac_top_builddir"; then
17542        ac_top_srcdir=.
17543     else
17544        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17545     fi ;;
17546   [\\/]* | ?:[\\/]* )  # Absolute path.
17547     ac_srcdir=$srcdir$ac_dir_suffix;
17548     ac_top_srcdir=$srcdir ;;
17549   *) # Relative path.
17550     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17551     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17552 esac
17553 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17554 # absolute.
17555 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17556 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17557 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17558 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17559
17560
17561   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17562 echo "$as_me: executing $ac_dest commands" >&6;}
17563   case $ac_dest in
17564     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17565   # Strip MF so we end up with the name of the file.
17566   mf=`echo "$mf" | sed -e 's/:.*$//'`
17567   # Check whether this is an Automake generated Makefile or not.
17568   # We used to match only the files named `Makefile.in', but
17569   # some people rename them; so instead we look at the file content.
17570   # Grep'ing the first line is not enough: some people post-process
17571   # each Makefile.in and add a new line on top of each file to say so.
17572   # So let's grep whole file.
17573   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17574     dirpart=`(dirname "$mf") 2>/dev/null ||
17575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17576          X"$mf" : 'X\(//\)[^/]' \| \
17577          X"$mf" : 'X\(//\)$' \| \
17578          X"$mf" : 'X\(/\)' \| \
17579          .     : '\(.\)' 2>/dev/null ||
17580 echo X"$mf" |
17581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17583           /^X\(\/\/\)$/{ s//\1/; q; }
17584           /^X\(\/\).*/{ s//\1/; q; }
17585           s/.*/./; q'`
17586   else
17587     continue
17588   fi
17589   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17590   # Extract the definition of DEP_FILES from the Makefile without
17591   # running `make'.
17592   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17593   test -z "$DEPDIR" && continue
17594   # When using ansi2knr, U may be empty or an underscore; expand it
17595   U=`sed -n -e '/^U = / s///p' < "$mf"`
17596   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17597   # We invoke sed twice because it is the simplest approach to
17598   # changing $(DEPDIR) to its actual value in the expansion.
17599   for file in `sed -n -e '
17600     /^DEP_FILES = .*\\\\$/ {
17601       s/^DEP_FILES = //
17602       :loop
17603         s/\\\\$//
17604         p
17605         n
17606         /\\\\$/ b loop
17607       p
17608     }
17609     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17610        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17611     # Make sure the directory exists.
17612     test -f "$dirpart/$file" && continue
17613     fdir=`(dirname "$file") 2>/dev/null ||
17614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17615          X"$file" : 'X\(//\)[^/]' \| \
17616          X"$file" : 'X\(//\)$' \| \
17617          X"$file" : 'X\(/\)' \| \
17618          .     : '\(.\)' 2>/dev/null ||
17619 echo X"$file" |
17620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17622           /^X\(\/\/\)$/{ s//\1/; q; }
17623           /^X\(\/\).*/{ s//\1/; q; }
17624           s/.*/./; q'`
17625     { if $as_mkdir_p; then
17626     mkdir -p $dirpart/$fdir
17627   else
17628     as_dir=$dirpart/$fdir
17629     as_dirs=
17630     while test ! -d "$as_dir"; do
17631       as_dirs="$as_dir $as_dirs"
17632       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17634          X"$as_dir" : 'X\(//\)[^/]' \| \
17635          X"$as_dir" : 'X\(//\)$' \| \
17636          X"$as_dir" : 'X\(/\)' \| \
17637          .     : '\(.\)' 2>/dev/null ||
17638 echo X"$as_dir" |
17639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17641           /^X\(\/\/\)$/{ s//\1/; q; }
17642           /^X\(\/\).*/{ s//\1/; q; }
17643           s/.*/./; q'`
17644     done
17645     test ! -n "$as_dirs" || mkdir $as_dirs
17646   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17647 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17648    { (exit 1); exit 1; }; }; }
17649
17650     # echo "creating $dirpart/$file"
17651     echo '# dummy' > "$dirpart/$file"
17652   done
17653 done
17654  ;;
17655   esac
17656 done
17657 _ACEOF
17658
17659 cat >>$CONFIG_STATUS <<\_ACEOF
17660
17661 { (exit 0); exit 0; }
17662 _ACEOF
17663 chmod +x $CONFIG_STATUS
17664 ac_clean_files=$ac_clean_files_save
17665
17666
17667 # configure is writing to config.log, and then calls config.status.
17668 # config.status does its own redirection, appending to config.log.
17669 # Unfortunately, on DOS this fails, as config.log is still kept open
17670 # by configure, so config.status won't be able to write to it; its
17671 # output is simply discarded.  So we exec the FD to /dev/null,
17672 # effectively closing config.log, so it can be properly (re)opened and
17673 # appended to by config.status.  When coming back to configure, we
17674 # need to make the FD available again.
17675 if test "$no_create" != yes; then
17676   ac_cs_success=:
17677   ac_config_status_args=
17678   test "$silent" = yes &&
17679     ac_config_status_args="$ac_config_status_args --quiet"
17680   exec 5>/dev/null
17681   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17682   exec 5>>config.log
17683   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17684   # would make configure fail if this is the last instruction.
17685   $ac_cs_success || { (exit 1); exit 1; }
17686 fi
17687