OSDN Git Service

Latest commit into esd_a.c turned out to be unable to run on Windows
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 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 am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
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                               vorbis:  Ogg Vorbis
881                               gogo:    MP3 GOGO (Only Windows is supported)
882   --disable-alsatest      Do not try to compile and run a test Alsa program
883   --disable-artstest       Do not try to compile and run a test ARTS program
884   --disable-esdtest       Do not try to compile and run a test ESD program
885   --disable-oggtest       Do not try to compile and run a test Ogg program
886   --disable-vorbistest       Do not try to compile and run a test Vorbis program
887   --enable-interface=interface_list
888                           Comma separated interface list
889   --enable-dynamic        Enable dynamic link interface   (default is no)
890   --enable-dynamic=dynamic_list
891                           Comma separated dynamic interface list
892   --enable-ncurses        Enable ncurses interface        (default is no)
893   --enable-slang          Enable slang interface          (default is no)
894   --enable-motif          Enable motif interface          (default is no)
895   --enable-tcltk          Enable tcltk interface          (default is no)
896   --enable-emacs          Enable emacs interface          (default is no)
897   --enable-vt100          Enable VT100 interface          (default is no)
898   --enable-xaw            Enable athena interface         (default is no)
899   --enable-xskin          Enable X skin interface         (default is no)
900   --enable-gtk            Enable GTK+ interface           (default is no)
901   --disable-gtktest       Do not try to compile and run a test GTK program
902   --enable-server         Enable server interface         (default is no)
903   --enable-alsaseq        Enable ALSA sequencer server interface
904                                                           (default is no)
905   --enable-winsyn        Enable Windows Synthesizer interface
906                                                           (default is no)
907   --enable-w32gui         Enable Windows GUI interface    (default is no)
908   --enable-ump            UMP configuration               (default is no)
909   --enable-offix          Enable offix support            (default is no)
910   --enable-network        Enable network support          (default is no)
911   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
912   --enable-spline=method  Specify spline method.
913                                   one of no,linear,cubic,lagrange,newton,gauss
914                                                           (default is linear)
915   --enable-wrd            Enable WRD interface for X      (default is no)
916
917 Optional Packages:
918   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
919   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
920   --with-includes=DIR     Specify include directories (colon separated)
921   --with-libraries=DIR    Specify library directories (colon separated)
922   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
923   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
924   --with-lispdir          Override the default lisp directory
925   --with-elf              create ELF shared object instead of AOUT
926   --with-simd             create SIMD friendly binary (default is no)
927   --with-x                use the X Window System
928   --with-tcl-includes=DIR Tcl include file path
929   --with-tcl-libs=DIR     Tcl library file path
930   --with-tk-includes=DIR  Tk include file path
931   --with-tk-libs=DIR      Tk library file path
932   --with-offix-includes=DIR Offix include file path
933   --with-offix-libs=DIR   Offix include file path
934   --with-nas-library=library NAS absolute library path(Don't use -laudio)
935   --with-nas-includes=DIR NAS include files are in dir
936   --with-default-output=<mode>  Specify default output mode (optional):
937                                 (default|alsa|alib|arts|nas|
938                                 esd|wav|au|aiff|list|vorbis|
939                                 gogo)
940   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
941   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
942   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
943   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
944   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
945   --with-ogg=PFX   Prefix where libogg is installed (optional)
946   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
947   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
948   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
949   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
950   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
951   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
952   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
953
954 Some influential environment variables:
955   CC          C compiler command
956   CFLAGS      C compiler flags
957   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
958               nonstandard directory <lib dir>
959   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
960               headers in a nonstandard directory <include dir>
961   CPP         C preprocessor
962
963 Use these variables to override the choices made by `configure' or to help
964 it to find libraries and programs with nonstandard names/locations.
965
966 Report bugs to <root@mput.dip.jp>.
967 _ACEOF
968 fi
969
970 if test "$ac_init_help" = "recursive"; then
971   # If there are subdirs, report their specific --help.
972   ac_popdir=`pwd`
973   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
974     test -d $ac_dir || continue
975     ac_builddir=.
976
977 if test "$ac_dir" != .; then
978   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
979   # A "../" for each directory in $ac_dir_suffix.
980   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
981 else
982   ac_dir_suffix= ac_top_builddir=
983 fi
984
985 case $srcdir in
986   .)  # No --srcdir option.  We are building in place.
987     ac_srcdir=.
988     if test -z "$ac_top_builddir"; then
989        ac_top_srcdir=.
990     else
991        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
992     fi ;;
993   [\\/]* | ?:[\\/]* )  # Absolute path.
994     ac_srcdir=$srcdir$ac_dir_suffix;
995     ac_top_srcdir=$srcdir ;;
996   *) # Relative path.
997     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
998     ac_top_srcdir=$ac_top_builddir$srcdir ;;
999 esac
1000 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1001 # absolute.
1002 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1003 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1004 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1005 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1006
1007     cd $ac_dir
1008     # Check for guested configure; otherwise get Cygnus style configure.
1009     if test -f $ac_srcdir/configure.gnu; then
1010       echo
1011       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1012     elif test -f $ac_srcdir/configure; then
1013       echo
1014       $SHELL $ac_srcdir/configure  --help=recursive
1015     elif test -f $ac_srcdir/configure.ac ||
1016            test -f $ac_srcdir/configure.in; then
1017       echo
1018       $ac_configure --help
1019     else
1020       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1021     fi
1022     cd $ac_popdir
1023   done
1024 fi
1025
1026 test -n "$ac_init_help" && exit 0
1027 if $ac_init_version; then
1028   cat <<\_ACEOF
1029 TiMidity++ configure 2.12.0-pre1b
1030 generated by GNU Autoconf 2.57
1031
1032 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1033 Free Software Foundation, Inc.
1034 This configure script is free software; the Free Software Foundation
1035 gives unlimited permission to copy, distribute and modify it.
1036 _ACEOF
1037   exit 0
1038 fi
1039 exec 5>config.log
1040 cat >&5 <<_ACEOF
1041 This file contains any messages produced by compilers while
1042 running configure, to aid debugging if configure makes a mistake.
1043
1044 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1045 generated by GNU Autoconf 2.57.  Invocation command line was
1046
1047   $ $0 $@
1048
1049 _ACEOF
1050 {
1051 cat <<_ASUNAME
1052 ## --------- ##
1053 ## Platform. ##
1054 ## --------- ##
1055
1056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1061
1062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1063 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1064
1065 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1066 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1068 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1069 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1070 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1071 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1072
1073 _ASUNAME
1074
1075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1076 for as_dir in $PATH
1077 do
1078   IFS=$as_save_IFS
1079   test -z "$as_dir" && as_dir=.
1080   echo "PATH: $as_dir"
1081 done
1082
1083 } >&5
1084
1085 cat >&5 <<_ACEOF
1086
1087
1088 ## ----------- ##
1089 ## Core tests. ##
1090 ## ----------- ##
1091
1092 _ACEOF
1093
1094
1095 # Keep a trace of the command line.
1096 # Strip out --no-create and --no-recursion so they do not pile up.
1097 # Strip out --silent because we don't want to record it for future runs.
1098 # Also quote any args containing shell meta-characters.
1099 # Make two passes to allow for proper duplicate-argument suppression.
1100 ac_configure_args=
1101 ac_configure_args0=
1102 ac_configure_args1=
1103 ac_sep=
1104 ac_must_keep_next=false
1105 for ac_pass in 1 2
1106 do
1107   for ac_arg
1108   do
1109     case $ac_arg in
1110     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1111     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112     | -silent | --silent | --silen | --sile | --sil)
1113       continue ;;
1114     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1115       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1116     esac
1117     case $ac_pass in
1118     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1119     2)
1120       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1121       if test $ac_must_keep_next = true; then
1122         ac_must_keep_next=false # Got value, back to normal.
1123       else
1124         case $ac_arg in
1125           *=* | --config-cache | -C | -disable-* | --disable-* \
1126           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1127           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1128           | -with-* | --with-* | -without-* | --without-* | --x)
1129             case "$ac_configure_args0 " in
1130               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1131             esac
1132             ;;
1133           -* ) ac_must_keep_next=true ;;
1134         esac
1135       fi
1136       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1137       # Get rid of the leading space.
1138       ac_sep=" "
1139       ;;
1140     esac
1141   done
1142 done
1143 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1144 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1145
1146 # When interrupted or exit'd, cleanup temporary files, and complete
1147 # config.log.  We remove comments because anyway the quotes in there
1148 # would cause problems or look ugly.
1149 # WARNING: Be sure not to use single quotes in there, as some shells,
1150 # such as our DU 5.0 friend, will then `close' the trap.
1151 trap 'exit_status=$?
1152   # Save into config.log some information that might help in debugging.
1153   {
1154     echo
1155
1156     cat <<\_ASBOX
1157 ## ---------------- ##
1158 ## Cache variables. ##
1159 ## ---------------- ##
1160 _ASBOX
1161     echo
1162     # The following way of writing the cache mishandles newlines in values,
1163 {
1164   (set) 2>&1 |
1165     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1166     *ac_space=\ *)
1167       sed -n \
1168         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1169           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1170       ;;
1171     *)
1172       sed -n \
1173         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1174       ;;
1175     esac;
1176 }
1177     echo
1178
1179     cat <<\_ASBOX
1180 ## ----------------- ##
1181 ## Output variables. ##
1182 ## ----------------- ##
1183 _ASBOX
1184     echo
1185     for ac_var in $ac_subst_vars
1186     do
1187       eval ac_val=$`echo $ac_var`
1188       echo "$ac_var='"'"'$ac_val'"'"'"
1189     done | sort
1190     echo
1191
1192     if test -n "$ac_subst_files"; then
1193       cat <<\_ASBOX
1194 ## ------------- ##
1195 ## Output files. ##
1196 ## ------------- ##
1197 _ASBOX
1198       echo
1199       for ac_var in $ac_subst_files
1200       do
1201         eval ac_val=$`echo $ac_var`
1202         echo "$ac_var='"'"'$ac_val'"'"'"
1203       done | sort
1204       echo
1205     fi
1206
1207     if test -s confdefs.h; then
1208       cat <<\_ASBOX
1209 ## ----------- ##
1210 ## confdefs.h. ##
1211 ## ----------- ##
1212 _ASBOX
1213       echo
1214       sed "/^$/d" confdefs.h | sort
1215       echo
1216     fi
1217     test "$ac_signal" != 0 &&
1218       echo "$as_me: caught signal $ac_signal"
1219     echo "$as_me: exit $exit_status"
1220   } >&5
1221   rm -f core core.* *.core &&
1222   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1223     exit $exit_status
1224      ' 0
1225 for ac_signal in 1 2 13 15; do
1226   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1227 done
1228 ac_signal=0
1229
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1233 echo >confdefs.h
1234
1235 # Predefined preprocessor variables.
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1239 _ACEOF
1240
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1244 _ACEOF
1245
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1259 _ACEOF
1260
1261
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265   if test "x$prefix" != xNONE; then
1266     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1267   else
1268     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1269   fi
1270 fi
1271 for ac_site_file in $CONFIG_SITE; do
1272   if test -r "$ac_site_file"; then
1273     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275     sed 's/^/| /' "$ac_site_file" >&5
1276     . "$ac_site_file"
1277   fi
1278 done
1279
1280 if test -r "$cache_file"; then
1281   # Some versions of bash will fail to source /dev/null (special
1282   # files actually), so we avoid doing that.
1283   if test -f "$cache_file"; then
1284     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1286     case $cache_file in
1287       [\\/]* | ?:[\\/]* ) . $cache_file;;
1288       *)                      . ./$cache_file;;
1289     esac
1290   fi
1291 else
1292   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1294   >$cache_file
1295 fi
1296
1297 # Check that the precious variables saved in the cache have kept the same
1298 # value.
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303   eval ac_new_set=\$ac_env_${ac_var}_set
1304   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305   eval ac_new_val="\$ac_env_${ac_var}_value"
1306   case $ac_old_set,$ac_new_set in
1307     set,)
1308       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310       ac_cache_corrupted=: ;;
1311     ,set)
1312       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314       ac_cache_corrupted=: ;;
1315     ,);;
1316     *)
1317       if test "x$ac_old_val" != "x$ac_new_val"; then
1318         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1321 echo "$as_me:   former value:  $ac_old_val" >&2;}
1322         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1323 echo "$as_me:   current value: $ac_new_val" >&2;}
1324         ac_cache_corrupted=:
1325       fi;;
1326   esac
1327   # Pass precious variables to config.status.
1328   if test "$ac_new_set" = set; then
1329     case $ac_new_val in
1330     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332     *) ac_arg=$ac_var=$ac_new_val ;;
1333     esac
1334     case " $ac_configure_args " in
1335       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1336       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337     esac
1338   fi
1339 done
1340 if $ac_cache_corrupted; then
1341   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 ac_ext=c
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380 ac_aux_dir=
1381 for ac_dir in autoconf $srcdir/autoconf; do
1382   if test -f $ac_dir/install-sh; then
1383     ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install-sh -c"
1385     break
1386   elif test -f $ac_dir/install.sh; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/install.sh -c"
1389     break
1390   elif test -f $ac_dir/shtool; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/shtool install -c"
1393     break
1394   fi
1395 done
1396 if test -z "$ac_aux_dir"; then
1397   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1398 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1399    { (exit 1); exit 1; }; }
1400 fi
1401 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404
1405 # Make sure we can run config.sub.
1406 $ac_config_sub sun4 >/dev/null 2>&1 ||
1407   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409    { (exit 1); exit 1; }; }
1410
1411 echo "$as_me:$LINENO: checking build system type" >&5
1412 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413 if test "${ac_cv_build+set}" = set; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   ac_cv_build_alias=$build_alias
1417 test -z "$ac_cv_build_alias" &&
1418   ac_cv_build_alias=`$ac_config_guess`
1419 test -z "$ac_cv_build_alias" &&
1420   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422    { (exit 1); exit 1; }; }
1423 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426    { (exit 1); exit 1; }; }
1427
1428 fi
1429 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430 echo "${ECHO_T}$ac_cv_build" >&6
1431 build=$ac_cv_build
1432 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437 echo "$as_me:$LINENO: checking host system type" >&5
1438 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439 if test "${ac_cv_host+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   ac_cv_host_alias=$host_alias
1443 test -z "$ac_cv_host_alias" &&
1444   ac_cv_host_alias=$ac_cv_build_alias
1445 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 fi
1451 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452 echo "${ECHO_T}$ac_cv_host" >&6
1453 host=$ac_cv_host
1454 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459 echo "$as_me:$LINENO: checking target system type" >&5
1460 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1461 if test "${ac_cv_target+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   ac_cv_target_alias=$target_alias
1465 test "x$ac_cv_target_alias" = "x" &&
1466   ac_cv_target_alias=$ac_cv_host_alias
1467 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1468   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1470    { (exit 1); exit 1; }; }
1471
1472 fi
1473 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1474 echo "${ECHO_T}$ac_cv_target" >&6
1475 target=$ac_cv_target
1476 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479
1480
1481 # The aliases save the names the user supplied, while $host etc.
1482 # will get canonicalized.
1483 test -n "$target_alias" &&
1484   test "$program_prefix$program_suffix$program_transform_name" = \
1485     NONENONEs,x,x, &&
1486   program_prefix=${target_alias}-
1487 am__api_version="1.7"
1488 # Find a good install program.  We prefer a C program (faster),
1489 # so one script is as good as another.  But avoid the broken or
1490 # incompatible versions:
1491 # SysV /etc/install, /usr/sbin/install
1492 # SunOS /usr/etc/install
1493 # IRIX /sbin/install
1494 # AIX /bin/install
1495 # AmigaOS /C/install, which installs bootblocks on floppy discs
1496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   # Account for people who put trailing slashes in PATH elements.
1512 case $as_dir/ in
1513   ./ | .// | /cC/* | \
1514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515   /usr/ucb/* ) ;;
1516   *)
1517     # OSF1 and SCO ODT 3.0 have their own names for install.
1518     # Don't use installbsd from OSF since it installs stuff as root
1519     # by default.
1520     for ac_prog in ginstall scoinst install; do
1521       for ac_exec_ext in '' $ac_executable_extensions; do
1522         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1523           if test $ac_prog = install &&
1524             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1525             # AIX install.  It has an incompatible calling convention.
1526             :
1527           elif test $ac_prog = install &&
1528             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1529             # program-specific install script used by HP pwplus--don't use.
1530             :
1531           else
1532             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1533             break 3
1534           fi
1535         fi
1536       done
1537     done
1538     ;;
1539 esac
1540 done
1541
1542
1543 fi
1544   if test "${ac_cv_path_install+set}" = set; then
1545     INSTALL=$ac_cv_path_install
1546   else
1547     # As a last resort, use the slow shell script.  We don't cache a
1548     # path for INSTALL within a source directory, because that will
1549     # break other packages using the cache if that directory is
1550     # removed, or if the path is relative.
1551     INSTALL=$ac_install_sh
1552   fi
1553 fi
1554 echo "$as_me:$LINENO: result: $INSTALL" >&5
1555 echo "${ECHO_T}$INSTALL" >&6
1556
1557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1558 # It thinks the first close brace ends the variable substitution.
1559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1560
1561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1562
1563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1564
1565 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1566 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1567 # Just in case
1568 sleep 1
1569 echo timestamp > conftest.file
1570 # Do `set' in a subshell so we don't clobber the current shell's
1571 # arguments.  Must try -L first in case configure is actually a
1572 # symlink; some systems play weird games with the mod time of symlinks
1573 # (eg FreeBSD returns the mod time of the symlink's containing
1574 # directory).
1575 if (
1576    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1577    if test "$*" = "X"; then
1578       # -L didn't work.
1579       set X `ls -t $srcdir/configure conftest.file`
1580    fi
1581    rm -f conftest.file
1582    if test "$*" != "X $srcdir/configure conftest.file" \
1583       && test "$*" != "X conftest.file $srcdir/configure"; then
1584
1585       # If neither matched, then we have a broken ls.  This can happen
1586       # if, for instance, CONFIG_SHELL is bash and it inherits a
1587       # broken ls alias from the environment.  This has actually
1588       # happened.  Such a system could not be considered "sane".
1589       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1590 alias in your environment" >&5
1591 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1592 alias in your environment" >&2;}
1593    { (exit 1); exit 1; }; }
1594    fi
1595
1596    test "$2" = conftest.file
1597    )
1598 then
1599    # Ok.
1600    :
1601 else
1602    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1603 Check your system clock" >&5
1604 echo "$as_me: error: newly created file is older than distributed files!
1605 Check your system clock" >&2;}
1606    { (exit 1); exit 1; }; }
1607 fi
1608 echo "$as_me:$LINENO: result: yes" >&5
1609 echo "${ECHO_T}yes" >&6
1610 test "$program_prefix" != NONE &&
1611   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1612 # Use a double $ so make ignores it.
1613 test "$program_suffix" != NONE &&
1614   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1615 # Double any \ or $.  echo might interpret backslashes.
1616 # By default was `s,x,x', remove it if useless.
1617 cat <<\_ACEOF >conftest.sed
1618 s/[\\$]/&&/g;s/;s,x,x,$//
1619 _ACEOF
1620 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1621 rm conftest.sed
1622
1623
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1626
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630   am_missing_run="$MISSING --run "
1631 else
1632   am_missing_run=
1633   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1635 fi
1636
1637 for ac_prog in gawk mawk nawk awk
1638 do
1639   # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$AWK"; then
1647   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     ac_cv_prog_AWK="$ac_prog"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 fi
1664 fi
1665 AWK=$ac_cv_prog_AWK
1666 if test -n "$AWK"; then
1667   echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1669 else
1670   echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674   test -n "$AWK" && break
1675 done
1676
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   cat >conftest.make <<\_ACEOF
1684 all:
1685         @echo 'ac_maketemp="$(MAKE)"'
1686 _ACEOF
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690   eval ac_cv_prog_make_${ac_make}_set=yes
1691 else
1692   eval ac_cv_prog_make_${ac_make}_set=no
1693 fi
1694 rm -f conftest.make
1695 fi
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697   echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699   SET_MAKE=
1700 else
1701   echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703   SET_MAKE="MAKE=${MAKE-make}"
1704 fi
1705
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1709   am__leading_dot=.
1710 else
1711   am__leading_dot=_
1712 fi
1713 rmdir .tst 2>/dev/null
1714
1715  # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717    test -f $srcdir/config.status; then
1718   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720    { (exit 1); exit 1; }; }
1721 fi
1722
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725   if (cygpath --version) >/dev/null 2>/dev/null; then
1726     CYGPATH_W='cygpath -w'
1727   else
1728     CYGPATH_W=echo
1729   fi
1730 fi
1731
1732
1733 # Define the identity of the package.
1734  PACKAGE='TiMidity++'
1735  VERSION='2.12.0-pre1b'
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1746
1747 # Some tools Automake needs.
1748
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1750
1751
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1753
1754
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1756
1757
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1759
1760
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1762
1763
1764 AMTAR=${AMTAR-"${am_missing_run}tar"}
1765
1766 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767
1768 # Installed binaries are usually stripped using `strip' when the user
1769 # run `make install-strip'.  However `strip' might not be the right
1770 # tool to use in cross-compilation environments, therefore Automake
1771 # will honor the `STRIP' environment variable to overrule this program.
1772 if test "$cross_compiling" != no; then
1773   if test -n "$ac_tool_prefix"; then
1774   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775 set dummy ${ac_tool_prefix}strip; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_STRIP+set}" = set; then
1779   echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781   if test -n "$STRIP"; then
1782   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787   IFS=$as_save_IFS
1788   test -z "$as_dir" && as_dir=.
1789   for ac_exec_ext in '' $ac_executable_extensions; do
1790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793     break 2
1794   fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 STRIP=$ac_cv_prog_STRIP
1801 if test -n "$STRIP"; then
1802   echo "$as_me:$LINENO: result: $STRIP" >&5
1803 echo "${ECHO_T}$STRIP" >&6
1804 else
1805   echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 fi
1810 if test -z "$ac_cv_prog_STRIP"; then
1811   ac_ct_STRIP=$STRIP
1812   # Extract the first word of "strip", so it can be a program name with args.
1813 set dummy strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   if test -n "$ac_ct_STRIP"; then
1820   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827   for ac_exec_ext in '' $ac_executable_extensions; do
1828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829     ac_cv_prog_ac_ct_STRIP="strip"
1830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831     break 2
1832   fi
1833 done
1834 done
1835
1836   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 fi
1838 fi
1839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840 if test -n "$ac_ct_STRIP"; then
1841   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842 echo "${ECHO_T}$ac_ct_STRIP" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848   STRIP=$ac_ct_STRIP
1849 else
1850   STRIP="$ac_cv_prog_STRIP"
1851 fi
1852
1853 fi
1854 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855
1856 # We need awk for the "check" target.  The system "awk" is bad on
1857 # some platforms.
1858
1859
1860
1861
1862                     ac_config_headers="$ac_config_headers config.h interface.h"
1863
1864 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1865 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1866     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1867 if test "${enable_maintainer_mode+set}" = set; then
1868   enableval="$enable_maintainer_mode"
1869   USE_MAINTAINER_MODE=$enableval
1870 else
1871   USE_MAINTAINER_MODE=no
1872 fi;
1873   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1874 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1875
1876
1877 if test $USE_MAINTAINER_MODE = yes; then
1878   MAINTAINER_MODE_TRUE=
1879   MAINTAINER_MODE_FALSE='#'
1880 else
1881   MAINTAINER_MODE_TRUE='#'
1882   MAINTAINER_MODE_FALSE=
1883 fi
1884
1885   MAINT=$MAINTAINER_MODE_TRUE
1886
1887
1888
1889 SHELL=${CONFIG_SHELL-"/bin/sh"}
1890 WISH=${WISH-"wish"}
1891
1892 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1893 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1894 echo "grimblepritz" >grimble
1895 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1896         contains="./contains"
1897 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1898         contains=grep
1899 else
1900         contains="./contains"
1901 fi
1902 rm -f grimble
1903 case "$contains" in
1904 grep)   echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1906         ;;
1907 ./contains)
1908         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1909 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1910         cat >./contains <<'EOSS'
1911 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1912 EOSS
1913         chmod +x "./contains"
1914         ;;
1915 esac
1916
1917
1918 # Check for compiler options -- such as debug flags.
1919
1920 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1921 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1922 # Check whether --enable-debug or --disable-debug was given.
1923 if test "${enable_debug+set}" = set; then
1924   enableval="$enable_debug"
1925   timidity_cv_debug="yes"
1926 else
1927   timidity_cv_debug="no"
1928 fi;
1929 if test "x$timidity_cv_debug" = "xyes"; then
1930
1931 cat >>confdefs.h <<\_ACEOF
1932 #define DEBUG 1
1933 _ACEOF
1934
1935   CFLAGS=${CFLAGS-"-g"}
1936 fi
1937 if test "x$timidity_cv_debug" = "xno"; then
1938
1939 cat >>confdefs.h <<\_ACEOF
1940 #define NDEBUG 1
1941 _ACEOF
1942
1943 fi
1944 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1945 echo "${ECHO_T}$timidity_cv_debug" >&6
1946
1947 CFLAGS=${CFLAGS-"-O2"}
1948
1949 if test "x$with_x" = x; then
1950   with_x=yes
1951 else
1952   x_config_flag=yes
1953 fi
1954
1955 # Checking gcc environment
1956 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1957   LDFLAGS="$LDFLAGS -L${i}"
1958 done
1959 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1960   CPPFLAGS="$CPPFLAGS -I${i}"
1961 done
1962
1963 # add $prefix if specified.
1964 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1965   LDFLAGS="-L$prefix/lib $LDFLAGS"
1966   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1967   CPPFLAGS="-I$prefix/include $CPPFLAGS"
1968 fi
1969
1970
1971 # Check whether --with-includes or --without-includes was given.
1972 if test "${with_includes+set}" = set; then
1973   withval="$with_includes"
1974    j=' '
1975     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1976       j="${j}-I${i} "
1977     done
1978     CPPFLAGS="$j$CPPFLAGS"
1979
1980 fi;
1981
1982
1983 # Check whether --with-libraries or --without-libraries was given.
1984 if test "${with_libraries+set}" = set; then
1985   withval="$with_libraries"
1986    j=' '
1987     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1988       j="${j}-L${i} "
1989     done
1990     LDFLAGS="$j$LDFLAGS"
1991
1992 fi;
1993
1994
1995
1996 # Check whether --with-default-path or --without-default-path was given.
1997 if test "${with_default_path+set}" = set; then
1998   withval="$with_default_path"
1999   pkgdatadir=$withval
2000 else
2001
2002    if test "x$prefix" != "xNONE"; then
2003       pkgdatadir='${prefix}/share/timidity'
2004    else
2005       pkgdatadir='/usr/local/share/timidity'
2006    fi
2007
2008 fi;
2009 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define DEFAULT_PATH "$tmpdefpath"
2013 _ACEOF
2014
2015
2016 cat >>confdefs.h <<\_ACEOF
2017 #define PKGDATADIR DEFAULT_PATH
2018 _ACEOF
2019
2020
2021
2022 # Check whether --with-module-dir or --without-module-dir was given.
2023 if test "${with_module_dir+set}" = set; then
2024   withval="$with_module_dir"
2025   pkglibdir=$withval
2026 else
2027
2028    if test "x$prefix" != "xNONE"; then
2029       pkglibdir='${prefix}/lib/timidity'
2030    else
2031       pkglibdir='/usr/local/lib/timidity'
2032    fi
2033
2034 fi;
2035 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PKGLIBDIR "$tmplibdir"
2039 _ACEOF
2040
2041
2042
2043 # Checks for programs.
2044
2045 # Check whether --with-lispdir or --without-lispdir was given.
2046 if test "${with_lispdir+set}" = set; then
2047   withval="$with_lispdir"
2048    lispdir="$withval"
2049    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2050 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2051    echo "$as_me:$LINENO: result: $lispdir" >&5
2052 echo "${ECHO_T}$lispdir" >&6
2053 else
2054
2055  # If set to t, that means we are running in a shell under Emacs.
2056  # If you have an Emacs named "t", then use the full path.
2057  test x"$EMACS" = xt && EMACS=
2058  for ac_prog in emacs xemacs
2059 do
2060   # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_EMACS+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test -n "$EMACS"; then
2068   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077     ac_cv_prog_EMACS="$ac_prog"
2078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 EMACS=$ac_cv_prog_EMACS
2087 if test -n "$EMACS"; then
2088   echo "$as_me:$LINENO: result: $EMACS" >&5
2089 echo "${ECHO_T}$EMACS" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095   test -n "$EMACS" && break
2096 done
2097 test -n "$EMACS" || EMACS="no"
2098
2099  if test $EMACS != "no"; then
2100    if test x${lispdir+set} != xset; then
2101      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2102 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2103 if test "${am_cv_lispdir+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2107   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2108   #  which is non-obvious for non-emacs users.
2109   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2110   #  emacsen earlier and avoid running this altogether.
2111   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2112   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }
2116         am_cv_lispdir=`sed -n \
2117        -e 's,/$,,' \
2118        -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2119        -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2120        conftest.out`
2121        rm conftest.out
2122        if test -z "$am_cv_lispdir"; then
2123          am_cv_lispdir='${datadir}/emacs/site-lisp'
2124        fi
2125
2126 fi
2127 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2128 echo "${ECHO_T}$am_cv_lispdir" >&6
2129      lispdir="$am_cv_lispdir"
2130    fi
2131  fi
2132
2133 fi;
2134
2135
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141 if test -n "$ac_tool_prefix"; then
2142   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$CC"; then
2150   ac_cv_prog_CC="$CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 fi
2178 if test -z "$ac_cv_prog_CC"; then
2179   ac_ct_CC=$CC
2180   # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$ac_ct_CC"; then
2188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197     ac_cv_prog_ac_ct_CC="gcc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203
2204 fi
2205 fi
2206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207 if test -n "$ac_ct_CC"; then
2208   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209 echo "${ECHO_T}$ac_ct_CC" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215   CC=$ac_ct_CC
2216 else
2217   CC="$ac_cv_prog_CC"
2218 fi
2219
2220 if test -z "$CC"; then
2221   if test -n "$ac_tool_prefix"; then
2222   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2223 set dummy ${ac_tool_prefix}cc; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test -n "$CC"; then
2230   ac_cv_prog_CC="$CC" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239     ac_cv_prog_CC="${ac_tool_prefix}cc"
2240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2245
2246 fi
2247 fi
2248 CC=$ac_cv_prog_CC
2249 if test -n "$CC"; then
2250   echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6
2252 else
2253   echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2255 fi
2256
2257 fi
2258 if test -z "$ac_cv_prog_CC"; then
2259   ac_ct_CC=$CC
2260   # Extract the first word of "cc", so it can be a program name with args.
2261 set dummy cc; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$ac_ct_CC"; then
2268   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_ac_ct_CC="cc"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284 fi
2285 fi
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295   CC=$ac_ct_CC
2296 else
2297   CC="$ac_cv_prog_CC"
2298 fi
2299
2300 fi
2301 if test -z "$CC"; then
2302   # Extract the first word of "cc", so it can be a program name with args.
2303 set dummy cc; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   if test -n "$CC"; then
2310   ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
2312   ac_prog_rejected=no
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316   IFS=$as_save_IFS
2317   test -z "$as_dir" && as_dir=.
2318   for ac_exec_ext in '' $ac_executable_extensions; do
2319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2321        ac_prog_rejected=yes
2322        continue
2323      fi
2324     ac_cv_prog_CC="cc"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330
2331 if test $ac_prog_rejected = yes; then
2332   # We found a bogon in the path, so make sure we never use it.
2333   set dummy $ac_cv_prog_CC
2334   shift
2335   if test $# != 0; then
2336     # We chose a different compiler from the bogus one.
2337     # However, it has the same basename, so the bogon will be chosen
2338     # first if we set CC to just the basename; use the full file name.
2339     shift
2340     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2341   fi
2342 fi
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347   echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2349 else
2350   echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 fi
2355 if test -z "$CC"; then
2356   if test -n "$ac_tool_prefix"; then
2357   for ac_prog in cl
2358   do
2359     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   if test -n "$CC"; then
2367   ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382
2383 fi
2384 fi
2385 CC=$ac_cv_prog_CC
2386 if test -n "$CC"; then
2387   echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2389 else
2390   echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2392 fi
2393
2394     test -n "$CC" && break
2395   done
2396 fi
2397 if test -z "$CC"; then
2398   ac_ct_CC=$CC
2399   for ac_prog in cl
2400 do
2401   # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     ac_cv_prog_ac_ct_CC="$ac_prog"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2431 else
2432   echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2434 fi
2435
2436   test -n "$ac_ct_CC" && break
2437 done
2438
2439   CC=$ac_ct_CC
2440 fi
2441
2442 fi
2443
2444
2445 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&5
2447 echo "$as_me: error: no acceptable C compiler found in \$PATH
2448 See \`config.log' for more details." >&2;}
2449    { (exit 1); exit 1; }; }
2450
2451 # Provide some information about the compiler.
2452 echo "$as_me:$LINENO:" \
2453      "checking for C compiler version" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2456   (eval $ac_compiler --version </dev/null >&5) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }
2460 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2461   (eval $ac_compiler -v </dev/null >&5) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }
2465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2466   (eval $ac_compiler -V </dev/null >&5) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }
2470
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #line $LINENO "configure"
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478
2479 int
2480 main ()
2481 {
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 ac_clean_files_save=$ac_clean_files
2488 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2489 # Try to create an executable without -o first, disregard a.out.
2490 # It will help us diagnose broken compilers, and finding out an intuition
2491 # of exeext.
2492 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2493 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2494 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2496   (eval $ac_link_default) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; then
2500   # Find the output, starting from the most likely.  This scheme is
2501 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2502 # resort.
2503
2504 # Be careful to initialize this variable, since it used to be cached.
2505 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2506 ac_cv_exeext=
2507 # b.out is created by i960 compilers.
2508 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2509 do
2510   test -f "$ac_file" || continue
2511   case $ac_file in
2512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2513         ;;
2514     conftest.$ac_ext )
2515         # This is the source file.
2516         ;;
2517     [ab].out )
2518         # We found the default executable, but exeext='' is most
2519         # certainly right.
2520         break;;
2521     *.* )
2522         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523         # FIXME: I believe we export ac_cv_exeext for Libtool,
2524         # but it would be cool to find out if it's true.  Does anybody
2525         # maintain Libtool? --akim.
2526         export ac_cv_exeext
2527         break;;
2528     * )
2529         break;;
2530   esac
2531 done
2532 else
2533   echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540    { (exit 77); exit 77; }; }
2541 fi
2542
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2546
2547 # Check the compiler produces executables we can run.  If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554   if { ac_try='./$ac_file'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560     cross_compiling=no
2561   else
2562     if test "$cross_compiling" = maybe; then
2563         cross_compiling=yes
2564     else
2565         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }
2572     fi
2573   fi
2574 fi
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577
2578 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 # Check the compiler produces executables we can run.  If not, either
2581 # the compiler is broken, or we cross compile.
2582 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2584 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585 echo "${ECHO_T}$cross_compiling" >&6
2586
2587 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590   (eval $ac_link) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; then
2594   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2597 # `rm'.
2598 for ac_file in conftest.exe conftest conftest.*; do
2599   test -f "$ac_file" || continue
2600   case $ac_file in
2601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603           export ac_cv_exeext
2604           break;;
2605     * ) break;;
2606   esac
2607 done
2608 else
2609   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&2;}
2613    { (exit 1); exit 1; }; }
2614 fi
2615
2616 rm -f conftest$ac_cv_exeext
2617 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2618 echo "${ECHO_T}$ac_cv_exeext" >&6
2619
2620 rm -f conftest.$ac_ext
2621 EXEEXT=$ac_cv_exeext
2622 ac_exeext=$EXEEXT
2623 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2624 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2625 if test "${ac_cv_objext+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.o conftest.obj
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; then
2650   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2653     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654        break;;
2655   esac
2656 done
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665    { (exit 1); exit 1; }; }
2666 fi
2667
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669 fi
2670 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6
2672 OBJEXT=$ac_cv_objext
2673 ac_objext=$OBJEXT
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2676 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690 #ifndef __GNUC__
2691        choke me
2692 #endif
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -s conftest.$ac_objext'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; }; then
2710   ac_compiler_gnu=yes
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 ac_compiler_gnu=no
2716 fi
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2719
2720 fi
2721 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2722 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2723 GCC=`test $ac_compiler_gnu = yes && echo yes`
2724 ac_test_CFLAGS=${CFLAGS+set}
2725 ac_save_CFLAGS=$CFLAGS
2726 CFLAGS="-g"
2727 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2728 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2729 if test "${ac_cv_prog_cc_g+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   cat >conftest.$ac_ext <<_ACEOF
2733 #line $LINENO "configure"
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750   (eval $ac_compile) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   ac_cv_prog_cc_g=yes
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 ac_cv_prog_cc_g=no
2766 fi
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2768 fi
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2771 if test "$ac_test_CFLAGS" = set; then
2772   CFLAGS=$ac_save_CFLAGS
2773 elif test $ac_cv_prog_cc_g = yes; then
2774   if test "$GCC" = yes; then
2775     CFLAGS="-g -O2"
2776   else
2777     CFLAGS="-g"
2778   fi
2779 else
2780   if test "$GCC" = yes; then
2781     CFLAGS="-O2"
2782   else
2783     CFLAGS=
2784   fi
2785 fi
2786 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2787 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2788 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   ac_cv_prog_cc_stdc=no
2792 ac_save_CC=$CC
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 #include <stdarg.h>
2801 #include <stdio.h>
2802 #include <sys/types.h>
2803 #include <sys/stat.h>
2804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2805 struct buf { int x; };
2806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2807 static char *e (p, i)
2808      char **p;
2809      int i;
2810 {
2811   return p[i];
2812 }
2813 static char *f (char * (*g) (char **, int), char **p, ...)
2814 {
2815   char *s;
2816   va_list v;
2817   va_start (v,p);
2818   s = g (p, va_arg (v,int));
2819   va_end (v);
2820   return s;
2821 }
2822 int test (int i, double x);
2823 struct s1 {int (*f) (int a);};
2824 struct s2 {int (*f) (double a);};
2825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2826 int argc;
2827 char **argv;
2828 int
2829 main ()
2830 {
2831 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 # Don't try gcc -ansi; that turns off useful extensions and
2837 # breaks some systems' header files.
2838 # AIX                   -qlanglvl=ansi
2839 # Ultrix and OSF/1      -std1
2840 # HP-UX 10.20 and later -Ae
2841 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2842 # SVR4                  -Xc -D__EXTENSIONS__
2843 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2844 do
2845   CC="$ac_save_CC $ac_arg"
2846   rm -f conftest.$ac_objext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848   (eval $ac_compile) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   ac_cv_prog_cc_stdc=$ac_arg
2859 break
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 fi
2865 rm -f conftest.$ac_objext
2866 done
2867 rm -f conftest.$ac_ext conftest.$ac_objext
2868 CC=$ac_save_CC
2869
2870 fi
2871
2872 case "x$ac_cv_prog_cc_stdc" in
2873   x|xno)
2874     echo "$as_me:$LINENO: result: none needed" >&5
2875 echo "${ECHO_T}none needed" >&6 ;;
2876   *)
2877     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2878 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2879     CC="$CC $ac_cv_prog_cc_stdc" ;;
2880 esac
2881
2882 # Some people use a C++ compiler to compile C.  Since we use `exit',
2883 # in C++ we need to declare it.  In case someone uses the same compiler
2884 # for both compiling C and C++ we need to have the C++ compiler decide
2885 # the declaration of exit, since it's the most demanding environment.
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #ifndef __cplusplus
2888   choke me
2889 #endif
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893   (eval $ac_compile) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   for ac_declaration in \
2904    ''\
2905    '#include <stdlib.h>' \
2906    'extern "C" void std::exit (int) throw (); using std::exit;' \
2907    'extern "C" void std::exit (int); using std::exit;' \
2908    'extern "C" void exit (int) throw ();' \
2909    'extern "C" void exit (int);' \
2910    'void exit (int);'
2911 do
2912   cat >conftest.$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #include <stdlib.h>
2920 $ac_declaration
2921 int
2922 main ()
2923 {
2924 exit (42);
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   (eval $ac_compile) 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -s conftest.$ac_objext'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; }; then
2941   :
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 continue
2947 fi
2948 rm -f conftest.$ac_objext conftest.$ac_ext
2949   cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956 $ac_declaration
2957 int
2958 main ()
2959 {
2960 exit (42);
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967   (eval $ac_compile) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } &&
2971          { ac_try='test -s conftest.$ac_objext'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   break
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 fi
2983 rm -f conftest.$ac_objext conftest.$ac_ext
2984 done
2985 rm -f conftest*
2986 if test -n "$ac_declaration"; then
2987   echo '#ifdef __cplusplus' >>confdefs.h
2988   echo $ac_declaration      >>confdefs.h
2989   echo '#endif'             >>confdefs.h
2990 fi
2991
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 fi
2997 rm -f conftest.$ac_objext conftest.$ac_ext
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 DEPDIR="${am__leading_dot}deps"
3004
3005           ac_config_commands="$ac_config_commands depfiles"
3006
3007
3008 am_make=${MAKE-make}
3009 cat > confinc << 'END'
3010 am__doit:
3011         @echo done
3012 .PHONY: am__doit
3013 END
3014 # If we don't find an include directive, just comment out the code.
3015 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3016 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3017 am__include="#"
3018 am__quote=
3019 _am_result=none
3020 # First try GNU make style include.
3021 echo "include confinc" > confmf
3022 # We grep out `Entering directory' and `Leaving directory'
3023 # messages which can occur if `w' ends up in MAKEFLAGS.
3024 # In particular we don't look at `^make:' because GNU make might
3025 # be invoked under some other name (usually "gmake"), in which
3026 # case it prints its new name instead of `make'.
3027 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3028    am__include=include
3029    am__quote=
3030    _am_result=GNU
3031 fi
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034    echo '.include "confinc"' > confmf
3035    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3036       am__include=.include
3037       am__quote="\""
3038       _am_result=BSD
3039    fi
3040 fi
3041
3042
3043 echo "$as_me:$LINENO: result: $_am_result" >&5
3044 echo "${ECHO_T}$_am_result" >&6
3045 rm -f confinc confmf
3046
3047 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3048 if test "${enable_dependency_tracking+set}" = set; then
3049   enableval="$enable_dependency_tracking"
3050
3051 fi;
3052 if test "x$enable_dependency_tracking" != xno; then
3053   am_depcomp="$ac_aux_dir/depcomp"
3054   AMDEPBACKSLASH='\'
3055 fi
3056
3057
3058 if test "x$enable_dependency_tracking" != xno; then
3059   AMDEP_TRUE=
3060   AMDEP_FALSE='#'
3061 else
3062   AMDEP_TRUE='#'
3063   AMDEP_FALSE=
3064 fi
3065
3066
3067
3068
3069 depcc="$CC"   am_compiler_list=
3070
3071 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3072 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3077   # We make a subdir and do the tests there.  Otherwise we can end up
3078   # making bogus files that we don't know about and never remove.  For
3079   # instance it was reported that on HP-UX the gcc test will end up
3080   # making a dummy file named `D' -- because `-MD' means `put the output
3081   # in D'.
3082   mkdir conftest.dir
3083   # Copy depcomp to subdir because otherwise we won't find it if we're
3084   # using a relative directory.
3085   cp "$am_depcomp" conftest.dir
3086   cd conftest.dir
3087
3088   am_cv_CC_dependencies_compiler_type=none
3089   if test "$am_compiler_list" = ""; then
3090      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3091   fi
3092   for depmode in $am_compiler_list; do
3093     # We need to recreate these files for each test, as the compiler may
3094     # overwrite some of them when testing with obscure command lines.
3095     # This happens at least with the AIX C compiler.
3096     echo '#include "conftest.h"' > conftest.c
3097     echo 'int i;' > conftest.h
3098     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3099
3100     case $depmode in
3101     nosideeffect)
3102       # after this tag, mechanisms are not by side-effect, so they'll
3103       # only be used when explicitly requested
3104       if test "x$enable_dependency_tracking" = xyes; then
3105         continue
3106       else
3107         break
3108       fi
3109       ;;
3110     none) break ;;
3111     esac
3112     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3113     # mode.  It turns out that the SunPro C++ compiler does not properly
3114     # handle `-M -o', and we need to detect this.
3115     if depmode=$depmode \
3116        source=conftest.c object=conftest.o \
3117        depfile=conftest.Po tmpdepfile=conftest.TPo \
3118        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3119          >/dev/null 2>conftest.err &&
3120        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3121        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3122       # icc doesn't choke on unknown options, it will just issue warnings
3123       # (even with -Werror).  So we grep stderr for any message
3124       # that says an option was ignored.
3125       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3126         am_cv_CC_dependencies_compiler_type=$depmode
3127         break
3128       fi
3129     fi
3130   done
3131
3132   cd ..
3133   rm -rf conftest.dir
3134 else
3135   am_cv_CC_dependencies_compiler_type=none
3136 fi
3137
3138 fi
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3142
3143
3144
3145 if
3146   test "x$enable_dependency_tracking" != xno \
3147   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3148   am__fastdepCC_TRUE=
3149   am__fastdepCC_FALSE='#'
3150 else
3151   am__fastdepCC_TRUE='#'
3152   am__fastdepCC_FALSE=
3153 fi
3154
3155
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3163 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3164 # On Suns, sometimes $CPP names a directory.
3165 if test -n "$CPP" && test -d "$CPP"; then
3166   CPP=
3167 fi
3168 if test -z "$CPP"; then
3169   if test "${ac_cv_prog_CPP+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172       # Double quotes because CPP needs to be expanded
3173     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3174     do
3175       ac_preproc_ok=false
3176 for ac_c_preproc_warn_flag in '' yes
3177 do
3178   # Use a header file that comes with gcc, so configuring glibc
3179   # with a fresh cross-compiler works.
3180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181   # <limits.h> exists even on freestanding compilers.
3182   # On the NeXT, cc -E runs the code through the compiler's parser,
3183   # not just through cpp. "Syntax error" is here to catch this case.
3184   cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #ifdef __STDC__
3192 # include <limits.h>
3193 #else
3194 # include <assert.h>
3195 #endif
3196                      Syntax error
3197 _ACEOF
3198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } >/dev/null; then
3206   if test -s conftest.err; then
3207     ac_cpp_err=$ac_c_preproc_warn_flag
3208   else
3209     ac_cpp_err=
3210   fi
3211 else
3212   ac_cpp_err=yes
3213 fi
3214 if test -z "$ac_cpp_err"; then
3215   :
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220   # Broken: fails on valid input.
3221 continue
3222 fi
3223 rm -f conftest.err conftest.$ac_ext
3224
3225   # OK, works on sane cases.  Now check whether non-existent headers
3226   # can be detected and how.
3227   cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } >/dev/null; then
3244   if test -s conftest.err; then
3245     ac_cpp_err=$ac_c_preproc_warn_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   # Broken: success on invalid input.
3254 continue
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259   # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3269   break
3270 fi
3271
3272     done
3273     ac_cv_prog_CPP=$CPP
3274
3275 fi
3276   CPP=$ac_cv_prog_CPP
3277 else
3278   ac_cv_prog_CPP=$CPP
3279 fi
3280 echo "$as_me:$LINENO: result: $CPP" >&5
3281 echo "${ECHO_T}$CPP" >&6
3282 ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3284 do
3285   # Use a header file that comes with gcc, so configuring glibc
3286   # with a fresh cross-compiler works.
3287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288   # <limits.h> exists even on freestanding compilers.
3289   # On the NeXT, cc -E runs the code through the compiler's parser,
3290   # not just through cpp. "Syntax error" is here to catch this case.
3291   cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3303                      Syntax error
3304 _ACEOF
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } >/dev/null; then
3313   if test -s conftest.err; then
3314     ac_cpp_err=$ac_c_preproc_warn_flag
3315   else
3316     ac_cpp_err=
3317   fi
3318 else
3319   ac_cpp_err=yes
3320 fi
3321 if test -z "$ac_cpp_err"; then
3322   :
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327   # Broken: fails on valid input.
3328 continue
3329 fi
3330 rm -f conftest.err conftest.$ac_ext
3331
3332   # OK, works on sane cases.  Now check whether non-existent headers
3333   # can be detected and how.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <ac_nonexistent.h>
3342 _ACEOF
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } >/dev/null; then
3351   if test -s conftest.err; then
3352     ac_cpp_err=$ac_c_preproc_warn_flag
3353   else
3354     ac_cpp_err=
3355   fi
3356 else
3357   ac_cpp_err=yes
3358 fi
3359 if test -z "$ac_cpp_err"; then
3360   # Broken: success on invalid input.
3361 continue
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366   # Passes both tests.
3367 ac_preproc_ok=:
3368 break
3369 fi
3370 rm -f conftest.err conftest.$ac_ext
3371
3372 done
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3376   :
3377 else
3378   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3379 See \`config.log' for more details." >&5
3380 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3381 See \`config.log' for more details." >&2;}
3382    { (exit 1); exit 1; }; }
3383 fi
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
3392 echo "$as_me:$LINENO: checking for egrep" >&5
3393 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3394 if test "${ac_cv_prog_egrep+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3398     then ac_cv_prog_egrep='grep -E'
3399     else ac_cv_prog_egrep='egrep'
3400     fi
3401 fi
3402 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3403 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3404  EGREP=$ac_cv_prog_egrep
3405
3406
3407 if test $ac_cv_c_compiler_gnu = yes; then
3408     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3409 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3410 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413     ac_pattern="Autoconf.*'x'"
3414   cat >conftest.$ac_ext <<_ACEOF
3415 #line $LINENO "configure"
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #include <sgtty.h>
3422 Autoconf TIOCGETP
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3426   ac_cv_prog_gcc_traditional=yes
3427 else
3428   ac_cv_prog_gcc_traditional=no
3429 fi
3430 rm -f conftest*
3431
3432
3433   if test $ac_cv_prog_gcc_traditional = no; then
3434     cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441 #include <termio.h>
3442 Autoconf TCGETA
3443 _ACEOF
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3446   ac_cv_prog_gcc_traditional=yes
3447 fi
3448 rm -f conftest*
3449
3450   fi
3451 fi
3452 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3454   if test $ac_cv_prog_gcc_traditional = yes; then
3455     CC="$CC -traditional"
3456   fi
3457 fi
3458
3459 # Find a good install program.  We prefer a C program (faster),
3460 # so one script is as good as another.  But avoid the broken or
3461 # incompatible versions:
3462 # SysV /etc/install, /usr/sbin/install
3463 # SunOS /usr/etc/install
3464 # IRIX /sbin/install
3465 # AIX /bin/install
3466 # AmigaOS /C/install, which installs bootblocks on floppy discs
3467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3470 # ./install, which can be erroneously created by make from ./install.sh.
3471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3473 if test -z "$INSTALL"; then
3474 if test "${ac_cv_path_install+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   # Account for people who put trailing slashes in PATH elements.
3483 case $as_dir/ in
3484   ./ | .// | /cC/* | \
3485   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3486   /usr/ucb/* ) ;;
3487   *)
3488     # OSF1 and SCO ODT 3.0 have their own names for install.
3489     # Don't use installbsd from OSF since it installs stuff as root
3490     # by default.
3491     for ac_prog in ginstall scoinst install; do
3492       for ac_exec_ext in '' $ac_executable_extensions; do
3493         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3494           if test $ac_prog = install &&
3495             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3496             # AIX install.  It has an incompatible calling convention.
3497             :
3498           elif test $ac_prog = install &&
3499             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3500             # program-specific install script used by HP pwplus--don't use.
3501             :
3502           else
3503             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3504             break 3
3505           fi
3506         fi
3507       done
3508     done
3509     ;;
3510 esac
3511 done
3512
3513
3514 fi
3515   if test "${ac_cv_path_install+set}" = set; then
3516     INSTALL=$ac_cv_path_install
3517   else
3518     # As a last resort, use the slow shell script.  We don't cache a
3519     # path for INSTALL within a source directory, because that will
3520     # break other packages using the cache if that directory is
3521     # removed, or if the path is relative.
3522     INSTALL=$ac_install_sh
3523   fi
3524 fi
3525 echo "$as_me:$LINENO: result: $INSTALL" >&5
3526 echo "${ECHO_T}$INSTALL" >&6
3527
3528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529 # It thinks the first close brace ends the variable substitution.
3530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531
3532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3533
3534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535
3536 for ac_prog in gawk mawk nawk awk
3537 do
3538   # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AWK+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test -n "$AWK"; then
3546   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_prog_AWK="$ac_prog"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562 fi
3563 fi
3564 AWK=$ac_cv_prog_AWK
3565 if test -n "$AWK"; then
3566   echo "$as_me:$LINENO: result: $AWK" >&5
3567 echo "${ECHO_T}$AWK" >&6
3568 else
3569   echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573   test -n "$AWK" && break
3574 done
3575
3576 if test -n "$ac_tool_prefix"; then
3577   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_RANLIB+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$RANLIB"; then
3585   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601 fi
3602 fi
3603 RANLIB=$ac_cv_prog_RANLIB
3604 if test -n "$RANLIB"; then
3605   echo "$as_me:$LINENO: result: $RANLIB" >&5
3606 echo "${ECHO_T}$RANLIB" >&6
3607 else
3608   echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3610 fi
3611
3612 fi
3613 if test -z "$ac_cv_prog_RANLIB"; then
3614   ac_ct_RANLIB=$RANLIB
3615   # Extract the first word of "ranlib", so it can be a program name with args.
3616 set dummy ranlib; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test -n "$ac_ct_RANLIB"; then
3623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_prog_ac_ct_RANLIB="ranlib"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3640 fi
3641 fi
3642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3643 if test -n "$ac_ct_RANLIB"; then
3644   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3645 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3646 else
3647   echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3649 fi
3650
3651   RANLIB=$ac_ct_RANLIB
3652 else
3653   RANLIB="$ac_cv_prog_RANLIB"
3654 fi
3655
3656 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3657 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3658 LN_S=$as_ln_s
3659 if test "$LN_S" = "ln -s"; then
3660   echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662 else
3663   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3664 echo "${ECHO_T}no, using $LN_S" >&6
3665 fi
3666
3667 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3668 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3669 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3670 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   cat > conftest.$ac_ext <<EOF
3674 int main() {return 0;}
3675 EOF
3676 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3677     if test -s conftest.out; then
3678         eval "timidity_cv_ccoption_$ac_ccoption=no"
3679     else
3680         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3681     fi
3682 else
3683     eval "timidity_cv_ccoption_$ac_ccoption=no"
3684 fi
3685
3686 fi
3687
3688 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3689   echo "$as_me:$LINENO: result: yes" >&5
3690 echo "${ECHO_T}yes" >&6
3691
3692 else
3693   echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3695
3696 fi
3697
3698
3699 # Checks for target dependencies
3700
3701
3702 # Check whether --with-elf or --without-elf was given.
3703 if test "${with_elf+set}" = set; then
3704   withval="$with_elf"
3705    ELFFORMAT=$withval
3706 else
3707    ELFFORMAT="yes"
3708 fi;
3709
3710
3711 # Check whether --with-simd or --without-simd was given.
3712 if test "${with_simd+set}" = set; then
3713   withval="$with_simd"
3714    SIMD=$withval
3715 else
3716    SIMD="no"
3717 fi;
3718
3719 case "$target" in
3720   *-*-hpux*)
3721     EXTRADEFS="-DHPUX"
3722     test -n "$SHLD" || SHLD="ld -b"
3723     so="sl"
3724     ;;
3725   *-sgi-irix*)
3726         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3727     test -n "$SHLD" || SHLD="cc -shared -all"
3728     so="so"
3729     ;;
3730   *-*-netbsd*)
3731     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3732     so="so"
3733     ;;
3734
3735   *-*-freebsd2*)
3736         test -n "$SHLD" || SHLD="ld -Bshareable"
3737     so="so"
3738     ;;
3739   *-*-freebsd*)
3740     if test "$ELFFORMAT" = yes; then
3741         test -n "$SHLD" || SHLD="ld -Bshareable"
3742     else
3743         SHCFLAGS=-aou
3744         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3745         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3746     fi
3747         so="so"
3748     ;;
3749
3750 #  *-*-freebsd*)
3751 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3752 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3753 #    so="so"
3754 #  ;;
3755
3756   *-*-cygwin*)
3757     EXTRADEFS="-D__W32__"
3758     # ??
3759     case "x${CC} " in
3760       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3761       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3762       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3763       *) test -n "$SHLD" || SHLD="unknown" ;;
3764     esac
3765     so="dll"
3766     CYGNUS=yes
3767     lib_user32_test=-luser32
3768     ;;
3769   *-*-mingw*)
3770     EXTRADEFS="-D__W32__"
3771     # ??
3772     case "x${CC} " in
3773       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3774       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3775       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3776       *) test -n "$SHLD" || SHLD="unknown" ;;
3777     esac
3778     so="dll"
3779     MINGW=yes
3780     lib_user32_test=-luser32
3781     ;;
3782   *-dec-*)
3783     EXTRADEFS="-DDEC"
3784     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3785     so="so"
3786     ;;
3787   *-*-solaris*)
3788     EXTRADEFS="-DSOLARIS"
3789     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3790     so="so"
3791     ;;
3792   *-*-nextstep*)
3793     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3794     so="so"
3795     ;;
3796   *-*-darwin*)
3797     if test "x$SIMD" = "xyes"; then
3798
3799 cat >>confdefs.h <<\_ACEOF
3800 #define USE_ALTIVEC 1
3801 _ACEOF
3802
3803        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3804        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3805     else
3806
3807 cat >>confdefs.h <<\_ACEOF
3808 #define USE_ALTIVEC 0
3809 _ACEOF
3810
3811     fi
3812     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3813     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3814     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3815     so="bundle"
3816     ;;
3817   *)
3818     test -n "$SHLD" || \
3819       if test "x$GCC" = xyes; then
3820         SHLD="$CC -shared"
3821       else
3822         SHLD="ld -Bdynamic -G"
3823       fi
3824     so="so"
3825     ;;
3826 esac
3827
3828
3829 # Checks for libraries.
3830
3831 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3832 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3833 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   ac_check_lib_save_LIBS=$LIBS
3837 LIBS="-lm  $LIBS"
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845
3846 /* Override any gcc2 internal prototype to avoid an error.  */
3847 #ifdef __cplusplus
3848 extern "C"
3849 #endif
3850 /* We use char because int might match the return type of a gcc2
3851    builtin and then its argument prototype would still apply.  */
3852 char sqrt ();
3853 int
3854 main ()
3855 {
3856 sqrt ();
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863   (eval $ac_link) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -s conftest$ac_exeext'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; }; then
3873   ac_cv_lib_m_sqrt=yes
3874 else
3875   echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 ac_cv_lib_m_sqrt=no
3879 fi
3880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3881 LIBS=$ac_check_lib_save_LIBS
3882 fi
3883 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3884 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3885 if test $ac_cv_lib_m_sqrt = yes; then
3886   cat >>confdefs.h <<_ACEOF
3887 #define HAVE_LIBM 1
3888 _ACEOF
3889
3890   LIBS="-lm $LIBS"
3891
3892 fi
3893
3894
3895 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3896 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3897 if test "${ac_cv_lib_socket_socket+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-lsocket  $LIBS"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line $LINENO "configure"
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909
3910 /* Override any gcc2 internal prototype to avoid an error.  */
3911 #ifdef __cplusplus
3912 extern "C"
3913 #endif
3914 /* We use char because int might match the return type of a gcc2
3915    builtin and then its argument prototype would still apply.  */
3916 char socket ();
3917 int
3918 main ()
3919 {
3920 socket ();
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -s conftest$ac_exeext'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   ac_cv_lib_socket_socket=yes
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ac_cv_lib_socket_socket=no
3943 fi
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3945 LIBS=$ac_check_lib_save_LIBS
3946 fi
3947 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3948 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3949 if test $ac_cv_lib_socket_socket = yes; then
3950   cat >>confdefs.h <<_ACEOF
3951 #define HAVE_LIBSOCKET 1
3952 _ACEOF
3953
3954   LIBS="-lsocket $LIBS"
3955
3956 fi
3957
3958 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   ac_check_lib_save_LIBS=$LIBS
3964 LIBS="-ldl  $LIBS"
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line $LINENO "configure"
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972
3973 /* Override any gcc2 internal prototype to avoid an error.  */
3974 #ifdef __cplusplus
3975 extern "C"
3976 #endif
3977 /* We use char because int might match the return type of a gcc2
3978    builtin and then its argument prototype would still apply.  */
3979 char dlopen ();
3980 int
3981 main ()
3982 {
3983 dlopen ();
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest.$ac_objext conftest$ac_exeext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990   (eval $ac_link) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } &&
3994          { ac_try='test -s conftest$ac_exeext'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; }; then
4000   ac_cv_lib_dl_dlopen=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ac_cv_lib_dl_dlopen=no
4006 fi
4007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4009 fi
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4012 if test $ac_cv_lib_dl_dlopen = yes; then
4013   lib_dl_opt=-ldl
4014 fi
4015
4016 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4017 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4018 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   ac_check_lib_save_LIBS=$LIBS
4022 LIBS="-lobjc  $LIBS"
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030
4031 /* Override any gcc2 internal prototype to avoid an error.  */
4032 #ifdef __cplusplus
4033 extern "C"
4034 #endif
4035 /* We use char because int might match the return type of a gcc2
4036    builtin and then its argument prototype would still apply.  */
4037 char NSLinkModule ();
4038 int
4039 main ()
4040 {
4041 NSLinkModule ();
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext conftest$ac_exeext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048   (eval $ac_link) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -s conftest$ac_exeext'
4053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054   (eval $ac_try) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; }; then
4058   ac_cv_lib_objc_NSLinkModule=yes
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_cv_lib_objc_NSLinkModule=no
4064 fi
4065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4066 LIBS=$ac_check_lib_save_LIBS
4067 fi
4068 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4069 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4070 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4071   lib_dl_opt=-lobjc
4072 fi
4073  # Mac OS X need this.
4074
4075 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4076 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4077 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   ac_check_lib_save_LIBS=$LIBS
4081 LIBS="-lxpg4  $LIBS"
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089
4090 /* Override any gcc2 internal prototype to avoid an error.  */
4091 #ifdef __cplusplus
4092 extern "C"
4093 #endif
4094 /* We use char because int might match the return type of a gcc2
4095    builtin and then its argument prototype would still apply.  */
4096 char setlocale ();
4097 int
4098 main ()
4099 {
4100 setlocale ();
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext conftest$ac_exeext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107   (eval $ac_link) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -s conftest$ac_exeext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   ac_cv_lib_xpg4_setlocale=yes
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 ac_cv_lib_xpg4_setlocale=no
4123 fi
4124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4125 LIBS=$ac_check_lib_save_LIBS
4126 fi
4127 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4128 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4129 if test $ac_cv_lib_xpg4_setlocale = yes; then
4130   cat >>confdefs.h <<_ACEOF
4131 #define HAVE_LIBXPG4 1
4132 _ACEOF
4133
4134   LIBS="-lxpg4 $LIBS"
4135
4136 fi
4137  # Mac OS X (and maybe NetBSD) need this.
4138
4139 for ac_func in gethostbyname
4140 do
4141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4142 echo "$as_me:$LINENO: checking for $ac_func" >&5
4143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4144 if eval "test \"\${$as_ac_var+set}\" = set"; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   cat >conftest.$ac_ext <<_ACEOF
4148 #line $LINENO "configure"
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 /* System header to define __stub macros and hopefully few prototypes,
4155     which can conflict with char $ac_func (); below.
4156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157     <limits.h> exists even on freestanding compilers.  */
4158 #ifdef __STDC__
4159 # include <limits.h>
4160 #else
4161 # include <assert.h>
4162 #endif
4163 /* Override any gcc2 internal prototype to avoid an error.  */
4164 #ifdef __cplusplus
4165 extern "C"
4166 {
4167 #endif
4168 /* We use char because int might match the return type of a gcc2
4169    builtin and then its argument prototype would still apply.  */
4170 char $ac_func ();
4171 /* The GNU C library defines this for functions which it implements
4172     to always fail with ENOSYS.  Some functions are actually named
4173     something starting with __ and the normal name is an alias.  */
4174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4175 choke me
4176 #else
4177 char (*f) () = $ac_func;
4178 #endif
4179 #ifdef __cplusplus
4180 }
4181 #endif
4182
4183 int
4184 main ()
4185 {
4186 return f != $ac_func;
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193   (eval $ac_link) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -s conftest$ac_exeext'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   eval "$as_ac_var=yes"
4204 else
4205   echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 eval "$as_ac_var=no"
4209 fi
4210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4211 fi
4212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4214 if test `eval echo '${'$as_ac_var'}'` = yes; then
4215   cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4217 _ACEOF
4218
4219 else
4220
4221 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4222 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   ac_check_lib_save_LIBS=$LIBS
4227 LIBS="-lnsl  $LIBS"
4228 cat >conftest.$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235
4236 /* Override any gcc2 internal prototype to avoid an error.  */
4237 #ifdef __cplusplus
4238 extern "C"
4239 #endif
4240 /* We use char because int might match the return type of a gcc2
4241    builtin and then its argument prototype would still apply.  */
4242 char gethostbyname ();
4243 int
4244 main ()
4245 {
4246 gethostbyname ();
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253   (eval $ac_link) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -s conftest$ac_exeext'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   ac_cv_lib_nsl_gethostbyname=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_cv_lib_nsl_gethostbyname=no
4269 fi
4270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4271 LIBS=$ac_check_lib_save_LIBS
4272 fi
4273 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4274 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4275 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4276   cat >>confdefs.h <<_ACEOF
4277 #define HAVE_LIBNSL 1
4278 _ACEOF
4279
4280   LIBS="-lnsl $LIBS"
4281
4282 fi
4283
4284 fi
4285 done
4286
4287 echo "$as_me:$LINENO: checking for X" >&5
4288 echo $ECHO_N "checking for X... $ECHO_C" >&6
4289
4290
4291 # Check whether --with-x or --without-x was given.
4292 if test "${with_x+set}" = set; then
4293   withval="$with_x"
4294
4295 fi;
4296 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4297 if test "x$with_x" = xno; then
4298   # The user explicitly disabled X.
4299   have_x=disabled
4300 else
4301   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4302     # Both variables are already set.
4303     have_x=yes
4304   else
4305     if test "${ac_cv_have_x+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   # One or both of the vars are not set, and there is no cached value.
4309 ac_x_includes=no ac_x_libraries=no
4310 rm -fr conftest.dir
4311 if mkdir conftest.dir; then
4312   cd conftest.dir
4313   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4314   cat >Imakefile <<'_ACEOF'
4315 acfindx:
4316         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4317 _ACEOF
4318   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4319     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4320     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4321     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4322     for ac_extension in a so sl; do
4323       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4324          test -f $ac_im_libdir/libX11.$ac_extension; then
4325         ac_im_usrlibdir=$ac_im_libdir; break
4326       fi
4327     done
4328     # Screen out bogus values from the imake configuration.  They are
4329     # bogus both because they are the default anyway, and because
4330     # using them would break gcc on systems where it needs fixed includes.
4331     case $ac_im_incroot in
4332         /usr/include) ;;
4333         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4334     esac
4335     case $ac_im_usrlibdir in
4336         /usr/lib | /lib) ;;
4337         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4338     esac
4339   fi
4340   cd ..
4341   rm -fr conftest.dir
4342 fi
4343
4344 # Standard set of common directories for X headers.
4345 # Check X11 before X11Rn because it is often a symlink to the current release.
4346 ac_x_header_dirs='
4347 /usr/X11/include
4348 /usr/X11R6/include
4349 /usr/X11R5/include
4350 /usr/X11R4/include
4351
4352 /usr/include/X11
4353 /usr/include/X11R6
4354 /usr/include/X11R5
4355 /usr/include/X11R4
4356
4357 /usr/local/X11/include
4358 /usr/local/X11R6/include
4359 /usr/local/X11R5/include
4360 /usr/local/X11R4/include
4361
4362 /usr/local/include/X11
4363 /usr/local/include/X11R6
4364 /usr/local/include/X11R5
4365 /usr/local/include/X11R4
4366
4367 /usr/X386/include
4368 /usr/x386/include
4369 /usr/XFree86/include/X11
4370
4371 /usr/include
4372 /usr/local/include
4373 /usr/unsupported/include
4374 /usr/athena/include
4375 /usr/local/x11r5/include
4376 /usr/lpp/Xamples/include
4377
4378 /usr/openwin/include
4379 /usr/openwin/share/include'
4380
4381 if test "$ac_x_includes" = no; then
4382   # Guess where to find include files, by looking for Intrinsic.h.
4383   # First, try using that file with no special directory specified.
4384   cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 #include <X11/Intrinsic.h>
4392 _ACEOF
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } >/dev/null; then
4401   if test -s conftest.err; then
4402     ac_cpp_err=$ac_c_preproc_warn_flag
4403   else
4404     ac_cpp_err=
4405   fi
4406 else
4407   ac_cpp_err=yes
4408 fi
4409 if test -z "$ac_cpp_err"; then
4410   # We can compile using X headers with no special include directory.
4411 ac_x_includes=
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416   for ac_dir in $ac_x_header_dirs; do
4417   if test -r "$ac_dir/X11/Intrinsic.h"; then
4418     ac_x_includes=$ac_dir
4419     break
4420   fi
4421 done
4422 fi
4423 rm -f conftest.err conftest.$ac_ext
4424 fi # $ac_x_includes = no
4425
4426 if test "$ac_x_libraries" = no; then
4427   # Check for the libraries.
4428   # See if we find them without any special options.
4429   # Don't add to $LIBS permanently.
4430   ac_save_LIBS=$LIBS
4431   LIBS="-lXt $LIBS"
4432   cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 #include <X11/Intrinsic.h>
4440 int
4441 main ()
4442 {
4443 XtMalloc (0)
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext conftest$ac_exeext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450   (eval $ac_link) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } &&
4454          { ac_try='test -s conftest$ac_exeext'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   LIBS=$ac_save_LIBS
4461 # We can link X programs with no special library path.
4462 ac_x_libraries=
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 LIBS=$ac_save_LIBS
4468 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4469 do
4470   # Don't even attempt the hair of trying to link an X program!
4471   for ac_extension in a so sl; do
4472     if test -r $ac_dir/libXt.$ac_extension; then
4473       ac_x_libraries=$ac_dir
4474       break 2
4475     fi
4476   done
4477 done
4478 fi
4479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480 fi # $ac_x_libraries = no
4481
4482 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4483   # Didn't find X anywhere.  Cache the known absence of X.
4484   ac_cv_have_x="have_x=no"
4485 else
4486   # Record where we found X for the cache.
4487   ac_cv_have_x="have_x=yes \
4488                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4489 fi
4490 fi
4491
4492   fi
4493   eval "$ac_cv_have_x"
4494 fi # $with_x != no
4495
4496 if test "$have_x" != yes; then
4497   echo "$as_me:$LINENO: result: $have_x" >&5
4498 echo "${ECHO_T}$have_x" >&6
4499   no_x=yes
4500 else
4501   # If each of the values was on the command line, it overrides each guess.
4502   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4503   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4504   # Update the cache value to reflect the command line values.
4505   ac_cv_have_x="have_x=yes \
4506                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4507   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4508 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4509 fi
4510
4511 if test "$no_x" = yes; then
4512   # Not all programs may use this symbol, but it does not hurt to define it.
4513
4514 cat >>confdefs.h <<\_ACEOF
4515 #define X_DISPLAY_MISSING 1
4516 _ACEOF
4517
4518   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4519 else
4520   if test -n "$x_includes"; then
4521     X_CFLAGS="$X_CFLAGS -I$x_includes"
4522   fi
4523
4524   # It would also be nice to do this for all -L options, not just this one.
4525   if test -n "$x_libraries"; then
4526     X_LIBS="$X_LIBS -L$x_libraries"
4527     # For Solaris; some versions of Sun CC require a space after -R and
4528     # others require no space.  Words are not sufficient . . . .
4529     case `(uname -sr) 2>/dev/null` in
4530     "SunOS 5"*)
4531       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4532 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4533       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4534       cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541
4542 int
4543 main ()
4544 {
4545
4546   ;
4547   return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest.$ac_objext conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552   (eval $ac_link) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -s conftest$ac_exeext'
4557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558   (eval $ac_try) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; }; then
4562   ac_R_nospace=yes
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 ac_R_nospace=no
4568 fi
4569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4570       if test $ac_R_nospace = yes; then
4571         echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4573         X_LIBS="$X_LIBS -R$x_libraries"
4574       else
4575         LIBS="$ac_xsave_LIBS -R $x_libraries"
4576         cat >conftest.$ac_ext <<_ACEOF
4577 #line $LINENO "configure"
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594   (eval $ac_link) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -s conftest$ac_exeext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_R_space=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_R_space=no
4610 fi
4611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4612         if test $ac_R_space = yes; then
4613           echo "$as_me:$LINENO: result: yes" >&5
4614 echo "${ECHO_T}yes" >&6
4615           X_LIBS="$X_LIBS -R $x_libraries"
4616         else
4617           echo "$as_me:$LINENO: result: neither works" >&5
4618 echo "${ECHO_T}neither works" >&6
4619         fi
4620       fi
4621       LIBS=$ac_xsave_LIBS
4622     esac
4623   fi
4624
4625   # Check for system-dependent libraries X programs must link with.
4626   # Do this before checking for the system-independent R6 libraries
4627   # (-lICE), since we may need -lsocket or whatever for X linking.
4628
4629   if test "$ISC" = yes; then
4630     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4631   else
4632     # Martyn Johnson says this is needed for Ultrix, if the X
4633     # libraries were built with DECnet support.  And Karl Berry says
4634     # the Alpha needs dnet_stub (dnet does not exist).
4635     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4636     cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 /* Override any gcc2 internal prototype to avoid an error.  */
4645 #ifdef __cplusplus
4646 extern "C"
4647 #endif
4648 /* We use char because int might match the return type of a gcc2
4649    builtin and then its argument prototype would still apply.  */
4650 char XOpenDisplay ();
4651 int
4652 main ()
4653 {
4654 XOpenDisplay ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661   (eval $ac_link) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   :
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4677 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4678 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   ac_check_lib_save_LIBS=$LIBS
4682 LIBS="-ldnet  $LIBS"
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 /* confdefs.h.  */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h.  */
4690
4691 /* Override any gcc2 internal prototype to avoid an error.  */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696    builtin and then its argument prototype would still apply.  */
4697 char dnet_ntoa ();
4698 int
4699 main ()
4700 {
4701 dnet_ntoa ();
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708   (eval $ac_link) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -s conftest$ac_exeext'
4713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714   (eval $ac_try) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; }; then
4718   ac_cv_lib_dnet_dnet_ntoa=yes
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ac_cv_lib_dnet_dnet_ntoa=no
4724 fi
4725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4726 LIBS=$ac_check_lib_save_LIBS
4727 fi
4728 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4729 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4730 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4731   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4732 fi
4733
4734     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4735       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4736 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4737 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-ldnet_stub  $LIBS"
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 /* confdefs.h.  */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h.  */
4749
4750 /* Override any gcc2 internal prototype to avoid an error.  */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755    builtin and then its argument prototype would still apply.  */
4756 char dnet_ntoa ();
4757 int
4758 main ()
4759 {
4760 dnet_ntoa ();
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767   (eval $ac_link) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -s conftest$ac_exeext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_cv_lib_dnet_stub_dnet_ntoa=no
4783 fi
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4786 fi
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4788 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4789 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4790   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4791 fi
4792
4793     fi
4794 fi
4795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4796     LIBS="$ac_xsave_LIBS"
4797
4798     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4799     # to get the SysV transport functions.
4800     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4801     # needs -lnsl.
4802     # The nsl library prevents programs from opening the X display
4803     # on Irix 5.2, according to T.E. Dickey.
4804     # The functions gethostbyname, getservbyname, and inet_addr are
4805     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4806     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4807 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4808 if test "${ac_cv_func_gethostbyname+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   cat >conftest.$ac_ext <<_ACEOF
4812 #line $LINENO "configure"
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818 /* System header to define __stub macros and hopefully few prototypes,
4819     which can conflict with char gethostbyname (); below.
4820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821     <limits.h> exists even on freestanding compilers.  */
4822 #ifdef __STDC__
4823 # include <limits.h>
4824 #else
4825 # include <assert.h>
4826 #endif
4827 /* Override any gcc2 internal prototype to avoid an error.  */
4828 #ifdef __cplusplus
4829 extern "C"
4830 {
4831 #endif
4832 /* We use char because int might match the return type of a gcc2
4833    builtin and then its argument prototype would still apply.  */
4834 char gethostbyname ();
4835 /* The GNU C library defines this for functions which it implements
4836     to always fail with ENOSYS.  Some functions are actually named
4837     something starting with __ and the normal name is an alias.  */
4838 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4839 choke me
4840 #else
4841 char (*f) () = gethostbyname;
4842 #endif
4843 #ifdef __cplusplus
4844 }
4845 #endif
4846
4847 int
4848 main ()
4849 {
4850 return f != gethostbyname;
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857   (eval $ac_link) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } &&
4861          { ac_try='test -s conftest$ac_exeext'
4862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863   (eval $ac_try) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); }; }; then
4867   ac_cv_func_gethostbyname=yes
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_cv_func_gethostbyname=no
4873 fi
4874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4875 fi
4876 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4877 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4878
4879     if test $ac_cv_func_gethostbyname = no; then
4880       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4881 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4882 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   ac_check_lib_save_LIBS=$LIBS
4886 LIBS="-lnsl  $LIBS"
4887 cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894
4895 /* Override any gcc2 internal prototype to avoid an error.  */
4896 #ifdef __cplusplus
4897 extern "C"
4898 #endif
4899 /* We use char because int might match the return type of a gcc2
4900    builtin and then its argument prototype would still apply.  */
4901 char gethostbyname ();
4902 int
4903 main ()
4904 {
4905 gethostbyname ();
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912   (eval $ac_link) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -s conftest$ac_exeext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_cv_lib_nsl_gethostbyname=yes
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_cv_lib_nsl_gethostbyname=no
4928 fi
4929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4931 fi
4932 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4933 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4934 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4935   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4936 fi
4937
4938       if test $ac_cv_lib_nsl_gethostbyname = no; then
4939         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4940 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4941 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   ac_check_lib_save_LIBS=$LIBS
4945 LIBS="-lbsd  $LIBS"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953
4954 /* Override any gcc2 internal prototype to avoid an error.  */
4955 #ifdef __cplusplus
4956 extern "C"
4957 #endif
4958 /* We use char because int might match the return type of a gcc2
4959    builtin and then its argument prototype would still apply.  */
4960 char gethostbyname ();
4961 int
4962 main ()
4963 {
4964 gethostbyname ();
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971   (eval $ac_link) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -s conftest$ac_exeext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_cv_lib_bsd_gethostbyname=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 ac_cv_lib_bsd_gethostbyname=no
4987 fi
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4992 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4993 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4994   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4995 fi
4996
4997       fi
4998     fi
4999
5000     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5001     # socket/setsockopt and other routines are undefined under SCO ODT
5002     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5003     # on later versions), says Simon Leinen: it contains gethostby*
5004     # variants that don't use the name server (or something).  -lsocket
5005     # must be given before -lnsl if both are needed.  We assume that
5006     # if connect needs -lnsl, so does gethostbyname.
5007     echo "$as_me:$LINENO: checking for connect" >&5
5008 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5009 if test "${ac_cv_func_connect+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 /* System header to define __stub macros and hopefully few prototypes,
5020     which can conflict with char connect (); below.
5021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022     <limits.h> exists even on freestanding compilers.  */
5023 #ifdef __STDC__
5024 # include <limits.h>
5025 #else
5026 # include <assert.h>
5027 #endif
5028 /* Override any gcc2 internal prototype to avoid an error.  */
5029 #ifdef __cplusplus
5030 extern "C"
5031 {
5032 #endif
5033 /* We use char because int might match the return type of a gcc2
5034    builtin and then its argument prototype would still apply.  */
5035 char connect ();
5036 /* The GNU C library defines this for functions which it implements
5037     to always fail with ENOSYS.  Some functions are actually named
5038     something starting with __ and the normal name is an alias.  */
5039 #if defined (__stub_connect) || defined (__stub___connect)
5040 choke me
5041 #else
5042 char (*f) () = connect;
5043 #endif
5044 #ifdef __cplusplus
5045 }
5046 #endif
5047
5048 int
5049 main ()
5050 {
5051 return f != connect;
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext conftest$ac_exeext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058   (eval $ac_link) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } &&
5062          { ac_try='test -s conftest$ac_exeext'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; }; then
5068   ac_cv_func_connect=yes
5069 else
5070   echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ac_cv_func_connect=no
5074 fi
5075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5076 fi
5077 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5078 echo "${ECHO_T}$ac_cv_func_connect" >&6
5079
5080     if test $ac_cv_func_connect = no; then
5081       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5083 if test "${ac_cv_lib_socket_connect+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   ac_check_lib_save_LIBS=$LIBS
5087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5090 /* confdefs.h.  */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h.  */
5095
5096 /* Override any gcc2 internal prototype to avoid an error.  */
5097 #ifdef __cplusplus
5098 extern "C"
5099 #endif
5100 /* We use char because int might match the return type of a gcc2
5101    builtin and then its argument prototype would still apply.  */
5102 char connect ();
5103 int
5104 main ()
5105 {
5106 connect ();
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113   (eval $ac_link) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -s conftest$ac_exeext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_cv_lib_socket_connect=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_cv_lib_socket_connect=no
5129 fi
5130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5131 LIBS=$ac_check_lib_save_LIBS
5132 fi
5133 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5134 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5135 if test $ac_cv_lib_socket_connect = yes; then
5136   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5137 fi
5138
5139     fi
5140
5141     # Guillermo Gomez says -lposix is necessary on A/UX.
5142     echo "$as_me:$LINENO: checking for remove" >&5
5143 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5144 if test "${ac_cv_func_remove+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 /* System header to define __stub macros and hopefully few prototypes,
5155     which can conflict with char remove (); below.
5156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157     <limits.h> exists even on freestanding compilers.  */
5158 #ifdef __STDC__
5159 # include <limits.h>
5160 #else
5161 # include <assert.h>
5162 #endif
5163 /* Override any gcc2 internal prototype to avoid an error.  */
5164 #ifdef __cplusplus
5165 extern "C"
5166 {
5167 #endif
5168 /* We use char because int might match the return type of a gcc2
5169    builtin and then its argument prototype would still apply.  */
5170 char remove ();
5171 /* The GNU C library defines this for functions which it implements
5172     to always fail with ENOSYS.  Some functions are actually named
5173     something starting with __ and the normal name is an alias.  */
5174 #if defined (__stub_remove) || defined (__stub___remove)
5175 choke me
5176 #else
5177 char (*f) () = remove;
5178 #endif
5179 #ifdef __cplusplus
5180 }
5181 #endif
5182
5183 int
5184 main ()
5185 {
5186 return f != remove;
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193   (eval $ac_link) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -s conftest$ac_exeext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_func_remove=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_cv_func_remove=no
5209 fi
5210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211 fi
5212 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5213 echo "${ECHO_T}$ac_cv_func_remove" >&6
5214
5215     if test $ac_cv_func_remove = no; then
5216       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5217 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5218 if test "${ac_cv_lib_posix_remove+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   ac_check_lib_save_LIBS=$LIBS
5222 LIBS="-lposix  $LIBS"
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230
5231 /* Override any gcc2 internal prototype to avoid an error.  */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 /* We use char because int might match the return type of a gcc2
5236    builtin and then its argument prototype would still apply.  */
5237 char remove ();
5238 int
5239 main ()
5240 {
5241 remove ();
5242   ;
5243   return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext conftest$ac_exeext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5248   (eval $ac_link) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } &&
5252          { ac_try='test -s conftest$ac_exeext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   ac_cv_lib_posix_remove=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 ac_cv_lib_posix_remove=no
5264 fi
5265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5267 fi
5268 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5269 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5270 if test $ac_cv_lib_posix_remove = yes; then
5271   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5272 fi
5273
5274     fi
5275
5276     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5277     echo "$as_me:$LINENO: checking for shmat" >&5
5278 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5279 if test "${ac_cv_func_shmat+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 /* System header to define __stub macros and hopefully few prototypes,
5290     which can conflict with char shmat (); below.
5291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292     <limits.h> exists even on freestanding compilers.  */
5293 #ifdef __STDC__
5294 # include <limits.h>
5295 #else
5296 # include <assert.h>
5297 #endif
5298 /* Override any gcc2 internal prototype to avoid an error.  */
5299 #ifdef __cplusplus
5300 extern "C"
5301 {
5302 #endif
5303 /* We use char because int might match the return type of a gcc2
5304    builtin and then its argument prototype would still apply.  */
5305 char shmat ();
5306 /* The GNU C library defines this for functions which it implements
5307     to always fail with ENOSYS.  Some functions are actually named
5308     something starting with __ and the normal name is an alias.  */
5309 #if defined (__stub_shmat) || defined (__stub___shmat)
5310 choke me
5311 #else
5312 char (*f) () = shmat;
5313 #endif
5314 #ifdef __cplusplus
5315 }
5316 #endif
5317
5318 int
5319 main ()
5320 {
5321 return f != shmat;
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328   (eval $ac_link) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } &&
5332          { ac_try='test -s conftest$ac_exeext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_func_shmat=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_func_shmat=no
5344 fi
5345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5348 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5349
5350     if test $ac_cv_func_shmat = no; then
5351       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5352 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5353 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-lipc  $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365
5366 /* Override any gcc2 internal prototype to avoid an error.  */
5367 #ifdef __cplusplus
5368 extern "C"
5369 #endif
5370 /* We use char because int might match the return type of a gcc2
5371    builtin and then its argument prototype would still apply.  */
5372 char shmat ();
5373 int
5374 main ()
5375 {
5376 shmat ();
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383   (eval $ac_link) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } &&
5387          { ac_try='test -s conftest$ac_exeext'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; }; then
5393   ac_cv_lib_ipc_shmat=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_cv_lib_ipc_shmat=no
5399 fi
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5404 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5405 if test $ac_cv_lib_ipc_shmat = yes; then
5406   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5407 fi
5408
5409     fi
5410   fi
5411
5412   # Check for libraries that X11R6 Xt/Xaw programs need.
5413   ac_save_LDFLAGS=$LDFLAGS
5414   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5415   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5416   # check for ICE first), but we must link in the order -lSM -lICE or
5417   # we get undefined symbols.  So assume we have SM if we have ICE.
5418   # These have to be linked with before -lX11, unlike the other
5419   # libraries we check for below, so use a different variable.
5420   # John Interrante, Karl Berry
5421   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5422 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5423 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   ac_check_lib_save_LIBS=$LIBS
5427 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435
5436 /* Override any gcc2 internal prototype to avoid an error.  */
5437 #ifdef __cplusplus
5438 extern "C"
5439 #endif
5440 /* We use char because int might match the return type of a gcc2
5441    builtin and then its argument prototype would still apply.  */
5442 char IceConnectionNumber ();
5443 int
5444 main ()
5445 {
5446 IceConnectionNumber ();
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453   (eval $ac_link) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } &&
5457          { ac_try='test -s conftest$ac_exeext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   ac_cv_lib_ICE_IceConnectionNumber=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_cv_lib_ICE_IceConnectionNumber=no
5469 fi
5470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5471 LIBS=$ac_check_lib_save_LIBS
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5474 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5475 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5476   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5477 fi
5478
5479   LDFLAGS=$ac_save_LDFLAGS
5480
5481 fi
5482
5483
5484 # Checks for X
5485 if test "x$with_x" = xyes; then
5486   if test "x$have_x" = xno; then
5487     if test "x$x_config_flag" = xyes; then
5488       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5489 echo "$as_me: error: Could not configure X" >&2;}
5490    { (exit 1); exit 1; }; }
5491     else
5492       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5493 echo "$as_me: WARNING: Could not configure X" >&2;}
5494     fi
5495   fi
5496 fi
5497 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5498   if test "x$x_libraries" != x; then
5499     ldflags_x_opt="-L$x_libraries"
5500     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5501     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5502   else
5503     ldflags_x_opt=
5504   fi
5505   if test "x$x_includes" != x; then
5506     CPPFLAGS="$CPPFLAGS -I$x_includes"
5507   fi
5508
5509
5510 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5511 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5512 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lX11  $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 /* Override any gcc2 internal prototype to avoid an error.  */
5526 #ifdef __cplusplus
5527 extern "C"
5528 #endif
5529 /* We use char because int might match the return type of a gcc2
5530    builtin and then its argument prototype would still apply.  */
5531 char XOpenDisplay ();
5532 int
5533 main ()
5534 {
5535 XOpenDisplay ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_X11_XOpenDisplay=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_lib_X11_XOpenDisplay=no
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5563 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5564 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5565   cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBX11 1
5567 _ACEOF
5568
5569   LIBS="-lX11 $LIBS"
5570
5571 fi
5572
5573   echo "$as_me:$LINENO: checking X11 version 6" >&5
5574 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5575   if test "${timidity_cv_x11_version_6+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   cat >conftest.$ac_ext <<_ACEOF
5579 #line $LINENO "configure"
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585 #include <X11/Xlib.h>
5586 int
5587 main ()
5588 {
5589
5590 #if XlibSpecificationRelease < 6
5591 fail;
5592 #endif
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600   (eval $ac_link) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } &&
5604          { ac_try='test -s conftest$ac_exeext'
5605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606   (eval $ac_try) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; }; then
5610   timidity_cv_x11_version_6=yes
5611 else
5612   echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 timidity_cv_x11_version_6=no
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 fi
5619
5620   if test "$timidity_cv_x11_version_6" = "yes"; then
5621     echo "$as_me:$LINENO: result: 6 or newer" >&5
5622 echo "${ECHO_T}6 or newer" >&6
5623       else
5624     echo "$as_me:$LINENO: result: before 6" >&5
5625 echo "${ECHO_T}before 6" >&6
5626   fi
5627
5628     KEEPLIBS=$LIBS
5629   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5630 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5631 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   ac_check_lib_save_LIBS=$LIBS
5635 LIBS="-lXext  $LIBS"
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
5644 /* Override any gcc2 internal prototype to avoid an error.  */
5645 #ifdef __cplusplus
5646 extern "C"
5647 #endif
5648 /* We use char because int might match the return type of a gcc2
5649    builtin and then its argument prototype would still apply.  */
5650 char XShapeCombineMask ();
5651 int
5652 main ()
5653 {
5654 XShapeCombineMask ();
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661   (eval $ac_link) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } &&
5665          { ac_try='test -s conftest$ac_exeext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_lib_Xext_XShapeCombineMask=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_lib_Xext_XShapeCombineMask=no
5677 fi
5678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_check_lib_save_LIBS
5680 fi
5681 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5682 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5683 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5684   have_xext=yes; LIBS="-lXext $LIBS"
5685 else
5686   have_xext=no
5687 fi
5688
5689
5690 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5691 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5692 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   ac_check_lib_save_LIBS=$LIBS
5696 LIBS="-lICE  $LIBS"
5697 cat >conftest.$ac_ext <<_ACEOF
5698 #line $LINENO "configure"
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704
5705 /* Override any gcc2 internal prototype to avoid an error.  */
5706 #ifdef __cplusplus
5707 extern "C"
5708 #endif
5709 /* We use char because int might match the return type of a gcc2
5710    builtin and then its argument prototype would still apply.  */
5711 char IceConnectionNumber ();
5712 int
5713 main ()
5714 {
5715 IceConnectionNumber ();
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722   (eval $ac_link) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -s conftest$ac_exeext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   ac_cv_lib_ICE_IceConnectionNumber=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_cv_lib_ICE_IceConnectionNumber=no
5738 fi
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5744 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5745   cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBICE 1
5747 _ACEOF
5748
5749   LIBS="-lICE $LIBS"
5750
5751 fi
5752
5753   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5754 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5755 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lSM  $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767
5768 /* Override any gcc2 internal prototype to avoid an error.  */
5769 #ifdef __cplusplus
5770 extern "C"
5771 #endif
5772 /* We use char because int might match the return type of a gcc2
5773    builtin and then its argument prototype would still apply.  */
5774 char SmcOpenConnection ();
5775 int
5776 main ()
5777 {
5778 SmcOpenConnection ();
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785   (eval $ac_link) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } &&
5789          { ac_try='test -s conftest$ac_exeext'
5790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; }; then
5795   ac_cv_lib_SM_SmcOpenConnection=yes
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 ac_cv_lib_SM_SmcOpenConnection=no
5801 fi
5802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5804 fi
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5806 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5807 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5808   have_xprelibs=yes; LIBS="-lSM $LIBS"
5809 else
5810   have_xprelibs=no
5811 fi
5812
5813   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5814 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5815 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lXt  $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827
5828 /* Override any gcc2 internal prototype to avoid an error.  */
5829 #ifdef __cplusplus
5830 extern "C"
5831 #endif
5832 /* We use char because int might match the return type of a gcc2
5833    builtin and then its argument prototype would still apply.  */
5834 char XtVaAppInitialize ();
5835 int
5836 main ()
5837 {
5838 XtVaAppInitialize ();
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845   (eval $ac_link) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -s conftest$ac_exeext'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; }; then
5855   ac_cv_lib_Xt_XtVaAppInitialize=yes
5856 else
5857   echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_cv_lib_Xt_XtVaAppInitialize=no
5861 fi
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5866 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5867 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5868   have_xt=yes; LIBS="-lXt $LIBS"
5869 else
5870   have_xt=no
5871 fi
5872
5873   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5874 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5875 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lXmu  $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887
5888 /* Override any gcc2 internal prototype to avoid an error.  */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893    builtin and then its argument prototype would still apply.  */
5894 char XmuInternAtom ();
5895 int
5896 main ()
5897 {
5898 XmuInternAtom ();
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905   (eval $ac_link) 2>&5
5906   ac_status=$?
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -s conftest$ac_exeext'
5910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911   (eval $ac_try) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; }; then
5915   ac_cv_lib_Xmu_XmuInternAtom=yes
5916 else
5917   echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 ac_cv_lib_Xmu_XmuInternAtom=no
5921 fi
5922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5923 LIBS=$ac_check_lib_save_LIBS
5924 fi
5925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5926 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5927 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5928   LIBS="-lXmu $LIBS"
5929 fi
5930
5931
5932 for ac_func in XmuRegisterExternalAgent
5933 do
5934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5935 echo "$as_me:$LINENO: checking for $ac_func" >&5
5936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5937 if eval "test \"\${$as_ac_var+set}\" = set"; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   cat >conftest.$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 /* System header to define __stub macros and hopefully few prototypes,
5948     which can conflict with char $ac_func (); below.
5949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950     <limits.h> exists even on freestanding compilers.  */
5951 #ifdef __STDC__
5952 # include <limits.h>
5953 #else
5954 # include <assert.h>
5955 #endif
5956 /* Override any gcc2 internal prototype to avoid an error.  */
5957 #ifdef __cplusplus
5958 extern "C"
5959 {
5960 #endif
5961 /* We use char because int might match the return type of a gcc2
5962    builtin and then its argument prototype would still apply.  */
5963 char $ac_func ();
5964 /* The GNU C library defines this for functions which it implements
5965     to always fail with ENOSYS.  Some functions are actually named
5966     something starting with __ and the normal name is an alias.  */
5967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5968 choke me
5969 #else
5970 char (*f) () = $ac_func;
5971 #endif
5972 #ifdef __cplusplus
5973 }
5974 #endif
5975
5976 int
5977 main ()
5978 {
5979 return f != $ac_func;
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986   (eval $ac_link) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -s conftest$ac_exeext'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   eval "$as_ac_var=yes"
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 eval "$as_ac_var=no"
6002 fi
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6004 fi
6005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6007 if test `eval echo '${'$as_ac_var'}'` = yes; then
6008   cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6010 _ACEOF
6011
6012 fi
6013 done
6014
6015   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6016 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6017 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   ac_check_lib_save_LIBS=$LIBS
6021 LIBS="-lXaw3d  $LIBS"
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029
6030 /* Override any gcc2 internal prototype to avoid an error.  */
6031 #ifdef __cplusplus
6032 extern "C"
6033 #endif
6034 /* We use char because int might match the return type of a gcc2
6035    builtin and then its argument prototype would still apply.  */
6036 char XawInitializeWidgetSet ();
6037 int
6038 main ()
6039 {
6040 XawInitializeWidgetSet ();
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047   (eval $ac_link) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } &&
6051          { ac_try='test -s conftest$ac_exeext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6063 fi
6064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6065 LIBS=$ac_check_lib_save_LIBS
6066 fi
6067 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6068 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6069 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6070   have_xaw=3d
6071 else
6072    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6073 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6074 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   ac_check_lib_save_LIBS=$LIBS
6078 LIBS="-lXaw  $LIBS"
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086
6087 /* Override any gcc2 internal prototype to avoid an error.  */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092    builtin and then its argument prototype would still apply.  */
6093 char XawInitializeWidgetSet ();
6094 int
6095 main ()
6096 {
6097 XawInitializeWidgetSet ();
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104   (eval $ac_link) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); } &&
6108          { ac_try='test -s conftest$ac_exeext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6120 fi
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 LIBS=$ac_check_lib_save_LIBS
6123 fi
6124 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6125 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6126 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6127   have_xaw=yes
6128 else
6129   have_xaw=no
6130 fi
6131
6132 fi
6133
6134   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6135 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6136 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   ac_check_lib_save_LIBS=$LIBS
6140 LIBS="-lXm  $LIBS"
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154    builtin and then its argument prototype would still apply.  */
6155 char XmCreateForm ();
6156 int
6157 main ()
6158 {
6159 XmCreateForm ();
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166   (eval $ac_link) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } &&
6170          { ac_try='test -s conftest$ac_exeext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_lib_Xm_XmCreateForm=yes
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_lib_Xm_XmCreateForm=no
6182 fi
6183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6185 fi
6186 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6187 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6188 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6189   have_xm=yes
6190 else
6191   have_xm=no
6192 fi
6193
6194
6195 for ac_func in XShmCreatePixmap
6196 do
6197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6198 echo "$as_me:$LINENO: checking for $ac_func" >&5
6199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_var+set}\" = set"; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 /* System header to define __stub macros and hopefully few prototypes,
6211     which can conflict with char $ac_func (); below.
6212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213     <limits.h> exists even on freestanding compilers.  */
6214 #ifdef __STDC__
6215 # include <limits.h>
6216 #else
6217 # include <assert.h>
6218 #endif
6219 /* Override any gcc2 internal prototype to avoid an error.  */
6220 #ifdef __cplusplus
6221 extern "C"
6222 {
6223 #endif
6224 /* We use char because int might match the return type of a gcc2
6225    builtin and then its argument prototype would still apply.  */
6226 char $ac_func ();
6227 /* The GNU C library defines this for functions which it implements
6228     to always fail with ENOSYS.  Some functions are actually named
6229     something starting with __ and the normal name is an alias.  */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 choke me
6232 #else
6233 char (*f) () = $ac_func;
6234 #endif
6235 #ifdef __cplusplus
6236 }
6237 #endif
6238
6239 int
6240 main ()
6241 {
6242 return f != $ac_func;
6243   ;
6244   return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249   (eval $ac_link) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } &&
6253          { ac_try='test -s conftest$ac_exeext'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   eval "$as_ac_var=yes"
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 eval "$as_ac_var=no"
6265 fi
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 fi
6268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6270 if test `eval echo '${'$as_ac_var'}'` = yes; then
6271   cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6273 _ACEOF
6274
6275 fi
6276 done
6277
6278   LIBS=$KEEPLIBS
6279 fi
6280
6281 # Checks for header files.
6282 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6284 if test "${ac_cv_header_stdc+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294 #include <stdlib.h>
6295 #include <stdarg.h>
6296 #include <string.h>
6297 #include <float.h>
6298
6299 int
6300 main ()
6301 {
6302
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309   (eval $ac_compile) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } &&
6313          { ac_try='test -s conftest.$ac_objext'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   ac_cv_header_stdc=yes
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_cv_header_stdc=no
6325 fi
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6327
6328 if test $ac_cv_header_stdc = yes; then
6329   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6330   cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <string.h>
6338
6339 _ACEOF
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341   $EGREP "memchr" >/dev/null 2>&1; then
6342   :
6343 else
6344   ac_cv_header_stdc=no
6345 fi
6346 rm -f conftest*
6347
6348 fi
6349
6350 if test $ac_cv_header_stdc = yes; then
6351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6352   cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359 #include <stdlib.h>
6360
6361 _ACEOF
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363   $EGREP "free" >/dev/null 2>&1; then
6364   :
6365 else
6366   ac_cv_header_stdc=no
6367 fi
6368 rm -f conftest*
6369
6370 fi
6371
6372 if test $ac_cv_header_stdc = yes; then
6373   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6374   if test "$cross_compiling" = yes; then
6375   :
6376 else
6377   cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 #include <ctype.h>
6385 #if ((' ' & 0x0FF) == 0x020)
6386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6388 #else
6389 # define ISLOWER(c) \
6390                    (('a' <= (c) && (c) <= 'i') \
6391                      || ('j' <= (c) && (c) <= 'r') \
6392                      || ('s' <= (c) && (c) <= 'z'))
6393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6394 #endif
6395
6396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6397 int
6398 main ()
6399 {
6400   int i;
6401   for (i = 0; i < 256; i++)
6402     if (XOR (islower (i), ISLOWER (i))
6403         || toupper (i) != TOUPPER (i))
6404       exit(2);
6405   exit (0);
6406 }
6407 _ACEOF
6408 rm -f conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415   (eval $ac_try) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; }; then
6419   :
6420 else
6421   echo "$as_me: program exited with status $ac_status" >&5
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ( exit $ac_status )
6426 ac_cv_header_stdc=no
6427 fi
6428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 fi
6431 fi
6432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6434 if test $ac_cv_header_stdc = yes; then
6435
6436 cat >>confdefs.h <<\_ACEOF
6437 #define STDC_HEADERS 1
6438 _ACEOF
6439
6440 fi
6441
6442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6453                   inttypes.h stdint.h unistd.h
6454 do
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 $ac_includes_default
6469
6470 #include <$ac_header>
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474   (eval $ac_compile) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } &&
6478          { ac_try='test -s conftest.$ac_objext'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; }; then
6484   eval "$as_ac_Header=yes"
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 eval "$as_ac_Header=no"
6490 fi
6491 rm -f conftest.$ac_objext conftest.$ac_ext
6492 fi
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496   cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6499
6500 fi
6501
6502 done
6503
6504
6505 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6506 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6507 if test "${ac_cv_header_stdbool_h+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   cat >conftest.$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6512 /* confdefs.h.  */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h.  */
6517
6518 #include <stdbool.h>
6519 #ifndef bool
6520 # error bool is not defined
6521 #endif
6522 #ifndef false
6523 # error false is not defined
6524 #endif
6525 #if false
6526 # error false is not 0
6527 #endif
6528 #ifndef true
6529 # error true is not defined
6530 #endif
6531 #if true != 1
6532 # error true is not 1
6533 #endif
6534 #ifndef __bool_true_false_are_defined
6535 # error __bool_true_false_are_defined is not defined
6536 #endif
6537
6538         struct s { _Bool s: 1; _Bool t; } s;
6539
6540         char a[true == 1 ? 1 : -1];
6541         char b[false == 0 ? 1 : -1];
6542         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6543         char d[(bool) -0.5 == true ? 1 : -1];
6544         bool e = &s;
6545         char f[(_Bool) -0.0 == false ? 1 : -1];
6546         char g[true];
6547         char h[sizeof (_Bool)];
6548         char i[sizeof s.t];
6549
6550 int
6551 main ()
6552 {
6553  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6554   ;
6555   return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560   (eval $ac_compile) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -s conftest.$ac_objext'
6565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566   (eval $ac_try) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }; }; then
6570   ac_cv_header_stdbool_h=yes
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 ac_cv_header_stdbool_h=no
6576 fi
6577 rm -f conftest.$ac_objext conftest.$ac_ext
6578 fi
6579 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6580 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6581 echo "$as_me:$LINENO: checking for _Bool" >&5
6582 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6583 if test "${ac_cv_type__Bool+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 $ac_includes_default
6594 int
6595 main ()
6596 {
6597 if ((_Bool *) 0)
6598   return 0;
6599 if (sizeof (_Bool))
6600   return 0;
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607   (eval $ac_compile) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -s conftest.$ac_objext'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   ac_cv_type__Bool=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 ac_cv_type__Bool=no
6623 fi
6624 rm -f conftest.$ac_objext conftest.$ac_ext
6625 fi
6626 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6627 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6628 if test $ac_cv_type__Bool = yes; then
6629
6630 cat >>confdefs.h <<_ACEOF
6631 #define HAVE__BOOL 1
6632 _ACEOF
6633
6634
6635 fi
6636
6637 if test $ac_cv_header_stdbool_h = yes; then
6638
6639 cat >>confdefs.h <<\_ACEOF
6640 #define HAVE_STDBOOL_H 1
6641 _ACEOF
6642
6643 fi
6644
6645 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6646 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6647 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   cat >conftest.$ac_ext <<_ACEOF
6651 #line $LINENO "configure"
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 #include <sys/types.h>
6658 #include <sys/wait.h>
6659 #ifndef WEXITSTATUS
6660 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6661 #endif
6662 #ifndef WIFEXITED
6663 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6664 #endif
6665
6666 int
6667 main ()
6668 {
6669   int s;
6670   wait (&s);
6671   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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_sys_wait_h=yes
6689 else
6690   echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693 ac_cv_header_sys_wait_h=no
6694 fi
6695 rm -f conftest.$ac_objext conftest.$ac_ext
6696 fi
6697 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6698 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6699 if test $ac_cv_header_sys_wait_h = yes; then
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_SYS_WAIT_H 1
6703 _ACEOF
6704
6705 fi
6706
6707 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6708 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6709 if test "${ac_cv_header_time+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6714 /* confdefs.h.  */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h.  */
6719 #include <sys/types.h>
6720 #include <sys/time.h>
6721 #include <time.h>
6722
6723 int
6724 main ()
6725 {
6726 if ((struct tm *) 0)
6727 return 0;
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734   (eval $ac_compile) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } &&
6738          { ac_try='test -s conftest.$ac_objext'
6739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740   (eval $ac_try) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); }; }; then
6744   ac_cv_header_time=yes
6745 else
6746   echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749 ac_cv_header_time=no
6750 fi
6751 rm -f conftest.$ac_objext conftest.$ac_ext
6752 fi
6753 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6
6755 if test $ac_cv_header_time = yes; then
6756
6757 cat >>confdefs.h <<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6759 _ACEOF
6760
6761 fi
6762
6763
6764
6765
6766
6767
6768 ac_header_dirent=no
6769 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6770   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6772 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6778 /* confdefs.h.  */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h.  */
6783 #include <sys/types.h>
6784 #include <$ac_hdr>
6785
6786 int
6787 main ()
6788 {
6789 if ((DIR *) 0)
6790 return 0;
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -s conftest.$ac_objext'
6802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803   (eval $ac_try) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); }; }; then
6807   eval "$as_ac_Header=yes"
6808 else
6809   echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 eval "$as_ac_Header=no"
6813 fi
6814 rm -f conftest.$ac_objext conftest.$ac_ext
6815 fi
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819   cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6821 _ACEOF
6822
6823 ac_header_dirent=$ac_hdr; break
6824 fi
6825
6826 done
6827 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6828 if test $ac_header_dirent = dirent.h; then
6829   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6831 if test "${ac_cv_search_opendir+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   ac_func_search_save_LIBS=$LIBS
6835 ac_cv_search_opendir=no
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843
6844 /* Override any gcc2 internal prototype to avoid an error.  */
6845 #ifdef __cplusplus
6846 extern "C"
6847 #endif
6848 /* We use char because int might match the return type of a gcc2
6849    builtin and then its argument prototype would still apply.  */
6850 char opendir ();
6851 int
6852 main ()
6853 {
6854 opendir ();
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861   (eval $ac_link) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -s conftest$ac_exeext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   ac_cv_search_opendir="none required"
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 fi
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 if test "$ac_cv_search_opendir" = no; then
6879   for ac_lib in dir; do
6880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6881     cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888
6889 /* Override any gcc2 internal prototype to avoid an error.  */
6890 #ifdef __cplusplus
6891 extern "C"
6892 #endif
6893 /* We use char because int might match the return type of a gcc2
6894    builtin and then its argument prototype would still apply.  */
6895 char opendir ();
6896 int
6897 main ()
6898 {
6899 opendir ();
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906   (eval $ac_link) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); } &&
6910          { ac_try='test -s conftest$ac_exeext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916   ac_cv_search_opendir="-l$ac_lib"
6917 break
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 fi
6923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6924   done
6925 fi
6926 LIBS=$ac_func_search_save_LIBS
6927 fi
6928 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6929 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6930 if test "$ac_cv_search_opendir" != no; then
6931   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6932
6933 fi
6934
6935 else
6936   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6938 if test "${ac_cv_search_opendir+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   ac_func_search_save_LIBS=$LIBS
6942 ac_cv_search_opendir=no
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950
6951 /* Override any gcc2 internal prototype to avoid an error.  */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956    builtin and then its argument prototype would still apply.  */
6957 char opendir ();
6958 int
6959 main ()
6960 {
6961 opendir ();
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968   (eval $ac_link) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } &&
6972          { ac_try='test -s conftest$ac_exeext'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; }; then
6978   ac_cv_search_opendir="none required"
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 fi
6984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 if test "$ac_cv_search_opendir" = no; then
6986   for ac_lib in x; do
6987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6988     cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995
6996 /* Override any gcc2 internal prototype to avoid an error.  */
6997 #ifdef __cplusplus
6998 extern "C"
6999 #endif
7000 /* We use char because int might match the return type of a gcc2
7001    builtin and then its argument prototype would still apply.  */
7002 char opendir ();
7003 int
7004 main ()
7005 {
7006 opendir ();
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013   (eval $ac_link) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -s conftest$ac_exeext'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; }; then
7023   ac_cv_search_opendir="-l$ac_lib"
7024 break
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 fi
7030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7031   done
7032 fi
7033 LIBS=$ac_func_search_save_LIBS
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7036 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7037 if test "$ac_cv_search_opendir" != no; then
7038   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7039
7040 fi
7041
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 for ac_header in \
7084   arpa/inet.h \
7085   errno.h \
7086   getopt.h \
7087   glob.h \
7088   dlfcn.h \
7089   fcntl.h \
7090   inttypes.h \
7091   limits.h \
7092   machine/endian.h \
7093   malloc.h \
7094   memory.h \
7095   netdb.h \
7096   netinet/in.h \
7097   nlist.h \
7098   stddef.h \
7099   stdlib.h \
7100   stdint.h \
7101   string.h \
7102   strings.h \
7103   stropts.h \
7104   soundcard.h \
7105   alsa/asoundlib.h \
7106   sys/asoundlib.h \
7107   sys/audioio.h \
7108   sys/awe_voice.h\
7109   sys/ioctl.h \
7110   sys/ipc.h \
7111   sys/param.h \
7112   sys/shm.h \
7113   sys/socket.h \
7114   sys/soundcard.h \
7115   sys/param.h \
7116   sys/time.h \
7117   sys/types.h \
7118   sys/sysctl.h \
7119   termios.h \
7120   unistd.h \
7121   X11/extensions/XShm.h \
7122   X11/Xmu/ExtAgent.h
7123 do
7124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7126   echo "$as_me:$LINENO: checking for $ac_header" >&5
7127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 fi
7131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7133 else
7134   # Is the header compilable?
7135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 /* confdefs.h.  */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h.  */
7144 $ac_includes_default
7145 #include <$ac_header>
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149   (eval $ac_compile) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); } &&
7153          { ac_try='test -s conftest.$ac_objext'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; }; then
7159   ac_header_compiler=yes
7160 else
7161   echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 ac_header_compiler=no
7165 fi
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7168 echo "${ECHO_T}$ac_header_compiler" >&6
7169
7170 # Is the header present?
7171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180 #include <$ac_header>
7181 _ACEOF
7182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7184   ac_status=$?
7185   grep -v '^ *+' conftest.er1 >conftest.err
7186   rm -f conftest.er1
7187   cat conftest.err >&5
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); } >/dev/null; then
7190   if test -s conftest.err; then
7191     ac_cpp_err=$ac_c_preproc_warn_flag
7192   else
7193     ac_cpp_err=
7194   fi
7195 else
7196   ac_cpp_err=yes
7197 fi
7198 if test -z "$ac_cpp_err"; then
7199   ac_header_preproc=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204   ac_header_preproc=no
7205 fi
7206 rm -f conftest.err conftest.$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7208 echo "${ECHO_T}$ac_header_preproc" >&6
7209
7210 # So?  What about this header?
7211 case $ac_header_compiler:$ac_header_preproc in
7212   yes:no )
7213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7217     (
7218       cat <<\_ASBOX
7219 ## ------------------------------------ ##
7220 ## Report this to bug-autoconf@gnu.org. ##
7221 ## ------------------------------------ ##
7222 _ASBOX
7223     ) |
7224       sed "s/^/$as_me: WARNING:     /" >&2
7225     ;;
7226   no:yes )
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233     (
7234       cat <<\_ASBOX
7235 ## ------------------------------------ ##
7236 ## Report this to bug-autoconf@gnu.org. ##
7237 ## ------------------------------------ ##
7238 _ASBOX
7239     ) |
7240       sed "s/^/$as_me: WARNING:     /" >&2
7241     ;;
7242 esac
7243 echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   eval "$as_ac_Header=$ac_header_preproc"
7249 fi
7250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7252
7253 fi
7254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7255   cat >>confdefs.h <<_ACEOF
7256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7257 _ACEOF
7258
7259 fi
7260
7261 done
7262
7263 if test "${ac_cv_header_string_h+set}" = set; then
7264   echo "$as_me:$LINENO: checking for string.h" >&5
7265 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7266 if test "${ac_cv_header_string_h+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 fi
7269 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7270 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7271 else
7272   # Is the header compilable?
7273 echo "$as_me:$LINENO: checking string.h usability" >&5
7274 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 $ac_includes_default
7283 #include <string.h>
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287   (eval $ac_compile) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -s conftest.$ac_objext'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; }; then
7297   ac_header_compiler=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 ac_header_compiler=no
7303 fi
7304 rm -f conftest.$ac_objext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7306 echo "${ECHO_T}$ac_header_compiler" >&6
7307
7308 # Is the header present?
7309 echo "$as_me:$LINENO: checking string.h presence" >&5
7310 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 #include <string.h>
7319 _ACEOF
7320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } >/dev/null; then
7328   if test -s conftest.err; then
7329     ac_cpp_err=$ac_c_preproc_warn_flag
7330   else
7331     ac_cpp_err=
7332   fi
7333 else
7334   ac_cpp_err=yes
7335 fi
7336 if test -z "$ac_cpp_err"; then
7337   ac_header_preproc=yes
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342   ac_header_preproc=no
7343 fi
7344 rm -f conftest.err conftest.$ac_ext
7345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7346 echo "${ECHO_T}$ac_header_preproc" >&6
7347
7348 # So?  What about this header?
7349 case $ac_header_compiler:$ac_header_preproc in
7350   yes:no )
7351     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7352 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7353     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7355     (
7356       cat <<\_ASBOX
7357 ## ------------------------------------ ##
7358 ## Report this to bug-autoconf@gnu.org. ##
7359 ## ------------------------------------ ##
7360 _ASBOX
7361     ) |
7362       sed "s/^/$as_me: WARNING:     /" >&2
7363     ;;
7364   no:yes )
7365     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7366 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7368 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7370 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7371     (
7372       cat <<\_ASBOX
7373 ## ------------------------------------ ##
7374 ## Report this to bug-autoconf@gnu.org. ##
7375 ## ------------------------------------ ##
7376 _ASBOX
7377     ) |
7378       sed "s/^/$as_me: WARNING:     /" >&2
7379     ;;
7380 esac
7381 echo "$as_me:$LINENO: checking for string.h" >&5
7382 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7383 if test "${ac_cv_header_string_h+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   ac_cv_header_string_h=$ac_header_preproc
7387 fi
7388 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7389 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7390
7391 fi
7392 if test $ac_cv_header_string_h = yes; then
7393   :
7394 else
7395
7396 cat >>confdefs.h <<\_ACEOF
7397 #define NO_STRING_H 1
7398 _ACEOF
7399
7400 fi
7401
7402
7403
7404 # Checks for typedefs, structures, and compiler characteristics.
7405 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7406 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7407 if test "${ac_cv_c_bigendian+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   # See if sys/param.h defines the BYTE_ORDER macro.
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418 #include <sys/types.h>
7419 #include <sys/param.h>
7420
7421 int
7422 main ()
7423 {
7424 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7425  bogus endian macros
7426 #endif
7427
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434   (eval $ac_compile) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } &&
7438          { ac_try='test -s conftest.$ac_objext'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; }; then
7444   # It does; now see whether it defined to BIG_ENDIAN or not.
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <sys/types.h>
7453 #include <sys/param.h>
7454
7455 int
7456 main ()
7457 {
7458 #if BYTE_ORDER != BIG_ENDIAN
7459  not big endian
7460 #endif
7461
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468   (eval $ac_compile) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -s conftest.$ac_objext'
7473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474   (eval $ac_try) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); }; }; then
7478   ac_cv_c_bigendian=yes
7479 else
7480   echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_cv_c_bigendian=no
7484 fi
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 # It does not; compile a test program.
7491 if test "$cross_compiling" = yes; then
7492   # try to guess the endianness by grepping values into an object file
7493   ac_cv_c_bigendian=unknown
7494   cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7502 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7503 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7504 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7505 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7506 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7507 int
7508 main ()
7509 {
7510  _ascii (); _ebcdic ();
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517   (eval $ac_compile) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } &&
7521          { ac_try='test -s conftest.$ac_objext'
7522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523   (eval $ac_try) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; }; then
7527   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7528   ac_cv_c_bigendian=yes
7529 fi
7530 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7531   if test "$ac_cv_c_bigendian" = unknown; then
7532     ac_cv_c_bigendian=no
7533   else
7534     # finding both strings is unlikely to happen, but who knows?
7535     ac_cv_c_bigendian=unknown
7536   fi
7537 fi
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 fi
7543 rm -f conftest.$ac_objext conftest.$ac_ext
7544 else
7545   cat >conftest.$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 /* confdefs.h.  */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h.  */
7552 int
7553 main ()
7554 {
7555   /* Are we little or big endian?  From Harbison&Steele.  */
7556   union
7557   {
7558     long l;
7559     char c[sizeof (long)];
7560   } u;
7561   u.l = 1;
7562   exit (u.c[sizeof (long) - 1] == 1);
7563 }
7564 _ACEOF
7565 rm -f conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567   (eval $ac_link) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572   (eval $ac_try) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; }; then
7576   ac_cv_c_bigendian=no
7577 else
7578   echo "$as_me: program exited with status $ac_status" >&5
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ( exit $ac_status )
7583 ac_cv_c_bigendian=yes
7584 fi
7585 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7586 fi
7587 fi
7588 rm -f conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7591 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7592 case $ac_cv_c_bigendian in
7593   yes)
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define WORDS_BIGENDIAN 1
7597 _ACEOF
7598  ;;
7599   no)
7600      ;;
7601   *)
7602     { { echo "$as_me:$LINENO: error: unknown endianness
7603 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7604 echo "$as_me: error: unknown endianness
7605 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7606    { (exit 1); exit 1; }; } ;;
7607 esac
7608
7609
7610 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7611 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7612 if test "${ac_cv_c_char_unsigned+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   cat >conftest.$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 $ac_includes_default
7623 int
7624 main ()
7625 {
7626 static int test_array [1 - 2 * !(((char) -1) < 0)];
7627 test_array [0] = 0
7628
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635   (eval $ac_compile) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } &&
7639          { ac_try='test -s conftest.$ac_objext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_c_char_unsigned=no
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 ac_cv_c_char_unsigned=yes
7651 fi
7652 rm -f conftest.$ac_objext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7655 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7656 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7657   cat >>confdefs.h <<\_ACEOF
7658 #define __CHAR_UNSIGNED__ 1
7659 _ACEOF
7660
7661 fi
7662
7663 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7664 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7665 if test "${ac_cv_c_const+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   cat >conftest.$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675
7676 int
7677 main ()
7678 {
7679 /* FIXME: Include the comments suggested by Paul. */
7680 #ifndef __cplusplus
7681   /* Ultrix mips cc rejects this.  */
7682   typedef int charset[2];
7683   const charset x;
7684   /* SunOS 4.1.1 cc rejects this.  */
7685   char const *const *ccp;
7686   char **p;
7687   /* NEC SVR4.0.2 mips cc rejects this.  */
7688   struct point {int x, y;};
7689   static struct point const zero = {0,0};
7690   /* AIX XL C 1.02.0.0 rejects this.
7691      It does not let you subtract one const X* pointer from another in
7692      an arm of an if-expression whose if-part is not a constant
7693      expression */
7694   const char *g = "string";
7695   ccp = &g + (g ? g-g : 0);
7696   /* HPUX 7.0 cc rejects these. */
7697   ++ccp;
7698   p = (char**) ccp;
7699   ccp = (char const *const *) p;
7700   { /* SCO 3.2v4 cc rejects this.  */
7701     char *t;
7702     char const *s = 0 ? (char *) 0 : (char const *) 0;
7703
7704     *t++ = 0;
7705   }
7706   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7707     int x[] = {25, 17};
7708     const int *foo = &x[0];
7709     ++foo;
7710   }
7711   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7712     typedef const int *iptr;
7713     iptr p = 0;
7714     ++p;
7715   }
7716   { /* AIX XL C 1.02.0.0 rejects this saying
7717        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7718     struct s { int j; const int *ap[3]; };
7719     struct s *b; b->j = 5;
7720   }
7721   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7722     const int foo = 10;
7723   }
7724 #endif
7725
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732   (eval $ac_compile) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -s conftest.$ac_objext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   ac_cv_c_const=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 ac_cv_c_const=no
7748 fi
7749 rm -f conftest.$ac_objext conftest.$ac_ext
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7752 echo "${ECHO_T}$ac_cv_c_const" >&6
7753 if test $ac_cv_c_const = no; then
7754
7755 cat >>confdefs.h <<\_ACEOF
7756 #define const
7757 _ACEOF
7758
7759 fi
7760
7761 echo "$as_me:$LINENO: checking for inline" >&5
7762 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7763 if test "${ac_cv_c_inline+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   ac_cv_c_inline=no
7767 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
7776 typedef int foo_t;
7777 static $ac_kw foo_t static_foo () {return 0; }
7778 $ac_kw foo_t foo () {return 0; }
7779 #endif
7780
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784   (eval $ac_compile) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -s conftest.$ac_objext'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; }; then
7794   ac_cv_c_inline=$ac_kw; break
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 fi
7800 rm -f conftest.$ac_objext conftest.$ac_ext
7801 done
7802
7803 fi
7804 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7805 echo "${ECHO_T}$ac_cv_c_inline" >&6
7806 case $ac_cv_c_inline in
7807   inline | yes) ;;
7808   no)
7809 cat >>confdefs.h <<\_ACEOF
7810 #define inline
7811 _ACEOF
7812  ;;
7813   *)  cat >>confdefs.h <<_ACEOF
7814 #define inline $ac_cv_c_inline
7815 _ACEOF
7816  ;;
7817 esac
7818
7819 echo "$as_me:$LINENO: checking for working volatile" >&5
7820 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7821 if test "${ac_cv_c_volatile+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 int
7833 main ()
7834 {
7835
7836 volatile int x;
7837 int * volatile y;
7838   ;
7839   return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844   (eval $ac_compile) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } &&
7848          { ac_try='test -s conftest.$ac_objext'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; }; then
7854   ac_cv_c_volatile=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ac_cv_c_volatile=no
7860 fi
7861 rm -f conftest.$ac_objext conftest.$ac_ext
7862 fi
7863 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7864 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7865 if test $ac_cv_c_volatile = no; then
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define volatile
7869 _ACEOF
7870
7871 fi
7872
7873 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7874 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7875 if test "${ac_cv_c_stringize+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 #define x(y) #y
7886
7887 char *s = x(teststring);
7888 _ACEOF
7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890   $EGREP "#teststring" >/dev/null 2>&1; then
7891   ac_cv_c_stringize=no
7892 else
7893   ac_cv_c_stringize=yes
7894 fi
7895 rm -f conftest*
7896
7897 fi
7898 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7899 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7900 if test $ac_cv_c_stringize = yes; then
7901
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_STRINGIZE 1
7904 _ACEOF
7905
7906 fi
7907
7908 echo "$as_me:$LINENO: checking for function prototypes" >&5
7909 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7910 if test "$ac_cv_prog_cc_stdc" != no; then
7911   echo "$as_me:$LINENO: result: yes" >&5
7912 echo "${ECHO_T}yes" >&6
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define PROTOTYPES 1
7916 _ACEOF
7917
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define __PROTOTYPES 1
7921 _ACEOF
7922
7923 else
7924   echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926 fi
7927
7928 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7929 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7930 if test "${ac_cv_struct_tm+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 /* confdefs.h.  */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h.  */
7940 #include <sys/types.h>
7941 #include <time.h>
7942
7943 int
7944 main ()
7945 {
7946 struct tm *tp; tp->tm_sec;
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953   (eval $ac_compile) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -s conftest.$ac_objext'
7958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   ac_cv_struct_tm=time.h
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 ac_cv_struct_tm=sys/time.h
7969 fi
7970 rm -f conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7973 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7974 if test $ac_cv_struct_tm = sys/time.h; then
7975
7976 cat >>confdefs.h <<\_ACEOF
7977 #define TM_IN_SYS_TIME 1
7978 _ACEOF
7979
7980 fi
7981
7982 echo "$as_me:$LINENO: checking for size_t" >&5
7983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7984 if test "${ac_cv_type_size_t+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 $ac_includes_default
7995 int
7996 main ()
7997 {
7998 if ((size_t *) 0)
7999   return 0;
8000 if (sizeof (size_t))
8001   return 0;
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8008   (eval $ac_compile) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -s conftest.$ac_objext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   ac_cv_type_size_t=yes
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_type_size_t=no
8024 fi
8025 rm -f conftest.$ac_objext conftest.$ac_ext
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8029 if test $ac_cv_type_size_t = yes; then
8030   :
8031 else
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define size_t unsigned
8035 _ACEOF
8036
8037 fi
8038
8039 echo "$as_me:$LINENO: checking for off_t" >&5
8040 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8041 if test "${ac_cv_type_off_t+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051 $ac_includes_default
8052 int
8053 main ()
8054 {
8055 if ((off_t *) 0)
8056   return 0;
8057 if (sizeof (off_t))
8058   return 0;
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065   (eval $ac_compile) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest.$ac_objext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_cv_type_off_t=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 ac_cv_type_off_t=no
8081 fi
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8085 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8086 if test $ac_cv_type_off_t = yes; then
8087   :
8088 else
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define off_t long
8092 _ACEOF
8093
8094 fi
8095
8096 echo "$as_me:$LINENO: checking for pid_t" >&5
8097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8098 if test "${ac_cv_type_pid_t+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108 $ac_includes_default
8109 int
8110 main ()
8111 {
8112 if ((pid_t *) 0)
8113   return 0;
8114 if (sizeof (pid_t))
8115   return 0;
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122   (eval $ac_compile) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -s conftest.$ac_objext'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_cv_type_pid_t=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_type_pid_t=no
8138 fi
8139 rm -f conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8143 if test $ac_cv_type_pid_t = yes; then
8144   :
8145 else
8146
8147 cat >>confdefs.h <<_ACEOF
8148 #define pid_t int
8149 _ACEOF
8150
8151 fi
8152
8153
8154 echo "$as_me:$LINENO: checking volatile declaration" >&5
8155 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8156 if test "${timidity_cv_type_volatile+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166
8167 int
8168 main ()
8169 {
8170 volatile int 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_volatile=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 timidity_cv_type_volatile=no
8193 fi
8194 rm -f conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8197 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8198 if test $timidity_cv_type_volatile = no; then
8199
8200 cat >>confdefs.h <<\_ACEOF
8201 #define NO_VOLATILE 1
8202 _ACEOF
8203
8204 fi
8205
8206 echo "$as_me:$LINENO: checking union semun declaration" >&5
8207 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8208 if test "${timidity_cv_type_union_semun+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 #include <sys/types.h>
8220 #include <sys/ipc.h>
8221 #include <sys/sem.h>
8222
8223 int
8224 main ()
8225 {
8226 union semun x
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_type_union_semun=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 timidity_cv_type_union_semun=no
8249 fi
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8253 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8254 if test $timidity_cv_type_union_semun = yes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_UNION_SEMUN 1
8258 _ACEOF
8259
8260 fi
8261
8262 if test "x$CYGNUS" = xyes; then
8263   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8264 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8265 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 #include <windows.h>
8277 #include <mmsystem.h>
8278
8279 int
8280 main ()
8281 {
8282 return WOM_OPEN != 0x3BB
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289   (eval $ac_compile) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -s conftest.$ac_objext'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   timidity_cv_header_new_mmsystem=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 timidity_cv_header_new_mmsystem=no
8305 fi
8306 rm -f conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8309 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8310   if test $timidity_cv_header_new_mmsystem = yes; then
8311
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_NEW_MMSYSTEM 1
8314 _ACEOF
8315
8316   fi
8317 fi
8318
8319 if test "x$MINGW" = xyes; then
8320   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8321 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8322 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 #include <windows.h>
8334 #include <mmsystem.h>
8335
8336 int
8337 main ()
8338 {
8339 return WOM_OPEN != 0x3BB
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346   (eval $ac_compile) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -s conftest.$ac_objext'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   timidity_cv_header_new_mmsystem=yes
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 timidity_cv_header_new_mmsystem=no
8362 fi
8363 rm -f conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8366 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8367   if test $timidity_cv_header_new_mmsystem = yes; then
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_NEW_MMSYSTEM 1
8371 _ACEOF
8372
8373   fi
8374 fi
8375
8376 # Checks for library functions.
8377 echo "$as_me:$LINENO: checking for error_at_line" >&5
8378 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8379 if test "${ac_cv_lib_error_at_line+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389
8390 int
8391 main ()
8392 {
8393 error_at_line (0, 0, "", 0, "");
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400   (eval $ac_link) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_lib_error_at_line=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_lib_error_at_line=no
8416 fi
8417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8420 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8421 if test $ac_cv_lib_error_at_line = no; then
8422   LIBOBJS="$LIBOBJS error.$ac_objext"
8423 fi
8424
8425
8426
8427 for ac_header in unistd.h vfork.h
8428 do
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431   echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 fi
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 else
8439   # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 $ac_includes_default
8450 #include <$ac_header>
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454   (eval $ac_compile) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_header_compiler=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_header_compiler=no
8470 fi
8471 rm -f conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8474
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line $LINENO "configure"
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 #include <$ac_header>
8486 _ACEOF
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } >/dev/null; then
8495   if test -s conftest.err; then
8496     ac_cpp_err=$ac_c_preproc_warn_flag
8497   else
8498     ac_cpp_err=
8499   fi
8500 else
8501   ac_cpp_err=yes
8502 fi
8503 if test -z "$ac_cpp_err"; then
8504   ac_header_preproc=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509   ac_header_preproc=no
8510 fi
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8514
8515 # So?  What about this header?
8516 case $ac_header_compiler:$ac_header_preproc in
8517   yes:no )
8518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8522     (
8523       cat <<\_ASBOX
8524 ## ------------------------------------ ##
8525 ## Report this to bug-autoconf@gnu.org. ##
8526 ## ------------------------------------ ##
8527 _ASBOX
8528     ) |
8529       sed "s/^/$as_me: WARNING:     /" >&2
8530     ;;
8531   no:yes )
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538     (
8539       cat <<\_ASBOX
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8543 _ASBOX
8544     ) |
8545       sed "s/^/$as_me: WARNING:     /" >&2
8546     ;;
8547 esac
8548 echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   eval "$as_ac_Header=$ac_header_preproc"
8554 fi
8555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8557
8558 fi
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560   cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 _ACEOF
8563
8564 fi
8565
8566 done
8567
8568
8569
8570 for ac_func in fork vfork
8571 do
8572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8573 echo "$as_me:$LINENO: checking for $ac_func" >&5
8574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8575 if eval "test \"\${$as_ac_var+set}\" = set"; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 /* System header to define __stub macros and hopefully few prototypes,
8586     which can conflict with char $ac_func (); below.
8587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8588     <limits.h> exists even on freestanding compilers.  */
8589 #ifdef __STDC__
8590 # include <limits.h>
8591 #else
8592 # include <assert.h>
8593 #endif
8594 /* Override any gcc2 internal prototype to avoid an error.  */
8595 #ifdef __cplusplus
8596 extern "C"
8597 {
8598 #endif
8599 /* We use char because int might match the return type of a gcc2
8600    builtin and then its argument prototype would still apply.  */
8601 char $ac_func ();
8602 /* The GNU C library defines this for functions which it implements
8603     to always fail with ENOSYS.  Some functions are actually named
8604     something starting with __ and the normal name is an alias.  */
8605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8606 choke me
8607 #else
8608 char (*f) () = $ac_func;
8609 #endif
8610 #ifdef __cplusplus
8611 }
8612 #endif
8613
8614 int
8615 main ()
8616 {
8617 return f != $ac_func;
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624   (eval $ac_link) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -s conftest$ac_exeext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   eval "$as_ac_var=yes"
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 eval "$as_ac_var=no"
8640 fi
8641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8642 fi
8643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8645 if test `eval echo '${'$as_ac_var'}'` = yes; then
8646   cat >>confdefs.h <<_ACEOF
8647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8648 _ACEOF
8649
8650 fi
8651 done
8652
8653 if test "x$ac_cv_func_fork" = xyes; then
8654   echo "$as_me:$LINENO: checking for working fork" >&5
8655 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8656 if test "${ac_cv_func_fork_works+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   if test "$cross_compiling" = yes; then
8660   ac_cv_func_fork_works=cross
8661 else
8662   cat >conftest.$ac_ext <<_ACEOF
8663 /* By Ruediger Kuhlmann. */
8664       #include <sys/types.h>
8665       #if HAVE_UNISTD_H
8666       # include <unistd.h>
8667       #endif
8668       /* Some systems only have a dummy stub for fork() */
8669       int main ()
8670       {
8671         if (fork() < 0)
8672           exit (1);
8673         exit (0);
8674       }
8675 _ACEOF
8676 rm -f conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678   (eval $ac_link) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   ac_cv_func_fork_works=yes
8688 else
8689   echo "$as_me: program exited with status $ac_status" >&5
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 ( exit $ac_status )
8694 ac_cv_func_fork_works=no
8695 fi
8696 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 fi
8699 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8700 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8701
8702 else
8703   ac_cv_func_fork_works=$ac_cv_func_fork
8704 fi
8705 if test "x$ac_cv_func_fork_works" = xcross; then
8706   case $host in
8707     *-*-amigaos* | *-*-msdosdjgpp*)
8708       # Override, as these systems have only a dummy fork() stub
8709       ac_cv_func_fork_works=no
8710       ;;
8711     *)
8712       ac_cv_func_fork_works=yes
8713       ;;
8714   esac
8715   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8716 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8717 fi
8718 ac_cv_func_vfork_works=$ac_cv_func_vfork
8719 if test "x$ac_cv_func_vfork" = xyes; then
8720   echo "$as_me:$LINENO: checking for working vfork" >&5
8721 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8722 if test "${ac_cv_func_vfork_works+set}" = set; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725   if test "$cross_compiling" = yes; then
8726   ac_cv_func_vfork_works=cross
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 /* Thanks to Paul Eggert for this test.  */
8736 #include <stdio.h>
8737 #include <stdlib.h>
8738 #include <sys/types.h>
8739 #include <sys/stat.h>
8740 #include <sys/wait.h>
8741 #if HAVE_UNISTD_H
8742 # include <unistd.h>
8743 #endif
8744 #if HAVE_VFORK_H
8745 # include <vfork.h>
8746 #endif
8747 /* On some sparc systems, changes by the child to local and incoming
8748    argument registers are propagated back to the parent.  The compiler
8749    is told about this with #include <vfork.h>, but some compilers
8750    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8751    static variable whose address is put into a register that is
8752    clobbered by the vfork.  */
8753 static void
8754 #ifdef __cplusplus
8755 sparc_address_test (int arg)
8756 # else
8757 sparc_address_test (arg) int arg;
8758 #endif
8759 {
8760   static pid_t child;
8761   if (!child) {
8762     child = vfork ();
8763     if (child < 0) {
8764       perror ("vfork");
8765       _exit(2);
8766     }
8767     if (!child) {
8768       arg = getpid();
8769       write(-1, "", 0);
8770       _exit (arg);
8771     }
8772   }
8773 }
8774
8775 int
8776 main ()
8777 {
8778   pid_t parent = getpid ();
8779   pid_t child;
8780
8781   sparc_address_test (0);
8782
8783   child = vfork ();
8784
8785   if (child == 0) {
8786     /* Here is another test for sparc vfork register problems.  This
8787        test uses lots of local variables, at least as many local
8788        variables as main has allocated so far including compiler
8789        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8790        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8791        reuse the register of parent for one of the local variables,
8792        since it will think that parent can't possibly be used any more
8793        in this routine.  Assigning to the local variable will thus
8794        munge parent in the parent process.  */
8795     pid_t
8796       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8797       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8798     /* Convince the compiler that p..p7 are live; otherwise, it might
8799        use the same hardware register for all 8 local variables.  */
8800     if (p != p1 || p != p2 || p != p3 || p != p4
8801         || p != p5 || p != p6 || p != p7)
8802       _exit(1);
8803
8804     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8805        from child file descriptors.  If the child closes a descriptor
8806        before it execs or exits, this munges the parent's descriptor
8807        as well.  Test for this by closing stdout in the child.  */
8808     _exit(close(fileno(stdout)) != 0);
8809   } else {
8810     int status;
8811     struct stat st;
8812
8813     while (wait(&status) != child)
8814       ;
8815     exit(
8816          /* Was there some problem with vforking?  */
8817          child < 0
8818
8819          /* Did the child fail?  (This shouldn't happen.)  */
8820          || status
8821
8822          /* Did the vfork/compiler bug occur?  */
8823          || parent != getpid()
8824
8825          /* Did the file descriptor bug occur?  */
8826          || fstat(fileno(stdout), &st) != 0
8827          );
8828   }
8829 }
8830 _ACEOF
8831 rm -f conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833   (eval $ac_link) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838   (eval $ac_try) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; }; then
8842   ac_cv_func_vfork_works=yes
8843 else
8844   echo "$as_me: program exited with status $ac_status" >&5
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ( exit $ac_status )
8849 ac_cv_func_vfork_works=no
8850 fi
8851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8852 fi
8853 fi
8854 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8855 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8856
8857 fi;
8858 if test "x$ac_cv_func_fork_works" = xcross; then
8859   ac_cv_func_vfork_works=ac_cv_func_vfork
8860   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8861 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8862 fi
8863
8864 if test "x$ac_cv_func_vfork_works" = xyes; then
8865
8866 cat >>confdefs.h <<\_ACEOF
8867 #define HAVE_WORKING_VFORK 1
8868 _ACEOF
8869
8870 else
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define vfork fork
8874 _ACEOF
8875
8876 fi
8877 if test "x$ac_cv_func_fork_works" = xyes; then
8878
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_WORKING_FORK 1
8881 _ACEOF
8882
8883 fi
8884
8885 echo "$as_me:$LINENO: checking for working memcmp" >&5
8886 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8887 if test "${ac_cv_func_memcmp_working+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   if test "$cross_compiling" = yes; then
8891   ac_cv_func_memcmp_working=no
8892 else
8893   cat >conftest.$ac_ext <<_ACEOF
8894 #line $LINENO "configure"
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 int
8902 main ()
8903 {
8904
8905   /* Some versions of memcmp are not 8-bit clean.  */
8906   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8907   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8908     exit (1);
8909
8910   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8911      or more and with at least one buffer not starting on a 4-byte boundary.
8912      William Lewis provided this test program.   */
8913   {
8914     char foo[21];
8915     char bar[21];
8916     int i;
8917     for (i = 0; i < 4; i++)
8918       {
8919         char *a = foo + i;
8920         char *b = bar + i;
8921         strcpy (a, "--------01111111");
8922         strcpy (b, "--------10000000");
8923         if (memcmp (a, b, 16) >= 0)
8924           exit (1);
8925       }
8926     exit (0);
8927   }
8928
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935   (eval $ac_link) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; }; then
8944   ac_cv_func_memcmp_working=yes
8945 else
8946   echo "$as_me: program exited with status $ac_status" >&5
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ( exit $ac_status )
8951 ac_cv_func_memcmp_working=no
8952 fi
8953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8954 fi
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8957 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8958 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8959
8960
8961
8962 for ac_header in stdlib.h unistd.h
8963 do
8964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966   echo "$as_me:$LINENO: checking for $ac_header" >&5
8967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 fi
8971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8973 else
8974   # Is the header compilable?
8975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984 $ac_includes_default
8985 #include <$ac_header>
8986 _ACEOF
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989   (eval $ac_compile) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -s conftest.$ac_objext'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; }; then
8999   ac_header_compiler=yes
9000 else
9001   echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_header_compiler=no
9005 fi
9006 rm -f conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9008 echo "${ECHO_T}$ac_header_compiler" >&6
9009
9010 # Is the header present?
9011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020 #include <$ac_header>
9021 _ACEOF
9022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9024   ac_status=$?
9025   grep -v '^ *+' conftest.er1 >conftest.err
9026   rm -f conftest.er1
9027   cat conftest.err >&5
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } >/dev/null; then
9030   if test -s conftest.err; then
9031     ac_cpp_err=$ac_c_preproc_warn_flag
9032   else
9033     ac_cpp_err=
9034   fi
9035 else
9036   ac_cpp_err=yes
9037 fi
9038 if test -z "$ac_cpp_err"; then
9039   ac_header_preproc=yes
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044   ac_header_preproc=no
9045 fi
9046 rm -f conftest.err conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9048 echo "${ECHO_T}$ac_header_preproc" >&6
9049
9050 # So?  What about this header?
9051 case $ac_header_compiler:$ac_header_preproc in
9052   yes:no )
9053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057     (
9058       cat <<\_ASBOX
9059 ## ------------------------------------ ##
9060 ## Report this to bug-autoconf@gnu.org. ##
9061 ## ------------------------------------ ##
9062 _ASBOX
9063     ) |
9064       sed "s/^/$as_me: WARNING:     /" >&2
9065     ;;
9066   no:yes )
9067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9069     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9073     (
9074       cat <<\_ASBOX
9075 ## ------------------------------------ ##
9076 ## Report this to bug-autoconf@gnu.org. ##
9077 ## ------------------------------------ ##
9078 _ASBOX
9079     ) |
9080       sed "s/^/$as_me: WARNING:     /" >&2
9081     ;;
9082 esac
9083 echo "$as_me:$LINENO: checking for $ac_header" >&5
9084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088   eval "$as_ac_Header=$ac_header_preproc"
9089 fi
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092
9093 fi
9094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9095   cat >>confdefs.h <<_ACEOF
9096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9097 _ACEOF
9098
9099 fi
9100
9101 done
9102
9103
9104 for ac_func in getpagesize
9105 do
9106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9107 echo "$as_me:$LINENO: checking for $ac_func" >&5
9108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9109 if eval "test \"\${$as_ac_var+set}\" = set"; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 /* System header to define __stub macros and hopefully few prototypes,
9120     which can conflict with char $ac_func (); below.
9121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122     <limits.h> exists even on freestanding compilers.  */
9123 #ifdef __STDC__
9124 # include <limits.h>
9125 #else
9126 # include <assert.h>
9127 #endif
9128 /* Override any gcc2 internal prototype to avoid an error.  */
9129 #ifdef __cplusplus
9130 extern "C"
9131 {
9132 #endif
9133 /* We use char because int might match the return type of a gcc2
9134    builtin and then its argument prototype would still apply.  */
9135 char $ac_func ();
9136 /* The GNU C library defines this for functions which it implements
9137     to always fail with ENOSYS.  Some functions are actually named
9138     something starting with __ and the normal name is an alias.  */
9139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9140 choke me
9141 #else
9142 char (*f) () = $ac_func;
9143 #endif
9144 #ifdef __cplusplus
9145 }
9146 #endif
9147
9148 int
9149 main ()
9150 {
9151 return f != $ac_func;
9152   ;
9153   return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158   (eval $ac_link) 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); } &&
9162          { ac_try='test -s conftest$ac_exeext'
9163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164   (eval $ac_try) 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); }; }; then
9168   eval "$as_ac_var=yes"
9169 else
9170   echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9172
9173 eval "$as_ac_var=no"
9174 fi
9175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9176 fi
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9179 if test `eval echo '${'$as_ac_var'}'` = yes; then
9180   cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9182 _ACEOF
9183
9184 fi
9185 done
9186
9187 echo "$as_me:$LINENO: checking for working mmap" >&5
9188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   if test "$cross_compiling" = yes; then
9193   ac_cv_func_mmap_fixed_mapped=no
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202 $ac_includes_default
9203 /* malloc might have been renamed as rpl_malloc. */
9204 #undef malloc
9205
9206 /* Thanks to Mike Haertel and Jim Avera for this test.
9207    Here is a matrix of mmap possibilities:
9208         mmap private not fixed
9209         mmap private fixed at somewhere currently unmapped
9210         mmap private fixed at somewhere already mapped
9211         mmap shared not fixed
9212         mmap shared fixed at somewhere currently unmapped
9213         mmap shared fixed at somewhere already mapped
9214    For private mappings, we should verify that changes cannot be read()
9215    back from the file, nor mmap's back from the file at a different
9216    address.  (There have been systems where private was not correctly
9217    implemented like the infamous i386 svr4.0, and systems where the
9218    VM page cache was not coherent with the file system buffer cache
9219    like early versions of FreeBSD and possibly contemporary NetBSD.)
9220    For shared mappings, we should conversely verify that changes get
9221    propagated back to all the places they're supposed to be.
9222
9223    Grep wants private fixed already mapped.
9224    The main things grep needs to know about mmap are:
9225    * does it exist and is it safe to write into the mmap'd area
9226    * how to use it (BSD variants)  */
9227
9228 #include <fcntl.h>
9229 #include <sys/mman.h>
9230
9231 #if !STDC_HEADERS && !HAVE_STDLIB_H
9232 char *malloc ();
9233 #endif
9234
9235 /* This mess was copied from the GNU getpagesize.h.  */
9236 #if !HAVE_GETPAGESIZE
9237 /* Assume that all systems that can run configure have sys/param.h.  */
9238 # if !HAVE_SYS_PARAM_H
9239 #  define HAVE_SYS_PARAM_H 1
9240 # endif
9241
9242 # ifdef _SC_PAGESIZE
9243 #  define getpagesize() sysconf(_SC_PAGESIZE)
9244 # else /* no _SC_PAGESIZE */
9245 #  if HAVE_SYS_PARAM_H
9246 #   include <sys/param.h>
9247 #   ifdef EXEC_PAGESIZE
9248 #    define getpagesize() EXEC_PAGESIZE
9249 #   else /* no EXEC_PAGESIZE */
9250 #    ifdef NBPG
9251 #     define getpagesize() NBPG * CLSIZE
9252 #     ifndef CLSIZE
9253 #      define CLSIZE 1
9254 #     endif /* no CLSIZE */
9255 #    else /* no NBPG */
9256 #     ifdef NBPC
9257 #      define getpagesize() NBPC
9258 #     else /* no NBPC */
9259 #      ifdef PAGESIZE
9260 #       define getpagesize() PAGESIZE
9261 #      endif /* PAGESIZE */
9262 #     endif /* no NBPC */
9263 #    endif /* no NBPG */
9264 #   endif /* no EXEC_PAGESIZE */
9265 #  else /* no HAVE_SYS_PARAM_H */
9266 #   define getpagesize() 8192   /* punt totally */
9267 #  endif /* no HAVE_SYS_PARAM_H */
9268 # endif /* no _SC_PAGESIZE */
9269
9270 #endif /* no HAVE_GETPAGESIZE */
9271
9272 int
9273 main ()
9274 {
9275   char *data, *data2, *data3;
9276   int i, pagesize;
9277   int fd;
9278
9279   pagesize = getpagesize ();
9280
9281   /* First, make a file with some known garbage in it. */
9282   data = (char *) malloc (pagesize);
9283   if (!data)
9284     exit (1);
9285   for (i = 0; i < pagesize; ++i)
9286     *(data + i) = rand ();
9287   umask (0);
9288   fd = creat ("conftest.mmap", 0600);
9289   if (fd < 0)
9290     exit (1);
9291   if (write (fd, data, pagesize) != pagesize)
9292     exit (1);
9293   close (fd);
9294
9295   /* Next, try to mmap the file at a fixed address which already has
9296      something else allocated at it.  If we can, also make sure that
9297      we see the same garbage.  */
9298   fd = open ("conftest.mmap", O_RDWR);
9299   if (fd < 0)
9300     exit (1);
9301   data2 = (char *) malloc (2 * pagesize);
9302   if (!data2)
9303     exit (1);
9304   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9305   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9306                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9307     exit (1);
9308   for (i = 0; i < pagesize; ++i)
9309     if (*(data + i) != *(data2 + i))
9310       exit (1);
9311
9312   /* Finally, make sure that changes to the mapped area do not
9313      percolate back to the file as seen by read().  (This is a bug on
9314      some variants of i386 svr4.0.)  */
9315   for (i = 0; i < pagesize; ++i)
9316     *(data2 + i) = *(data2 + i) + 1;
9317   data3 = (char *) malloc (pagesize);
9318   if (!data3)
9319     exit (1);
9320   if (read (fd, data3, pagesize) != pagesize)
9321     exit (1);
9322   for (i = 0; i < pagesize; ++i)
9323     if (*(data + i) != *(data3 + i))
9324       exit (1);
9325   close (fd);
9326   exit (0);
9327 }
9328 _ACEOF
9329 rm -f conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_func_mmap_fixed_mapped=yes
9341 else
9342   echo "$as_me: program exited with status $ac_status" >&5
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ( exit $ac_status )
9347 ac_cv_func_mmap_fixed_mapped=no
9348 fi
9349 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 fi
9352 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9353 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9355
9356 cat >>confdefs.h <<\_ACEOF
9357 #define HAVE_MMAP 1
9358 _ACEOF
9359
9360 fi
9361 rm -f conftest.mmap
9362
9363 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9364 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9365 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   ac_cv_func_setvbuf_reversed=no
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 #         if PROTOTYPES
9378            int (setvbuf) (FILE *, int, char *, size_t);
9379 #         endif
9380 int
9381 main ()
9382 {
9383 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390   (eval $ac_link) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -s conftest$ac_exeext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 #include <stdio.h>
9408 #            if PROTOTYPES
9409               int (setvbuf) (FILE *, int, char *, size_t);
9410 #            endif
9411 int
9412 main ()
9413 {
9414 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421   (eval $ac_link) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -s conftest$ac_exeext'
9426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427   (eval $ac_try) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; }; then
9431   # It compiles and links either way, so it must not be declared
9432          # with a prototype and most likely this is a K&R C compiler.
9433          # Try running it.
9434          if test "$cross_compiling" = yes; then
9435   : # Assume setvbuf is not reversed when cross-compiling.
9436 else
9437   cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444 #include <stdio.h>
9445 int
9446 main ()
9447 {
9448 /* This call has the arguments reversed.
9449                    A reversed system may check and see that the address of buf
9450                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
9451                 char buf;
9452                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9453                   exit (1);
9454                 putchar ('\r');
9455                 exit (0); /* Non-reversed systems SEGV here.  */
9456   ;
9457   return 0;
9458 }
9459 _ACEOF
9460 rm -f conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462   (eval $ac_link) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; }; then
9471   ac_cv_func_setvbuf_reversed=yes
9472 else
9473   echo "$as_me: program exited with status $ac_status" >&5
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 ( exit $ac_status )
9478 rm -f core core.* *.core
9479 fi
9480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9481 fi
9482         ac_cv_func_setvbuf_reversed=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 fi
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 fi
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9497 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9498 if test $ac_cv_func_setvbuf_reversed = yes; then
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define SETVBUF_REVERSED 1
9502 _ACEOF
9503
9504 fi
9505
9506 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9507 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9508 if test "${ac_cv_type_signal+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518 #include <sys/types.h>
9519 #include <signal.h>
9520 #ifdef signal
9521 # undef signal
9522 #endif
9523 #ifdef __cplusplus
9524 extern "C" void (*signal (int, void (*)(int)))(int);
9525 #else
9526 void (*signal ()) ();
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532 int i;
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539   (eval $ac_compile) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -s conftest.$ac_objext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_cv_type_signal=void
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_type_signal=int
9555 fi
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9557 fi
9558 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9559 echo "${ECHO_T}$ac_cv_type_signal" >&6
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define RETSIGTYPE $ac_cv_type_signal
9563 _ACEOF
9564
9565
9566
9567 for ac_func in vprintf
9568 do
9569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570 echo "$as_me:$LINENO: checking for $ac_func" >&5
9571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9572 if eval "test \"\${$as_ac_var+set}\" = set"; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 #line $LINENO "configure"
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 /* System header to define __stub macros and hopefully few prototypes,
9583     which can conflict with char $ac_func (); below.
9584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585     <limits.h> exists even on freestanding compilers.  */
9586 #ifdef __STDC__
9587 # include <limits.h>
9588 #else
9589 # include <assert.h>
9590 #endif
9591 /* Override any gcc2 internal prototype to avoid an error.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 {
9595 #endif
9596 /* We use char because int might match the return type of a gcc2
9597    builtin and then its argument prototype would still apply.  */
9598 char $ac_func ();
9599 /* The GNU C library defines this for functions which it implements
9600     to always fail with ENOSYS.  Some functions are actually named
9601     something starting with __ and the normal name is an alias.  */
9602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9603 choke me
9604 #else
9605 char (*f) () = $ac_func;
9606 #endif
9607 #ifdef __cplusplus
9608 }
9609 #endif
9610
9611 int
9612 main ()
9613 {
9614 return f != $ac_func;
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   eval "$as_ac_var=yes"
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 eval "$as_ac_var=no"
9637 fi
9638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 fi
9640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9642 if test `eval echo '${'$as_ac_var'}'` = yes; then
9643   cat >>confdefs.h <<_ACEOF
9644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9645 _ACEOF
9646
9647 echo "$as_me:$LINENO: checking for _doprnt" >&5
9648 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9649 if test "${ac_cv_func__doprnt+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659 /* System header to define __stub macros and hopefully few prototypes,
9660     which can conflict with char _doprnt (); below.
9661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662     <limits.h> exists even on freestanding compilers.  */
9663 #ifdef __STDC__
9664 # include <limits.h>
9665 #else
9666 # include <assert.h>
9667 #endif
9668 /* Override any gcc2 internal prototype to avoid an error.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 {
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674    builtin and then its argument prototype would still apply.  */
9675 char _doprnt ();
9676 /* The GNU C library defines this for functions which it implements
9677     to always fail with ENOSYS.  Some functions are actually named
9678     something starting with __ and the normal name is an alias.  */
9679 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9680 choke me
9681 #else
9682 char (*f) () = _doprnt;
9683 #endif
9684 #ifdef __cplusplus
9685 }
9686 #endif
9687
9688 int
9689 main ()
9690 {
9691 return f != _doprnt;
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698   (eval $ac_link) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -s conftest$ac_exeext'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; }; then
9708   ac_cv_func__doprnt=yes
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_cv_func__doprnt=no
9714 fi
9715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9718 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9719 if test $ac_cv_func__doprnt = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_DOPRNT 1
9723 _ACEOF
9724
9725 fi
9726
9727 fi
9728 done
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765 for ac_func in \
9766   alarm \
9767   dup2 \
9768   floor \
9769   getcwd \
9770   getopt \
9771   gethostbyname \
9772   gettimeofday \
9773   getwd \
9774   isatty \
9775   memchr \
9776   memmove \
9777   memset \
9778   modf \
9779   munmap \
9780   popen \
9781   pow \
9782   select \
9783   signal \
9784   socket \
9785   socket \
9786   sleep \
9787   vsnprintf \
9788   snprintf \
9789   sqrt \
9790   strchr \
9791   strdup \
9792   strstr \
9793   strerror \
9794   strcasecmp \
9795   strncasecmp \
9796   strrchr \
9797   strstr \
9798   strtol \
9799   usleep
9800 do
9801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_func" >&5
9803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_var+set}\" = set"; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   cat >conftest.$ac_ext <<_ACEOF
9808 #line $LINENO "configure"
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814 /* System header to define __stub macros and hopefully few prototypes,
9815     which can conflict with char $ac_func (); below.
9816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817     <limits.h> exists even on freestanding compilers.  */
9818 #ifdef __STDC__
9819 # include <limits.h>
9820 #else
9821 # include <assert.h>
9822 #endif
9823 /* Override any gcc2 internal prototype to avoid an error.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 {
9827 #endif
9828 /* We use char because int might match the return type of a gcc2
9829    builtin and then its argument prototype would still apply.  */
9830 char $ac_func ();
9831 /* The GNU C library defines this for functions which it implements
9832     to always fail with ENOSYS.  Some functions are actually named
9833     something starting with __ and the normal name is an alias.  */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835 choke me
9836 #else
9837 char (*f) () = $ac_func;
9838 #endif
9839 #ifdef __cplusplus
9840 }
9841 #endif
9842
9843 int
9844 main ()
9845 {
9846 return f != $ac_func;
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853   (eval $ac_link) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -s conftest$ac_exeext'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; }; then
9863   eval "$as_ac_var=yes"
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 eval "$as_ac_var=no"
9869 fi
9870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9871 fi
9872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9874 if test `eval echo '${'$as_ac_var'}'` = yes; then
9875   cat >>confdefs.h <<_ACEOF
9876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9877 _ACEOF
9878
9879 fi
9880 done
9881
9882
9883 # Checks on cygnus
9884 if test "x$CYGNUS" = xyes; then
9885   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
9886   *yes*)
9887     echo "$as_me:$LINENO: checking for opendir" >&5
9888 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9889 if test "${ac_cv_func_opendir+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899 /* System header to define __stub macros and hopefully few prototypes,
9900     which can conflict with char opendir (); below.
9901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902     <limits.h> exists even on freestanding compilers.  */
9903 #ifdef __STDC__
9904 # include <limits.h>
9905 #else
9906 # include <assert.h>
9907 #endif
9908 /* Override any gcc2 internal prototype to avoid an error.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 {
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914    builtin and then its argument prototype would still apply.  */
9915 char opendir ();
9916 /* The GNU C library defines this for functions which it implements
9917     to always fail with ENOSYS.  Some functions are actually named
9918     something starting with __ and the normal name is an alias.  */
9919 #if defined (__stub_opendir) || defined (__stub___opendir)
9920 choke me
9921 #else
9922 char (*f) () = opendir;
9923 #endif
9924 #ifdef __cplusplus
9925 }
9926 #endif
9927
9928 int
9929 main ()
9930 {
9931 return f != opendir;
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -s conftest$ac_exeext'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_func_opendir=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_func_opendir=no
9954 fi
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 fi
9957 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
9958 echo "${ECHO_T}$ac_cv_func_opendir" >&6
9959 if test $ac_cv_func_opendir = yes; then
9960   :
9961 else
9962    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9963     W32READDIR=yes
9964 fi
9965
9966     ;;
9967   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9968     W32READDIR=yes
9969     ;;
9970   esac
9971   if test "x$enable_network" = "xyes"; then
9972     echo "$as_me:$LINENO: checking for socket" >&5
9973 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9974 if test "${ac_cv_func_socket+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 /* System header to define __stub macros and hopefully few prototypes,
9985     which can conflict with char socket (); below.
9986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987     <limits.h> exists even on freestanding compilers.  */
9988 #ifdef __STDC__
9989 # include <limits.h>
9990 #else
9991 # include <assert.h>
9992 #endif
9993 /* Override any gcc2 internal prototype to avoid an error.  */
9994 #ifdef __cplusplus
9995 extern "C"
9996 {
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999    builtin and then its argument prototype would still apply.  */
10000 char socket ();
10001 /* The GNU C library defines this for functions which it implements
10002     to always fail with ENOSYS.  Some functions are actually named
10003     something starting with __ and the normal name is an alias.  */
10004 #if defined (__stub_socket) || defined (__stub___socket)
10005 choke me
10006 #else
10007 char (*f) () = socket;
10008 #endif
10009 #ifdef __cplusplus
10010 }
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return f != socket;
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023   (eval $ac_link) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_func_socket=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_func_socket=no
10039 fi
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10041 fi
10042 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10043 echo "${ECHO_T}$ac_cv_func_socket" >&6
10044 if test $ac_cv_func_socket = yes; then
10045   :
10046 else
10047   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10048 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10049 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10050 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   ac_save_LIBS="$LIBS"
10054 LIBS="-lwsock32  $LIBS"
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line $LINENO "configure"
10057 /* confdefs.h.  */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h.  */
10062 #include <windows.h>
10063 #include <winsock.h>
10064
10065 int
10066 main ()
10067 {
10068 WSAStartup(0,0);
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075   (eval $ac_link) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   eval "wapi_cv_lib_$ac_lib_var=yes"
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 eval "wapi_cv_lib_$ac_lib_var=no"
10091 fi
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093 LIBS="$ac_save_LIBS"
10094
10095 fi
10096 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10097   echo "$as_me:$LINENO: result: yes" >&5
10098 echo "${ECHO_T}yes" >&6
10099    EXTRALIBS="$EXTRALIBS -lwsock32"
10100     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10101 else
10102   echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10104 fi
10105
10106 fi
10107
10108   fi
10109 fi
10110
10111 # Checks on Mingw
10112 if test "x$CYGWIN" = xyes; then
10113   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
10114   *yes*)
10115     echo "$as_me:$LINENO: checking for opendir" >&5
10116 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10117 if test "${ac_cv_func_opendir+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127 /* System header to define __stub macros and hopefully few prototypes,
10128     which can conflict with char opendir (); below.
10129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130     <limits.h> exists even on freestanding compilers.  */
10131 #ifdef __STDC__
10132 # include <limits.h>
10133 #else
10134 # include <assert.h>
10135 #endif
10136 /* Override any gcc2 internal prototype to avoid an error.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 {
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142    builtin and then its argument prototype would still apply.  */
10143 char opendir ();
10144 /* The GNU C library defines this for functions which it implements
10145     to always fail with ENOSYS.  Some functions are actually named
10146     something starting with __ and the normal name is an alias.  */
10147 #if defined (__stub_opendir) || defined (__stub___opendir)
10148 choke me
10149 #else
10150 char (*f) () = opendir;
10151 #endif
10152 #ifdef __cplusplus
10153 }
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return f != opendir;
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166   (eval $ac_link) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } &&
10170          { ac_try='test -s conftest$ac_exeext'
10171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172   (eval $ac_try) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_cv_func_opendir=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 ac_cv_func_opendir=no
10182 fi
10183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10184 fi
10185 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10186 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10187 if test $ac_cv_func_opendir = yes; then
10188   :
10189 else
10190    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10191     W32READDIR=yes
10192 fi
10193
10194     ;;
10195   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10196     W32READDIR=yes
10197     ;;
10198   esac
10199   if test "x$enable_network" = "xyes"; then
10200     echo "$as_me:$LINENO: checking for socket" >&5
10201 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10202 if test "${ac_cv_func_socket+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212 /* System header to define __stub macros and hopefully few prototypes,
10213     which can conflict with char socket (); below.
10214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10215     <limits.h> exists even on freestanding compilers.  */
10216 #ifdef __STDC__
10217 # include <limits.h>
10218 #else
10219 # include <assert.h>
10220 #endif
10221 /* Override any gcc2 internal prototype to avoid an error.  */
10222 #ifdef __cplusplus
10223 extern "C"
10224 {
10225 #endif
10226 /* We use char because int might match the return type of a gcc2
10227    builtin and then its argument prototype would still apply.  */
10228 char socket ();
10229 /* The GNU C library defines this for functions which it implements
10230     to always fail with ENOSYS.  Some functions are actually named
10231     something starting with __ and the normal name is an alias.  */
10232 #if defined (__stub_socket) || defined (__stub___socket)
10233 choke me
10234 #else
10235 char (*f) () = socket;
10236 #endif
10237 #ifdef __cplusplus
10238 }
10239 #endif
10240
10241 int
10242 main ()
10243 {
10244 return f != socket;
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest$ac_exeext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_func_socket=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_func_socket=no
10267 fi
10268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10271 echo "${ECHO_T}$ac_cv_func_socket" >&6
10272 if test $ac_cv_func_socket = yes; then
10273   :
10274 else
10275   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10276 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10277 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10278 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   ac_save_LIBS="$LIBS"
10282 LIBS="-lwsock32  $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <windows.h>
10291 #include <winsock.h>
10292
10293 int
10294 main ()
10295 {
10296 WSAStartup(0,0);
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -s conftest$ac_exeext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   eval "wapi_cv_lib_$ac_lib_var=yes"
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 eval "wapi_cv_lib_$ac_lib_var=no"
10319 fi
10320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10321 LIBS="$ac_save_LIBS"
10322
10323 fi
10324 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10325   echo "$as_me:$LINENO: result: yes" >&5
10326 echo "${ECHO_T}yes" >&6
10327    EXTRALIBS="$EXTRALIBS -lwsock32"
10328     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10329 else
10330   echo "$as_me:$LINENO: result: no" >&5
10331 echo "${ECHO_T}no" >&6
10332 fi
10333
10334 fi
10335
10336   fi
10337 fi
10338
10339 # Checks on extra paths
10340
10341
10342 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10343 if test "${with_tcl_includes+set}" = set; then
10344   withval="$with_tcl_includes"
10345    if test ! -d $withval; then
10346       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10347 echo "$as_me: WARNING: $withval is not found." >&2;}
10348     fi
10349     tcl_include_dir="-I$withval"
10350
10351 fi;
10352
10353 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10354 if test "${with_tcl_libs+set}" = set; then
10355   withval="$with_tcl_libs"
10356    if test ! -d $withval; then
10357       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10358 echo "$as_me: WARNING: $withval is not found." >&2;}
10359     fi
10360     tcl_libdir="-L$withval"
10361 fi;
10362
10363 # Check whether --with-tk-includes or --without-tk-includes was given.
10364 if test "${with_tk_includes+set}" = set; then
10365   withval="$with_tk_includes"
10366    if test ! -d $withval; then
10367       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10368 echo "$as_me: WARNING: $withval is not found." >&2;}
10369     fi
10370     tk_includes="-I$withval"
10371 fi;
10372
10373 # Check whether --with-tk-libs or --without-tk-libs was given.
10374 if test "${with_tk_libs+set}" = set; then
10375   withval="$with_tk_libs"
10376    if test ! -d $withval; then
10377       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10378 echo "$as_me: WARNING: $withval is not found." >&2;}
10379     fi
10380     tk_libdir="-L$withval"
10381 fi;
10382
10383
10384 # Check whether --with-offix-includes or --without-offix-includes was given.
10385 if test "${with_offix_includes+set}" = set; then
10386   withval="$with_offix_includes"
10387    if test ! -d $withval; then
10388       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10389 echo "$as_me: WARNING: $withval is not found." >&2;}
10390     fi
10391     offix_include_dir="-I$withval"
10392 fi;
10393
10394 # Check whether --with-offix-libs or --without-offix-libs was given.
10395 if test "${with_offix_libs+set}" = set; then
10396   withval="$with_offix_libs"
10397    if test ! -d $withval; then
10398       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10399 echo "$as_me: WARNING: $withval is not found." >&2;}
10400     fi
10401     offix_lib_dir="-L$withval"
10402 fi;
10403
10404
10405 #
10406 # audio section
10407 #
10408
10409 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo'
10410
10411
10412 # Check whether --with-nas-library or --without-nas-library was given.
10413 if test "${with_nas_library+set}" = set; then
10414   withval="$with_nas_library"
10415
10416 fi;
10417
10418 # Check whether --with-nas-includes or --without-nas-includes was given.
10419 if test "${with_nas_includes+set}" = set; then
10420   withval="$with_nas_includes"
10421
10422 fi;
10423
10424
10425 # Check whether --enable-audio or --disable-audio was given.
10426 if test "${enable_audio+set}" = set; then
10427   enableval="$enable_audio"
10428    enable_audio=$enableval
10429     have_audio_opt=yes
10430 else
10431    enable_audio=yes
10432     have_audio_opt=no
10433 fi;
10434
10435 test "x$enable_audio" = xyes && enable_audio=default
10436
10437 if test "x$enable_audio" != xno; then
10438   for i in `echo $enable_audio | sed 's/,/ /g'`; do
10439     eval "au_enable_$i=yes"
10440   done
10441 fi
10442
10443 DEFAULT_PLAYMODE=
10444
10445 # Check whether --with-default-output or --without-default-output was given.
10446 if test "${with_default_output+set}" = set; then
10447   withval="$with_default_output"
10448    if test "$enable_audio" != no; then
10449     DEFAULT_PLAYMODE=$withval
10450     eval "au_enable_$DEFAULT_PLAYMODE=yes"
10451   else
10452     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10453 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10454   fi
10455 fi;
10456
10457
10458 if test "x$au_enable_default" = xyes; then
10459   case "$target" in
10460   *-*-linux*|*-*-freebsd*)
10461     au_enable_oss=yes
10462     ;;
10463   *-*-bsdi2.0)
10464     au_enable_sb_dsp=yes
10465     ;;
10466   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10467     au_enable_oss=yes
10468     ;;
10469   *-*-hpux*)
10470     au_enable_hpux=yes
10471     ;;
10472   *-dec-*)
10473     au_enable_mme=yes
10474     ;;
10475   *irix*)
10476     au_enable_irix=yes
10477     ;;
10478   *-*-sunos4*)
10479     au_enable_sun=yes
10480     ;;
10481   *-*-solaris*)
10482     au_enable_sun=yes
10483     ;;
10484   *-*-netbsd*)
10485     au_enable_sun=yes
10486     ;;
10487   *-*-cygwin*)
10488     au_enable_w32=yes
10489     ;;
10490   *-*-mingw*)
10491     au_enable_w32=yes
10492     ;;
10493   *-*-darwin*)
10494     au_enable_darwin=yes
10495     ;;
10496   *)
10497     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10498 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10499     ;;
10500   esac
10501 fi
10502
10503
10504 # Each audio mode's configurations
10505 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10506 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10507 if test "x$au_enable_oss" = xyes; then
10508   EXTRADEFS="$EXTRADEFS -DAU_OSS"
10509   SYSEXTRAS="$SYSEXTRAS oss_a.c"
10510   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10511     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10512 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10513   else
10514     case "$target" in
10515       *linux*|*freebsd*)
10516                 echo "$as_me:$LINENO: result: yes" >&5
10517 echo "${ECHO_T}yes" >&6
10518         ;;
10519       *)
10520         if test "x$ac_cv_header_soundcard_h" = xyes; then
10521           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10522 echo "${ECHO_T}yes - <soundcard.h>" >&6
10523         else
10524           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10525 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10526         fi
10527         ;;
10528     esac
10529   fi
10530
10531 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10532 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10533 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lossaudio  $LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10540 /* confdefs.h.  */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h.  */
10545
10546 /* Override any gcc2 internal prototype to avoid an error.  */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 /* We use char because int might match the return type of a gcc2
10551    builtin and then its argument prototype would still apply.  */
10552 char open ();
10553 int
10554 main ()
10555 {
10556 open ();
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563   (eval $ac_link) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } &&
10567          { ac_try='test -s conftest$ac_exeext'
10568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569   (eval $ac_try) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); }; }; then
10573   ac_cv_lib_ossaudio_open=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 ac_cv_lib_ossaudio_open=no
10579 fi
10580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10584 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10585 if test $ac_cv_lib_ossaudio_open = yes; then
10586   cat >>confdefs.h <<_ACEOF
10587 #define HAVE_LIBOSSAUDIO 1
10588 _ACEOF
10589
10590   LIBS="-lossaudio $LIBS"
10591
10592 fi
10593
10594
10595     case "$target" in
10596     *openbsd*)
10597       if test ! -e "/dev/dsp"; then
10598         oss_device=/dev/audio
10599       fi
10600       ;;
10601   esac
10602 else
10603   echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10605 fi
10606
10607 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10608 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10609 if test "x$au_enable_sun" = xyes; then
10610   case "$target" in
10611     *-*-sunos4*)
10612       if test -f /usr/demo/SOUND/libaudio.a; then
10613         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10614         echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6
10616       else
10617         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10618 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10619       fi
10620       ;;
10621     *-*-solaris*)
10622       if test -f /usr/demo/SOUND/lib/libaudio.a; then
10623         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10624         echo "$as_me:$LINENO: result: yes" >&5
10625 echo "${ECHO_T}yes" >&6
10626       else
10627         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10628 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10629       fi
10630       ;;
10631     *)   echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6
10633       ;;
10634   esac
10635   EXTRADEFS="$EXTRADEFS -DAU_SUN"
10636   SYSEXTRAS="$SYSEXTRAS sun_a.c"
10637 else
10638   echo "$as_me:$LINENO: result: no" >&5
10639 echo "${ECHO_T}no" >&6
10640 fi
10641
10642 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10643 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10644 if test "x$au_enable_hpux" = xyes; then
10645   case "$target" in
10646     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10647 echo "${ECHO_T}yes" >&6 ;;
10648     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10649 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10650   esac
10651   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10652   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10653 else
10654   echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10656 fi
10657
10658 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10659 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10660 if test "x$au_enable_irix" = xyes; then
10661   case "$target" in
10662     *-sgi-irix5*|*-sgi-irix6.2)
10663       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10664       echo "$as_me:$LINENO: result: yes" >&5
10665 echo "${ECHO_T}yes" >&6
10666       ;;
10667     *-sgi-irix6*)
10668       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10669       echo "$as_me:$LINENO: result: yes" >&5
10670 echo "${ECHO_T}yes" >&6
10671       ;;
10672     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10673 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10674   esac
10675   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10676   EXTRALIBS="$EXTRASLIBS -laudio"
10677 else
10678   echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6
10680 fi
10681
10682 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10683 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10684 if test "x$au_enable_mme" = xyes; then
10685   case "$target" in
10686     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10687 echo "${ECHO_T}yes" >&6 ;;
10688     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10689 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10690   esac
10691   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10692   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10693   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10694   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10695 else
10696   echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10698 fi
10699
10700 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10701 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10702 if test "x$au_enable_sb_dsp" = xyes; then
10703   case "$target" in
10704     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10705 echo "${ECHO_T}yes" >&6 ;;
10706     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10707 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10708   esac
10709   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10710   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10711 else
10712   echo "$as_me:$LINENO: result: no" >&5
10713 echo "${ECHO_T}no" >&6
10714 fi
10715
10716 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10717 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10718 if test "x$au_enable_w32" = xyes; then
10719   case "$target" in
10720     *-*-cygwin*)
10721      echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10723      ;;
10724     *)
10725      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10726 echo "$as_me: WARNING: may not work on $target" >&2;}
10727      ;;
10728   esac
10729   SYSEXTRAS="$SYSEXTRAS w32_a.c"
10730   EXTRALIBS="$EXTRALIBS -lwinmm"
10731   EXTRADEFS="$EXTRADEFS -DAU_W32"
10732 else
10733   echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6
10735 fi
10736
10737 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10738 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10739 if test "x$au_enable_darwin" = xyes; then
10740   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10741   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10742   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10743     case "$target" in
10744     *-*-darwin*)
10745      echo "$as_me:$LINENO: result: yes" >&5
10746 echo "${ECHO_T}yes" >&6;;
10747    *)
10748      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10749 echo "$as_me: WARNING: may not work on $target" >&2;}
10750      ;;
10751   esac
10752 else
10753   echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10755 fi
10756
10757
10758 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10759 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10760 if test "x$au_enable_alsa" = xyes; then
10761   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10762 echo "${ECHO_T}yes, configuring alsa" >&6
10763   KEEPCFLAGS=$CFLAGS
10764   KEEPLIBS=$LIBS
10765   KEEPLDFLAGS=$LDFLAGS
10766   alsa_save_CFLAGS="$CFLAGS"
10767 alsa_save_LDFLAGS="$LDFLAGS"
10768 alsa_save_LIBS="$LIBS"
10769 alsa_found=yes
10770
10771
10772 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10773 if test "${with_alsa_prefix+set}" = set; then
10774   withval="$with_alsa_prefix"
10775   alsa_prefix="$withval"
10776 else
10777   alsa_prefix=""
10778 fi;
10779
10780
10781 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10782 if test "${with_alsa_inc_prefix+set}" = set; then
10783   withval="$with_alsa_inc_prefix"
10784   alsa_inc_prefix="$withval"
10785 else
10786   alsa_inc_prefix=""
10787 fi;
10788
10789 # Check whether --enable-alsatest or --disable-alsatest was given.
10790 if test "${enable_alsatest+set}" = set; then
10791   enableval="$enable_alsatest"
10792   enable_alsatest=no
10793 else
10794   enable_alsatest=yes
10795 fi;
10796
10797 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10798 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10799 if test "$alsa_inc_prefix" != "" ; then
10800         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10801         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10802 fi
10803 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10804 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10805
10806 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10807 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10808 if test "$alsa_prefix" != "" ; then
10809         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10810         LDFLAGS="$LDFLAGS $ALSA_LIBS"
10811 fi
10812
10813 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10814 LIBS=`echo $LIBS | sed 's/-lm//'`
10815 LIBS=`echo $LIBS | sed 's/-ldl//'`
10816 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10817 LIBS=`echo $LIBS | sed 's/  //'`
10818 LIBS="$ALSA_LIBS $LIBS"
10819 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10820 echo "${ECHO_T}$ALSA_LIBS" >&6
10821
10822 min_alsa_version=0.1.1
10823 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10824 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10825 no_alsa=""
10826     alsa_min_major_version=`echo $min_alsa_version | \
10827            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10828     alsa_min_minor_version=`echo $min_alsa_version | \
10829            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10830     alsa_min_micro_version=`echo $min_alsa_version | \
10831            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10832
10833
10834
10835
10836 ac_ext=c
10837 ac_cpp='$CPP $CPPFLAGS'
10838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849
10850 #include <alsa/asoundlib.h>
10851
10852 int
10853 main ()
10854 {
10855
10856 /* ensure backward compatibility */
10857 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10858 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10859 #endif
10860 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10861 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10862 #endif
10863 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10864 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10865 #endif
10866
10867 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10868   exit(0);
10869 #  else
10870 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10871 #       error not present
10872 #    endif
10873
10874 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10875   exit(0);
10876 #   else
10877 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10878 #          error not present
10879 #      endif
10880
10881 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10882 #        error not present
10883 #      endif
10884 #    endif
10885 #  endif
10886 exit(0);
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894   (eval $ac_compile) 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } &&
10898          { ac_try='test -s conftest.$ac_objext'
10899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900   (eval $ac_try) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   echo "$as_me:$LINENO: result: found." >&5
10905 echo "${ECHO_T}found." >&6
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917
10918 #include <sys/asoundlib.h>
10919
10920 int
10921 main ()
10922 {
10923
10924 /* ensure backward compatibility */
10925 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10926 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10927 #endif
10928 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10929 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10930 #endif
10931 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10932 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10933 #endif
10934
10935 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10936   exit(0);
10937 #  else
10938 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10939 #       error not present
10940 #    endif
10941
10942 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10943   exit(0);
10944 #   else
10945 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10946 #          error not present
10947 #      endif
10948
10949 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10950 #        error not present
10951 #      endif
10952 #    endif
10953 #  endif
10954 exit(0);
10955
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962   (eval $ac_compile) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -s conftest.$ac_objext'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; }; then
10972   echo "$as_me:$LINENO: result: found." >&5
10973 echo "${ECHO_T}found." >&6
10974 else
10975   echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978 echo "$as_me:$LINENO: result: not present." >&5
10979 echo "${ECHO_T}not present." >&6
10980    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
10981 echo "${ECHO_T}libasound was not found anywhere." >&6
10982    alsa_found=no
10983 fi
10984 rm -f conftest.$ac_objext conftest.$ac_ext
10985    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
10986 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
10987
10988 fi
10989 rm -f conftest.$ac_objext conftest.$ac_ext
10990 ac_ext=c
10991 ac_cpp='$CPP $CPPFLAGS'
10992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10995
10996
10997
10998 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
10999 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11000 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11001   echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003   ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-lasound  $LIBS"
11005 cat >conftest.$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012
11013 /* Override any gcc2 internal prototype to avoid an error.  */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 /* We use char because int might match the return type of a gcc2
11018    builtin and then its argument prototype would still apply.  */
11019 char snd_ctl_open ();
11020 int
11021 main ()
11022 {
11023 snd_ctl_open ();
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030   (eval $ac_link) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); } &&
11034          { ac_try='test -s conftest$ac_exeext'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; }; then
11040   ac_cv_lib_asound_snd_ctl_open=yes
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_cv_lib_asound_snd_ctl_open=no
11046 fi
11047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11051 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11052 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11053   cat >>confdefs.h <<_ACEOF
11054 #define HAVE_LIBASOUND 1
11055 _ACEOF
11056
11057   LIBS="-lasound $LIBS"
11058
11059 else
11060   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11061 echo "${ECHO_T}No linkable libasound was found." >&6
11062    alsa_found=no
11063
11064 fi
11065
11066
11067 if test "x$alsa_found" = "xyes" ; then
11068    :
11069    LIBS=`echo $LIBS | sed 's/-lasound//g'`
11070    LIBS=`echo $LIBS | sed 's/  //'`
11071    LIBS="-lasound $LIBS"
11072 else
11073    :
11074    CFLAGS="$alsa_save_CFLAGS"
11075    LDFLAGS="$alsa_save_LDFLAGS"
11076    LIBS="$alsa_save_LIBS"
11077    ALSA_CFLAGS=""
11078    ALSA_LIBS=""
11079 fi
11080
11081
11082
11083
11084   if test "x$alsa_found" = "xyes" ; then
11085         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11086     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11087     for f in $ALSA_CFLAGS; do
11088     case ".$f" in
11089         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11090         *)              CFLAGS="$CPPFLAGS $f" ;;
11091     esac
11092 done
11093
11094     LIBS="$KEEPLIBS $ALSA_LIBS"
11095   else
11096     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11097 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11098     CFLAGS=$KEEPCFLAGS
11099     LIBS=$KEEPLIBS
11100     LDFLAGS=$KEEPLDFLAGS
11101   fi
11102 else
11103   echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6
11105 fi
11106
11107 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11108 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11109 if test "x$au_enable_alib" = xyes; then
11110   case "$target" in
11111     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11112 echo "${ECHO_T}yes" >&6 ;;
11113     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11114 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11115   esac
11116   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11117   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11118   if test -d /opt/audio/include; then
11119     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11120   fi
11121   if test -d /opt/audio/lib; then
11122     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11123   fi
11124   EXTRALIBS="$EXTRALIBS -lAlib"
11125 else
11126   echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11128 fi
11129
11130 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11131 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11132 if test "x$au_enable_nas" = xyes; then
11133   if test "x$with_x" != xyes; then
11134     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11135 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11136    { (exit 1); exit 1; }; }
11137   fi
11138   EXTRADEFS="$EXTRADEFS -DAU_NAS"
11139   SYSEXTRAS="$SYSEXTRAS nas_a.c"
11140
11141
11142   if test "x$with_nas_library" != x; then
11143     echo "$as_me:$LINENO: result: $with_nas_library" >&5
11144 echo "${ECHO_T}$with_nas_library" >&6;
11145     EXTRALIBS="$EXTRALIBS $with_nas_library"
11146   else
11147     echo "$as_me:$LINENO: result: " >&5
11148 echo "${ECHO_T}" >&6
11149     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11150 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11151 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   ac_func_search_save_LIBS="$LIBS"
11155 timidity_cv_search_AuOpenServer="no"
11156 for i in $x_libraries/libaudio.a \
11157          /usr/lib/libaudio.so \
11158          /usr/lib/libaudio.a ; do
11159   LIBS="$i  $ac_func_search_save_LIBS"
11160   cat >conftest.$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167
11168 /* Override any gcc2 internal prototype to avoid an error.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 /* We use char because int might match the return type of a gcc2
11173    builtin and then its argument prototype would still apply.  */
11174 char AuOpenServer ();
11175 int
11176 main ()
11177 {
11178 AuOpenServer ();
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185   (eval $ac_link) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest$ac_exeext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   timidity_cv_search_AuOpenServer="$i"; break
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 fi
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202 done
11203 LIBS="$ac_func_search_save_LIBS"
11204 fi
11205 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11206 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11207 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11208    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11209 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11210           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11211 else :
11212   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11213 echo "$as_me: WARNING: NAS library is not found." >&2;}
11214 fi
11215   fi
11216   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11217   lib_xt_opt=-lXt
11218   if test "x$have_xext" = xyes; then
11219     lib_xext_opt=-lXext
11220   fi
11221   if test "x$have_xprelibs" = xyes; then
11222     lib_xprelibs_opt='-lSM -lICE'
11223   fi
11224 else
11225   echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6
11227 fi
11228
11229 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11230 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11231 if test "x$au_enable_arts" = xyes; then
11232   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11233 echo "${ECHO_T}yes, configuring aRts" >&6
11234   KEEPCFLAGS=$CFLAGS
11235   KEEPLIBS=$LIBS
11236   KEEPLDFLAGS=$LDFLAGS
11237
11238 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11239 if test "${with_arts_prefix+set}" = set; then
11240   withval="$with_arts_prefix"
11241   arts_prefix="$withval"
11242 else
11243   arts_prefix=""
11244 fi;
11245 # Check whether --enable-artstest or --disable-artstest was given.
11246 if test "${enable_artstest+set}" = set; then
11247   enableval="$enable_artstest"
11248
11249 else
11250   enable_artstest=yes
11251 fi;
11252
11253   if test x$arts_prefix != x ; then
11254      arts_args="$arts_args --prefix=$arts_prefix"
11255      if test x${ARTS_CONFIG+set} != xset ; then
11256         ARTS_CONFIG=$arts_prefix/bin/artsc-config
11257      fi
11258   fi
11259
11260   # Extract the first word of "artsc-config", so it can be a program name with args.
11261 set dummy artsc-config; ac_word=$2
11262 echo "$as_me:$LINENO: checking for $ac_word" >&5
11263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11264 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267   case $ARTS_CONFIG in
11268   [\\/]* | ?:[\\/]*)
11269   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11270   ;;
11271   *)
11272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275   IFS=$as_save_IFS
11276   test -z "$as_dir" && as_dir=.
11277   for ac_exec_ext in '' $ac_executable_extensions; do
11278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281     break 2
11282   fi
11283 done
11284 done
11285
11286   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11287   ;;
11288 esac
11289 fi
11290 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11291
11292 if test -n "$ARTS_CONFIG"; then
11293   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11294 echo "${ECHO_T}$ARTS_CONFIG" >&6
11295 else
11296   echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6
11298 fi
11299
11300   min_arts_version=0.9.5
11301   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11302 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11303   no_arts=""
11304   if test "$ARTS_CONFIG" = "no" ; then
11305     no_arts=yes
11306   else
11307     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11308     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11309
11310     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11311            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11312     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11313            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11314     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11315            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11316     if test "x$enable_artstest" = "xyes" ; then
11317       ac_save_CFLAGS="$CFLAGS"
11318       ac_save_LIBS="$LIBS"
11319       CFLAGS="$CFLAGS $ARTS_CFLAGS"
11320       LIBS="$LIBS $ARTS_LIBS"
11321       rm -f conf.artstest
11322       if test "$cross_compiling" = yes; then
11323   echo $ac_n "cross compiling; assumed OK... $ac_c"
11324 else
11325   cat >conftest.$ac_ext <<_ACEOF
11326 #line $LINENO "configure"
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332
11333 #include <stdio.h>
11334 #include <stdlib.h>
11335 #include <string.h>
11336 #include <artsc.h>
11337
11338 char*
11339 my_strdup (char *str)
11340 {
11341   char *new_str;
11342
11343   if (str)
11344     {
11345       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11346       strcpy (new_str, str);
11347     }
11348   else
11349     new_str = NULL;
11350
11351   return new_str;
11352 }
11353
11354 int main ()
11355 {
11356   int major, minor, micro;
11357   char *tmp_version;
11358
11359   system ("touch conf.artstest");
11360
11361   /* HP/UX 9 (%@#!) writes to sscanf strings */
11362   tmp_version = my_strdup("$min_arts_version");
11363   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11364      printf("%s, bad version string\n", "$min_arts_version");
11365      exit(1);
11366    }
11367
11368    if (($arts_major_version > major) ||
11369       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11370       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11371     {
11372       return 0;
11373     }
11374   else
11375     {
11376       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11377       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11378       printf("*** best to upgrade to the required version.\n");
11379       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11380       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11381       printf("*** config.cache before re-running configure\n");
11382       return 1;
11383     }
11384 }
11385
11386
11387 _ACEOF
11388 rm -f conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390   (eval $ac_link) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }; then
11399   :
11400 else
11401   echo "$as_me: program exited with status $ac_status" >&5
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ( exit $ac_status )
11406 no_arts=yes
11407 fi
11408 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11409 fi
11410        CFLAGS="$ac_save_CFLAGS"
11411        LIBS="$ac_save_LIBS"
11412      fi
11413   fi
11414   if test "x$no_arts" = x ; then
11415      echo "$as_me:$LINENO: result: yes" >&5
11416 echo "${ECHO_T}yes" >&6
11417      :
11418   else
11419      echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11421      if test "$ARTS_CONFIG" = "no" ; then
11422        echo "*** The artsc-config script installed by ARTS could not be found"
11423        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11424        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11425        echo "*** full path to artsc-config."
11426      else
11427        if test -f conf.artstest ; then
11428         :
11429        else
11430           echo "*** Could not run ARTS test program, checking why..."
11431           CFLAGS="$CFLAGS $ARTS_CFLAGS"
11432           LIBS="$LIBS $ARTS_LIBS"
11433           cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 #include <stdio.h>
11442 #include <artsc.h>
11443
11444 int
11445 main ()
11446 {
11447  return 0;
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454   (eval $ac_link) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -s conftest$ac_exeext'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; }; then
11464    echo "*** The test program compiled, but did not run. This usually means"
11465           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11466           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11467           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11468           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11469           echo "*** is required on your system"
11470           echo "***"
11471           echo "*** If you have an old version installed, it is best to remove it, although"
11472           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11473 else
11474   echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477  echo "*** The test program failed to compile or link. See the file config.log for the"
11478           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11479           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11480           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11481 fi
11482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11483           CFLAGS="$ac_save_CFLAGS"
11484           LIBS="$ac_save_LIBS"
11485        fi
11486      fi
11487      ARTS_CFLAGS=""
11488      ARTS_LIBS=""
11489      :
11490   fi
11491
11492
11493   rm -f conf.artstest
11494
11495   CFLAGS=$KEEPCFLAGS
11496   LIBS=$KEEPLIBS
11497   LDFLAGS=$KEEPLDFLAGS
11498   if test "x$no_arts" = x; then
11499         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11500     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11501     for f in $ARTS_CFLAGS; do
11502     case ".$f" in
11503         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11504         *)              CFLAGS="$CPPFLAGS $f" ;;
11505     esac
11506 done
11507
11508     LIBS="$LIBS $ARTS_LIBS"
11509   else
11510     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11511 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11512   fi
11513 else
11514   echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6
11516 fi
11517
11518 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11519 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11520 if test "x$au_enable_esd" = xyes; then
11521   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11522 echo "${ECHO_T}yes, configuring esd" >&6
11523   KEEPCFLAGS=$CFLAGS
11524   KEEPLIBS=$LIBS
11525   KEEPLDFLAGS=$LDFLAGS
11526
11527 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11528 if test "${with_esd_prefix+set}" = set; then
11529   withval="$with_esd_prefix"
11530   esd_prefix="$withval"
11531 else
11532   esd_prefix=""
11533 fi;
11534
11535 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11536 if test "${with_esd_exec_prefix+set}" = set; then
11537   withval="$with_esd_exec_prefix"
11538   esd_exec_prefix="$withval"
11539 else
11540   esd_exec_prefix=""
11541 fi;
11542 # Check whether --enable-esdtest or --disable-esdtest was given.
11543 if test "${enable_esdtest+set}" = set; then
11544   enableval="$enable_esdtest"
11545
11546 else
11547   enable_esdtest=yes
11548 fi;
11549
11550   if test x$esd_exec_prefix != x ; then
11551      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11552      if test x${ESD_CONFIG+set} != xset ; then
11553         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11554      fi
11555   fi
11556   if test x$esd_prefix != x ; then
11557      esd_args="$esd_args --prefix=$esd_prefix"
11558      if test x${ESD_CONFIG+set} != xset ; then
11559         ESD_CONFIG=$esd_prefix/bin/esd-config
11560      fi
11561   fi
11562
11563   # Extract the first word of "esd-config", so it can be a program name with args.
11564 set dummy esd-config; ac_word=$2
11565 echo "$as_me:$LINENO: checking for $ac_word" >&5
11566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11567 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   case $ESD_CONFIG in
11571   [\\/]* | ?:[\\/]*)
11572   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11573   ;;
11574   *)
11575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578   IFS=$as_save_IFS
11579   test -z "$as_dir" && as_dir=.
11580   for ac_exec_ext in '' $ac_executable_extensions; do
11581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11584     break 2
11585   fi
11586 done
11587 done
11588
11589   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11590   ;;
11591 esac
11592 fi
11593 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11594
11595 if test -n "$ESD_CONFIG"; then
11596   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11597 echo "${ECHO_T}$ESD_CONFIG" >&6
11598 else
11599   echo "$as_me:$LINENO: result: no" >&5
11600 echo "${ECHO_T}no" >&6
11601 fi
11602
11603   min_esd_version=0.2.7
11604   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11605 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11606   no_esd=""
11607   if test "$ESD_CONFIG" = "no" ; then
11608     no_esd=yes
11609   else
11610
11611
11612     ac_ext=c
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
11618     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11619     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11620
11621     esd_major_version=`$ESD_CONFIG $esd_args --version | \
11622            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11623     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11624            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11625     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11626            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11627     if test "x$enable_esdtest" = "xyes" ; then
11628       ac_save_CFLAGS="$CFLAGS"
11629       ac_save_LIBS="$LIBS"
11630       CFLAGS="$CFLAGS $ESD_CFLAGS"
11631       LIBS="$LIBS $ESD_LIBS"
11632       rm -f conf.esdtest
11633       if test "$cross_compiling" = yes; then
11634   echo $ac_n "cross compiling; assumed OK... $ac_c"
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643
11644 #include <stdio.h>
11645 #include <stdlib.h>
11646 #include <string.h>
11647 #include <esd.h>
11648
11649 char*
11650 my_strdup (char *str)
11651 {
11652   char *new_str;
11653
11654   if (str)
11655     {
11656       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11657       strcpy (new_str, str);
11658     }
11659   else
11660     new_str = NULL;
11661
11662   return new_str;
11663 }
11664
11665 int main ()
11666 {
11667   int major, minor, micro;
11668   char *tmp_version;
11669
11670   system ("touch conf.esdtest");
11671
11672   /* HP/UX 9 (%@#!) writes to sscanf strings */
11673   tmp_version = my_strdup("$min_esd_version");
11674   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11675      printf("%s, bad version string\n", "$min_esd_version");
11676      exit(1);
11677    }
11678
11679    if (($esd_major_version > major) ||
11680       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11681       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11682     {
11683       return 0;
11684     }
11685   else
11686     {
11687       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11688       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11689       printf("*** best to upgrade to the required version.\n");
11690       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11691       printf("*** to point to the correct copy of esd-config, and remove the file\n");
11692       printf("*** config.cache before re-running configure\n");
11693       return 1;
11694     }
11695 }
11696
11697
11698 _ACEOF
11699 rm -f conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701   (eval $ac_link) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   :
11711 else
11712   echo "$as_me: program exited with status $ac_status" >&5
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ( exit $ac_status )
11717 no_esd=yes
11718 fi
11719 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11720 fi
11721        CFLAGS="$ac_save_CFLAGS"
11722        LIBS="$ac_save_LIBS"
11723        ac_ext=c
11724 ac_cpp='$CPP $CPPFLAGS'
11725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11728
11729      fi
11730   fi
11731   if test "x$no_esd" = x ; then
11732      echo "$as_me:$LINENO: result: yes" >&5
11733 echo "${ECHO_T}yes" >&6
11734      :
11735   else
11736      echo "$as_me:$LINENO: result: no" >&5
11737 echo "${ECHO_T}no" >&6
11738      if test "$ESD_CONFIG" = "no" ; then
11739        echo "*** The esd-config script installed by ESD could not be found"
11740        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11741        echo "*** your path, or set the ESD_CONFIG environment variable to the"
11742        echo "*** full path to esd-config."
11743      else
11744        if test -f conf.esdtest ; then
11745         :
11746        else
11747           echo "*** Could not run ESD test program, checking why..."
11748           CFLAGS="$CFLAGS $ESD_CFLAGS"
11749           LIBS="$LIBS $ESD_LIBS"
11750
11751
11752           ac_ext=c
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757
11758           cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765
11766 #include <stdio.h>
11767 #include <esd.h>
11768
11769 int
11770 main ()
11771 {
11772  return 0;
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779   (eval $ac_link) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -s conftest$ac_exeext'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789    echo "*** The test program compiled, but did not run. This usually means"
11790           echo "*** that the run-time linker is not finding ESD or finding the wrong"
11791           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11792           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11793           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11794           echo "*** is required on your system"
11795           echo "***"
11796           echo "*** If you have an old version installed, it is best to remove it, although"
11797           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802  echo "*** The test program failed to compile or link. See the file config.log for the"
11803           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11804           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11805           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11806 fi
11807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11808           CFLAGS="$ac_save_CFLAGS"
11809           LIBS="$ac_save_LIBS"
11810           ac_ext=c
11811 ac_cpp='$CPP $CPPFLAGS'
11812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11815
11816        fi
11817      fi
11818      ESD_CFLAGS=""
11819      ESD_LIBS=""
11820      :
11821   fi
11822
11823
11824   rm -f conf.esdtest
11825
11826   CFLAGS=$KEEPCFLAGS
11827   LIBS=$KEEPLIBS
11828   LDFLAGS=$KEEPLDFLAGS
11829   if test "x$no_esd" = x; then
11830         EXTRADEFS="$EXTRADEFS -DAU_ESD"
11831     SYSEXTRAS="$SYSEXTRAS esd_a.c"
11832     for f in $ESD_CFLAGS; do
11833     case ".$f" in
11834         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11835         *)              CFLAGS="$CPPFLAGS $f" ;;
11836     esac
11837 done
11838
11839     LIBS="$LIBS $ESD_LIBS"
11840   else
11841     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
11842 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
11843   fi
11844 else
11845   echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11847 fi
11848
11849 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
11850 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
11851 if test "x$au_enable_vorbis" = xyes; then
11852   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
11853 echo "${ECHO_T}yes, configuring vorbis" >&6
11854
11855 # Check whether --with-ogg or --without-ogg was given.
11856 if test "${with_ogg+set}" = set; then
11857   withval="$with_ogg"
11858   ogg_prefix="$withval"
11859 else
11860   ogg_prefix=""
11861 fi;
11862
11863 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
11864 if test "${with_ogg_libraries+set}" = set; then
11865   withval="$with_ogg_libraries"
11866   ogg_libraries="$withval"
11867 else
11868   ogg_libraries=""
11869 fi;
11870
11871 # Check whether --with-ogg-includes or --without-ogg-includes was given.
11872 if test "${with_ogg_includes+set}" = set; then
11873   withval="$with_ogg_includes"
11874   ogg_includes="$withval"
11875 else
11876   ogg_includes=""
11877 fi;
11878 # Check whether --enable-oggtest or --disable-oggtest was given.
11879 if test "${enable_oggtest+set}" = set; then
11880   enableval="$enable_oggtest"
11881
11882 else
11883   enable_oggtest=yes
11884 fi;
11885
11886   if test "x$ogg_libraries" != "x" ; then
11887     OGG_LIBS="-L$ogg_libraries"
11888   elif test "x$ogg_prefix" != "x" ; then
11889     OGG_LIBS="-L$ogg_prefix/lib"
11890   elif test "x$prefix" != "xNONE" ; then
11891     OGG_LIBS="-L$prefix/lib"
11892   fi
11893
11894   OGG_LIBS="$OGG_LIBS -logg"
11895
11896   if test "x$ogg_includes" != "x" ; then
11897     OGG_CFLAGS="-I$ogg_includes"
11898   elif test "x$ogg_prefix" != "x" ; then
11899     OGG_CFLAGS="-I$ogg_prefix/include"
11900   elif test "x$prefix" != "xNONE"; then
11901     OGG_CFLAGS="-I$prefix/include"
11902   fi
11903
11904   echo "$as_me:$LINENO: checking for Ogg" >&5
11905 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
11906   no_ogg=""
11907
11908
11909   if test "x$enable_oggtest" = "xyes" ; then
11910     ac_save_CFLAGS="$CFLAGS"
11911     ac_save_LIBS="$LIBS"
11912     CFLAGS="$CFLAGS $OGG_CFLAGS"
11913     LIBS="$LIBS $OGG_LIBS"
11914       rm -f conf.oggtest
11915       if test "$cross_compiling" = yes; then
11916   echo $ac_n "cross compiling; assumed OK... $ac_c"
11917 else
11918   cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11920 /* confdefs.h.  */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h.  */
11925
11926 #include <stdio.h>
11927 #include <stdlib.h>
11928 #include <string.h>
11929 #include <ogg/ogg.h>
11930
11931 int main ()
11932 {
11933   system("touch conf.oggtest");
11934   return 0;
11935 }
11936
11937
11938 _ACEOF
11939 rm -f conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941   (eval $ac_link) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; }; then
11950   :
11951 else
11952   echo "$as_me: program exited with status $ac_status" >&5
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 ( exit $ac_status )
11957 no_ogg=yes
11958 fi
11959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11960 fi
11961        CFLAGS="$ac_save_CFLAGS"
11962        LIBS="$ac_save_LIBS"
11963   fi
11964
11965   if test "x$no_ogg" = "x" ; then
11966      echo "$as_me:$LINENO: result: yes" >&5
11967 echo "${ECHO_T}yes" >&6
11968
11969
11970 # Check whether --with-vorbis or --without-vorbis was given.
11971 if test "${with_vorbis+set}" = set; then
11972   withval="$with_vorbis"
11973   vorbis_prefix="$withval"
11974 else
11975   vorbis_prefix=""
11976 fi;
11977
11978 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
11979 if test "${with_vorbis_libraries+set}" = set; then
11980   withval="$with_vorbis_libraries"
11981   vorbis_libraries="$withval"
11982 else
11983   vorbis_libraries=""
11984 fi;
11985
11986 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
11987 if test "${with_vorbis_includes+set}" = set; then
11988   withval="$with_vorbis_includes"
11989   vorbis_includes="$withval"
11990 else
11991   vorbis_includes=""
11992 fi;
11993 # Check whether --enable-vorbistest or --disable-vorbistest was given.
11994 if test "${enable_vorbistest+set}" = set; then
11995   enableval="$enable_vorbistest"
11996
11997 else
11998   enable_vorbistest=yes
11999 fi;
12000
12001   if test "x$vorbis_libraries" != "x" ; then
12002     VORBIS_LIBS="-L$vorbis_libraries"
12003   elif test "x$vorbis_prefix" != "x" ; then
12004     VORBIS_LIBS="-L$vorbis_prefix/lib"
12005   elif test "x$prefix" != "xNONE"; then
12006     VORBIS_LIBS="-L$prefix/lib"
12007   fi
12008
12009   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12010   VORBISFILE_LIBS="-lvorbisfile"
12011   VORBISENC_LIBS="-lvorbisenc"
12012
12013   if test "x$vorbis_includes" != "x" ; then
12014     VORBIS_CFLAGS="-I$vorbis_includes"
12015   elif test "x$vorbis_prefix" != "x" ; then
12016     VORBIS_CFLAGS="-I$vorbis_prefix/include"
12017   elif test "x$prefix" != "xNONE"; then
12018     VORBIS_CFLAGS="-I$prefix/include"
12019   fi
12020
12021
12022   echo "$as_me:$LINENO: checking for Vorbis" >&5
12023 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12024   no_vorbis=""
12025
12026
12027   if test "x$enable_vorbistest" = "xyes" ; then
12028     ac_save_CFLAGS="$CFLAGS"
12029     ac_save_LIBS="$LIBS"
12030     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12031     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12032       rm -f conf.vorbistest
12033       if test "$cross_compiling" = yes; then
12034   echo $ac_n "cross compiling; assumed OK... $ac_c"
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043
12044 #include <stdio.h>
12045 #include <stdlib.h>
12046 #include <string.h>
12047 #include <vorbis/codec.h>
12048
12049 int main ()
12050 {
12051   system("touch conf.vorbistest");
12052   return 0;
12053 }
12054
12055
12056 _ACEOF
12057 rm -f conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059   (eval $ac_link) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; }; then
12068   :
12069 else
12070   echo "$as_me: program exited with status $ac_status" >&5
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ( exit $ac_status )
12075 no_vorbis=yes
12076 fi
12077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 fi
12079        CFLAGS="$ac_save_CFLAGS"
12080        LIBS="$ac_save_LIBS"
12081   fi
12082
12083   if test "x$no_vorbis" = "x" ; then
12084      echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6
12086
12087       have_vorbis=yes
12088       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12089       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12090       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12091       if test "x$CYGNUS" = "xyes"; then
12092       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12093           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12094       fi
12095       if test "x$MINGW" = "xyes"; then
12096       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12097           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12098       fi
12099
12100   else
12101      echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12103      if test -f conf.vorbistest ; then
12104        :
12105      else
12106        echo "*** Could not run Vorbis test program, checking why..."
12107        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12108        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12109        cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116
12117 #include <stdio.h>
12118 #include <vorbis/codec.h>
12119
12120 int
12121 main ()
12122 {
12123  return 0;
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130   (eval $ac_link) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -s conftest$ac_exeext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140    echo "*** The test program compiled, but did not run. This usually means"
12141        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12142        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12143        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12144        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12145        echo "*** is required on your system"
12146        echo "***"
12147        echo "*** If you have an old version installed, it is best to remove it, although"
12148        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153  echo "*** The test program failed to compile or link. See the file config.log for the"
12154        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12155        echo "*** or that you have moved Vorbis since it was installed."
12156 fi
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158        CFLAGS="$ac_save_CFLAGS"
12159        LIBS="$ac_save_LIBS"
12160      fi
12161      VORBIS_CFLAGS=""
12162      VORBIS_LIBS=""
12163      VORBISFILE_LIBS=""
12164      VORBISENC_LIBS=""
12165
12166       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12167 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12168
12169   fi
12170
12171
12172
12173
12174   rm -f conf.vorbistest
12175
12176
12177   else
12178      echo "$as_me:$LINENO: result: no" >&5
12179 echo "${ECHO_T}no" >&6
12180      if test -f conf.oggtest ; then
12181        :
12182      else
12183        echo "*** Could not run Ogg test program, checking why..."
12184        CFLAGS="$CFLAGS $OGG_CFLAGS"
12185        LIBS="$LIBS $OGG_LIBS"
12186        cat >conftest.$ac_ext <<_ACEOF
12187 #line $LINENO "configure"
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193
12194 #include <stdio.h>
12195 #include <ogg/ogg.h>
12196
12197 int
12198 main ()
12199 {
12200  return 0;
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207   (eval $ac_link) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -s conftest$ac_exeext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217    echo "*** The test program compiled, but did not run. This usually means"
12218        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12219        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12220        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12221        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12222        echo "*** is required on your system"
12223        echo "***"
12224        echo "*** If you have an old version installed, it is best to remove it, although"
12225        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230  echo "*** The test program failed to compile or link. See the file config.log for the"
12231        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12232        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12233        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12234 fi
12235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12236        CFLAGS="$ac_save_CFLAGS"
12237        LIBS="$ac_save_LIBS"
12238      fi
12239      OGG_CFLAGS=""
12240      OGG_LIBS=""
12241
12242     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12243 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12244     have_vorbis=no
12245
12246   fi
12247
12248
12249   rm -f conf.oggtest
12250
12251 else
12252   echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12254 fi
12255
12256 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12257 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12258 if test "x$au_enable_gogo" = xyes; then
12259   if test "x$CYGNUS" = "xyes"; then
12260     echo "$as_me:$LINENO: result: yes" >&5
12261 echo "${ECHO_T}yes" >&6
12262   else
12263     if test "x$MINGW" = "xyes"; then
12264     echo "$as_me:$LINENO: result: yes" >&5
12265 echo "${ECHO_T}yes" >&6
12266     else
12267       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
12268 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
12269     fi
12270   fi
12271   have_gogo=yes
12272   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12273   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12274   EXTRALIBS="$EXTRALIBS -lgogo"
12275 else
12276   echo "$as_me:$LINENO: result: no" >&5
12277 echo "${ECHO_T}no" >&6
12278 fi
12279
12280 if test "x$au_enable_none" = xyes; then
12281     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12282     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12283 fi
12284 echo "$as_me:$LINENO: checking default output mode" >&5
12285 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12286 if test "x$DEFAULT_PLAYMODE" = x; then
12287   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12288 fi
12289 case ".$DEFAULT_PLAYMODE" in
12290   .default)  TIMIDITY_OUTPUT_ID=d ;;
12291   .oss)      TIMIDITY_OUTPUT_ID=d ;;
12292   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
12293   .sun)      TIMIDITY_OUTPUT_ID=d ;;
12294   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
12295   .irix)     TIMIDITY_OUTPUT_ID=d ;;
12296   .mme)      TIMIDITY_OUTPUT_ID=d ;;
12297   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
12298   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
12299   .w32)      TIMIDITY_OUTPUT_ID=d ;;
12300   .alib)     TIMIDITY_OUTPUT_ID=A ;;
12301   .nas)      TIMIDITY_OUTPUT_ID=n ;;
12302   .arts)     TIMIDITY_OUTPUT_ID=R ;;
12303   .esd)      TIMIDITY_OUTPUT_ID=e ;;
12304   .wav)      TIMIDITY_OUTPUT_ID=w ;;
12305   .au)       TIMIDITY_OUTPUT_ID=u ;;
12306   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
12307   .list)     TIMIDITY_OUTPUT_ID=l ;;
12308   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
12309   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
12310   *)         TIMIDITY_OUTPUT_ID= ;;
12311 esac
12312 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12313 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12314
12315 #
12316 # Interface Section
12317 #
12318
12319 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn'
12320
12321 # Check whether --enable-interface or --disable-interface was given.
12322 if test "${enable_interface+set}" = set; then
12323   enableval="$enable_interface"
12324    for i in `echo $enableval | sed 's/,/ /g'`; do
12325       eval "enable_$i=yes"
12326     done
12327 fi;
12328
12329 #  Dynamic link configuration
12330 # Check whether --enable-dynamic or --disable-dynamic was given.
12331 if test "${enable_dynamic+set}" = set; then
12332   enableval="$enable_dynamic"
12333        if test "x$enable_dynamic" = xyes; then
12334       enable_dynamic=dynamic
12335     elif test "x$enable_dynamic" != xno; then
12336       for i in `echo $enableval | sed 's/,/ /g'`; do
12337         eval "enable_$i=dynamic"
12338       done
12339     fi
12340 fi;
12341
12342 join_targets=
12343 for i in $interface_targets; do
12344   eval "join_targets=$join_targets\$enable_$i"
12345 done
12346
12347 case ".$join_targets" in
12348 .*dynamic*) NEEDDLOPEN=yes;;
12349 *)          NEEDDLOPEN=no;;
12350 esac
12351
12352 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12353 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12354
12355 if test "$NEEDDLOPEN" = "yes"; then
12356   have_dl=no
12357
12358   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12359 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12360 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   cat >conftest.$ac_ext <<_ACEOF
12364 #line $LINENO "configure"
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370 #include <windows.h>
12371
12372
12373 int
12374 main ()
12375 {
12376 LoadLibrary(0);
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383   (eval $ac_link) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -s conftest$ac_exeext'
12388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389   (eval $ac_try) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; }; then
12393   wapi_cv_func_LoadLibrary=yes
12394 else
12395   echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 wapi_cv_func_LoadLibrary=no
12399 fi
12400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12401 fi
12402
12403 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12404   echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12406   have_dl=w32
12407 else
12408   echo "$as_me:$LINENO: result: no" >&5
12409 echo "${ECHO_T}no" >&6
12410 fi
12411
12412   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12413
12414   if test "$have_dl" = "no"; then
12415     echo "$as_me:$LINENO: checking for shl_load" >&5
12416 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12417 if test "${ac_cv_func_shl_load+set}" = set; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 /* System header to define __stub macros and hopefully few prototypes,
12428     which can conflict with char shl_load (); below.
12429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430     <limits.h> exists even on freestanding compilers.  */
12431 #ifdef __STDC__
12432 # include <limits.h>
12433 #else
12434 # include <assert.h>
12435 #endif
12436 /* Override any gcc2 internal prototype to avoid an error.  */
12437 #ifdef __cplusplus
12438 extern "C"
12439 {
12440 #endif
12441 /* We use char because int might match the return type of a gcc2
12442    builtin and then its argument prototype would still apply.  */
12443 char shl_load ();
12444 /* The GNU C library defines this for functions which it implements
12445     to always fail with ENOSYS.  Some functions are actually named
12446     something starting with __ and the normal name is an alias.  */
12447 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12448 choke me
12449 #else
12450 char (*f) () = shl_load;
12451 #endif
12452 #ifdef __cplusplus
12453 }
12454 #endif
12455
12456 int
12457 main ()
12458 {
12459 return f != shl_load;
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466   (eval $ac_link) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_func_shl_load=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_func_shl_load=no
12482 fi
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12484 fi
12485 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12486 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12487 if test $ac_cv_func_shl_load = yes; then
12488   have_dl=hpux
12489 fi
12490
12491   fi
12492   if test "$have_dl" = "no"; then
12493             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12494 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12495 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 /* System header to define __stub macros and hopefully few prototypes,
12506     which can conflict with char NSLinkModule (); below.
12507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508     <limits.h> exists even on freestanding compilers.  */
12509 #ifdef __STDC__
12510 # include <limits.h>
12511 #else
12512 # include <assert.h>
12513 #endif
12514 /* Override any gcc2 internal prototype to avoid an error.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 {
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520    builtin and then its argument prototype would still apply.  */
12521 char NSLinkModule ();
12522 /* The GNU C library defines this for functions which it implements
12523     to always fail with ENOSYS.  Some functions are actually named
12524     something starting with __ and the normal name is an alias.  */
12525 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12526 choke me
12527 #else
12528 char (*f) () = NSLinkModule;
12529 #endif
12530 #ifdef __cplusplus
12531 }
12532 #endif
12533
12534 int
12535 main ()
12536 {
12537 return f != NSLinkModule;
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544   (eval $ac_link) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } &&
12548          { ac_try='test -s conftest$ac_exeext'
12549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550   (eval $ac_try) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; }; then
12554   ac_cv_func_NSLinkModule=yes
12555 else
12556   echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 ac_cv_func_NSLinkModule=no
12560 fi
12561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12562 fi
12563 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12564 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12565 if test $ac_cv_func_NSLinkModule = yes; then
12566   have_dl=dyld
12567 fi
12568
12569   fi
12570   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12571     have_dl=dlopen
12572   fi
12573   if test "$have_dl" = "no"; then
12574     echo "$as_me:$LINENO: checking for dlopen" >&5
12575 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12576 if test "${ac_cv_func_dlopen+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   cat >conftest.$ac_ext <<_ACEOF
12580 #line $LINENO "configure"
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586 /* System header to define __stub macros and hopefully few prototypes,
12587     which can conflict with char dlopen (); below.
12588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589     <limits.h> exists even on freestanding compilers.  */
12590 #ifdef __STDC__
12591 # include <limits.h>
12592 #else
12593 # include <assert.h>
12594 #endif
12595 /* Override any gcc2 internal prototype to avoid an error.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 {
12599 #endif
12600 /* We use char because int might match the return type of a gcc2
12601    builtin and then its argument prototype would still apply.  */
12602 char dlopen ();
12603 /* The GNU C library defines this for functions which it implements
12604     to always fail with ENOSYS.  Some functions are actually named
12605     something starting with __ and the normal name is an alias.  */
12606 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12607 choke me
12608 #else
12609 char (*f) () = dlopen;
12610 #endif
12611 #ifdef __cplusplus
12612 }
12613 #endif
12614
12615 int
12616 main ()
12617 {
12618 return f != dlopen;
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625   (eval $ac_link) 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -s conftest$ac_exeext'
12630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631   (eval $ac_try) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; }; then
12635   ac_cv_func_dlopen=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ac_cv_func_dlopen=no
12641 fi
12642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12643 fi
12644 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12645 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12646 if test $ac_cv_func_dlopen = yes; then
12647   have_dl=dlopen
12648 fi
12649
12650   fi
12651   if test "$have_dl" = "no"; then
12652     echo "$as_me:$LINENO: checking for dld_init" >&5
12653 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12654 if test "${ac_cv_func_dld_init+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   cat >conftest.$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 /* System header to define __stub macros and hopefully few prototypes,
12665     which can conflict with char dld_init (); below.
12666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667     <limits.h> exists even on freestanding compilers.  */
12668 #ifdef __STDC__
12669 # include <limits.h>
12670 #else
12671 # include <assert.h>
12672 #endif
12673 /* Override any gcc2 internal prototype to avoid an error.  */
12674 #ifdef __cplusplus
12675 extern "C"
12676 {
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679    builtin and then its argument prototype would still apply.  */
12680 char dld_init ();
12681 /* The GNU C library defines this for functions which it implements
12682     to always fail with ENOSYS.  Some functions are actually named
12683     something starting with __ and the normal name is an alias.  */
12684 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12685 choke me
12686 #else
12687 char (*f) () = dld_init;
12688 #endif
12689 #ifdef __cplusplus
12690 }
12691 #endif
12692
12693 int
12694 main ()
12695 {
12696 return f != dld_init;
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703   (eval $ac_link) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } &&
12707          { ac_try='test -s conftest$ac_exeext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_func_dld_init=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_func_dld_init=no
12719 fi
12720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12723 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12724 if test $ac_cv_func_dld_init = yes; then
12725   have_dl=dld
12726 fi
12727
12728   fi
12729   if test "$have_dl" = "no"; then
12730     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12731 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12732 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-ldld  $LIBS"
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744
12745 /* Override any gcc2 internal prototype to avoid an error.  */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 /* We use char because int might match the return type of a gcc2
12750    builtin and then its argument prototype would still apply.  */
12751 char dld_init ();
12752 int
12753 main ()
12754 {
12755 dld_init ();
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762   (eval $ac_link) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } &&
12766          { ac_try='test -s conftest$ac_exeext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   ac_cv_lib_dld_dld_init=yes
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_cv_lib_dld_dld_init=no
12778 fi
12779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12781 fi
12782 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12783 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12784 if test $ac_cv_lib_dld_dld_init = yes; then
12785   have_dl=dld;lib_dl_opt=-ldld
12786 fi
12787
12788   fi
12789
12790   echo "$as_me:$LINENO: checking dynamic link method" >&5
12791 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
12792   case "$have_dl" in
12793     dlopen)
12794       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
12795 echo "${ECHO_T}use dl_dlopen.c" >&6
12796       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
12797       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
12798 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
12799 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   case "$ac_cv_header_dlfcn_h" in
12803 yes) i_dlfcn=define;;
12804 *)   i_dlfcn=undef;;
12805 esac
12806 cat > dyna.c <<EOM
12807 fred () { }
12808 EOM
12809
12810 cat > fred.c <<EOM
12811 #include <stdio.h>
12812 #$i_dlfcn I_DLFCN
12813 #ifdef I_DLFCN
12814 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
12815 #else
12816 #include <sys/types.h>
12817 #include <nlist.h>
12818 #include <link.h>
12819 #endif
12820
12821 extern int fred() ;
12822
12823 main()
12824 {
12825     void * handle ;
12826     void * symbol ;
12827 #ifndef RTLD_LAZY
12828     int mode = 1 ;
12829 #else
12830     int mode = RTLD_LAZY ;
12831 #endif
12832     handle = dlopen("./dyna.$so", mode) ;
12833     if (handle == NULL) {
12834         printf ("1\n") ;
12835         fflush (stdout) ;
12836         exit(0);
12837     }
12838     symbol = dlsym(handle, "fred") ;
12839     if (symbol == NULL) {
12840         /* try putting a leading underscore */
12841         symbol = dlsym(handle, "_fred") ;
12842         if (symbol == NULL) {
12843             printf ("2\n") ;
12844             fflush (stdout) ;
12845             exit(0);
12846         }
12847         printf ("3\n") ;
12848     }
12849     else
12850         printf ("4\n") ;
12851     fflush (stdout) ;
12852     exit(0);
12853 }
12854 EOM
12855 : Call the object file tmp-dyna.o in case dlext=o.
12856 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
12857         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
12858         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
12859         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
12860         xxx=`./fred`
12861         case $xxx in
12862         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
12863 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
12864                 ;;
12865         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
12866 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
12867                 ;;
12868         3)      timidity_cv_func_dlsym_underscore=yes
12869                 ;;
12870         4)      timidity_cv_func_dlsym_underscore=no
12871                 ;;
12872         esac
12873 else
12874         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
12875 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
12876 fi
12877 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
12878
12879 fi
12880
12881 case "x$timidity_cv_func_dlsym_underscore" in
12882 xyes)
12883 cat >>confdefs.h <<\_ACEOF
12884 #define DLSYM_NEEDS_UNDERSCORE 1
12885 _ACEOF
12886
12887         echo "$as_me:$LINENO: result: yes" >&5
12888 echo "${ECHO_T}yes" >&6
12889         ;;
12890 xno)
12891         echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6
12893         ;;
12894 esac
12895
12896       ;;
12897     dld)
12898       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
12899 echo "${ECHO_T}use dl_dld.c" >&6
12900       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
12901       ;;
12902     hpux)
12903       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
12904 echo "${ECHO_T}use dl_hpux.c" >&6
12905       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
12906       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
12907       ;;
12908     w32)
12909       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
12910 echo "${ECHO_T}use dl_w32.c" >&6
12911       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
12912       ;;
12913     dyld)
12914       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
12915 echo "${ECHO_T}use dl_dyld.c" >&6
12916       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
12917       ;;
12918     *)
12919       NEEDDLOPEN="no"
12920       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
12921 echo "$as_me: WARNING: no method to open a shared object" >&2;}
12922       ;;
12923   esac
12924 fi
12925
12926 if test "$NEEDDLOPEN" = "yes"; then
12927   cat >> confdefs.h <<EOF
12928 #define IA_DYNAMIC 1
12929 EOF
12930
12931
12932 cat >>confdefs.h <<_ACEOF
12933 #define SHARED_LIB_EXT ".$so"
12934 _ACEOF
12935
12936       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
12937 fi
12938
12939
12940
12941 if test "$NEEDDLOPEN" = "yes"; then
12942   NEEDDLOPEN_TRUE=
12943   NEEDDLOPEN_FALSE='#'
12944 else
12945   NEEDDLOPEN_TRUE='#'
12946   NEEDDLOPEN_FALSE=
12947 fi
12948
12949
12950
12951
12952
12953 if false; then
12954   ENABLE_NCURSES_TRUE=
12955   ENABLE_NCURSES_FALSE='#'
12956 else
12957   ENABLE_NCURSES_TRUE='#'
12958   ENABLE_NCURSES_FALSE=
12959 fi
12960
12961 # Check whether --enable-ncurses or --disable-ncurses was given.
12962 if test "${enable_ncurses+set}" = set; then
12963   enableval="$enable_ncurses"
12964   case "x$enable_ncurses" in xyes|xdynamic)
12965
12966
12967 for ac_header in ncurses.h ncurses/curses.h curses.h
12968 do
12969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12971   echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 fi
12976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12978 else
12979   # Is the header compilable?
12980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 /* confdefs.h.  */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h.  */
12989 $ac_includes_default
12990 #include <$ac_header>
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994   (eval $ac_compile) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -s conftest.$ac_objext'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }; then
13004   ac_header_compiler=yes
13005 else
13006   echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 ac_header_compiler=no
13010 fi
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013 echo "${ECHO_T}$ac_header_compiler" >&6
13014
13015 # Is the header present?
13016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13019 #line $LINENO "configure"
13020 /* confdefs.h.  */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h.  */
13025 #include <$ac_header>
13026 _ACEOF
13027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } >/dev/null; then
13035   if test -s conftest.err; then
13036     ac_cpp_err=$ac_c_preproc_warn_flag
13037   else
13038     ac_cpp_err=
13039   fi
13040 else
13041   ac_cpp_err=yes
13042 fi
13043 if test -z "$ac_cpp_err"; then
13044   ac_header_preproc=yes
13045 else
13046   echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049   ac_header_preproc=no
13050 fi
13051 rm -f conftest.err conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053 echo "${ECHO_T}$ac_header_preproc" >&6
13054
13055 # So?  What about this header?
13056 case $ac_header_compiler:$ac_header_preproc in
13057   yes:no )
13058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13062     (
13063       cat <<\_ASBOX
13064 ## ------------------------------------ ##
13065 ## Report this to bug-autoconf@gnu.org. ##
13066 ## ------------------------------------ ##
13067 _ASBOX
13068     ) |
13069       sed "s/^/$as_me: WARNING:     /" >&2
13070     ;;
13071   no:yes )
13072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078     (
13079       cat <<\_ASBOX
13080 ## ------------------------------------ ##
13081 ## Report this to bug-autoconf@gnu.org. ##
13082 ## ------------------------------------ ##
13083 _ASBOX
13084     ) |
13085       sed "s/^/$as_me: WARNING:     /" >&2
13086     ;;
13087 esac
13088 echo "$as_me:$LINENO: checking for $ac_header" >&5
13089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   eval "$as_ac_Header=$ac_header_preproc"
13094 fi
13095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13097
13098 fi
13099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13100   cat >>confdefs.h <<_ACEOF
13101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13102 _ACEOF
13103
13104 fi
13105
13106 done
13107
13108
13109
13110   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13111     *yes*);;
13112     *)  for i in /usr/include /usr/local/include; do
13113           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13114             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
13115 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
13116             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13117             break
13118           fi
13119         done
13120         ;;
13121     esac
13122
13123     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13124 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13125 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13126   echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128   ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lncurses  $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137
13138 /* Override any gcc2 internal prototype to avoid an error.  */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 /* We use char because int might match the return type of a gcc2
13143    builtin and then its argument prototype would still apply.  */
13144 char initscr ();
13145 int
13146 main ()
13147 {
13148 initscr ();
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155   (eval $ac_link) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_lib_ncurses_initscr=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 ac_cv_lib_ncurses_initscr=no
13171 fi
13172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13174 fi
13175 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13176 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13177 if test $ac_cv_lib_ncurses_initscr = yes; then
13178   lib_curses_opt=-lncurses
13179 else
13180         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13181 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13182 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lcurses $lib_user32_test $LIBS"
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 /* Override any gcc2 internal prototype to avoid an error.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 /* We use char because int might match the return type of a gcc2
13200    builtin and then its argument prototype would still apply.  */
13201 char PDC_set_ctrl_break ();
13202 int
13203 main ()
13204 {
13205 PDC_set_ctrl_break ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212   (eval $ac_link) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -s conftest$ac_exeext'
13217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218   (eval $ac_try) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; }; then
13222   ac_cv_lib_curses_PDC_set_ctrl_break=yes
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_cv_lib_curses_PDC_set_ctrl_break=no
13228 fi
13229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13233 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13234 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13235    lib_curses_opt=-lcurses
13236
13237 cat >>confdefs.h <<\_ACEOF
13238 #define USE_PDCURSES 1
13239 _ACEOF
13240
13241             lib_user32_opt="$lib_user32_test"
13242
13243 else
13244             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13245 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13246 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lpdcurses  $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258
13259 /* Override any gcc2 internal prototype to avoid an error.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 /* We use char because int might match the return type of a gcc2
13264    builtin and then its argument prototype would still apply.  */
13265 char PDC_set_ctrl_break ();
13266 int
13267 main ()
13268 {
13269 PDC_set_ctrl_break ();
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276   (eval $ac_link) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } &&
13280          { ac_try='test -s conftest$ac_exeext'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13292 fi
13293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13295 fi
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13297 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13298 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13299    lib_curses_opt=-lpdcurses
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define USE_PDCURSES 1
13303 _ACEOF
13304
13305               lib_user32_opt="$lib_user32_test"
13306
13307 else
13308               case "$target" in
13309                 *openbsd*)
13310                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13311 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13312 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13313   echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315   ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-lcurses  $LIBS"
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325 /* Override any gcc2 internal prototype to avoid an error.  */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 /* We use char because int might match the return type of a gcc2
13330    builtin and then its argument prototype would still apply.  */
13331 char initscr ();
13332 int
13333 main ()
13334 {
13335 initscr ();
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342   (eval $ac_link) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } &&
13346          { ac_try='test -s conftest$ac_exeext'
13347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348   (eval $ac_try) 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_lib_curses_initscr=yes
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_cv_lib_curses_initscr=no
13358 fi
13359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13363 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13364 if test $ac_cv_lib_curses_initscr = yes; then
13365   lib_curses_opt=-lcurses
13366 else
13367    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13368 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13369                       enable_ncurses=no
13370 fi
13371
13372                   ;;
13373                 *)
13374                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13375 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13376                   enable_ncurses=no
13377                   ;;
13378               esac
13379
13380 fi
13381
13382
13383 fi
13384
13385
13386 fi
13387
13388    ;; esac
13389 fi;
13390 case "x$enable_ncurses" in
13391 xyes)
13392   cat >> confdefs.h <<EOF
13393 #define IA_NCURSES 1
13394 EOF
13395
13396
13397
13398 if true; then
13399   ENABLE_NCURSES_TRUE=
13400   ENABLE_NCURSES_FALSE='#'
13401 else
13402   ENABLE_NCURSES_TRUE='#'
13403   ENABLE_NCURSES_FALSE=
13404 fi
13405
13406    LIBS="$LIBS $lib_curses_opt"
13407     case "$target" in
13408        *-*-freebsd123*)
13409          EXTRALIBS="$EXTRALIBS -lmytinfo"
13410          ;;
13411      esac
13412     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13413
13414   ;;
13415 xdynamic)
13416   dynamic_targets="$dynamic_targets interface_n.\$(so)"
13417    n_so_libs="$lib_curses_opt"
13418     case "$target" in
13419        *-*-freebsd123*)
13420          EXTRALIBS="$EXTRALIBS -lmytinfo"
13421          ;;
13422      esac
13423   ;;
13424 *)
13425
13426   ;;
13427 esac
13428
13429
13430
13431
13432
13433 if false; then
13434   ENABLE_SLANG_TRUE=
13435   ENABLE_SLANG_FALSE='#'
13436 else
13437   ENABLE_SLANG_TRUE='#'
13438   ENABLE_SLANG_FALSE=
13439 fi
13440
13441 # Check whether --enable-slang or --disable-slang was given.
13442 if test "${enable_slang+set}" = set; then
13443   enableval="$enable_slang"
13444   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13445 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13446 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13447   echo $ECHO_N "(cached) $ECHO_C" >&6
13448 else
13449   ac_check_lib_save_LIBS=$LIBS
13450 LIBS="-lslang  $LIBS"
13451 cat >conftest.$ac_ext <<_ACEOF
13452 #line $LINENO "configure"
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458
13459 /* Override any gcc2 internal prototype to avoid an error.  */
13460 #ifdef __cplusplus
13461 extern "C"
13462 #endif
13463 /* We use char because int might match the return type of a gcc2
13464    builtin and then its argument prototype would still apply.  */
13465 char SLang_init_tty ();
13466 int
13467 main ()
13468 {
13469 SLang_init_tty ();
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476   (eval $ac_link) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } &&
13480          { ac_try='test -s conftest$ac_exeext'
13481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482   (eval $ac_try) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; }; then
13486   ac_cv_lib_slang_SLang_init_tty=yes
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491 ac_cv_lib_slang_SLang_init_tty=no
13492 fi
13493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13495 fi
13496 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13497 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13498 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13499   :
13500 else
13501    enable_slang=no
13502       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13503 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13504
13505 fi
13506
13507
13508
13509 for ac_header in slang/slang.h slang.h
13510 do
13511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513   echo "$as_me:$LINENO: checking for $ac_header" >&5
13514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 fi
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520 else
13521   # Is the header compilable?
13522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13525 #line $LINENO "configure"
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531 $ac_includes_default
13532 #include <$ac_header>
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536   (eval $ac_compile) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } &&
13540          { ac_try='test -s conftest.$ac_objext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_header_compiler=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_header_compiler=no
13552 fi
13553 rm -f conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13556
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #include <$ac_header>
13568 _ACEOF
13569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } >/dev/null; then
13577   if test -s conftest.err; then
13578     ac_cpp_err=$ac_c_preproc_warn_flag
13579   else
13580     ac_cpp_err=
13581   fi
13582 else
13583   ac_cpp_err=yes
13584 fi
13585 if test -z "$ac_cpp_err"; then
13586   ac_header_preproc=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591   ac_header_preproc=no
13592 fi
13593 rm -f conftest.err conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13596
13597 # So?  What about this header?
13598 case $ac_header_compiler:$ac_header_preproc in
13599   yes:no )
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13604     (
13605       cat <<\_ASBOX
13606 ## ------------------------------------ ##
13607 ## Report this to bug-autoconf@gnu.org. ##
13608 ## ------------------------------------ ##
13609 _ASBOX
13610     ) |
13611       sed "s/^/$as_me: WARNING:     /" >&2
13612     ;;
13613   no:yes )
13614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13620     (
13621       cat <<\_ASBOX
13622 ## ------------------------------------ ##
13623 ## Report this to bug-autoconf@gnu.org. ##
13624 ## ------------------------------------ ##
13625 _ASBOX
13626     ) |
13627       sed "s/^/$as_me: WARNING:     /" >&2
13628     ;;
13629 esac
13630 echo "$as_me:$LINENO: checking for $ac_header" >&5
13631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13633   echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635   eval "$as_ac_Header=$ac_header_preproc"
13636 fi
13637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13639
13640 fi
13641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642   cat >>confdefs.h <<_ACEOF
13643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644 _ACEOF
13645
13646 fi
13647
13648 done
13649
13650    ;; esac
13651 fi;
13652 case "x$enable_slang" in
13653 xyes)
13654   cat >> confdefs.h <<EOF
13655 #define IA_SLANG 1
13656 EOF
13657
13658
13659
13660 if true; then
13661   ENABLE_SLANG_TRUE=
13662   ENABLE_SLANG_FALSE='#'
13663 else
13664   ENABLE_SLANG_TRUE='#'
13665   ENABLE_SLANG_FALSE=
13666 fi
13667
13668    LIBS="$LIBS -lslang"
13669     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13670
13671   ;;
13672 xdynamic)
13673   dynamic_targets="$dynamic_targets interface_s.\$(so)"
13674    s_so_libs="-lslang"
13675     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13676 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13677 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-ltermcap  $LIBS"
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689
13690 /* Override any gcc2 internal prototype to avoid an error.  */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 /* We use char because int might match the return type of a gcc2
13695    builtin and then its argument prototype would still apply.  */
13696 char initscr ();
13697 int
13698 main ()
13699 {
13700 initscr ();
13701   ;
13702   return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707   (eval $ac_link) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); } &&
13711          { ac_try='test -s conftest$ac_exeext'
13712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713   (eval $ac_try) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; }; then
13717   ac_cv_lib_termcap_initscr=yes
13718 else
13719   echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 ac_cv_lib_termcap_initscr=no
13723 fi
13724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13726 fi
13727 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13728 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13729 if test $ac_cv_lib_termcap_initscr = yes; then
13730   s_so_libs="$s_so_libs -ltermcap"
13731 fi
13732
13733
13734   ;;
13735 *)
13736
13737   ;;
13738 esac
13739
13740
13741
13742
13743
13744 if false; then
13745   ENABLE_MOTIF_TRUE=
13746   ENABLE_MOTIF_FALSE='#'
13747 else
13748   ENABLE_MOTIF_TRUE='#'
13749   ENABLE_MOTIF_FALSE=
13750 fi
13751
13752 # Check whether --enable-motif or --disable-motif was given.
13753 if test "${enable_motif+set}" = set; then
13754   enableval="$enable_motif"
13755   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13756         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13757 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13758    { (exit 1); exit 1; }; }
13759     fi
13760     if test "x$have_xm" != xyes; then
13761       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13762 echo "$as_me: WARNING: Motif library is not found." >&2;}
13763       enable_motif=no
13764     fi
13765    ;; esac
13766 fi;
13767 case "x$enable_motif" in
13768 xyes)
13769   cat >> confdefs.h <<EOF
13770 #define IA_MOTIF 1
13771 EOF
13772
13773
13774
13775 if true; then
13776   ENABLE_MOTIF_TRUE=
13777   ENABLE_MOTIF_FALSE='#'
13778 else
13779   ENABLE_MOTIF_TRUE='#'
13780   ENABLE_MOTIF_FALSE=
13781 fi
13782
13783    lib_xm_opt=-lXm
13784     lib_xt_opt=-lXt
13785     lib_xext_opt=-lXext
13786     if test "x$have_xprelibs" = xyes; then
13787         lib_xprelibs_opt='-lSM -lICE'
13788     fi
13789     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
13790
13791   ;;
13792 xdynamic)
13793   dynamic_targets="$dynamic_targets interface_m.\$(so)"
13794    if test x$have_xprelibs = xyes; then
13795       m_so_libs="-lXext -lSM -lICE"
13796     fi
13797     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
13798
13799   ;;
13800 *)
13801
13802   ;;
13803 esac
13804
13805
13806
13807
13808
13809 if false; then
13810   ENABLE_TCLTK_TRUE=
13811   ENABLE_TCLTK_FALSE='#'
13812 else
13813   ENABLE_TCLTK_TRUE='#'
13814   ENABLE_TCLTK_FALSE=
13815 fi
13816
13817 # Check whether --enable-tcltk or --disable-tcltk was given.
13818 if test "${enable_tcltk+set}" = set; then
13819   enableval="$enable_tcltk"
13820   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13821         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
13822 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
13823    { (exit 1); exit 1; }; }
13824     fi
13825
13826         KEEPCPPFLAGS=$CPPFLAGS
13827     KEEPLDFLAGS=$LDFLAGS
13828     KEEPLIBS=$LIBS
13829
13830     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
13831     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
13832     LIBS="$LIBS $lib_dl_opt"
13833
13834     tcl_lib=
13835     tk_lib=
13836     for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
13837       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
13838 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
13839 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
13840 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-l$l  $LIBS"
13845 cat >conftest.$ac_ext <<_ACEOF
13846 #line $LINENO "configure"
13847 /* confdefs.h.  */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h.  */
13852
13853 /* Override any gcc2 internal prototype to avoid an error.  */
13854 #ifdef __cplusplus
13855 extern "C"
13856 #endif
13857 /* We use char because int might match the return type of a gcc2
13858    builtin and then its argument prototype would still apply.  */
13859 char Tcl_Init ();
13860 int
13861 main ()
13862 {
13863 Tcl_Init ();
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870   (eval $ac_link) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -s conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   eval "$as_ac_Lib=yes"
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 eval "$as_ac_Lib=no"
13886 fi
13887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13889 fi
13890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13891 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13892 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13893   tcl_lib=-l$l
13894 fi
13895 ;; esac
13896     done
13897     LIBS="$LIBS $tcl_lib"
13898     for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
13899       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
13900 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
13901 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
13902 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-l$l  $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914
13915 /* Override any gcc2 internal prototype to avoid an error.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 /* We use char because int might match the return type of a gcc2
13920    builtin and then its argument prototype would still apply.  */
13921 char Tk_Init ();
13922 int
13923 main ()
13924 {
13925 Tk_Init ();
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932   (eval $ac_link) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -s conftest$ac_exeext'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942   eval "$as_ac_Lib=yes"
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947 eval "$as_ac_Lib=no"
13948 fi
13949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13951 fi
13952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13953 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13954 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13955   tk_lib=-l$l
13956 fi
13957 ;; esac
13958     done
13959
13960     LIBS=$KEEPLIBS
13961     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
13962       CPPFLAGS=$KEEPCPPFLAGS
13963       LDFLAGS=$KEEPLDFLAGS
13964       enable_tcltk=no
13965       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
13966 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
13967     else
13968       tcltk_dep='tclIndex'
13969     fi
13970    ;; esac
13971 fi;
13972 case "x$enable_tcltk" in
13973 xyes)
13974   cat >> confdefs.h <<EOF
13975 #define IA_TCLTK 1
13976 EOF
13977
13978
13979
13980 if true; then
13981   ENABLE_TCLTK_TRUE=
13982   ENABLE_TCLTK_FALSE='#'
13983 else
13984   ENABLE_TCLTK_TRUE='#'
13985   ENABLE_TCLTK_FALSE=
13986 fi
13987
13988    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
13989     case "$target" in
13990       *-*-bsdi*)
13991         EXTRALIBS="$EXTRALIBS -lipc"
13992         ;;
13993     esac
13994     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
13995
13996   ;;
13997 xdynamic)
13998   dynamic_targets="$dynamic_targets interface_k.\$(so)"
13999    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14000     case "$target" in
14001       *-*-bsdi*)
14002         k_so_libs="$k_so_libs -lipc"
14003         ;;
14004     esac
14005     k_so_libs="$k_so_libs -lX11 -lm"
14006
14007   ;;
14008 *)
14009
14010   ;;
14011 esac
14012
14013
14014
14015
14016 if test "x$enable_tcltk" = "xdynamic"; then
14017   ENABLE_DYNAMIC_TCLTK_TRUE=
14018   ENABLE_DYNAMIC_TCLTK_FALSE='#'
14019 else
14020   ENABLE_DYNAMIC_TCLTK_TRUE='#'
14021   ENABLE_DYNAMIC_TCLTK_FALSE=
14022 fi
14023
14024
14025
14026
14027 if false; then
14028   ENABLE_EMACS_TRUE=
14029   ENABLE_EMACS_FALSE='#'
14030 else
14031   ENABLE_EMACS_TRUE='#'
14032   ENABLE_EMACS_FALSE=
14033 fi
14034
14035 # Check whether --enable-emacs or --disable-emacs was given.
14036 if test "${enable_emacs+set}" = set; then
14037   enableval="$enable_emacs"
14038   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
14039 fi;
14040 case "x$enable_emacs" in
14041 xyes)
14042   cat >> confdefs.h <<EOF
14043 #define IA_EMACS 1
14044 EOF
14045
14046
14047
14048 if true; then
14049   ENABLE_EMACS_TRUE=
14050   ENABLE_EMACS_FALSE='#'
14051 else
14052   ENABLE_EMACS_TRUE='#'
14053   ENABLE_EMACS_FALSE=
14054 fi
14055
14056    ELFILES="$ELFILES timidity.el"
14057     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14058
14059   ;;
14060 xdynamic)
14061   dynamic_targets="$dynamic_targets interface_e.\$(so)"
14062    ELFILES="$ELFILES timidity.el"
14063   ;;
14064 *)
14065
14066   ;;
14067 esac
14068
14069
14070
14071
14072
14073 if false; then
14074   ENABLE_VT100_TRUE=
14075   ENABLE_VT100_FALSE='#'
14076 else
14077   ENABLE_VT100_TRUE='#'
14078   ENABLE_VT100_FALSE=
14079 fi
14080
14081 # Check whether --enable-vt100 or --disable-vt100 was given.
14082 if test "${enable_vt100+set}" = set; then
14083   enableval="$enable_vt100"
14084   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
14085 fi;
14086 case "x$enable_vt100" in
14087 xyes)
14088   cat >> confdefs.h <<EOF
14089 #define IA_VT100 1
14090 EOF
14091
14092
14093
14094 if true; then
14095   ENABLE_VT100_TRUE=
14096   ENABLE_VT100_FALSE='#'
14097 else
14098   ENABLE_VT100_TRUE='#'
14099   ENABLE_VT100_FALSE=
14100 fi
14101
14102    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14103   ;;
14104 xdynamic)
14105   dynamic_targets="$dynamic_targets interface_T.\$(so)"
14106
14107   ;;
14108 *)
14109
14110   ;;
14111 esac
14112
14113
14114
14115
14116
14117 if false; then
14118   ENABLE_XAW_TRUE=
14119   ENABLE_XAW_FALSE='#'
14120 else
14121   ENABLE_XAW_TRUE='#'
14122   ENABLE_XAW_FALSE=
14123 fi
14124
14125 # Check whether --enable-xaw or --disable-xaw was given.
14126 if test "${enable_xaw+set}" = set; then
14127   enableval="$enable_xaw"
14128   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14129         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14130 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14131    { (exit 1); exit 1; }; }
14132     fi
14133     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14134       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14135 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14136       enable_xaw=no
14137     fi  ;; esac
14138 fi;
14139 case "x$enable_xaw" in
14140 xyes)
14141   cat >> confdefs.h <<EOF
14142 #define IA_XAW 1
14143 EOF
14144
14145
14146
14147 if true; then
14148   ENABLE_XAW_TRUE=
14149   ENABLE_XAW_FALSE='#'
14150 else
14151   ENABLE_XAW_TRUE='#'
14152   ENABLE_XAW_FALSE=
14153 fi
14154
14155        if test "x$have_xext" = xyes; then
14156       lib_xext_opt=-lXext
14157     fi
14158     if test "x$have_xprelibs" = xyes; then
14159       lib_xprelibs_opt='-lSM -lICE'
14160     fi
14161     lib_xmu_opt=-lXmu
14162     lib_xt_opt=-lXt
14163     if test "x$have_xaw" = x3d; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define XAW3D 1
14167 _ACEOF
14168
14169       lib_xaw_opt=-lXaw3d
14170     else
14171       lib_xaw_opt=-lXaw
14172     fi
14173     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14174
14175   ;;
14176 xdynamic)
14177   dynamic_targets="$dynamic_targets interface_a.\$(so)"
14178    if test "x$have_xext" = xyes; then
14179       a_so_libs="-lXext -lX11"
14180     else
14181       a_so_libs="-lX11"
14182     fi
14183     case "$target" in
14184       *darwin*)
14185         a_so_libs="$a_so_libs -lcc_dynamic"
14186         ;;
14187     esac
14188     if test "x$have_xprelibs" = xyes; then
14189       a_so_libs="-lSM -lICE $a_so_libs"
14190     fi
14191     if test "x$have_xaw" = xyes; then
14192       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14193     elif test "x$have_xaw" = x3d; then
14194
14195 cat >>confdefs.h <<\_ACEOF
14196 #define XAW3D 1
14197 _ACEOF
14198
14199       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14200     fi
14201     a_so_libs="$ldflags_x_opt $a_so_libs"
14202
14203   ;;
14204 *)
14205
14206   ;;
14207 esac
14208
14209
14210
14211
14212 if test "x$enable_xaw" = "xdynamic"; then
14213   ENABLE_DYNAMIC_XAW_TRUE=
14214   ENABLE_DYNAMIC_XAW_FALSE='#'
14215 else
14216   ENABLE_DYNAMIC_XAW_TRUE='#'
14217   ENABLE_DYNAMIC_XAW_FALSE=
14218 fi
14219
14220
14221
14222
14223 if false; then
14224   ENABLE_XSKIN_TRUE=
14225   ENABLE_XSKIN_FALSE='#'
14226 else
14227   ENABLE_XSKIN_TRUE='#'
14228   ENABLE_XSKIN_FALSE=
14229 fi
14230
14231 # Check whether --enable-xskin or --disable-xskin was given.
14232 if test "${enable_xskin+set}" = set; then
14233   enableval="$enable_xskin"
14234   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14235         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14236 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14237    { (exit 1); exit 1; }; }
14238     fi
14239    ;; esac
14240 fi;
14241 case "x$enable_xskin" in
14242 xyes)
14243   cat >> confdefs.h <<EOF
14244 #define IA_XSKIN 1
14245 EOF
14246
14247
14248
14249 if true; then
14250   ENABLE_XSKIN_TRUE=
14251   ENABLE_XSKIN_FALSE='#'
14252 else
14253   ENABLE_XSKIN_TRUE='#'
14254   ENABLE_XSKIN_FALSE=
14255 fi
14256
14257    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14258   ;;
14259 xdynamic)
14260   dynamic_targets="$dynamic_targets interface_i.\$(so)"
14261    i_so_libs="$ldflags_x_opt -lX11"
14262   ;;
14263 *)
14264
14265   ;;
14266 esac
14267
14268
14269
14270
14271
14272 if false; then
14273   ENABLE_GTK_TRUE=
14274   ENABLE_GTK_FALSE='#'
14275 else
14276   ENABLE_GTK_TRUE='#'
14277   ENABLE_GTK_FALSE=
14278 fi
14279
14280 # Check whether --enable-gtk or --disable-gtk was given.
14281 if test "${enable_gtk+set}" = set; then
14282   enableval="$enable_gtk"
14283   case "x$enable_gtk" in xyes|xdynamic)
14284 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14285 if test "${with_gtk_prefix+set}" = set; then
14286   withval="$with_gtk_prefix"
14287   gtk_config_prefix="$withval"
14288 else
14289   gtk_config_prefix=""
14290 fi;
14291
14292 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14293 if test "${with_gtk_exec_prefix+set}" = set; then
14294   withval="$with_gtk_exec_prefix"
14295   gtk_config_exec_prefix="$withval"
14296 else
14297   gtk_config_exec_prefix=""
14298 fi;
14299 # Check whether --enable-gtktest or --disable-gtktest was given.
14300 if test "${enable_gtktest+set}" = set; then
14301   enableval="$enable_gtktest"
14302
14303 else
14304   enable_gtktest=yes
14305 fi;
14306
14307   for module in .
14308   do
14309       case "$module" in
14310          gthread)
14311              gtk_config_args="$gtk_config_args gthread"
14312          ;;
14313       esac
14314   done
14315
14316   if test x$gtk_config_exec_prefix != x ; then
14317      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14318      if test x${GTK_CONFIG+set} != xset ; then
14319         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14320      fi
14321   fi
14322   if test x$gtk_config_prefix != x ; then
14323      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14324      if test x${GTK_CONFIG+set} != xset ; then
14325         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14326      fi
14327   fi
14328
14329   # Extract the first word of "gtk-config", so it can be a program name with args.
14330 set dummy gtk-config; ac_word=$2
14331 echo "$as_me:$LINENO: checking for $ac_word" >&5
14332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14333 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   case $GTK_CONFIG in
14337   [\\/]* | ?:[\\/]*)
14338   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14339   ;;
14340   *)
14341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14343 do
14344   IFS=$as_save_IFS
14345   test -z "$as_dir" && as_dir=.
14346   for ac_exec_ext in '' $ac_executable_extensions; do
14347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14348     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14350     break 2
14351   fi
14352 done
14353 done
14354
14355   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14356   ;;
14357 esac
14358 fi
14359 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14360
14361 if test -n "$GTK_CONFIG"; then
14362   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14363 echo "${ECHO_T}$GTK_CONFIG" >&6
14364 else
14365   echo "$as_me:$LINENO: result: no" >&5
14366 echo "${ECHO_T}no" >&6
14367 fi
14368
14369   min_gtk_version=1.1.3
14370   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14371 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14372   no_gtk=""
14373   if test "$GTK_CONFIG" = "no" ; then
14374     no_gtk=yes
14375   else
14376     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14377     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14378     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14379            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14380     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14381            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14382     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14383            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14384     if test "x$enable_gtktest" = "xyes" ; then
14385       ac_save_CFLAGS="$CFLAGS"
14386       ac_save_LIBS="$LIBS"
14387       CFLAGS="$CFLAGS $GTK_CFLAGS"
14388       LIBS="$GTK_LIBS $LIBS"
14389       rm -f conf.gtktest
14390       if test "$cross_compiling" = yes; then
14391   echo $ac_n "cross compiling; assumed OK... $ac_c"
14392 else
14393   cat >conftest.$ac_ext <<_ACEOF
14394 #line $LINENO "configure"
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400
14401 #include <gtk/gtk.h>
14402 #include <stdio.h>
14403 #include <stdlib.h>
14404
14405 int
14406 main ()
14407 {
14408   int major, minor, micro;
14409   char *tmp_version;
14410
14411   system ("touch conf.gtktest");
14412
14413   /* HP/UX 9 (%@#!) writes to sscanf strings */
14414   tmp_version = g_strdup("$min_gtk_version");
14415   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14416      printf("%s, bad version string\n", "$min_gtk_version");
14417      exit(1);
14418    }
14419
14420   if ((gtk_major_version != $gtk_config_major_version) ||
14421       (gtk_minor_version != $gtk_config_minor_version) ||
14422       (gtk_micro_version != $gtk_config_micro_version))
14423     {
14424       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14425              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14426              gtk_major_version, gtk_minor_version, gtk_micro_version);
14427       printf ("*** was found! If gtk-config was correct, then it is best\n");
14428       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14429       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14430       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14431       printf("*** required on your system.\n");
14432       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14433       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14434       printf("*** before re-running configure\n");
14435     }
14436 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14437   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14438            (gtk_minor_version != GTK_MINOR_VERSION) ||
14439            (gtk_micro_version != GTK_MICRO_VERSION))
14440     {
14441       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14442              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14443       printf("*** library (version %d.%d.%d)\n",
14444              gtk_major_version, gtk_minor_version, gtk_micro_version);
14445     }
14446 #endif /* defined (GTK_MAJOR_VERSION) ... */
14447   else
14448     {
14449       if ((gtk_major_version > major) ||
14450         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14451         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14452       {
14453         return 0;
14454        }
14455      else
14456       {
14457         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14458                gtk_major_version, gtk_minor_version, gtk_micro_version);
14459         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14460                major, minor, micro);
14461         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14462         printf("***\n");
14463         printf("*** If you have already installed a sufficiently new version, this error\n");
14464         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14465         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14466         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14467         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14468         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14469         printf("*** so that the correct libraries are found at run-time))\n");
14470       }
14471     }
14472   return 1;
14473 }
14474
14475 _ACEOF
14476 rm -f conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478   (eval $ac_link) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   :
14488 else
14489   echo "$as_me: program exited with status $ac_status" >&5
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ( exit $ac_status )
14494 no_gtk=yes
14495 fi
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14497 fi
14498        CFLAGS="$ac_save_CFLAGS"
14499        LIBS="$ac_save_LIBS"
14500      fi
14501   fi
14502   if test "x$no_gtk" = x ; then
14503      echo "$as_me:$LINENO: result: yes" >&5
14504 echo "${ECHO_T}yes" >&6
14505      :
14506   else
14507      echo "$as_me:$LINENO: result: no" >&5
14508 echo "${ECHO_T}no" >&6
14509      if test "$GTK_CONFIG" = "no" ; then
14510        echo "*** The gtk-config script installed by GTK could not be found"
14511        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14512        echo "*** your path, or set the GTK_CONFIG environment variable to the"
14513        echo "*** full path to gtk-config."
14514      else
14515        if test -f conf.gtktest ; then
14516         :
14517        else
14518           echo "*** Could not run GTK test program, checking why..."
14519           CFLAGS="$CFLAGS $GTK_CFLAGS"
14520           LIBS="$LIBS $GTK_LIBS"
14521           cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14523 /* confdefs.h.  */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h.  */
14528
14529 #include <gtk/gtk.h>
14530 #include <stdio.h>
14531
14532 int
14533 main ()
14534 {
14535  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542   (eval $ac_link) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -s conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552    echo "*** The test program compiled, but did not run. This usually means"
14553           echo "*** that the run-time linker is not finding GTK or finding the wrong"
14554           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14555           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14556           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14557           echo "*** is required on your system"
14558           echo "***"
14559           echo "*** If you have an old version installed, it is best to remove it, although"
14560           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14561           echo "***"
14562           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14563           echo "*** came with the system with the command"
14564           echo "***"
14565           echo "***    rpm --erase --nodeps gtk gtk-devel"
14566 else
14567   echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14569
14570  echo "*** The test program failed to compile or link. See the file config.log for the"
14571           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14572           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14573           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14574 fi
14575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14576           CFLAGS="$ac_save_CFLAGS"
14577           LIBS="$ac_save_LIBS"
14578        fi
14579      fi
14580      GTK_CFLAGS=""
14581      GTK_LIBS=""
14582      enable_gtk=no
14583   fi
14584
14585
14586   rm -f conf.gtktest
14587   ;; esac
14588 fi;
14589 case "x$enable_gtk" in
14590 xyes)
14591   cat >> confdefs.h <<EOF
14592 #define IA_GTK 1
14593 EOF
14594
14595
14596
14597 if true; then
14598   ENABLE_GTK_TRUE=
14599   ENABLE_GTK_FALSE='#'
14600 else
14601   ENABLE_GTK_TRUE='#'
14602   ENABLE_GTK_FALSE=
14603 fi
14604
14605    LIBS="$LIBS $GTK_LIBS"
14606     for f in $GTK_CFLAGS; do
14607     case ".$f" in
14608         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14609         *)              CFLAGS="$CPPFLAGS $f" ;;
14610     esac
14611 done
14612
14613     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14614
14615   ;;
14616 xdynamic)
14617   dynamic_targets="$dynamic_targets interface_g.\$(so)"
14618    if test "x$GCC" = xyes; then
14619                 for i in $GTK_LIBS; do
14620             case "x$i" in
14621                 x-rdynamic) ;;
14622                 *) g_so_libs="$g_so_libs $i" ;;
14623             esac
14624         done
14625     else
14626         g_so_libs="$GTK_LIBS"
14627     fi
14628     for f in $GTK_CFLAGS; do
14629     case ".$f" in
14630         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14631         *)              CFLAGS="$CPPFLAGS $f" ;;
14632     esac
14633 done
14634
14635   ;;
14636 *)
14637
14638   ;;
14639 esac
14640
14641
14642
14643
14644
14645 if false; then
14646   ENABLE_SERVER_TRUE=
14647   ENABLE_SERVER_FALSE='#'
14648 else
14649   ENABLE_SERVER_TRUE='#'
14650   ENABLE_SERVER_FALSE=
14651 fi
14652
14653 # Check whether --enable-server or --disable-server was given.
14654 if test "${enable_server+set}" = set; then
14655   enableval="$enable_server"
14656   case "x$enable_server" in xyes|xdynamic)  ;; esac
14657 fi;
14658 case "x$enable_server" in
14659 xyes)
14660   cat >> confdefs.h <<EOF
14661 #define IA_SERVER 1
14662 EOF
14663
14664
14665
14666 if true; then
14667   ENABLE_SERVER_TRUE=
14668   ENABLE_SERVER_FALSE='#'
14669 else
14670   ENABLE_SERVER_TRUE='#'
14671   ENABLE_SERVER_FALSE=
14672 fi
14673
14674    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14675
14676 for ac_header in sys/soundcard.h
14677 do
14678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14680   echo "$as_me:$LINENO: checking for $ac_header" >&5
14681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 fi
14685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14687 else
14688   # Is the header compilable?
14689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 $ac_includes_default
14699 #include <$ac_header>
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703   (eval $ac_compile) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } &&
14707          { ac_try='test -s conftest.$ac_objext'
14708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; }; then
14713   ac_header_compiler=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_header_compiler=no
14719 fi
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14722 echo "${ECHO_T}$ac_header_compiler" >&6
14723
14724 # Is the header present?
14725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14729 /* confdefs.h.  */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h.  */
14734 #include <$ac_header>
14735 _ACEOF
14736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14738   ac_status=$?
14739   grep -v '^ *+' conftest.er1 >conftest.err
14740   rm -f conftest.er1
14741   cat conftest.err >&5
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } >/dev/null; then
14744   if test -s conftest.err; then
14745     ac_cpp_err=$ac_c_preproc_warn_flag
14746   else
14747     ac_cpp_err=
14748   fi
14749 else
14750   ac_cpp_err=yes
14751 fi
14752 if test -z "$ac_cpp_err"; then
14753   ac_header_preproc=yes
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758   ac_header_preproc=no
14759 fi
14760 rm -f conftest.err conftest.$ac_ext
14761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6
14763
14764 # So?  What about this header?
14765 case $ac_header_compiler:$ac_header_preproc in
14766   yes:no )
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14771     (
14772       cat <<\_ASBOX
14773 ## ------------------------------------ ##
14774 ## Report this to bug-autoconf@gnu.org. ##
14775 ## ------------------------------------ ##
14776 _ASBOX
14777     ) |
14778       sed "s/^/$as_me: WARNING:     /" >&2
14779     ;;
14780   no:yes )
14781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14783     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14787     (
14788       cat <<\_ASBOX
14789 ## ------------------------------------ ##
14790 ## Report this to bug-autoconf@gnu.org. ##
14791 ## ------------------------------------ ##
14792 _ASBOX
14793     ) |
14794       sed "s/^/$as_me: WARNING:     /" >&2
14795     ;;
14796 esac
14797 echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   eval "$as_ac_Header=$ac_header_preproc"
14803 fi
14804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14806
14807 fi
14808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14809   cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14811 _ACEOF
14812
14813 fi
14814
14815 done
14816
14817
14818   ;;
14819 xdynamic)
14820   dynamic_targets="$dynamic_targets interface_r.\$(so)"
14821
14822   ;;
14823 *)
14824
14825   ;;
14826 esac
14827
14828
14829
14830
14831
14832 if false; then
14833   ENABLE_ALSASEQ_TRUE=
14834   ENABLE_ALSASEQ_FALSE='#'
14835 else
14836   ENABLE_ALSASEQ_TRUE='#'
14837   ENABLE_ALSASEQ_FALSE=
14838 fi
14839
14840 # Check whether --enable-alsaseq or --disable-alsaseq was given.
14841 if test "${enable_alsaseq+set}" = set; then
14842   enableval="$enable_alsaseq"
14843   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
14844 fi;
14845 case "x$enable_alsaseq" in
14846 xyes)
14847   cat >> confdefs.h <<EOF
14848 #define IA_ALSASEQ 1
14849 EOF
14850
14851
14852
14853 if true; then
14854   ENABLE_ALSASEQ_TRUE=
14855   ENABLE_ALSASEQ_FALSE='#'
14856 else
14857   ENABLE_ALSASEQ_TRUE='#'
14858   ENABLE_ALSASEQ_FALSE=
14859 fi
14860
14861    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
14862
14863 for ac_header in sys/asoundlib.h
14864 do
14865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14867   echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870   echo $ECHO_N "(cached) $ECHO_C" >&6
14871 fi
14872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14874 else
14875   # Is the header compilable?
14876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14878 cat >conftest.$ac_ext <<_ACEOF
14879 #line $LINENO "configure"
14880 /* confdefs.h.  */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h.  */
14885 $ac_includes_default
14886 #include <$ac_header>
14887 _ACEOF
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890   (eval $ac_compile) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -s conftest.$ac_objext'
14895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896   (eval $ac_try) 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); }; }; then
14900   ac_header_compiler=yes
14901 else
14902   echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ac_header_compiler=no
14906 fi
14907 rm -f conftest.$ac_objext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 echo "${ECHO_T}$ac_header_compiler" >&6
14910
14911 # Is the header present?
14912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 /* confdefs.h.  */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h.  */
14921 #include <$ac_header>
14922 _ACEOF
14923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } >/dev/null; then
14931   if test -s conftest.err; then
14932     ac_cpp_err=$ac_c_preproc_warn_flag
14933   else
14934     ac_cpp_err=
14935   fi
14936 else
14937   ac_cpp_err=yes
14938 fi
14939 if test -z "$ac_cpp_err"; then
14940   ac_header_preproc=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945   ac_header_preproc=no
14946 fi
14947 rm -f conftest.err conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14949 echo "${ECHO_T}$ac_header_preproc" >&6
14950
14951 # So?  What about this header?
14952 case $ac_header_compiler:$ac_header_preproc in
14953   yes:no )
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14958     (
14959       cat <<\_ASBOX
14960 ## ------------------------------------ ##
14961 ## Report this to bug-autoconf@gnu.org. ##
14962 ## ------------------------------------ ##
14963 _ASBOX
14964     ) |
14965       sed "s/^/$as_me: WARNING:     /" >&2
14966     ;;
14967   no:yes )
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14970     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974     (
14975       cat <<\_ASBOX
14976 ## ------------------------------------ ##
14977 ## Report this to bug-autoconf@gnu.org. ##
14978 ## ------------------------------------ ##
14979 _ASBOX
14980     ) |
14981       sed "s/^/$as_me: WARNING:     /" >&2
14982     ;;
14983 esac
14984 echo "$as_me:$LINENO: checking for $ac_header" >&5
14985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989   eval "$as_ac_Header=$ac_header_preproc"
14990 fi
14991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14993
14994 fi
14995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14996   cat >>confdefs.h <<_ACEOF
14997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14998 _ACEOF
14999
15000 fi
15001
15002 done
15003
15004
15005   ;;
15006 xdynamic)
15007   dynamic_targets="$dynamic_targets interface_A.\$(so)"
15008
15009   ;;
15010 *)
15011
15012   ;;
15013 esac
15014
15015
15016
15017
15018
15019 if false; then
15020   ENABLE_WINSYN_TRUE=
15021   ENABLE_WINSYN_FALSE='#'
15022 else
15023   ENABLE_WINSYN_TRUE='#'
15024   ENABLE_WINSYN_FALSE=
15025 fi
15026
15027 # Check whether --enable-winsyn or --disable-winsyn was given.
15028 if test "${enable_winsyn+set}" = set; then
15029   enableval="$enable_winsyn"
15030   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
15031 fi;
15032 case "x$enable_winsyn" in
15033 xyes)
15034   cat >> confdefs.h <<EOF
15035 #define IA_WINSYN 1
15036 EOF
15037
15038
15039
15040 if true; then
15041   ENABLE_WINSYN_TRUE=
15042   ENABLE_WINSYN_FALSE='#'
15043 else
15044   ENABLE_WINSYN_TRUE='#'
15045   ENABLE_WINSYN_FALSE=
15046 fi
15047
15048    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c"
15049   ;;
15050 xdynamic)
15051   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15052
15053   ;;
15054 *)
15055
15056   ;;
15057 esac
15058
15059
15060
15061
15062
15063
15064 if false; then
15065   ENABLE_W32GUI_TRUE=
15066   ENABLE_W32GUI_FALSE='#'
15067 else
15068   ENABLE_W32GUI_TRUE='#'
15069   ENABLE_W32GUI_FALSE=
15070 fi
15071
15072 # Check whether --enable-w32gui or --disable-w32gui was given.
15073 if test "${enable_w32gui+set}" = set; then
15074   enableval="$enable_w32gui"
15075   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
15076 fi;
15077 case "x$enable_w32gui" in
15078 xyes)
15079   cat >> confdefs.h <<EOF
15080 #define IA_W32GUI 1
15081 EOF
15082
15083
15084
15085 if true; then
15086   ENABLE_W32GUI_TRUE=
15087   ENABLE_W32GUI_FALSE='#'
15088 else
15089   ENABLE_W32GUI_TRUE='#'
15090   ENABLE_W32GUI_FALSE=
15091 fi
15092
15093    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15094     lib_user32_opt='-luser32'
15095     LDFLAGS="-mwindows $LDFLAGS"
15096     INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_ut2.c"
15097
15098   ;;
15099 xdynamic)
15100   dynamic_targets="$dynamic_targets interface_w.\$(so)"
15101
15102   ;;
15103 *)
15104
15105   ;;
15106 esac
15107
15108
15109
15110
15111
15112 if false; then
15113   ENABLE_PLUGIN_TRUE=
15114   ENABLE_PLUGIN_FALSE='#'
15115 else
15116   ENABLE_PLUGIN_TRUE='#'
15117   ENABLE_PLUGIN_FALSE=
15118 fi
15119
15120 # Check whether --enable-ump or --disable-ump was given.
15121 if test "${enable_ump+set}" = set; then
15122   enableval="$enable_ump"
15123   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
15124         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
15125 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
15126    { (exit 1); exit 1; }; }
15127     fi
15128     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15129   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15130 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15131 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 fi
15134 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15135 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15136 else
15137   # Is the header compilable?
15138 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15139 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 #line $LINENO "configure"
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <X11/xpm.h>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152   (eval $ac_compile) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); } &&
15156          { ac_try='test -s conftest.$ac_objext'
15157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158   (eval $ac_try) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; }; then
15162   ac_header_compiler=yes
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 ac_header_compiler=no
15168 fi
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15171 echo "${ECHO_T}$ac_header_compiler" >&6
15172
15173 # Is the header present?
15174 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15175 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 #include <X11/xpm.h>
15184 _ACEOF
15185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } >/dev/null; then
15193   if test -s conftest.err; then
15194     ac_cpp_err=$ac_c_preproc_warn_flag
15195   else
15196     ac_cpp_err=
15197   fi
15198 else
15199   ac_cpp_err=yes
15200 fi
15201 if test -z "$ac_cpp_err"; then
15202   ac_header_preproc=yes
15203 else
15204   echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207   ac_header_preproc=no
15208 fi
15209 rm -f conftest.err conftest.$ac_ext
15210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211 echo "${ECHO_T}$ac_header_preproc" >&6
15212
15213 # So?  What about this header?
15214 case $ac_header_compiler:$ac_header_preproc in
15215   yes:no )
15216     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15217 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15220     (
15221       cat <<\_ASBOX
15222 ## ------------------------------------ ##
15223 ## Report this to bug-autoconf@gnu.org. ##
15224 ## ------------------------------------ ##
15225 _ASBOX
15226     ) |
15227       sed "s/^/$as_me: WARNING:     /" >&2
15228     ;;
15229   no:yes )
15230     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15231 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15232     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15233 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15235 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15236     (
15237       cat <<\_ASBOX
15238 ## ------------------------------------ ##
15239 ## Report this to bug-autoconf@gnu.org. ##
15240 ## ------------------------------------ ##
15241 _ASBOX
15242     ) |
15243       sed "s/^/$as_me: WARNING:     /" >&2
15244     ;;
15245 esac
15246 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15247 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15248 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15249   echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251   ac_cv_header_X11_xpm_h=$ac_header_preproc
15252 fi
15253 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15254 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15255
15256 fi
15257 if test $ac_cv_header_X11_xpm_h = yes; then
15258   :
15259 else
15260   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15261 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15262    { (exit 1); exit 1; }; }
15263 fi
15264
15265
15266     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15267 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15268 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lXpm  $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280
15281 /* Override any gcc2 internal prototype to avoid an error.  */
15282 #ifdef __cplusplus
15283 extern "C"
15284 #endif
15285 /* We use char because int might match the return type of a gcc2
15286    builtin and then its argument prototype would still apply.  */
15287 char XpmCreatePixmapFromData ();
15288 int
15289 main ()
15290 {
15291 XpmCreatePixmapFromData ();
15292   ;
15293   return 0;
15294 }
15295 _ACEOF
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15298   (eval $ac_link) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } &&
15302          { ac_try='test -s conftest$ac_exeext'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15314 fi
15315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15316 LIBS=$ac_check_lib_save_LIBS
15317 fi
15318 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15319 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15320 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15321   :
15322 else
15323   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15324 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15325    { (exit 1); exit 1; }; }
15326 fi
15327
15328     if test "x$have_xext" = xyes; then
15329       lib_xext_opt=-lXext
15330     fi
15331     if test "x$have_xprelibs" = xyes; then
15332       lib_xprelibs_opt='-lSM -lICE'
15333     fi
15334     lib_xmu_opt=-lXmu
15335     lib_xt_opt=-lXt
15336    ;; esac
15337 fi;
15338 case "x$enable_ump" in
15339 xyes)
15340   cat >> confdefs.h <<EOF
15341 #define IA_PLUGIN 1
15342 EOF
15343
15344
15345
15346 if true; then
15347   ENABLE_PLUGIN_TRUE=
15348   ENABLE_PLUGIN_FALSE='#'
15349 else
15350   ENABLE_PLUGIN_TRUE='#'
15351   ENABLE_PLUGIN_FALSE=
15352 fi
15353
15354
15355   ;;
15356 xdynamic)
15357   dynamic_targets="$dynamic_targets interface_p.\$(so)"
15358
15359   ;;
15360 *)
15361
15362   ;;
15363 esac
15364
15365
15366
15367
15368 # Check whether --enable-offix or --disable-offix was given.
15369 if test "${enable_offix+set}" = set; then
15370   enableval="$enable_offix"
15371    if test "$enableval" = "yes"; then
15372       KEEPCPPFLAGS=$CPPFLAGS
15373       KEEPLIBS=$LIBS
15374       KEEPLDFLAGS=$LDFLAGS
15375       CPPFLAGS="$CPPFLAGS $offix_include_dir"
15376       LDFLAGS="$LDFLAGS $offix_lib_dir"
15377       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15378       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15379 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15380 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15381   echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383   ac_check_lib_save_LIBS=$LIBS
15384 LIBS="-lDnd  $LIBS"
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392
15393 /* Override any gcc2 internal prototype to avoid an error.  */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398    builtin and then its argument prototype would still apply.  */
15399 char DndInitialize ();
15400 int
15401 main ()
15402 {
15403 DndInitialize ();
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410   (eval $ac_link) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420   ac_cv_lib_Dnd_DndInitialize=yes
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_cv_lib_Dnd_DndInitialize=no
15426 fi
15427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15429 fi
15430 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15431 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15432 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15433
15434         LIBS=$KEEPLIBS
15435         lib_offix_opt="-lDnd"
15436
15437 cat >>confdefs.h <<\_ACEOF
15438 #define OFFIX 1
15439 _ACEOF
15440
15441
15442 else
15443    LDFLAGS=$KEEPLDFLAGS
15444         CPPFLAGS=$KEEPCPPFLAGS
15445         LIBS=$KEEPLIBS
15446
15447 fi
15448
15449     fi
15450
15451 fi;
15452
15453 # Check whether --enable-network or --disable-network was given.
15454 if test "${enable_network+set}" = set; then
15455   enableval="$enable_network"
15456    if test "$enableval" = "yes"; then
15457
15458 cat >>confdefs.h <<\_ACEOF
15459 #define SUPPORT_SOCKET 1
15460 _ACEOF
15461
15462     fi
15463 fi;
15464
15465
15466 if test "x$enable_network" = "xyes"; then
15467   ENABLE_NETWORK_TRUE=
15468   ENABLE_NETWORK_FALSE='#'
15469 else
15470   ENABLE_NETWORK_TRUE='#'
15471   ENABLE_NETWORK_FALSE=
15472 fi
15473
15474
15475 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15476 if test "${enable_spectrogram+set}" = set; then
15477   enableval="$enable_spectrogram"
15478    if test "$enableval" = "yes"; then
15479       if test "x$with_x" != xyes; then
15480         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15481 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15482    { (exit 1); exit 1; }; }
15483       fi
15484
15485 cat >>confdefs.h <<\_ACEOF
15486 #define SUPPORT_SOUNDSPEC 1
15487 _ACEOF
15488
15489     fi
15490 fi;
15491
15492
15493 if test "x$enable_spectrogram" = "xyes"; then
15494   ENABLE_SOUND_SPEC_TRUE=
15495   ENABLE_SOUND_SPEC_FALSE='#'
15496 else
15497   ENABLE_SOUND_SPEC_TRUE='#'
15498   ENABLE_SOUND_SPEC_FALSE=
15499 fi
15500
15501
15502 # Check whether --enable-spline or --disable-spline was given.
15503 if test "${enable_spline+set}" = set; then
15504   enableval="$enable_spline"
15505    case "x$enableval" in
15506       xlinear)
15507
15508 cat >>confdefs.h <<\_ACEOF
15509 #define LINEAR_INTERPOLATION 1
15510 _ACEOF
15511
15512         ;;
15513       xcubic)
15514
15515 cat >>confdefs.h <<\_ACEOF
15516 #define CSPLINE_INTERPOLATION 1
15517 _ACEOF
15518
15519         ;;
15520       xlagrange)
15521
15522 cat >>confdefs.h <<\_ACEOF
15523 #define LAGRANGE_INTERPOLATION 1
15524 _ACEOF
15525
15526         ;;
15527       xnewton)
15528
15529 cat >>confdefs.h <<\_ACEOF
15530 #define NEWTON_INTERPOLATION 1
15531 _ACEOF
15532
15533         ;;
15534       xgauss)
15535
15536 cat >>confdefs.h <<\_ACEOF
15537 #define GAUSS_INTERPOLATION 1
15538 _ACEOF
15539
15540         ;;
15541       xno)
15542
15543 cat >>confdefs.h <<\_ACEOF
15544 #define NO_INTERPOLATION 1
15545 _ACEOF
15546
15547         ;;
15548       *)
15549         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15550 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15551    { (exit 1); exit 1; }; }
15552         ;;
15553     esac
15554 fi;
15555
15556 # Check whether --enable-wrd or --disable-wrd was given.
15557 if test "${enable_wrd+set}" = set; then
15558   enableval="$enable_wrd"
15559    if test "$enableval" = "yes"; then
15560       if test "x$with_x" != xyes; then
15561         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15562 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15563    { (exit 1); exit 1; }; }
15564       fi
15565
15566 cat >>confdefs.h <<\_ACEOF
15567 #define WRDT_X 1
15568 _ACEOF
15569
15570       enable_sherry_wrd=yes
15571       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15572 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15573 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15574   echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576   ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lz  $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585
15586 /* Override any gcc2 internal prototype to avoid an error.  */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char zlibVersion ();
15593 int
15594 main ()
15595 {
15596 zlibVersion ();
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603   (eval $ac_link) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest$ac_exeext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_lib_z_zlibVersion=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_cv_lib_z_zlibVersion=no
15619 fi
15620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15621 LIBS=$ac_check_lib_save_LIBS
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15624 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15625 if test $ac_cv_lib_z_zlibVersion = yes; then
15626   :
15627 else
15628   enable_sherry_wrd=no
15629 fi
15630
15631       if test "${ac_cv_header_png_h+set}" = set; then
15632   echo "$as_me:$LINENO: checking for png.h" >&5
15633 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15634 if test "${ac_cv_header_png_h+set}" = set; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15638 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15639 else
15640   # Is the header compilable?
15641 echo "$as_me:$LINENO: checking png.h usability" >&5
15642 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line $LINENO "configure"
15645 /* confdefs.h.  */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h.  */
15650 $ac_includes_default
15651 #include <png.h>
15652 _ACEOF
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655   (eval $ac_compile) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -s conftest.$ac_objext'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; }; then
15665   ac_header_compiler=yes
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_header_compiler=no
15671 fi
15672 rm -f conftest.$ac_objext conftest.$ac_ext
15673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15674 echo "${ECHO_T}$ac_header_compiler" >&6
15675
15676 # Is the header present?
15677 echo "$as_me:$LINENO: checking png.h presence" >&5
15678 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15680 #line $LINENO "configure"
15681 /* confdefs.h.  */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h.  */
15686 #include <png.h>
15687 _ACEOF
15688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } >/dev/null; then
15696   if test -s conftest.err; then
15697     ac_cpp_err=$ac_c_preproc_warn_flag
15698   else
15699     ac_cpp_err=
15700   fi
15701 else
15702   ac_cpp_err=yes
15703 fi
15704 if test -z "$ac_cpp_err"; then
15705   ac_header_preproc=yes
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710   ac_header_preproc=no
15711 fi
15712 rm -f conftest.err conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6
15715
15716 # So?  What about this header?
15717 case $ac_header_compiler:$ac_header_preproc in
15718   yes:no )
15719     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15720 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15723     (
15724       cat <<\_ASBOX
15725 ## ------------------------------------ ##
15726 ## Report this to bug-autoconf@gnu.org. ##
15727 ## ------------------------------------ ##
15728 _ASBOX
15729     ) |
15730       sed "s/^/$as_me: WARNING:     /" >&2
15731     ;;
15732   no:yes )
15733     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15734 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15736 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15739     (
15740       cat <<\_ASBOX
15741 ## ------------------------------------ ##
15742 ## Report this to bug-autoconf@gnu.org. ##
15743 ## ------------------------------------ ##
15744 _ASBOX
15745     ) |
15746       sed "s/^/$as_me: WARNING:     /" >&2
15747     ;;
15748 esac
15749 echo "$as_me:$LINENO: checking for png.h" >&5
15750 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15751 if test "${ac_cv_header_png_h+set}" = set; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754   ac_cv_header_png_h=$ac_header_preproc
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15757 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15758
15759 fi
15760 if test $ac_cv_header_png_h = yes; then
15761   :
15762 else
15763   enable_sherry_wrd=no
15764 fi
15765
15766
15767       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
15768 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
15769 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lpng -lz $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
15775 #line $LINENO "configure"
15776 /* confdefs.h.  */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h.  */
15781
15782 /* Override any gcc2 internal prototype to avoid an error.  */
15783 #ifdef __cplusplus
15784 extern "C"
15785 #endif
15786 /* We use char because int might match the return type of a gcc2
15787    builtin and then its argument prototype would still apply.  */
15788 char png_init_io ();
15789 int
15790 main ()
15791 {
15792 png_init_io ();
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799   (eval $ac_link) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } &&
15803          { ac_try='test -s conftest$ac_exeext'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; }; then
15809   ac_cv_lib_png_png_init_io=yes
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_cv_lib_png_png_init_io=no
15815 fi
15816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15817 LIBS=$ac_check_lib_save_LIBS
15818 fi
15819 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
15820 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
15821 if test $ac_cv_lib_png_png_init_io = yes; then
15822   :
15823 else
15824   enable_sherry_wrd=no
15825 fi
15826
15827       if test "$enable_sherry_wrd" = yes; then
15828
15829 cat >>confdefs.h <<\_ACEOF
15830 #define ENABLE_SHERRY 1
15831 _ACEOF
15832
15833         lib_zip_opt=-lz
15834         lib_png_opt=-lpng
15835       else
15836          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
15837 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
15838       fi
15839       if test "x$have_xext" = xyes; then
15840         lib_xext_opt=-lXext
15841       fi
15842     fi
15843 fi;
15844
15845
15846
15847 #
15848 # Finish up
15849 #
15850
15851
15852
15853 if test "x$enable_wrd" = "xyes"; then
15854   ENABLE_WRD_TRUE=
15855   ENABLE_WRD_FALSE='#'
15856 else
15857   ENABLE_WRD_TRUE='#'
15858   ENABLE_WRD_FALSE=
15859 fi
15860
15861
15862
15863
15864 if test "x$CYGNUS" = xyes; then
15865   CYGNUS_TRUE=
15866   CYGNUS_FALSE='#'
15867 else
15868   CYGNUS_TRUE='#'
15869   CYGNUS_FALSE=
15870 fi
15871
15872
15873
15874 if test "x$MINGW" = xyes; then
15875   MINGW_TRUE=
15876   MINGW_FALSE='#'
15877 else
15878   MINGW_TRUE='#'
15879   MINGW_FALSE=
15880 fi
15881
15882
15883
15884 if test "x$W32READDIR" = "xyes"; then
15885   W32READDIR_TRUE=
15886   W32READDIR_FALSE='#'
15887 else
15888   W32READDIR_TRUE='#'
15889   W32READDIR_FALSE=
15890 fi
15891
15892
15893 rm -f wordtmp >/dev/null 2>&1
15894 val=''
15895 for f in $LDFLAGS; do
15896   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15897   :
15898 else
15899   echo $f >>wordtmp; val="$val $f"
15900 fi
15901
15902 done
15903 LDFLAGS="$val"
15904 rm -f wordtmp >/dev/null 2>&1
15905
15906 rm -f wordtmp >/dev/null 2>&1
15907 val=''
15908 for f in $SHLDFLAGS; do
15909   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15910   :
15911 else
15912   echo $f >>wordtmp; val="$val $f"
15913 fi
15914
15915 done
15916 SHLDFLAGS="$val"
15917 rm -f wordtmp >/dev/null 2>&1
15918
15919 rm -f wordtmp >/dev/null 2>&1
15920 val=''
15921 for f in $EXTRACFLAGS $CFLAGS; do
15922   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15923   :
15924 else
15925   echo $f >>wordtmp; val="$val $f"
15926 fi
15927
15928 done
15929 CFLAGS="$val"
15930 rm -f wordtmp >/dev/null 2>&1
15931
15932 rm -f wordtmp >/dev/null 2>&1
15933 val=''
15934 for f in $CPPFLAGS $EXTRADEFS; do
15935   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15936   :
15937 else
15938   echo $f >>wordtmp; val="$val $f"
15939 fi
15940
15941 done
15942 CPPFLAGS="$val"
15943 rm -f wordtmp >/dev/null 2>&1
15944
15945
15946 if test "x$oss_device" != x; then
15947
15948 cat >>confdefs.h <<_ACEOF
15949 #define OSS_DEVICE "$oss_device"
15950 _ACEOF
15951
15952 fi
15953
15954 if test "x$TIMIDITY_OUTPUT_ID" != x; then
15955
15956 cat >>confdefs.h <<_ACEOF
15957 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
15958 _ACEOF
15959
15960 fi
15961
15962 if test "x$with_x" = xyes; then
15963     LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
15964 fi
15965 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
15966 SHLD="$SHLD $SHLDFLAGS"
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986                                                                                                                                                                 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile"
15987
15988 cat >confcache <<\_ACEOF
15989 # This file is a shell script that caches the results of configure
15990 # tests run on this system so they can be shared between configure
15991 # scripts and configure runs, see configure's option --config-cache.
15992 # It is not useful on other systems.  If it contains results you don't
15993 # want to keep, you may remove or edit it.
15994 #
15995 # config.status only pays attention to the cache file if you give it
15996 # the --recheck option to rerun configure.
15997 #
15998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16000 # following values.
16001
16002 _ACEOF
16003
16004 # The following way of writing the cache mishandles newlines in values,
16005 # but we know of no workaround that is simple, portable, and efficient.
16006 # So, don't put newlines in cache variables' values.
16007 # Ultrix sh set writes to stderr and can't be redirected directly,
16008 # and sets the high bit in the cache file unless we assign to the vars.
16009 {
16010   (set) 2>&1 |
16011     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16012     *ac_space=\ *)
16013       # `set' does not quote correctly, so add quotes (double-quote
16014       # substitution turns \\\\ into \\, and sed turns \\ into \).
16015       sed -n \
16016         "s/'/'\\\\''/g;
16017           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16018       ;;
16019     *)
16020       # `set' quotes correctly as required by POSIX, so do not add quotes.
16021       sed -n \
16022         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16023       ;;
16024     esac;
16025 } |
16026   sed '
16027      t clear
16028      : clear
16029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16030      t end
16031      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16032      : end' >>confcache
16033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16034   if test -w $cache_file; then
16035     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16036     cat confcache >$cache_file
16037   else
16038     echo "not updating unwritable cache $cache_file"
16039   fi
16040 fi
16041 rm -f confcache
16042
16043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16044 # Let make expand exec_prefix.
16045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16046
16047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16049 # trailing colons and then remove the whole line if VPATH becomes empty
16050 # (actually we leave an empty line to preserve line numbers).
16051 if test "x$srcdir" = x.; then
16052   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16053 s/:*\$(srcdir):*/:/;
16054 s/:*\${srcdir}:*/:/;
16055 s/:*@srcdir@:*/:/;
16056 s/^\([^=]*=[    ]*\):*/\1/;
16057 s/:*$//;
16058 s/^[^=]*=[      ]*$//;
16059 }'
16060 fi
16061
16062 DEFS=-DHAVE_CONFIG_H
16063
16064 ac_libobjs=
16065 ac_ltlibobjs=
16066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16067   # 1. Remove the extension, and $U if already installed.
16068   ac_i=`echo "$ac_i" |
16069          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16070   # 2. Add them.
16071   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16072   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16073 done
16074 LIBOBJS=$ac_libobjs
16075
16076 LTLIBOBJS=$ac_ltlibobjs
16077
16078
16079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16080   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16081 Usually this means the macro was only invoked conditionally." >&5
16082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16083 Usually this means the macro was only invoked conditionally." >&2;}
16084    { (exit 1); exit 1; }; }
16085 fi
16086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16087   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16088 Usually this means the macro was only invoked conditionally." >&5
16089 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16090 Usually this means the macro was only invoked conditionally." >&2;}
16091    { (exit 1); exit 1; }; }
16092 fi
16093 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16094   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16095 Usually this means the macro was only invoked conditionally." >&5
16096 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16097 Usually this means the macro was only invoked conditionally." >&2;}
16098    { (exit 1); exit 1; }; }
16099 fi
16100 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16101   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16102 Usually this means the macro was only invoked conditionally." >&5
16103 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16104 Usually this means the macro was only invoked conditionally." >&2;}
16105    { (exit 1); exit 1; }; }
16106 fi
16107 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16108   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16109 Usually this means the macro was only invoked conditionally." >&5
16110 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16111 Usually this means the macro was only invoked conditionally." >&2;}
16112    { (exit 1); exit 1; }; }
16113 fi
16114 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16115   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16116 Usually this means the macro was only invoked conditionally." >&5
16117 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16118 Usually this means the macro was only invoked conditionally." >&2;}
16119    { (exit 1); exit 1; }; }
16120 fi
16121 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16122   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16123 Usually this means the macro was only invoked conditionally." >&5
16124 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16125 Usually this means the macro was only invoked conditionally." >&2;}
16126    { (exit 1); exit 1; }; }
16127 fi
16128 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16129   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16130 Usually this means the macro was only invoked conditionally." >&5
16131 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16132 Usually this means the macro was only invoked conditionally." >&2;}
16133    { (exit 1); exit 1; }; }
16134 fi
16135 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16136   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16137 Usually this means the macro was only invoked conditionally." >&5
16138 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16139 Usually this means the macro was only invoked conditionally." >&2;}
16140    { (exit 1); exit 1; }; }
16141 fi
16142 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16143   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16144 Usually this means the macro was only invoked conditionally." >&5
16145 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16146 Usually this means the macro was only invoked conditionally." >&2;}
16147    { (exit 1); exit 1; }; }
16148 fi
16149 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16150   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16151 Usually this means the macro was only invoked conditionally." >&5
16152 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16153 Usually this means the macro was only invoked conditionally." >&2;}
16154    { (exit 1); exit 1; }; }
16155 fi
16156 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16157   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16158 Usually this means the macro was only invoked conditionally." >&5
16159 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16160 Usually this means the macro was only invoked conditionally." >&2;}
16161    { (exit 1); exit 1; }; }
16162 fi
16163 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16164   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16165 Usually this means the macro was only invoked conditionally." >&5
16166 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16167 Usually this means the macro was only invoked conditionally." >&2;}
16168    { (exit 1); exit 1; }; }
16169 fi
16170 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16171   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16172 Usually this means the macro was only invoked conditionally." >&5
16173 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16174 Usually this means the macro was only invoked conditionally." >&2;}
16175    { (exit 1); exit 1; }; }
16176 fi
16177 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16178   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16179 Usually this means the macro was only invoked conditionally." >&5
16180 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16181 Usually this means the macro was only invoked conditionally." >&2;}
16182    { (exit 1); exit 1; }; }
16183 fi
16184 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16185   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16186 Usually this means the macro was only invoked conditionally." >&5
16187 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16188 Usually this means the macro was only invoked conditionally." >&2;}
16189    { (exit 1); exit 1; }; }
16190 fi
16191 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16192   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16193 Usually this means the macro was only invoked conditionally." >&5
16194 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16195 Usually this means the macro was only invoked conditionally." >&2;}
16196    { (exit 1); exit 1; }; }
16197 fi
16198 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16199   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16200 Usually this means the macro was only invoked conditionally." >&5
16201 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16202 Usually this means the macro was only invoked conditionally." >&2;}
16203    { (exit 1); exit 1; }; }
16204 fi
16205 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16206   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16207 Usually this means the macro was only invoked conditionally." >&5
16208 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16209 Usually this means the macro was only invoked conditionally." >&2;}
16210    { (exit 1); exit 1; }; }
16211 fi
16212 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16213   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16214 Usually this means the macro was only invoked conditionally." >&5
16215 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16216 Usually this means the macro was only invoked conditionally." >&2;}
16217    { (exit 1); exit 1; }; }
16218 fi
16219 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16220   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16221 Usually this means the macro was only invoked conditionally." >&5
16222 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16223 Usually this means the macro was only invoked conditionally." >&2;}
16224    { (exit 1); exit 1; }; }
16225 fi
16226 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16227   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16228 Usually this means the macro was only invoked conditionally." >&5
16229 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16230 Usually this means the macro was only invoked conditionally." >&2;}
16231    { (exit 1); exit 1; }; }
16232 fi
16233 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16234   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16235 Usually this means the macro was only invoked conditionally." >&5
16236 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16237 Usually this means the macro was only invoked conditionally." >&2;}
16238    { (exit 1); exit 1; }; }
16239 fi
16240 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16241   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16242 Usually this means the macro was only invoked conditionally." >&5
16243 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16244 Usually this means the macro was only invoked conditionally." >&2;}
16245    { (exit 1); exit 1; }; }
16246 fi
16247 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16248   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16249 Usually this means the macro was only invoked conditionally." >&5
16250 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16251 Usually this means the macro was only invoked conditionally." >&2;}
16252    { (exit 1); exit 1; }; }
16253 fi
16254 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16255   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16256 Usually this means the macro was only invoked conditionally." >&5
16257 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16258 Usually this means the macro was only invoked conditionally." >&2;}
16259    { (exit 1); exit 1; }; }
16260 fi
16261 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16262   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16263 Usually this means the macro was only invoked conditionally." >&5
16264 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16265 Usually this means the macro was only invoked conditionally." >&2;}
16266    { (exit 1); exit 1; }; }
16267 fi
16268 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16269   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16270 Usually this means the macro was only invoked conditionally." >&5
16271 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16272 Usually this means the macro was only invoked conditionally." >&2;}
16273    { (exit 1); exit 1; }; }
16274 fi
16275 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16276   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16277 Usually this means the macro was only invoked conditionally." >&5
16278 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16279 Usually this means the macro was only invoked conditionally." >&2;}
16280    { (exit 1); exit 1; }; }
16281 fi
16282 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16283   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16284 Usually this means the macro was only invoked conditionally." >&5
16285 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16286 Usually this means the macro was only invoked conditionally." >&2;}
16287    { (exit 1); exit 1; }; }
16288 fi
16289 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16290   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16291 Usually this means the macro was only invoked conditionally." >&5
16292 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16293 Usually this means the macro was only invoked conditionally." >&2;}
16294    { (exit 1); exit 1; }; }
16295 fi
16296 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16297   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16298 Usually this means the macro was only invoked conditionally." >&5
16299 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16300 Usually this means the macro was only invoked conditionally." >&2;}
16301    { (exit 1); exit 1; }; }
16302 fi
16303 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16304   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16305 Usually this means the macro was only invoked conditionally." >&5
16306 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16307 Usually this means the macro was only invoked conditionally." >&2;}
16308    { (exit 1); exit 1; }; }
16309 fi
16310 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16311   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16312 Usually this means the macro was only invoked conditionally." >&5
16313 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16314 Usually this means the macro was only invoked conditionally." >&2;}
16315    { (exit 1); exit 1; }; }
16316 fi
16317 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16318   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16319 Usually this means the macro was only invoked conditionally." >&5
16320 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16321 Usually this means the macro was only invoked conditionally." >&2;}
16322    { (exit 1); exit 1; }; }
16323 fi
16324 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16325   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16326 Usually this means the macro was only invoked conditionally." >&5
16327 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16328 Usually this means the macro was only invoked conditionally." >&2;}
16329    { (exit 1); exit 1; }; }
16330 fi
16331 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16332   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16333 Usually this means the macro was only invoked conditionally." >&5
16334 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16335 Usually this means the macro was only invoked conditionally." >&2;}
16336    { (exit 1); exit 1; }; }
16337 fi
16338 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16339   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16340 Usually this means the macro was only invoked conditionally." >&5
16341 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16342 Usually this means the macro was only invoked conditionally." >&2;}
16343    { (exit 1); exit 1; }; }
16344 fi
16345 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16346   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16347 Usually this means the macro was only invoked conditionally." >&5
16348 echo "$as_me: error: conditional \"MINGW\" was never defined.
16349 Usually this means the macro was only invoked conditionally." >&2;}
16350    { (exit 1); exit 1; }; }
16351 fi
16352 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16353   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16354 Usually this means the macro was only invoked conditionally." >&5
16355 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16356 Usually this means the macro was only invoked conditionally." >&2;}
16357    { (exit 1); exit 1; }; }
16358 fi
16359
16360 : ${CONFIG_STATUS=./config.status}
16361 ac_clean_files_save=$ac_clean_files
16362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16365 cat >$CONFIG_STATUS <<_ACEOF
16366 #! $SHELL
16367 # Generated by $as_me.
16368 # Run this file to recreate the current configuration.
16369 # Compiler output produced by configure, useful for debugging
16370 # configure, is in config.log if it exists.
16371
16372 debug=false
16373 ac_cs_recheck=false
16374 ac_cs_silent=false
16375 SHELL=\${CONFIG_SHELL-$SHELL}
16376 _ACEOF
16377
16378 cat >>$CONFIG_STATUS <<\_ACEOF
16379 ## --------------------- ##
16380 ## M4sh Initialization.  ##
16381 ## --------------------- ##
16382
16383 # Be Bourne compatible
16384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16385   emulate sh
16386   NULLCMD=:
16387   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16388   # is contrary to our usage.  Disable this feature.
16389   alias -g '${1+"$@"}'='"$@"'
16390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16391   set -o posix
16392 fi
16393
16394 # Support unset when possible.
16395 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16396   as_unset=unset
16397 else
16398   as_unset=false
16399 fi
16400
16401
16402 # Work around bugs in pre-3.0 UWIN ksh.
16403 $as_unset ENV MAIL MAILPATH
16404 PS1='$ '
16405 PS2='> '
16406 PS4='+ '
16407
16408 # NLS nuisances.
16409 for as_var in \
16410   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16411   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16412   LC_TELEPHONE LC_TIME
16413 do
16414   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16415     eval $as_var=C; export $as_var
16416   else
16417     $as_unset $as_var
16418   fi
16419 done
16420
16421 # Required to use basename.
16422 if expr a : '\(a\)' >/dev/null 2>&1; then
16423   as_expr=expr
16424 else
16425   as_expr=false
16426 fi
16427
16428 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16429   as_basename=basename
16430 else
16431   as_basename=false
16432 fi
16433
16434
16435 # Name of the executable.
16436 as_me=`$as_basename "$0" ||
16437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16438          X"$0" : 'X\(//\)$' \| \
16439          X"$0" : 'X\(/\)$' \| \
16440          .     : '\(.\)' 2>/dev/null ||
16441 echo X/"$0" |
16442     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16443           /^X\/\(\/\/\)$/{ s//\1/; q; }
16444           /^X\/\(\/\).*/{ s//\1/; q; }
16445           s/.*/./; q'`
16446
16447
16448 # PATH needs CR, and LINENO needs CR and PATH.
16449 # Avoid depending upon Character Ranges.
16450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16453 as_cr_digits='0123456789'
16454 as_cr_alnum=$as_cr_Letters$as_cr_digits
16455
16456 # The user is always right.
16457 if test "${PATH_SEPARATOR+set}" != set; then
16458   echo "#! /bin/sh" >conf$$.sh
16459   echo  "exit 0"   >>conf$$.sh
16460   chmod +x conf$$.sh
16461   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16462     PATH_SEPARATOR=';'
16463   else
16464     PATH_SEPARATOR=:
16465   fi
16466   rm -f conf$$.sh
16467 fi
16468
16469
16470   as_lineno_1=$LINENO
16471   as_lineno_2=$LINENO
16472   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16473   test "x$as_lineno_1" != "x$as_lineno_2" &&
16474   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16475   # Find who we are.  Look in the path if we contain no path at all
16476   # relative or not.
16477   case $0 in
16478     *[\\/]* ) as_myself=$0 ;;
16479     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16480 for as_dir in $PATH
16481 do
16482   IFS=$as_save_IFS
16483   test -z "$as_dir" && as_dir=.
16484   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16485 done
16486
16487        ;;
16488   esac
16489   # We did not find ourselves, most probably we were run as `sh COMMAND'
16490   # in which case we are not to be found in the path.
16491   if test "x$as_myself" = x; then
16492     as_myself=$0
16493   fi
16494   if test ! -f "$as_myself"; then
16495     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16497    { (exit 1); exit 1; }; }
16498   fi
16499   case $CONFIG_SHELL in
16500   '')
16501     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16503 do
16504   IFS=$as_save_IFS
16505   test -z "$as_dir" && as_dir=.
16506   for as_base in sh bash ksh sh5; do
16507          case $as_dir in
16508          /*)
16509            if ("$as_dir/$as_base" -c '
16510   as_lineno_1=$LINENO
16511   as_lineno_2=$LINENO
16512   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16513   test "x$as_lineno_1" != "x$as_lineno_2" &&
16514   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16515              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16516              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16517              CONFIG_SHELL=$as_dir/$as_base
16518              export CONFIG_SHELL
16519              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16520            fi;;
16521          esac
16522        done
16523 done
16524 ;;
16525   esac
16526
16527   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16528   # uniformly replaced by the line number.  The first 'sed' inserts a
16529   # line-number line before each line; the second 'sed' does the real
16530   # work.  The second script uses 'N' to pair each line-number line
16531   # with the numbered line, and appends trailing '-' during
16532   # substitution so that $LINENO is not a special case at line end.
16533   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16534   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16535   sed '=' <$as_myself |
16536     sed '
16537       N
16538       s,$,-,
16539       : loop
16540       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16541       t loop
16542       s,-$,,
16543       s,^['$as_cr_digits']*\n,,
16544     ' >$as_me.lineno &&
16545   chmod +x $as_me.lineno ||
16546     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16547 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16548    { (exit 1); exit 1; }; }
16549
16550   # Don't try to exec as it changes $[0], causing all sort of problems
16551   # (the dirname of $[0] is not the place where we might find the
16552   # original and so on.  Autoconf is especially sensible to this).
16553   . ./$as_me.lineno
16554   # Exit status is that of the last command.
16555   exit
16556 }
16557
16558
16559 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16560   *c*,-n*) ECHO_N= ECHO_C='
16561 ' ECHO_T='      ' ;;
16562   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16563   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16564 esac
16565
16566 if expr a : '\(a\)' >/dev/null 2>&1; then
16567   as_expr=expr
16568 else
16569   as_expr=false
16570 fi
16571
16572 rm -f conf$$ conf$$.exe conf$$.file
16573 echo >conf$$.file
16574 if ln -s conf$$.file conf$$ 2>/dev/null; then
16575   # We could just check for DJGPP; but this test a) works b) is more generic
16576   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16577   if test -f conf$$.exe; then
16578     # Don't use ln at all; we don't have any links
16579     as_ln_s='cp -p'
16580   else
16581     as_ln_s='ln -s'
16582   fi
16583 elif ln conf$$.file conf$$ 2>/dev/null; then
16584   as_ln_s=ln
16585 else
16586   as_ln_s='cp -p'
16587 fi
16588 rm -f conf$$ conf$$.exe conf$$.file
16589
16590 if mkdir -p . 2>/dev/null; then
16591   as_mkdir_p=:
16592 else
16593   as_mkdir_p=false
16594 fi
16595
16596 as_executable_p="test -f"
16597
16598 # Sed expression to map a string onto a valid CPP name.
16599 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16600
16601 # Sed expression to map a string onto a valid variable name.
16602 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16603
16604
16605 # IFS
16606 # We need space, tab and new line, in precisely that order.
16607 as_nl='
16608 '
16609 IFS="   $as_nl"
16610
16611 # CDPATH.
16612 $as_unset CDPATH
16613
16614 exec 6>&1
16615
16616 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16617 # report actual input values of CONFIG_FILES etc. instead of their
16618 # values after options handling.  Logging --version etc. is OK.
16619 exec 5>>config.log
16620 {
16621   echo
16622   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16623 ## Running $as_me. ##
16624 _ASBOX
16625 } >&5
16626 cat >&5 <<_CSEOF
16627
16628 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16629 generated by GNU Autoconf 2.57.  Invocation command line was
16630
16631   CONFIG_FILES    = $CONFIG_FILES
16632   CONFIG_HEADERS  = $CONFIG_HEADERS
16633   CONFIG_LINKS    = $CONFIG_LINKS
16634   CONFIG_COMMANDS = $CONFIG_COMMANDS
16635   $ $0 $@
16636
16637 _CSEOF
16638 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16639 echo >&5
16640 _ACEOF
16641
16642 # Files that config.status was made for.
16643 if test -n "$ac_config_files"; then
16644   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16645 fi
16646
16647 if test -n "$ac_config_headers"; then
16648   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16649 fi
16650
16651 if test -n "$ac_config_links"; then
16652   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16653 fi
16654
16655 if test -n "$ac_config_commands"; then
16656   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16657 fi
16658
16659 cat >>$CONFIG_STATUS <<\_ACEOF
16660
16661 ac_cs_usage="\
16662 \`$as_me' instantiates files from templates according to the
16663 current configuration.
16664
16665 Usage: $0 [OPTIONS] [FILE]...
16666
16667   -h, --help       print this help, then exit
16668   -V, --version    print version number, then exit
16669   -q, --quiet      do not print progress messages
16670   -d, --debug      don't remove temporary files
16671       --recheck    update $as_me by reconfiguring in the same conditions
16672   --file=FILE[:TEMPLATE]
16673                    instantiate the configuration file FILE
16674   --header=FILE[:TEMPLATE]
16675                    instantiate the configuration header FILE
16676
16677 Configuration files:
16678 $config_files
16679
16680 Configuration headers:
16681 $config_headers
16682
16683 Configuration commands:
16684 $config_commands
16685
16686 Report bugs to <bug-autoconf@gnu.org>."
16687 _ACEOF
16688
16689 cat >>$CONFIG_STATUS <<_ACEOF
16690 ac_cs_version="\\
16691 TiMidity++ config.status 2.12.0-pre1b
16692 configured by $0, generated by GNU Autoconf 2.57,
16693   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16694
16695 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16696 Free Software Foundation, Inc.
16697 This config.status script is free software; the Free Software Foundation
16698 gives unlimited permission to copy, distribute and modify it."
16699 srcdir=$srcdir
16700 INSTALL="$INSTALL"
16701 _ACEOF
16702
16703 cat >>$CONFIG_STATUS <<\_ACEOF
16704 # If no file are specified by the user, then we need to provide default
16705 # value.  By we need to know if files were specified by the user.
16706 ac_need_defaults=:
16707 while test $# != 0
16708 do
16709   case $1 in
16710   --*=*)
16711     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16712     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16713     ac_shift=:
16714     ;;
16715   -*)
16716     ac_option=$1
16717     ac_optarg=$2
16718     ac_shift=shift
16719     ;;
16720   *) # This is not an option, so the user has probably given explicit
16721      # arguments.
16722      ac_option=$1
16723      ac_need_defaults=false;;
16724   esac
16725
16726   case $ac_option in
16727   # Handling of the options.
16728 _ACEOF
16729 cat >>$CONFIG_STATUS <<\_ACEOF
16730   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16731     ac_cs_recheck=: ;;
16732   --version | --vers* | -V )
16733     echo "$ac_cs_version"; exit 0 ;;
16734   --he | --h)
16735     # Conflict between --help and --header
16736     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16737 Try \`$0 --help' for more information." >&5
16738 echo "$as_me: error: ambiguous option: $1
16739 Try \`$0 --help' for more information." >&2;}
16740    { (exit 1); exit 1; }; };;
16741   --help | --hel | -h )
16742     echo "$ac_cs_usage"; exit 0 ;;
16743   --debug | --d* | -d )
16744     debug=: ;;
16745   --file | --fil | --fi | --f )
16746     $ac_shift
16747     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16748     ac_need_defaults=false;;
16749   --header | --heade | --head | --hea )
16750     $ac_shift
16751     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16752     ac_need_defaults=false;;
16753   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16754   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16755     ac_cs_silent=: ;;
16756
16757   # This is an error.
16758   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16759 Try \`$0 --help' for more information." >&5
16760 echo "$as_me: error: unrecognized option: $1
16761 Try \`$0 --help' for more information." >&2;}
16762    { (exit 1); exit 1; }; } ;;
16763
16764   *) ac_config_targets="$ac_config_targets $1" ;;
16765
16766   esac
16767   shift
16768 done
16769
16770 ac_configure_extra_args=
16771
16772 if $ac_cs_silent; then
16773   exec 6>/dev/null
16774   ac_configure_extra_args="$ac_configure_extra_args --silent"
16775 fi
16776
16777 _ACEOF
16778 cat >>$CONFIG_STATUS <<_ACEOF
16779 if \$ac_cs_recheck; then
16780   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16781   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16782 fi
16783
16784 _ACEOF
16785
16786 cat >>$CONFIG_STATUS <<_ACEOF
16787 #
16788 # INIT-COMMANDS section.
16789 #
16790
16791 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16792
16793 _ACEOF
16794
16795
16796
16797 cat >>$CONFIG_STATUS <<\_ACEOF
16798 for ac_config_target in $ac_config_targets
16799 do
16800   case "$ac_config_target" in
16801   # Handling of arguments.
16802   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16803   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
16804   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
16805   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
16806   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16807   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
16808   "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
16809   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
16810   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
16811   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
16812   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
16813   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
16814   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
16815   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
16816   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16817   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
16818   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16819   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16820   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
16821   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16822 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16823    { (exit 1); exit 1; }; };;
16824   esac
16825 done
16826
16827 # If the user did not use the arguments to specify the items to instantiate,
16828 # then the envvar interface is used.  Set only those that are not.
16829 # We use the long form for the default assignment because of an extremely
16830 # bizarre bug on SunOS 4.1.3.
16831 if $ac_need_defaults; then
16832   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16833   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16834   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16835 fi
16836
16837 # Have a temporary directory for convenience.  Make it in the build tree
16838 # simply because there is no reason to put it here, and in addition,
16839 # creating and moving files from /tmp can sometimes cause problems.
16840 # Create a temporary directory, and hook for its removal unless debugging.
16841 $debug ||
16842 {
16843   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16844   trap '{ (exit 1); exit 1; }' 1 2 13 15
16845 }
16846
16847 # Create a (secure) tmp directory for tmp files.
16848
16849 {
16850   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16851   test -n "$tmp" && test -d "$tmp"
16852 }  ||
16853 {
16854   tmp=./confstat$$-$RANDOM
16855   (umask 077 && mkdir $tmp)
16856 } ||
16857 {
16858    echo "$me: cannot create a temporary directory in ." >&2
16859    { (exit 1); exit 1; }
16860 }
16861
16862 _ACEOF
16863
16864 cat >>$CONFIG_STATUS <<_ACEOF
16865
16866 #
16867 # CONFIG_FILES section.
16868 #
16869
16870 # No need to generate the scripts if there are no CONFIG_FILES.
16871 # This happens for instance when ./config.status config.h
16872 if test -n "\$CONFIG_FILES"; then
16873   # Protect against being on the right side of a sed subst in config.status.
16874   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16875    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16876 s,@SHELL@,$SHELL,;t t
16877 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16878 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16879 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16880 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16881 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16882 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16883 s,@exec_prefix@,$exec_prefix,;t t
16884 s,@prefix@,$prefix,;t t
16885 s,@program_transform_name@,$program_transform_name,;t t
16886 s,@bindir@,$bindir,;t t
16887 s,@sbindir@,$sbindir,;t t
16888 s,@libexecdir@,$libexecdir,;t t
16889 s,@datadir@,$datadir,;t t
16890 s,@sysconfdir@,$sysconfdir,;t t
16891 s,@sharedstatedir@,$sharedstatedir,;t t
16892 s,@localstatedir@,$localstatedir,;t t
16893 s,@libdir@,$libdir,;t t
16894 s,@includedir@,$includedir,;t t
16895 s,@oldincludedir@,$oldincludedir,;t t
16896 s,@infodir@,$infodir,;t t
16897 s,@mandir@,$mandir,;t t
16898 s,@build_alias@,$build_alias,;t t
16899 s,@host_alias@,$host_alias,;t t
16900 s,@target_alias@,$target_alias,;t t
16901 s,@DEFS@,$DEFS,;t t
16902 s,@ECHO_C@,$ECHO_C,;t t
16903 s,@ECHO_N@,$ECHO_N,;t t
16904 s,@ECHO_T@,$ECHO_T,;t t
16905 s,@LIBS@,$LIBS,;t t
16906 s,@build@,$build,;t t
16907 s,@build_cpu@,$build_cpu,;t t
16908 s,@build_vendor@,$build_vendor,;t t
16909 s,@build_os@,$build_os,;t t
16910 s,@host@,$host,;t t
16911 s,@host_cpu@,$host_cpu,;t t
16912 s,@host_vendor@,$host_vendor,;t t
16913 s,@host_os@,$host_os,;t t
16914 s,@target@,$target,;t t
16915 s,@target_cpu@,$target_cpu,;t t
16916 s,@target_vendor@,$target_vendor,;t t
16917 s,@target_os@,$target_os,;t t
16918 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16919 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16920 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16921 s,@CYGPATH_W@,$CYGPATH_W,;t t
16922 s,@PACKAGE@,$PACKAGE,;t t
16923 s,@VERSION@,$VERSION,;t t
16924 s,@ACLOCAL@,$ACLOCAL,;t t
16925 s,@AUTOCONF@,$AUTOCONF,;t t
16926 s,@AUTOMAKE@,$AUTOMAKE,;t t
16927 s,@AUTOHEADER@,$AUTOHEADER,;t t
16928 s,@MAKEINFO@,$MAKEINFO,;t t
16929 s,@AMTAR@,$AMTAR,;t t
16930 s,@install_sh@,$install_sh,;t t
16931 s,@STRIP@,$STRIP,;t t
16932 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16933 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16934 s,@AWK@,$AWK,;t t
16935 s,@SET_MAKE@,$SET_MAKE,;t t
16936 s,@am__leading_dot@,$am__leading_dot,;t t
16937 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16938 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16939 s,@MAINT@,$MAINT,;t t
16940 s,@EMACS@,$EMACS,;t t
16941 s,@lispdir@,$lispdir,;t t
16942 s,@CC@,$CC,;t t
16943 s,@CFLAGS@,$CFLAGS,;t t
16944 s,@LDFLAGS@,$LDFLAGS,;t t
16945 s,@CPPFLAGS@,$CPPFLAGS,;t t
16946 s,@ac_ct_CC@,$ac_ct_CC,;t t
16947 s,@EXEEXT@,$EXEEXT,;t t
16948 s,@OBJEXT@,$OBJEXT,;t t
16949 s,@DEPDIR@,$DEPDIR,;t t
16950 s,@am__include@,$am__include,;t t
16951 s,@am__quote@,$am__quote,;t t
16952 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16953 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16954 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16955 s,@CCDEPMODE@,$CCDEPMODE,;t t
16956 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16957 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16958 s,@CPP@,$CPP,;t t
16959 s,@EGREP@,$EGREP,;t t
16960 s,@RANLIB@,$RANLIB,;t t
16961 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16962 s,@LN_S@,$LN_S,;t t
16963 s,@X_CFLAGS@,$X_CFLAGS,;t t
16964 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16965 s,@X_LIBS@,$X_LIBS,;t t
16966 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16967 s,@LIBOBJS@,$LIBOBJS,;t t
16968 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
16969 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
16970 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
16971 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
16972 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
16973 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
16974 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
16975 s,@ESD_LIBS@,$ESD_LIBS,;t t
16976 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
16977 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
16978 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
16979 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
16980 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
16981 s,@OGG_LIBS@,$OGG_LIBS,;t t
16982 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
16983 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
16984 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
16985 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
16986 s,@n_so_libs@,$n_so_libs,;t t
16987 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
16988 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
16989 s,@s_so_libs@,$s_so_libs,;t t
16990 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
16991 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
16992 s,@m_so_libs@,$m_so_libs,;t t
16993 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
16994 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
16995 s,@k_so_libs@,$k_so_libs,;t t
16996 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
16997 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
16998 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
16999 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17000 s,@e_so_libs@,$e_so_libs,;t t
17001 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17002 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17003 s,@T_so_libs@,$T_so_libs,;t t
17004 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17005 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17006 s,@a_so_libs@,$a_so_libs,;t t
17007 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17008 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17009 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17010 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17011 s,@i_so_libs@,$i_so_libs,;t t
17012 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17013 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17014 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17015 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17016 s,@GTK_LIBS@,$GTK_LIBS,;t t
17017 s,@g_so_libs@,$g_so_libs,;t t
17018 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17019 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17020 s,@r_so_libs@,$r_so_libs,;t t
17021 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17022 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17023 s,@A_so_libs@,$A_so_libs,;t t
17024 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17025 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17026 s,@W_so_libs@,$W_so_libs,;t t
17027 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17028 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17029 s,@w_so_libs@,$w_so_libs,;t t
17030 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17031 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17032 s,@p_so_libs@,$p_so_libs,;t t
17033 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17034 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17035 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17036 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17037 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17038 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17039 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17040 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17041 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17042 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17043 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17044 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17045 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17046 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17047 s,@EXTRALIBS@,$EXTRALIBS,;t t
17048 s,@NETSRCS@,$NETSRCS,;t t
17049 s,@ELFILES@,$ELFILES,;t t
17050 s,@SHLD@,$SHLD,;t t
17051 s,@SHCFLAGS@,$SHCFLAGS,;t t
17052 s,@dynamic_targets@,$dynamic_targets,;t t
17053 s,@so@,$so,;t t
17054 s,@WISH@,$WISH,;t t
17055 s,@tcltk_dep@,$tcltk_dep,;t t
17056 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17057 s,@pkgdatadir@,$pkgdatadir,;t t
17058 s,@pkglibdir@,$pkglibdir,;t t
17059 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17060 CEOF
17061
17062 _ACEOF
17063
17064   cat >>$CONFIG_STATUS <<\_ACEOF
17065   # Split the substitutions into bite-sized pieces for seds with
17066   # small command number limits, like on Digital OSF/1 and HP-UX.
17067   ac_max_sed_lines=48
17068   ac_sed_frag=1 # Number of current file.
17069   ac_beg=1 # First line for current file.
17070   ac_end=$ac_max_sed_lines # Line after last line for current file.
17071   ac_more_lines=:
17072   ac_sed_cmds=
17073   while $ac_more_lines; do
17074     if test $ac_beg -gt 1; then
17075       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17076     else
17077       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17078     fi
17079     if test ! -s $tmp/subs.frag; then
17080       ac_more_lines=false
17081     else
17082       # The purpose of the label and of the branching condition is to
17083       # speed up the sed processing (if there are no `@' at all, there
17084       # is no need to browse any of the substitutions).
17085       # These are the two extra sed commands mentioned above.
17086       (echo ':t
17087   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17088       if test -z "$ac_sed_cmds"; then
17089         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17090       else
17091         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17092       fi
17093       ac_sed_frag=`expr $ac_sed_frag + 1`
17094       ac_beg=$ac_end
17095       ac_end=`expr $ac_end + $ac_max_sed_lines`
17096     fi
17097   done
17098   if test -z "$ac_sed_cmds"; then
17099     ac_sed_cmds=cat
17100   fi
17101 fi # test -n "$CONFIG_FILES"
17102
17103 _ACEOF
17104 cat >>$CONFIG_STATUS <<\_ACEOF
17105 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17106   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17107   case $ac_file in
17108   - | *:- | *:-:* ) # input from stdin
17109         cat >$tmp/stdin
17110         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17111         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17112   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17113         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17114   * )   ac_file_in=$ac_file.in ;;
17115   esac
17116
17117   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17118   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120          X"$ac_file" : 'X\(//\)[^/]' \| \
17121          X"$ac_file" : 'X\(//\)$' \| \
17122          X"$ac_file" : 'X\(/\)' \| \
17123          .     : '\(.\)' 2>/dev/null ||
17124 echo X"$ac_file" |
17125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17127           /^X\(\/\/\)$/{ s//\1/; q; }
17128           /^X\(\/\).*/{ s//\1/; q; }
17129           s/.*/./; q'`
17130   { if $as_mkdir_p; then
17131     mkdir -p "$ac_dir"
17132   else
17133     as_dir="$ac_dir"
17134     as_dirs=
17135     while test ! -d "$as_dir"; do
17136       as_dirs="$as_dir $as_dirs"
17137       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139          X"$as_dir" : 'X\(//\)[^/]' \| \
17140          X"$as_dir" : 'X\(//\)$' \| \
17141          X"$as_dir" : 'X\(/\)' \| \
17142          .     : '\(.\)' 2>/dev/null ||
17143 echo X"$as_dir" |
17144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17145           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17146           /^X\(\/\/\)$/{ s//\1/; q; }
17147           /^X\(\/\).*/{ s//\1/; q; }
17148           s/.*/./; q'`
17149     done
17150     test ! -n "$as_dirs" || mkdir $as_dirs
17151   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17152 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17153    { (exit 1); exit 1; }; }; }
17154
17155   ac_builddir=.
17156
17157 if test "$ac_dir" != .; then
17158   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17159   # A "../" for each directory in $ac_dir_suffix.
17160   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17161 else
17162   ac_dir_suffix= ac_top_builddir=
17163 fi
17164
17165 case $srcdir in
17166   .)  # No --srcdir option.  We are building in place.
17167     ac_srcdir=.
17168     if test -z "$ac_top_builddir"; then
17169        ac_top_srcdir=.
17170     else
17171        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17172     fi ;;
17173   [\\/]* | ?:[\\/]* )  # Absolute path.
17174     ac_srcdir=$srcdir$ac_dir_suffix;
17175     ac_top_srcdir=$srcdir ;;
17176   *) # Relative path.
17177     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17178     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17179 esac
17180 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17181 # absolute.
17182 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17183 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17184 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17185 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17186
17187
17188   case $INSTALL in
17189   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17190   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17191   esac
17192
17193   if test x"$ac_file" != x-; then
17194     { echo "$as_me:$LINENO: creating $ac_file" >&5
17195 echo "$as_me: creating $ac_file" >&6;}
17196     rm -f "$ac_file"
17197   fi
17198   # Let's still pretend it is `configure' which instantiates (i.e., don't
17199   # use $as_me), people would be surprised to read:
17200   #    /* config.h.  Generated by config.status.  */
17201   if test x"$ac_file" = x-; then
17202     configure_input=
17203   else
17204     configure_input="$ac_file.  "
17205   fi
17206   configure_input=$configure_input"Generated from `echo $ac_file_in |
17207                                      sed 's,.*/,,'` by configure."
17208
17209   # First look for the input files in the build tree, otherwise in the
17210   # src tree.
17211   ac_file_inputs=`IFS=:
17212     for f in $ac_file_in; do
17213       case $f in
17214       -) echo $tmp/stdin ;;
17215       [\\/$]*)
17216          # Absolute (can't be DOS-style, as IFS=:)
17217          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17218 echo "$as_me: error: cannot find input file: $f" >&2;}
17219    { (exit 1); exit 1; }; }
17220          echo $f;;
17221       *) # Relative
17222          if test -f "$f"; then
17223            # Build tree
17224            echo $f
17225          elif test -f "$srcdir/$f"; then
17226            # Source tree
17227            echo $srcdir/$f
17228          else
17229            # /dev/null tree
17230            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17231 echo "$as_me: error: cannot find input file: $f" >&2;}
17232    { (exit 1); exit 1; }; }
17233          fi;;
17234       esac
17235     done` || { (exit 1); exit 1; }
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<_ACEOF
17238   sed "$ac_vpsub
17239 $extrasub
17240 _ACEOF
17241 cat >>$CONFIG_STATUS <<\_ACEOF
17242 :t
17243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17244 s,@configure_input@,$configure_input,;t t
17245 s,@srcdir@,$ac_srcdir,;t t
17246 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17247 s,@top_srcdir@,$ac_top_srcdir,;t t
17248 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17249 s,@builddir@,$ac_builddir,;t t
17250 s,@abs_builddir@,$ac_abs_builddir,;t t
17251 s,@top_builddir@,$ac_top_builddir,;t t
17252 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17253 s,@INSTALL@,$ac_INSTALL,;t t
17254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17255   rm -f $tmp/stdin
17256   if test x"$ac_file" != x-; then
17257     mv $tmp/out $ac_file
17258   else
17259     cat $tmp/out
17260     rm -f $tmp/out
17261   fi
17262
17263 done
17264 _ACEOF
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17266
17267 #
17268 # CONFIG_HEADER section.
17269 #
17270
17271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17273 #
17274 # ac_d sets the value in "#define NAME VALUE" lines.
17275 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17276 ac_dB='[        ].*$,\1#\2'
17277 ac_dC=' '
17278 ac_dD=',;t'
17279 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17280 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17281 ac_uB='$,\1#\2define\3'
17282 ac_uC=' '
17283 ac_uD=',;t'
17284
17285 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17286   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17287   case $ac_file in
17288   - | *:- | *:-:* ) # input from stdin
17289         cat >$tmp/stdin
17290         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17291         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17292   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17293         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17294   * )   ac_file_in=$ac_file.in ;;
17295   esac
17296
17297   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17298 echo "$as_me: creating $ac_file" >&6;}
17299
17300   # First look for the input files in the build tree, otherwise in the
17301   # src tree.
17302   ac_file_inputs=`IFS=:
17303     for f in $ac_file_in; do
17304       case $f in
17305       -) echo $tmp/stdin ;;
17306       [\\/$]*)
17307          # Absolute (can't be DOS-style, as IFS=:)
17308          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17309 echo "$as_me: error: cannot find input file: $f" >&2;}
17310    { (exit 1); exit 1; }; }
17311          echo $f;;
17312       *) # Relative
17313          if test -f "$f"; then
17314            # Build tree
17315            echo $f
17316          elif test -f "$srcdir/$f"; then
17317            # Source tree
17318            echo $srcdir/$f
17319          else
17320            # /dev/null tree
17321            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17322 echo "$as_me: error: cannot find input file: $f" >&2;}
17323    { (exit 1); exit 1; }; }
17324          fi;;
17325       esac
17326     done` || { (exit 1); exit 1; }
17327   # Remove the trailing spaces.
17328   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17329
17330 _ACEOF
17331
17332 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17333 # `conftest.undefs', that substitutes the proper values into
17334 # config.h.in to produce config.h.  The first handles `#define'
17335 # templates, and the second `#undef' templates.
17336 # And first: Protect against being on the right side of a sed subst in
17337 # config.status.  Protect against being in an unquoted here document
17338 # in config.status.
17339 rm -f conftest.defines conftest.undefs
17340 # Using a here document instead of a string reduces the quoting nightmare.
17341 # Putting comments in sed scripts is not portable.
17342 #
17343 # `end' is used to avoid that the second main sed command (meant for
17344 # 0-ary CPP macros) applies to n-ary macro definitions.
17345 # See the Autoconf documentation for `clear'.
17346 cat >confdef2sed.sed <<\_ACEOF
17347 s/[\\&,]/\\&/g
17348 s,[\\$`],\\&,g
17349 t clear
17350 : clear
17351 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17352 t end
17353 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17354 : end
17355 _ACEOF
17356 # If some macros were called several times there might be several times
17357 # the same #defines, which is useless.  Nevertheless, we may not want to
17358 # sort them, since we want the *last* AC-DEFINE to be honored.
17359 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17360 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17361 rm -f confdef2sed.sed
17362
17363 # This sed command replaces #undef with comments.  This is necessary, for
17364 # example, in the case of _POSIX_SOURCE, which is predefined and required
17365 # on some systems where configure will not decide to define it.
17366 cat >>conftest.undefs <<\_ACEOF
17367 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17368 _ACEOF
17369
17370 # Break up conftest.defines because some shells have a limit on the size
17371 # of here documents, and old seds have small limits too (100 cmds).
17372 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17373 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17374 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17375 echo '  :' >>$CONFIG_STATUS
17376 rm -f conftest.tail
17377 while grep . conftest.defines >/dev/null
17378 do
17379   # Write a limited-size here document to $tmp/defines.sed.
17380   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17381   # Speed up: don't consider the non `#define' lines.
17382   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17383   # Work around the forget-to-reset-the-flag bug.
17384   echo 't clr' >>$CONFIG_STATUS
17385   echo ': clr' >>$CONFIG_STATUS
17386   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17387   echo 'CEOF
17388   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17389   rm -f $tmp/in
17390   mv $tmp/out $tmp/in
17391 ' >>$CONFIG_STATUS
17392   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17393   rm -f conftest.defines
17394   mv conftest.tail conftest.defines
17395 done
17396 rm -f conftest.defines
17397 echo '  fi # grep' >>$CONFIG_STATUS
17398 echo >>$CONFIG_STATUS
17399
17400 # Break up conftest.undefs because some shells have a limit on the size
17401 # of here documents, and old seds have small limits too (100 cmds).
17402 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17403 rm -f conftest.tail
17404 while grep . conftest.undefs >/dev/null
17405 do
17406   # Write a limited-size here document to $tmp/undefs.sed.
17407   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17408   # Speed up: don't consider the non `#undef'
17409   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17410   # Work around the forget-to-reset-the-flag bug.
17411   echo 't clr' >>$CONFIG_STATUS
17412   echo ': clr' >>$CONFIG_STATUS
17413   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17414   echo 'CEOF
17415   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17416   rm -f $tmp/in
17417   mv $tmp/out $tmp/in
17418 ' >>$CONFIG_STATUS
17419   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17420   rm -f conftest.undefs
17421   mv conftest.tail conftest.undefs
17422 done
17423 rm -f conftest.undefs
17424
17425 cat >>$CONFIG_STATUS <<\_ACEOF
17426   # Let's still pretend it is `configure' which instantiates (i.e., don't
17427   # use $as_me), people would be surprised to read:
17428   #    /* config.h.  Generated by config.status.  */
17429   if test x"$ac_file" = x-; then
17430     echo "/* Generated by configure.  */" >$tmp/config.h
17431   else
17432     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17433   fi
17434   cat $tmp/in >>$tmp/config.h
17435   rm -f $tmp/in
17436   if test x"$ac_file" != x-; then
17437     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17438       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17439 echo "$as_me: $ac_file is unchanged" >&6;}
17440     else
17441       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443          X"$ac_file" : 'X\(//\)[^/]' \| \
17444          X"$ac_file" : 'X\(//\)$' \| \
17445          X"$ac_file" : 'X\(/\)' \| \
17446          .     : '\(.\)' 2>/dev/null ||
17447 echo X"$ac_file" |
17448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17449           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17450           /^X\(\/\/\)$/{ s//\1/; q; }
17451           /^X\(\/\).*/{ s//\1/; q; }
17452           s/.*/./; q'`
17453       { if $as_mkdir_p; then
17454     mkdir -p "$ac_dir"
17455   else
17456     as_dir="$ac_dir"
17457     as_dirs=
17458     while test ! -d "$as_dir"; do
17459       as_dirs="$as_dir $as_dirs"
17460       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17462          X"$as_dir" : 'X\(//\)[^/]' \| \
17463          X"$as_dir" : 'X\(//\)$' \| \
17464          X"$as_dir" : 'X\(/\)' \| \
17465          .     : '\(.\)' 2>/dev/null ||
17466 echo X"$as_dir" |
17467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17469           /^X\(\/\/\)$/{ s//\1/; q; }
17470           /^X\(\/\).*/{ s//\1/; q; }
17471           s/.*/./; q'`
17472     done
17473     test ! -n "$as_dirs" || mkdir $as_dirs
17474   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17475 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17476    { (exit 1); exit 1; }; }; }
17477
17478       rm -f $ac_file
17479       mv $tmp/config.h $ac_file
17480     fi
17481   else
17482     cat $tmp/config.h
17483     rm -f $tmp/config.h
17484   fi
17485 # Compute $ac_file's index in $config_headers.
17486 _am_stamp_count=1
17487 for _am_header in $config_headers :; do
17488   case $_am_header in
17489     $ac_file | $ac_file:* )
17490       break ;;
17491     * )
17492       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17493   esac
17494 done
17495 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17496 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17497          X$ac_file : 'X\(//\)[^/]' \| \
17498          X$ac_file : 'X\(//\)$' \| \
17499          X$ac_file : 'X\(/\)' \| \
17500          .     : '\(.\)' 2>/dev/null ||
17501 echo X$ac_file |
17502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17504           /^X\(\/\/\)$/{ s//\1/; q; }
17505           /^X\(\/\).*/{ s//\1/; q; }
17506           s/.*/./; q'`/stamp-h$_am_stamp_count
17507 done
17508 _ACEOF
17509 cat >>$CONFIG_STATUS <<\_ACEOF
17510
17511 #
17512 # CONFIG_COMMANDS section.
17513 #
17514 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17515   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17516   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17517   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17518 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17519          X"$ac_dest" : 'X\(//\)[^/]' \| \
17520          X"$ac_dest" : 'X\(//\)$' \| \
17521          X"$ac_dest" : 'X\(/\)' \| \
17522          .     : '\(.\)' 2>/dev/null ||
17523 echo X"$ac_dest" |
17524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17525           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17526           /^X\(\/\/\)$/{ s//\1/; q; }
17527           /^X\(\/\).*/{ s//\1/; q; }
17528           s/.*/./; q'`
17529   ac_builddir=.
17530
17531 if test "$ac_dir" != .; then
17532   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17533   # A "../" for each directory in $ac_dir_suffix.
17534   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17535 else
17536   ac_dir_suffix= ac_top_builddir=
17537 fi
17538
17539 case $srcdir in
17540   .)  # No --srcdir option.  We are building in place.
17541     ac_srcdir=.
17542     if test -z "$ac_top_builddir"; then
17543        ac_top_srcdir=.
17544     else
17545        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17546     fi ;;
17547   [\\/]* | ?:[\\/]* )  # Absolute path.
17548     ac_srcdir=$srcdir$ac_dir_suffix;
17549     ac_top_srcdir=$srcdir ;;
17550   *) # Relative path.
17551     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17552     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17553 esac
17554 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17555 # absolute.
17556 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17557 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17558 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17559 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17560
17561
17562   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17563 echo "$as_me: executing $ac_dest commands" >&6;}
17564   case $ac_dest in
17565     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17566   # Strip MF so we end up with the name of the file.
17567   mf=`echo "$mf" | sed -e 's/:.*$//'`
17568   # Check whether this is an Automake generated Makefile or not.
17569   # We used to match only the files named `Makefile.in', but
17570   # some people rename them; so instead we look at the file content.
17571   # Grep'ing the first line is not enough: some people post-process
17572   # each Makefile.in and add a new line on top of each file to say so.
17573   # So let's grep whole file.
17574   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17575     dirpart=`(dirname "$mf") 2>/dev/null ||
17576 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577          X"$mf" : 'X\(//\)[^/]' \| \
17578          X"$mf" : 'X\(//\)$' \| \
17579          X"$mf" : 'X\(/\)' \| \
17580          .     : '\(.\)' 2>/dev/null ||
17581 echo X"$mf" |
17582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17584           /^X\(\/\/\)$/{ s//\1/; q; }
17585           /^X\(\/\).*/{ s//\1/; q; }
17586           s/.*/./; q'`
17587   else
17588     continue
17589   fi
17590   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17591   # Extract the definition of DEP_FILES from the Makefile without
17592   # running `make'.
17593   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17594   test -z "$DEPDIR" && continue
17595   # When using ansi2knr, U may be empty or an underscore; expand it
17596   U=`sed -n -e '/^U = / s///p' < "$mf"`
17597   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17598   # We invoke sed twice because it is the simplest approach to
17599   # changing $(DEPDIR) to its actual value in the expansion.
17600   for file in `sed -n -e '
17601     /^DEP_FILES = .*\\\\$/ {
17602       s/^DEP_FILES = //
17603       :loop
17604         s/\\\\$//
17605         p
17606         n
17607         /\\\\$/ b loop
17608       p
17609     }
17610     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17611        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17612     # Make sure the directory exists.
17613     test -f "$dirpart/$file" && continue
17614     fdir=`(dirname "$file") 2>/dev/null ||
17615 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616          X"$file" : 'X\(//\)[^/]' \| \
17617          X"$file" : 'X\(//\)$' \| \
17618          X"$file" : 'X\(/\)' \| \
17619          .     : '\(.\)' 2>/dev/null ||
17620 echo X"$file" |
17621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17622           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17623           /^X\(\/\/\)$/{ s//\1/; q; }
17624           /^X\(\/\).*/{ s//\1/; q; }
17625           s/.*/./; q'`
17626     { if $as_mkdir_p; then
17627     mkdir -p $dirpart/$fdir
17628   else
17629     as_dir=$dirpart/$fdir
17630     as_dirs=
17631     while test ! -d "$as_dir"; do
17632       as_dirs="$as_dir $as_dirs"
17633       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635          X"$as_dir" : 'X\(//\)[^/]' \| \
17636          X"$as_dir" : 'X\(//\)$' \| \
17637          X"$as_dir" : 'X\(/\)' \| \
17638          .     : '\(.\)' 2>/dev/null ||
17639 echo X"$as_dir" |
17640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17642           /^X\(\/\/\)$/{ s//\1/; q; }
17643           /^X\(\/\).*/{ s//\1/; q; }
17644           s/.*/./; q'`
17645     done
17646     test ! -n "$as_dirs" || mkdir $as_dirs
17647   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17648 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17649    { (exit 1); exit 1; }; }; }
17650
17651     # echo "creating $dirpart/$file"
17652     echo '# dummy' > "$dirpart/$file"
17653   done
17654 done
17655  ;;
17656   esac
17657 done
17658 _ACEOF
17659
17660 cat >>$CONFIG_STATUS <<\_ACEOF
17661
17662 { (exit 0); exit 0; }
17663 _ACEOF
17664 chmod +x $CONFIG_STATUS
17665 ac_clean_files=$ac_clean_files_save
17666
17667
17668 # configure is writing to config.log, and then calls config.status.
17669 # config.status does its own redirection, appending to config.log.
17670 # Unfortunately, on DOS this fails, as config.log is still kept open
17671 # by configure, so config.status won't be able to write to it; its
17672 # output is simply discarded.  So we exec the FD to /dev/null,
17673 # effectively closing config.log, so it can be properly (re)opened and
17674 # appended to by config.status.  When coming back to configure, we
17675 # need to make the FD available again.
17676 if test "$no_create" != yes; then
17677   ac_cs_success=:
17678   ac_config_status_args=
17679   test "$silent" = yes &&
17680     ac_config_status_args="$ac_config_status_args --quiet"
17681   exec 5>/dev/null
17682   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17683   exec 5>>config.log
17684   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17685   # would make configure fail if this is the last instruction.
17686   $ac_cs_success || { (exit 1); exit 1; }
17687 fi
17688