OSDN Git Service

* configure.in: shape up.
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ 2.13.2.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
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   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='2.13.2'
273 PACKAGE_STRING='TiMidity++ 2.13.2'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
275
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EMACS EMACSLOADPATH lispdir CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE PKG_CONFIG GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE W32G_GUI_TRUE W32G_GUI_FALSE WINDRV_TRUE WINDRV_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE MINGWGCC_TRUE MINGWGCC_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS VCPP_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_EMACS_set=${EMACS+set}
772 ac_env_EMACS_value=$EMACS
773 ac_cv_env_EMACS_set=${EMACS+set}
774 ac_cv_env_EMACS_value=$EMACS
775 ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
776 ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
777 ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
778 ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
779 ac_env_CC_set=${CC+set}
780 ac_env_CC_value=$CC
781 ac_cv_env_CC_set=${CC+set}
782 ac_cv_env_CC_value=$CC
783 ac_env_CFLAGS_set=${CFLAGS+set}
784 ac_env_CFLAGS_value=$CFLAGS
785 ac_cv_env_CFLAGS_set=${CFLAGS+set}
786 ac_cv_env_CFLAGS_value=$CFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
791
792 #
793 # Report the --help message.
794 #
795 if test "$ac_init_help" = "long"; then
796   # Omit some internal or obsolete options to make the list less imposing.
797   # This message is too long to be a string in the A/UX 3.1 sh.
798   cat <<_ACEOF
799 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
800
801 Usage: $0 [OPTION]... [VAR=VALUE]...
802
803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
804 VAR=VALUE.  See below for descriptions of some of the useful variables.
805
806 Defaults for the options are specified in brackets.
807
808 Configuration:
809   -h, --help              display this help and exit
810       --help=short        display options specific to this package
811       --help=recursive    display the short help of all the included packages
812   -V, --version           display version information and exit
813   -q, --quiet, --silent   do not print \`checking...' messages
814       --cache-file=FILE   cache test results in FILE [disabled]
815   -C, --config-cache      alias for \`--cache-file=config.cache'
816   -n, --no-create         do not create output files
817       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
818
819 _ACEOF
820
821   cat <<_ACEOF
822 Installation directories:
823   --prefix=PREFIX         install architecture-independent files in PREFIX
824                           [$ac_default_prefix]
825   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
826                           [PREFIX]
827
828 By default, \`make install' will install all the files in
829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
831 for instance \`--prefix=\$HOME'.
832
833 For better control, use the options below.
834
835 Fine tuning of the installation directories:
836   --bindir=DIR           user executables [EPREFIX/bin]
837   --sbindir=DIR          system admin executables [EPREFIX/sbin]
838   --libexecdir=DIR       program executables [EPREFIX/libexec]
839   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
840   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
841   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
842   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
843   --libdir=DIR           object code libraries [EPREFIX/lib]
844   --includedir=DIR       C header files [PREFIX/include]
845   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
846   --infodir=DIR          info documentation [PREFIX/info]
847   --mandir=DIR           man documentation [PREFIX/man]
848 _ACEOF
849
850   cat <<\_ACEOF
851
852 Program names:
853   --program-prefix=PREFIX            prepend PREFIX to installed program names
854   --program-suffix=SUFFIX            append SUFFIX to installed program names
855   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
856
857 X features:
858   --x-includes=DIR    X include files are in DIR
859   --x-libraries=DIR   X library files are in DIR
860
861 System types:
862   --build=BUILD     configure for building on BUILD [guessed]
863   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
864   --target=TARGET   configure for building compilers for TARGET [HOST]
865 _ACEOF
866 fi
867
868 if test -n "$ac_init_help"; then
869   case $ac_init_help in
870      short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
871    esac
872   cat <<\_ACEOF
873
874 Optional Features:
875   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
876   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
877   --enable-maintainer-mode  enable make rules and dependencies not useful
878                           (and sometimes confusing) to the casual installer
879   --disable-dependency-tracking  speeds up one-time build
880   --enable-dependency-tracking   do not reject slow dependency extractors
881   --enable-debug          Build a debugging version.
882   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
883                               default:   Automatically select audio device.
884                               oss:       OSS /dev/dsp
885                               sun:       SunOS /dev/audio
886                               hpux:      HPUX /dev/audio
887                               irix:      IRIX audio library
888                               mme:       OSF/1 MME
889                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
890                               w32:       Windows MMS
891                               darwin:    Darwin CoreAudio
892                               alsa:      ALSA pcm device
893                               alib:      HPUX network audio (Alib)
894                               nas:       NAS - Network Audio System
895                               arts:      aRts
896                               esd:       EsounD - Enlightened Sound Daemon
897                               portaudio: PortAudio
898                               jack:      JACK
899                               ao:        Libao
900                               vorbis:    Ogg Vorbis
901                               flac:      FLAC / OggFLAC
902                               speex:     Ogg Speex
903                               gogo:      MP3 GOGO (Only Windows is supported)
904   --disable-alsatest      Do not try to compile and run a test Alsa program
905   --disable-artstest       Do not try to compile and run a test ARTS program
906   --disable-esdtest       Do not try to compile and run a test ESD program
907   --disable-aotest       Do not try to compile and run a test ao program
908   --disable-oggtest       Do not try to compile and run a test Ogg program
909   --disable-vorbistest       Do not try to compile and run a test Vorbis program
910   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
911   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
912   --enable-interface=interface_list
913                           Comma separated interface list
914   --enable-dynamic        Enable dynamic link interface   (default is no)
915   --enable-dynamic=dynamic_list
916                           Comma separated dynamic interface list
917   --enable-ncurses        Enable ncurses interface        (default is no)
918   --enable-slang          Enable slang interface          (default is no)
919   --enable-motif          Enable motif interface          (default is no)
920   --enable-tcltk          Enable tcltk interface          (default is no)
921   --enable-emacs          Enable emacs interface          (default is no)
922   --enable-vt100          Enable VT100 interface          (default is no)
923   --enable-xaw            Enable athena interface         (default is no)
924   --enable-xskin          Enable X skin interface         (default is no)
925   --enable-gtk            Enable GTK+ interface           (default is no)
926   --disable-gtktest       do not try to compile and run a test GTK+ program
927   --disable-gtktest       Do not try to compile and run a test GTK program
928   --enable-server         Enable server interface         (default is no)
929   --enable-alsaseq        Enable ALSA sequencer server interface
930                                                           (default is no)
931   --enable-winsyn        Enable Windows Synthesizer interface
932                                                           (default is no)
933   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
934                                                           (default is no)
935   --enable-winsyng        Enable Windows GUI Synthesizer interface
936                                                           (default is no)
937   --enable-w32gui         Enable Windows GUI interface    (default is no)
938   --enable-ump            UMP configuration               (default is no)
939   --enable-windrv         Windows Driver interface(requires winsyn)
940   --enable-offix          Enable offix support            (default is no)
941   --enable-network        Enable network support          (default is no)
942   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
943   --enable-spline=method  Specify spline method.
944                                   one of no,linear,cubic,lagrange,newton,gauss
945                                                           (default is linear)
946   --enable-wrd            Enable WRD interface for X      (default is no)
947
948 Optional Packages:
949   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
950   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
951   --with-includes=DIR     Specify include directories (colon separated)
952   --with-libraries=DIR    Specify library directories (colon separated)
953   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
954   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
955   --with-lispdir          override the default lisp directory
956   --with-elf              create ELF shared object instead of AOUT
957   --with-x                use the X Window System
958   --with-tcl-includes=DIR Tcl include file path
959   --with-tcl-libs=DIR     Tcl library file path
960   --with-tk-includes=DIR  Tk include file path
961   --with-tk-libs=DIR      Tk library file path
962   --with-offix-includes=DIR Offix include file path
963   --with-offix-libs=DIR   Offix include file path
964   --with-nas-library=library NAS absolute library path(Don't use -laudio)
965   --with-nas-includes=DIR NAS include files are in dir
966   --with-default-output=<mode>  Specify default output mode (optional):
967                                 (default|alsa|alib|arts|nas|
968                                 esd|wav|au|aiff|list|vorbis|flac|speex|
969                                 gogo|portaudio|jack|ao)
970   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
971   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
972   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
973   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
974   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
975   --with-ao=PFX   Prefix where libao is installed (optional)
976   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
977   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
978   --with-ogg=PFX   Prefix where libogg is installed (optional)
979   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
980   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
981   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
982   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
983   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
984   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
985   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
986   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
987   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
988   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
989   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
990   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
991   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
992
993 Some influential environment variables:
994   CXX         C++ compiler command
995   CXXFLAGS    C++ compiler flags
996   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
997               nonstandard directory <lib dir>
998   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
999               headers in a nonstandard directory <include dir>
1000   EMACS       the Emacs editor command
1001   EMACSLOADPATH
1002               the Emacs library search path
1003   CC          C compiler command
1004   CFLAGS      C compiler flags
1005   CPP         C preprocessor
1006
1007 Use these variables to override the choices made by `configure' or to help
1008 it to find libraries and programs with nonstandard names/locations.
1009
1010 Report bugs to <root@mput.dip.jp>.
1011 _ACEOF
1012 fi
1013
1014 if test "$ac_init_help" = "recursive"; then
1015   # If there are subdirs, report their specific --help.
1016   ac_popdir=`pwd`
1017   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1018     test -d $ac_dir || continue
1019     ac_builddir=.
1020
1021 if test "$ac_dir" != .; then
1022   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1023   # A "../" for each directory in $ac_dir_suffix.
1024   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1025 else
1026   ac_dir_suffix= ac_top_builddir=
1027 fi
1028
1029 case $srcdir in
1030   .)  # No --srcdir option.  We are building in place.
1031     ac_srcdir=.
1032     if test -z "$ac_top_builddir"; then
1033        ac_top_srcdir=.
1034     else
1035        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1036     fi ;;
1037   [\\/]* | ?:[\\/]* )  # Absolute path.
1038     ac_srcdir=$srcdir$ac_dir_suffix;
1039     ac_top_srcdir=$srcdir ;;
1040   *) # Relative path.
1041     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1042     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1043 esac
1044
1045 # Do not use `cd foo && pwd` to compute absolute paths, because
1046 # the directories may not exist.
1047 case `pwd` in
1048 .) ac_abs_builddir="$ac_dir";;
1049 *)
1050   case "$ac_dir" in
1051   .) ac_abs_builddir=`pwd`;;
1052   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1053   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1054   esac;;
1055 esac
1056 case $ac_abs_builddir in
1057 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1058 *)
1059   case ${ac_top_builddir}. in
1060   .) ac_abs_top_builddir=$ac_abs_builddir;;
1061   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1062   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1063   esac;;
1064 esac
1065 case $ac_abs_builddir in
1066 .) ac_abs_srcdir=$ac_srcdir;;
1067 *)
1068   case $ac_srcdir in
1069   .) ac_abs_srcdir=$ac_abs_builddir;;
1070   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1071   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1072   esac;;
1073 esac
1074 case $ac_abs_builddir in
1075 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1076 *)
1077   case $ac_top_srcdir in
1078   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1079   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1080   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1081   esac;;
1082 esac
1083
1084     cd $ac_dir
1085     # Check for guested configure; otherwise get Cygnus style configure.
1086     if test -f $ac_srcdir/configure.gnu; then
1087       echo
1088       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1089     elif test -f $ac_srcdir/configure; then
1090       echo
1091       $SHELL $ac_srcdir/configure  --help=recursive
1092     elif test -f $ac_srcdir/configure.ac ||
1093            test -f $ac_srcdir/configure.in; then
1094       echo
1095       $ac_configure --help
1096     else
1097       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1098     fi
1099     cd $ac_popdir
1100   done
1101 fi
1102
1103 test -n "$ac_init_help" && exit 0
1104 if $ac_init_version; then
1105   cat <<\_ACEOF
1106 TiMidity++ configure 2.13.2
1107 generated by GNU Autoconf 2.59
1108
1109 Copyright (C) 2003 Free Software Foundation, Inc.
1110 This configure script is free software; the Free Software Foundation
1111 gives unlimited permission to copy, distribute and modify it.
1112 _ACEOF
1113   exit 0
1114 fi
1115 exec 5>config.log
1116 cat >&5 <<_ACEOF
1117 This file contains any messages produced by compilers while
1118 running configure, to aid debugging if configure makes a mistake.
1119
1120 It was created by TiMidity++ $as_me 2.13.2, which was
1121 generated by GNU Autoconf 2.59.  Invocation command line was
1122
1123   $ $0 $@
1124
1125 _ACEOF
1126 {
1127 cat <<_ASUNAME
1128 ## --------- ##
1129 ## Platform. ##
1130 ## --------- ##
1131
1132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1137
1138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1139 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1140
1141 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1142 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1144 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1145 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1146 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1147 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1148
1149 _ASUNAME
1150
1151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1152 for as_dir in $PATH
1153 do
1154   IFS=$as_save_IFS
1155   test -z "$as_dir" && as_dir=.
1156   echo "PATH: $as_dir"
1157 done
1158
1159 } >&5
1160
1161 cat >&5 <<_ACEOF
1162
1163
1164 ## ----------- ##
1165 ## Core tests. ##
1166 ## ----------- ##
1167
1168 _ACEOF
1169
1170
1171 # Keep a trace of the command line.
1172 # Strip out --no-create and --no-recursion so they do not pile up.
1173 # Strip out --silent because we don't want to record it for future runs.
1174 # Also quote any args containing shell meta-characters.
1175 # Make two passes to allow for proper duplicate-argument suppression.
1176 ac_configure_args=
1177 ac_configure_args0=
1178 ac_configure_args1=
1179 ac_sep=
1180 ac_must_keep_next=false
1181 for ac_pass in 1 2
1182 do
1183   for ac_arg
1184   do
1185     case $ac_arg in
1186     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1187     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188     | -silent | --silent | --silen | --sile | --sil)
1189       continue ;;
1190     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1191       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1192     esac
1193     case $ac_pass in
1194     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1195     2)
1196       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1197       if test $ac_must_keep_next = true; then
1198         ac_must_keep_next=false # Got value, back to normal.
1199       else
1200         case $ac_arg in
1201           *=* | --config-cache | -C | -disable-* | --disable-* \
1202           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1203           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1204           | -with-* | --with-* | -without-* | --without-* | --x)
1205             case "$ac_configure_args0 " in
1206               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1207             esac
1208             ;;
1209           -* ) ac_must_keep_next=true ;;
1210         esac
1211       fi
1212       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1213       # Get rid of the leading space.
1214       ac_sep=" "
1215       ;;
1216     esac
1217   done
1218 done
1219 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1220 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1221
1222 # When interrupted or exit'd, cleanup temporary files, and complete
1223 # config.log.  We remove comments because anyway the quotes in there
1224 # would cause problems or look ugly.
1225 # WARNING: Be sure not to use single quotes in there, as some shells,
1226 # such as our DU 5.0 friend, will then `close' the trap.
1227 trap 'exit_status=$?
1228   # Save into config.log some information that might help in debugging.
1229   {
1230     echo
1231
1232     cat <<\_ASBOX
1233 ## ---------------- ##
1234 ## Cache variables. ##
1235 ## ---------------- ##
1236 _ASBOX
1237     echo
1238     # The following way of writing the cache mishandles newlines in values,
1239 {
1240   (set) 2>&1 |
1241     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1242     *ac_space=\ *)
1243       sed -n \
1244         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1246       ;;
1247     *)
1248       sed -n \
1249         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1250       ;;
1251     esac;
1252 }
1253     echo
1254
1255     cat <<\_ASBOX
1256 ## ----------------- ##
1257 ## Output variables. ##
1258 ## ----------------- ##
1259 _ASBOX
1260     echo
1261     for ac_var in $ac_subst_vars
1262     do
1263       eval ac_val=$`echo $ac_var`
1264       echo "$ac_var='"'"'$ac_val'"'"'"
1265     done | sort
1266     echo
1267
1268     if test -n "$ac_subst_files"; then
1269       cat <<\_ASBOX
1270 ## ------------- ##
1271 ## Output files. ##
1272 ## ------------- ##
1273 _ASBOX
1274       echo
1275       for ac_var in $ac_subst_files
1276       do
1277         eval ac_val=$`echo $ac_var`
1278         echo "$ac_var='"'"'$ac_val'"'"'"
1279       done | sort
1280       echo
1281     fi
1282
1283     if test -s confdefs.h; then
1284       cat <<\_ASBOX
1285 ## ----------- ##
1286 ## confdefs.h. ##
1287 ## ----------- ##
1288 _ASBOX
1289       echo
1290       sed "/^$/d" confdefs.h | sort
1291       echo
1292     fi
1293     test "$ac_signal" != 0 &&
1294       echo "$as_me: caught signal $ac_signal"
1295     echo "$as_me: exit $exit_status"
1296   } >&5
1297   rm -f core *.core &&
1298   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1299     exit $exit_status
1300      ' 0
1301 for ac_signal in 1 2 13 15; do
1302   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1303 done
1304 ac_signal=0
1305
1306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1307 rm -rf conftest* confdefs.h
1308 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1309 echo >confdefs.h
1310
1311 # Predefined preprocessor variables.
1312
1313 cat >>confdefs.h <<_ACEOF
1314 #define PACKAGE_NAME "$PACKAGE_NAME"
1315 _ACEOF
1316
1317
1318 cat >>confdefs.h <<_ACEOF
1319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1320 _ACEOF
1321
1322
1323 cat >>confdefs.h <<_ACEOF
1324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1325 _ACEOF
1326
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_STRING "$PACKAGE_STRING"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1335 _ACEOF
1336
1337
1338 # Let the site file select an alternate cache file if it wants to.
1339 # Prefer explicitly selected file to automatically selected ones.
1340 if test -z "$CONFIG_SITE"; then
1341   if test "x$prefix" != xNONE; then
1342     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1343   else
1344     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1345   fi
1346 fi
1347 for ac_site_file in $CONFIG_SITE; do
1348   if test -r "$ac_site_file"; then
1349     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1350 echo "$as_me: loading site script $ac_site_file" >&6;}
1351     sed 's/^/| /' "$ac_site_file" >&5
1352     . "$ac_site_file"
1353   fi
1354 done
1355
1356 if test -r "$cache_file"; then
1357   # Some versions of bash will fail to source /dev/null (special
1358   # files actually), so we avoid doing that.
1359   if test -f "$cache_file"; then
1360     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1361 echo "$as_me: loading cache $cache_file" >&6;}
1362     case $cache_file in
1363       [\\/]* | ?:[\\/]* ) . $cache_file;;
1364       *)                      . ./$cache_file;;
1365     esac
1366   fi
1367 else
1368   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1369 echo "$as_me: creating cache $cache_file" >&6;}
1370   >$cache_file
1371 fi
1372
1373 # Check that the precious variables saved in the cache have kept the same
1374 # value.
1375 ac_cache_corrupted=false
1376 for ac_var in `(set) 2>&1 |
1377                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1378   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1379   eval ac_new_set=\$ac_env_${ac_var}_set
1380   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1381   eval ac_new_val="\$ac_env_${ac_var}_value"
1382   case $ac_old_set,$ac_new_set in
1383     set,)
1384       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1385 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1386       ac_cache_corrupted=: ;;
1387     ,set)
1388       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1389 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1390       ac_cache_corrupted=: ;;
1391     ,);;
1392     *)
1393       if test "x$ac_old_val" != "x$ac_new_val"; then
1394         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1395 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1396         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1397 echo "$as_me:   former value:  $ac_old_val" >&2;}
1398         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1399 echo "$as_me:   current value: $ac_new_val" >&2;}
1400         ac_cache_corrupted=:
1401       fi;;
1402   esac
1403   # Pass precious variables to config.status.
1404   if test "$ac_new_set" = set; then
1405     case $ac_new_val in
1406     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1407       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1408     *) ac_arg=$ac_var=$ac_new_val ;;
1409     esac
1410     case " $ac_configure_args " in
1411       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1412       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1413     esac
1414   fi
1415 done
1416 if $ac_cache_corrupted; then
1417   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1418 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1419   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1420 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1421    { (exit 1); exit 1; }; }
1422 fi
1423
1424 ac_ext=c
1425 ac_cpp='$CPP $CPPFLAGS'
1426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456 ac_aux_dir=
1457 for ac_dir in autoconf $srcdir/autoconf; do
1458   if test -f $ac_dir/install-sh; then
1459     ac_aux_dir=$ac_dir
1460     ac_install_sh="$ac_aux_dir/install-sh -c"
1461     break
1462   elif test -f $ac_dir/install.sh; then
1463     ac_aux_dir=$ac_dir
1464     ac_install_sh="$ac_aux_dir/install.sh -c"
1465     break
1466   elif test -f $ac_dir/shtool; then
1467     ac_aux_dir=$ac_dir
1468     ac_install_sh="$ac_aux_dir/shtool install -c"
1469     break
1470   fi
1471 done
1472 if test -z "$ac_aux_dir"; then
1473   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1474 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1475    { (exit 1); exit 1; }; }
1476 fi
1477 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1478 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1479 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1480
1481 # Make sure we can run config.sub.
1482 $ac_config_sub sun4 >/dev/null 2>&1 ||
1483   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1484 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1485    { (exit 1); exit 1; }; }
1486
1487 echo "$as_me:$LINENO: checking build system type" >&5
1488 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1489 if test "${ac_cv_build+set}" = set; then
1490   echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492   ac_cv_build_alias=$build_alias
1493 test -z "$ac_cv_build_alias" &&
1494   ac_cv_build_alias=`$ac_config_guess`
1495 test -z "$ac_cv_build_alias" &&
1496   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1497 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1498    { (exit 1); exit 1; }; }
1499 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1500   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1501 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1502    { (exit 1); exit 1; }; }
1503
1504 fi
1505 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1506 echo "${ECHO_T}$ac_cv_build" >&6
1507 build=$ac_cv_build
1508 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511
1512
1513 echo "$as_me:$LINENO: checking host system type" >&5
1514 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1515 if test "${ac_cv_host+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   ac_cv_host_alias=$host_alias
1519 test -z "$ac_cv_host_alias" &&
1520   ac_cv_host_alias=$ac_cv_build_alias
1521 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1522   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1524    { (exit 1); exit 1; }; }
1525
1526 fi
1527 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1528 echo "${ECHO_T}$ac_cv_host" >&6
1529 host=$ac_cv_host
1530 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535 echo "$as_me:$LINENO: checking target system type" >&5
1536 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1537 if test "${ac_cv_target+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   ac_cv_target_alias=$target_alias
1541 test "x$ac_cv_target_alias" = "x" &&
1542   ac_cv_target_alias=$ac_cv_host_alias
1543 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1544   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1545 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1546    { (exit 1); exit 1; }; }
1547
1548 fi
1549 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1550 echo "${ECHO_T}$ac_cv_target" >&6
1551 target=$ac_cv_target
1552 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555
1556
1557 # The aliases save the names the user supplied, while $host etc.
1558 # will get canonicalized.
1559 test -n "$target_alias" &&
1560   test "$program_prefix$program_suffix$program_transform_name" = \
1561     NONENONEs,x,x, &&
1562   program_prefix=${target_alias}-
1563 am__api_version="1.8"
1564 # Find a good install program.  We prefer a C program (faster),
1565 # so one script is as good as another.  But avoid the broken or
1566 # incompatible versions:
1567 # SysV /etc/install, /usr/sbin/install
1568 # SunOS /usr/etc/install
1569 # IRIX /sbin/install
1570 # AIX /bin/install
1571 # AmigaOS /C/install, which installs bootblocks on floppy discs
1572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1575 # OS/2's system install, which has a completely different semantic
1576 # ./install, which can be erroneously created by make from ./install.sh.
1577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1579 if test -z "$INSTALL"; then
1580 if test "${ac_cv_path_install+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   # Account for people who put trailing slashes in PATH elements.
1589 case $as_dir/ in
1590   ./ | .// | /cC/* | \
1591   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1592   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1593   /usr/ucb/* ) ;;
1594   *)
1595     # OSF1 and SCO ODT 3.0 have their own names for install.
1596     # Don't use installbsd from OSF since it installs stuff as root
1597     # by default.
1598     for ac_prog in ginstall scoinst install; do
1599       for ac_exec_ext in '' $ac_executable_extensions; do
1600         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601           if test $ac_prog = install &&
1602             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603             # AIX install.  It has an incompatible calling convention.
1604             :
1605           elif test $ac_prog = install &&
1606             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607             # program-specific install script used by HP pwplus--don't use.
1608             :
1609           else
1610             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611             break 3
1612           fi
1613         fi
1614       done
1615     done
1616     ;;
1617 esac
1618 done
1619
1620
1621 fi
1622   if test "${ac_cv_path_install+set}" = set; then
1623     INSTALL=$ac_cv_path_install
1624   else
1625     # As a last resort, use the slow shell script.  We don't cache a
1626     # path for INSTALL within a source directory, because that will
1627     # break other packages using the cache if that directory is
1628     # removed, or if the path is relative.
1629     INSTALL=$ac_install_sh
1630   fi
1631 fi
1632 echo "$as_me:$LINENO: result: $INSTALL" >&5
1633 echo "${ECHO_T}$INSTALL" >&6
1634
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642
1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645 # Just in case
1646 sleep 1
1647 echo timestamp > conftest.file
1648 # Do `set' in a subshell so we don't clobber the current shell's
1649 # arguments.  Must try -L first in case configure is actually a
1650 # symlink; some systems play weird games with the mod time of symlinks
1651 # (eg FreeBSD returns the mod time of the symlink's containing
1652 # directory).
1653 if (
1654    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655    if test "$*" = "X"; then
1656       # -L didn't work.
1657       set X `ls -t $srcdir/configure conftest.file`
1658    fi
1659    rm -f conftest.file
1660    if test "$*" != "X $srcdir/configure conftest.file" \
1661       && test "$*" != "X conftest.file $srcdir/configure"; then
1662
1663       # If neither matched, then we have a broken ls.  This can happen
1664       # if, for instance, CONFIG_SHELL is bash and it inherits a
1665       # broken ls alias from the environment.  This has actually
1666       # happened.  Such a system could not be considered "sane".
1667       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1668 alias in your environment" >&5
1669 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&2;}
1671    { (exit 1); exit 1; }; }
1672    fi
1673
1674    test "$2" = conftest.file
1675    )
1676 then
1677    # Ok.
1678    :
1679 else
1680    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681 Check your system clock" >&5
1682 echo "$as_me: error: newly created file is older than distributed files!
1683 Check your system clock" >&2;}
1684    { (exit 1); exit 1; }; }
1685 fi
1686 echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1688 test "$program_prefix" != NONE &&
1689   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690 # Use a double $ so make ignores it.
1691 test "$program_suffix" != NONE &&
1692   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693 # Double any \ or $.  echo might interpret backslashes.
1694 # By default was `s,x,x', remove it if useless.
1695 cat <<\_ACEOF >conftest.sed
1696 s/[\\$]/&&/g;s/;s,x,x,$//
1697 _ACEOF
1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1699 rm conftest.sed
1700
1701 # expand $ac_aux_dir to an absolute path
1702 am_aux_dir=`cd $ac_aux_dir && pwd`
1703
1704 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1705 # Use eval to expand $SHELL
1706 if eval "$MISSING --run true"; then
1707   am_missing_run="$MISSING --run "
1708 else
1709   am_missing_run=
1710   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1711 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1712 fi
1713
1714 if mkdir -p -- . 2>/dev/null; then
1715   # Keeping the `.' argument allows $(mkdir_p) to be used without
1716   # argument.  Indeed, we sometimes output rules like
1717   #   $(mkdir_p) $(somedir)
1718   # where $(somedir) is conditionally defined.
1719   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1720   # expensive solution, as it forces Make to start a sub-shell.)
1721   mkdir_p='mkdir -p -- .'
1722 else
1723   # On NextStep and OpenStep, the `mkdir' command does not
1724   # recognize any option.  It will interpret all options as
1725   # directories to create, and then abort because `.' already
1726   # exists.
1727   for d in ./-p ./--;
1728   do
1729     test -d $d && rmdir $d
1730   done
1731   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732   if test -f "$ac_aux_dir/mkinstalldirs"; then
1733     mkdir_p='$(mkinstalldirs)'
1734   else
1735     mkdir_p='$(install_sh) -d'
1736   fi
1737 fi
1738
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741   # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$AWK"; then
1749   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_AWK="$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769   echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776   test -n "$AWK" && break
1777 done
1778
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   cat >conftest.make <<\_ACEOF
1786 all:
1787         @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792   eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794   eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801   SET_MAKE=
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805   SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1807
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811   am__leading_dot=.
1812 else
1813   am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1816
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819    test -f $srcdir/config.status; then
1820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827   if (cygpath --version) >/dev/null 2>/dev/null; then
1828     CYGPATH_W='cygpath -w'
1829   else
1830     CYGPATH_W=echo
1831   fi
1832 fi
1833
1834
1835 # Define the identity of the package.
1836  PACKAGE='TiMidity++'
1837  VERSION='2.13.2'
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1847 _ACEOF
1848
1849 # Some tools Automake needs.
1850
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
1853
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
1856
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
1859
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
1862
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864
1865
1866 AMTAR=${AMTAR-"${am_missing_run}tar"}
1867
1868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1869
1870 # Installed binaries are usually stripped using `strip' when the user
1871 # run `make install-strip'.  However `strip' might not be the right
1872 # tool to use in cross-compilation environments, therefore Automake
1873 # will honor the `STRIP' environment variable to overrule this program.
1874 if test "$cross_compiling" != no; then
1875   if test -n "$ac_tool_prefix"; then
1876   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}strip; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_STRIP+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$STRIP"; then
1884   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 STRIP=$ac_cv_prog_STRIP
1903 if test -n "$STRIP"; then
1904   echo "$as_me:$LINENO: result: $STRIP" >&5
1905 echo "${ECHO_T}$STRIP" >&6
1906 else
1907   echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 fi
1912 if test -z "$ac_cv_prog_STRIP"; then
1913   ac_ct_STRIP=$STRIP
1914   # Extract the first word of "strip", so it can be a program name with args.
1915 set dummy strip; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$ac_ct_STRIP"; then
1922   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_ac_ct_STRIP="strip"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1939 fi
1940 fi
1941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1942 if test -n "$ac_ct_STRIP"; then
1943   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1944 echo "${ECHO_T}$ac_ct_STRIP" >&6
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950   STRIP=$ac_ct_STRIP
1951 else
1952   STRIP="$ac_cv_prog_STRIP"
1953 fi
1954
1955 fi
1956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1957
1958 # We need awk for the "check" target.  The system "awk" is bad on
1959 # some platforms.
1960
1961
1962
1963
1964                     ac_config_headers="$ac_config_headers config.h interface.h"
1965
1966 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1967 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1968     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1969 if test "${enable_maintainer_mode+set}" = set; then
1970   enableval="$enable_maintainer_mode"
1971   USE_MAINTAINER_MODE=$enableval
1972 else
1973   USE_MAINTAINER_MODE=no
1974 fi;
1975   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1976 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1977
1978
1979 if test $USE_MAINTAINER_MODE = yes; then
1980   MAINTAINER_MODE_TRUE=
1981   MAINTAINER_MODE_FALSE='#'
1982 else
1983   MAINTAINER_MODE_TRUE='#'
1984   MAINTAINER_MODE_FALSE=
1985 fi
1986
1987   MAINT=$MAINTAINER_MODE_TRUE
1988
1989
1990 ac_ext=cc
1991 ac_cpp='$CXXCPP $CPPFLAGS'
1992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1997   do
1998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CXX+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$CXX"; then
2006   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 fi
2023 fi
2024 CXX=$ac_cv_prog_CXX
2025 if test -n "$CXX"; then
2026   echo "$as_me:$LINENO: result: $CXX" >&5
2027 echo "${ECHO_T}$CXX" >&6
2028 else
2029   echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2031 fi
2032
2033     test -n "$CXX" && break
2034   done
2035 fi
2036 if test -z "$CXX"; then
2037   ac_ct_CXX=$CXX
2038   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2039 do
2040   # Extract the first word of "$ac_prog", so it can be a program name with args.
2041 set dummy $ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_CXX"; then
2048   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_CXX="$ac_prog"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2067 if test -n "$ac_ct_CXX"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2069 echo "${ECHO_T}$ac_ct_CXX" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   test -n "$ac_ct_CXX" && break
2076 done
2077 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2078
2079   CXX=$ac_ct_CXX
2080 fi
2081
2082
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO:" \
2085      "checking for C++ compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088   (eval $ac_compiler --version </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093   (eval $ac_compiler -v </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098   (eval $ac_compiler -V </dev/null >&5) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h.  */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h.  */
2109
2110 int
2111 main ()
2112 {
2113
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 ac_clean_files_save=$ac_clean_files
2119 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2120 # Try to create an executable without -o first, disregard a.out.
2121 # It will help us diagnose broken compilers, and finding out an intuition
2122 # of exeext.
2123 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2124 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2125 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2127   (eval $ac_link_default) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; then
2131   # Find the output, starting from the most likely.  This scheme is
2132 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133 # resort.
2134
2135 # Be careful to initialize this variable, since it used to be cached.
2136 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2137 ac_cv_exeext=
2138 # b.out is created by i960 compilers.
2139 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2140 do
2141   test -f "$ac_file" || continue
2142   case $ac_file in
2143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2144         ;;
2145     conftest.$ac_ext )
2146         # This is the source file.
2147         ;;
2148     [ab].out )
2149         # We found the default executable, but exeext='' is most
2150         # certainly right.
2151         break;;
2152     *.* )
2153         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154         # FIXME: I believe we export ac_cv_exeext for Libtool,
2155         # but it would be cool to find out if it's true.  Does anybody
2156         # maintain Libtool? --akim.
2157         export ac_cv_exeext
2158         break;;
2159     * )
2160         break;;
2161   esac
2162 done
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: C++ compiler cannot create executables
2170 See \`config.log' for more details." >&2;}
2171    { (exit 77); exit 77; }; }
2172 fi
2173
2174 ac_exeext=$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_file" >&5
2176 echo "${ECHO_T}$ac_file" >&6
2177
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2181 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2182 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2183 # If not cross compiling, check that we can run a simple program.
2184 if test "$cross_compiling" != yes; then
2185   if { ac_try='./$ac_file'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191     cross_compiling=no
2192   else
2193     if test "$cross_compiling" = maybe; then
2194         cross_compiling=yes
2195     else
2196         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: cannot run C++ compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&2;}
2202    { (exit 1); exit 1; }; }
2203     fi
2204   fi
2205 fi
2206 echo "$as_me:$LINENO: result: yes" >&5
2207 echo "${ECHO_T}yes" >&6
2208
2209 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2210 ac_clean_files=$ac_clean_files_save
2211 # Check the compiler produces executables we can run.  If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2214 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2215 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2216 echo "${ECHO_T}$cross_compiling" >&6
2217
2218 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2219 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221   (eval $ac_link) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; then
2225   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2226 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2227 # work properly (i.e., refer to `conftest.exe'), while it won't with
2228 # `rm'.
2229 for ac_file in conftest.exe conftest conftest.*; do
2230   test -f "$ac_file" || continue
2231   case $ac_file in
2232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2233     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234           export ac_cv_exeext
2235           break;;
2236     * ) break;;
2237   esac
2238 done
2239 else
2240   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245 fi
2246
2247 rm -f conftest$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249 echo "${ECHO_T}$ac_cv_exeext" >&6
2250
2251 rm -f conftest.$ac_ext
2252 EXEEXT=$ac_cv_exeext
2253 ac_exeext=$EXEEXT
2254 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2256 if test "${ac_cv_objext+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   cat >conftest.$ac_ext <<_ACEOF
2260 /* confdefs.h.  */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h.  */
2265
2266 int
2267 main ()
2268 {
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.o conftest.obj
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; then
2280   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2283     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2284        break;;
2285   esac
2286 done
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2294 See \`config.log' for more details." >&2;}
2295    { (exit 1); exit 1; }; }
2296 fi
2297
2298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2299 fi
2300 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2301 echo "${ECHO_T}$ac_cv_objext" >&6
2302 OBJEXT=$ac_cv_objext
2303 ac_objext=$OBJEXT
2304 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   cat >conftest.$ac_ext <<_ACEOF
2310 /* confdefs.h.  */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h.  */
2315
2316 int
2317 main ()
2318 {
2319 #ifndef __GNUC__
2320        choke me
2321 #endif
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329   (eval $ac_compile) 2>conftest.er1
2330   ac_status=$?
2331   grep -v '^ *+' conftest.er1 >conftest.err
2332   rm -f conftest.er1
2333   cat conftest.err >&5
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); } &&
2336          { ac_try='test -z "$ac_cxx_werror_flag"
2337                          || test ! -s conftest.err'
2338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; } &&
2343          { ac_try='test -s conftest.$ac_objext'
2344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345   (eval $ac_try) 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; }; then
2349   ac_compiler_gnu=yes
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 ac_compiler_gnu=no
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2358
2359 fi
2360 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2361 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2362 GXX=`test $ac_compiler_gnu = yes && echo yes`
2363 ac_test_CXXFLAGS=${CXXFLAGS+set}
2364 ac_save_CXXFLAGS=$CXXFLAGS
2365 CXXFLAGS="-g"
2366 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2367 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2368 if test "${ac_cv_prog_cxx_g+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_cxx_werror_flag"
2396                          || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_cv_prog_cxx_g=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_cv_prog_cxx_g=no
2414 fi
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416 fi
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2418 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2419 if test "$ac_test_CXXFLAGS" = set; then
2420   CXXFLAGS=$ac_save_CXXFLAGS
2421 elif test $ac_cv_prog_cxx_g = yes; then
2422   if test "$GXX" = yes; then
2423     CXXFLAGS="-g -O2"
2424   else
2425     CXXFLAGS="-g"
2426   fi
2427 else
2428   if test "$GXX" = yes; then
2429     CXXFLAGS="-O2"
2430   else
2431     CXXFLAGS=
2432   fi
2433 fi
2434 for ac_declaration in \
2435    '' \
2436    'extern "C" void std::exit (int) throw (); using std::exit;' \
2437    'extern "C" void std::exit (int); using std::exit;' \
2438    'extern "C" void exit (int) throw ();' \
2439    'extern "C" void exit (int);' \
2440    'void exit (int);'
2441 do
2442   cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448 $ac_declaration
2449 #include <stdlib.h>
2450 int
2451 main ()
2452 {
2453 exit (42);
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_cxx_werror_flag"
2468                          || test ! -s conftest.err'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; } &&
2474          { ac_try='test -s conftest.$ac_objext'
2475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476   (eval $ac_try) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   :
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 continue
2486 fi
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494 $ac_declaration
2495 int
2496 main ()
2497 {
2498 exit (42);
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_cxx_werror_flag"
2513                          || test ! -s conftest.err'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; } &&
2519          { ac_try='test -s conftest.$ac_objext'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; }; then
2525   break
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 fi
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 done
2533 rm -f conftest*
2534 if test -n "$ac_declaration"; then
2535   echo '#ifdef __cplusplus' >>confdefs.h
2536   echo $ac_declaration      >>confdefs.h
2537   echo '#endif'             >>confdefs.h
2538 fi
2539
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 DEPDIR="${am__leading_dot}deps"
2546
2547           ac_config_commands="$ac_config_commands depfiles"
2548
2549
2550 am_make=${MAKE-make}
2551 cat > confinc << 'END'
2552 am__doit:
2553         @echo done
2554 .PHONY: am__doit
2555 END
2556 # If we don't find an include directive, just comment out the code.
2557 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2558 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2559 am__include="#"
2560 am__quote=
2561 _am_result=none
2562 # First try GNU make style include.
2563 echo "include confinc" > confmf
2564 # We grep out `Entering directory' and `Leaving directory'
2565 # messages which can occur if `w' ends up in MAKEFLAGS.
2566 # In particular we don't look at `^make:' because GNU make might
2567 # be invoked under some other name (usually "gmake"), in which
2568 # case it prints its new name instead of `make'.
2569 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2570    am__include=include
2571    am__quote=
2572    _am_result=GNU
2573 fi
2574 # Now try BSD make style include.
2575 if test "$am__include" = "#"; then
2576    echo '.include "confinc"' > confmf
2577    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2578       am__include=.include
2579       am__quote="\""
2580       _am_result=BSD
2581    fi
2582 fi
2583
2584
2585 echo "$as_me:$LINENO: result: $_am_result" >&5
2586 echo "${ECHO_T}$_am_result" >&6
2587 rm -f confinc confmf
2588
2589 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2590 if test "${enable_dependency_tracking+set}" = set; then
2591   enableval="$enable_dependency_tracking"
2592
2593 fi;
2594 if test "x$enable_dependency_tracking" != xno; then
2595   am_depcomp="$ac_aux_dir/depcomp"
2596   AMDEPBACKSLASH='\'
2597 fi
2598
2599
2600 if test "x$enable_dependency_tracking" != xno; then
2601   AMDEP_TRUE=
2602   AMDEP_FALSE='#'
2603 else
2604   AMDEP_TRUE='#'
2605   AMDEP_FALSE=
2606 fi
2607
2608
2609
2610
2611 depcc="$CXX"  am_compiler_list=
2612
2613 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2615 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2619   # We make a subdir and do the tests there.  Otherwise we can end up
2620   # making bogus files that we don't know about and never remove.  For
2621   # instance it was reported that on HP-UX the gcc test will end up
2622   # making a dummy file named `D' -- because `-MD' means `put the output
2623   # in D'.
2624   mkdir conftest.dir
2625   # Copy depcomp to subdir because otherwise we won't find it if we're
2626   # using a relative directory.
2627   cp "$am_depcomp" conftest.dir
2628   cd conftest.dir
2629   # We will build objects and dependencies in a subdirectory because
2630   # it helps to detect inapplicable dependency modes.  For instance
2631   # both Tru64's cc and ICC support -MD to output dependencies as a
2632   # side effect of compilation, but ICC will put the dependencies in
2633   # the current directory while Tru64 will put them in the object
2634   # directory.
2635   mkdir sub
2636
2637   am_cv_CXX_dependencies_compiler_type=none
2638   if test "$am_compiler_list" = ""; then
2639      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2640   fi
2641   for depmode in $am_compiler_list; do
2642     # Setup a source with many dependencies, because some compilers
2643     # like to wrap large dependency lists on column 80 (with \), and
2644     # we should not choose a depcomp mode which is confused by this.
2645     #
2646     # We need to recreate these files for each test, as the compiler may
2647     # overwrite some of them when testing with obscure command lines.
2648     # This happens at least with the AIX C compiler.
2649     : > sub/conftest.c
2650     for i in 1 2 3 4 5 6; do
2651       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2652       : > sub/conftst$i.h
2653     done
2654     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2655
2656     case $depmode in
2657     nosideeffect)
2658       # after this tag, mechanisms are not by side-effect, so they'll
2659       # only be used when explicitly requested
2660       if test "x$enable_dependency_tracking" = xyes; then
2661         continue
2662       else
2663         break
2664       fi
2665       ;;
2666     none) break ;;
2667     esac
2668     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2669     # mode.  It turns out that the SunPro C++ compiler does not properly
2670     # handle `-M -o', and we need to detect this.
2671     if depmode=$depmode \
2672        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2673        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2674        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2675          >/dev/null 2>conftest.err &&
2676        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2677        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2678        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2679       # icc doesn't choke on unknown options, it will just issue warnings
2680       # (even with -Werror).  So we grep stderr for any message
2681       # that says an option was ignored.
2682       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2683         am_cv_CXX_dependencies_compiler_type=$depmode
2684         break
2685       fi
2686     fi
2687   done
2688
2689   cd ..
2690   rm -rf conftest.dir
2691 else
2692   am_cv_CXX_dependencies_compiler_type=none
2693 fi
2694
2695 fi
2696 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2697 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2698 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2699
2700
2701
2702 if
2703   test "x$enable_dependency_tracking" != xno \
2704   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2705   am__fastdepCXX_TRUE=
2706   am__fastdepCXX_FALSE='#'
2707 else
2708   am__fastdepCXX_TRUE='#'
2709   am__fastdepCXX_FALSE=
2710 fi
2711
2712
2713
2714 SHELL=${CONFIG_SHELL-"/bin/sh"}
2715 WISH=${WISH-"wish"}
2716
2717 echo "$as_me:$LINENO: checking whether grep returns status" >&5
2718 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
2719 echo "grimblepritz" >grimble
2720 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2721         contains="./contains"
2722 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2723         contains=grep
2724 else
2725         contains="./contains"
2726 fi
2727 rm -f grimble
2728 case "$contains" in
2729 grep)   echo "$as_me:$LINENO: result: yes" >&5
2730 echo "${ECHO_T}yes" >&6
2731         ;;
2732 ./contains)
2733         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
2734 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
2735         cat >./contains <<'EOSS'
2736 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2737 EOSS
2738         chmod +x "./contains"
2739         ;;
2740 esac
2741
2742
2743 # Check for compiler options -- such as debug flags.
2744
2745 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2746 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
2747 # Check whether --enable-debug or --disable-debug was given.
2748 if test "${enable_debug+set}" = set; then
2749   enableval="$enable_debug"
2750   timidity_cv_debug="yes"
2751 else
2752   timidity_cv_debug="no"
2753 fi;
2754 if test "x$timidity_cv_debug" = "xyes"; then
2755
2756 cat >>confdefs.h <<\_ACEOF
2757 #define DEBUG 1
2758 _ACEOF
2759
2760   CFLAGS=${CFLAGS-"-g"}
2761 fi
2762 if test "x$timidity_cv_debug" = "xno"; then
2763
2764 cat >>confdefs.h <<\_ACEOF
2765 #define NDEBUG 1
2766 _ACEOF
2767
2768 fi
2769 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2770 echo "${ECHO_T}$timidity_cv_debug" >&6
2771
2772 CFLAGS=${CFLAGS-"-O2"}
2773
2774 if test "x$with_x" = x; then
2775   with_x=yes
2776 else
2777   x_config_flag=yes
2778 fi
2779
2780 # Checking gcc environment
2781 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2782   LDFLAGS="$LDFLAGS -L${i}"
2783 done
2784 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2785   CPPFLAGS="$CPPFLAGS -I${i}"
2786 done
2787
2788 # add $prefix if specified.
2789 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2790   LDFLAGS="-L$prefix/lib $LDFLAGS"
2791   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2792   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2793 fi
2794
2795
2796 # Check whether --with-includes or --without-includes was given.
2797 if test "${with_includes+set}" = set; then
2798   withval="$with_includes"
2799    j=' '
2800     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2801       j="${j}-I${i} "
2802     done
2803     CPPFLAGS="$j$CPPFLAGS"
2804
2805 fi;
2806
2807
2808 # Check whether --with-libraries or --without-libraries was given.
2809 if test "${with_libraries+set}" = set; then
2810   withval="$with_libraries"
2811    j=' '
2812     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2813       j="${j}-L${i} "
2814     done
2815     LDFLAGS="$j$LDFLAGS"
2816
2817 fi;
2818
2819
2820
2821 # Check whether --with-default-path or --without-default-path was given.
2822 if test "${with_default_path+set}" = set; then
2823   withval="$with_default_path"
2824   pkgdatadir=$withval
2825 else
2826
2827    if test "x$prefix" != "xNONE"; then
2828       pkgdatadir='${prefix}/share/timidity'
2829    else
2830       pkgdatadir='/usr/local/share/timidity'
2831    fi
2832
2833 fi;
2834 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2835
2836 cat >>confdefs.h <<_ACEOF
2837 #define DEFAULT_PATH "$tmpdefpath"
2838 _ACEOF
2839
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define PKGDATADIR DEFAULT_PATH
2843 _ACEOF
2844
2845
2846
2847 # Check whether --with-module-dir or --without-module-dir was given.
2848 if test "${with_module_dir+set}" = set; then
2849   withval="$with_module_dir"
2850   pkglibdir=$withval
2851 else
2852
2853    if test "x$prefix" != "xNONE"; then
2854       pkglibdir='${prefix}/lib/timidity'
2855    else
2856       pkglibdir='/usr/local/lib/timidity'
2857    fi
2858
2859 fi;
2860 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2861
2862 cat >>confdefs.h <<_ACEOF
2863 #define PKGLIBDIR "$tmplibdir"
2864 _ACEOF
2865
2866
2867
2868 # Checks for programs.
2869  # If set to t, that means we are running in a shell under Emacs.
2870  # If you have an Emacs named "t", then use the full path.
2871  test x"$EMACS" = xt && EMACS=
2872  for ac_prog in emacs xemacs
2873 do
2874   # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_EMACS+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   if test -n "$EMACS"; then
2882   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889   for ac_exec_ext in '' $ac_executable_extensions; do
2890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891     ac_cv_prog_EMACS="$ac_prog"
2892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896 done
2897
2898 fi
2899 fi
2900 EMACS=$ac_cv_prog_EMACS
2901 if test -n "$EMACS"; then
2902   echo "$as_me:$LINENO: result: $EMACS" >&5
2903 echo "${ECHO_T}$EMACS" >&6
2904 else
2905   echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2907 fi
2908
2909   test -n "$EMACS" && break
2910 done
2911 test -n "$EMACS" || EMACS="no"
2912
2913
2914
2915
2916 # Check whether --with-lispdir or --without-lispdir was given.
2917 if test "${with_lispdir+set}" = set; then
2918   withval="$with_lispdir"
2919    lispdir="$withval"
2920    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2921 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2922    echo "$as_me:$LINENO: result: $lispdir" >&5
2923 echo "${ECHO_T}$lispdir" >&6
2924 else
2925
2926  echo "$as_me:$LINENO: checking where .elc files should go" >&5
2927 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2928 if test "${am_cv_lispdir+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931
2932    if test $EMACS != "no"; then
2933      if test x${lispdir+set} != xset; then
2934   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2935   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2936   #  which is non-obvious for non-emacs users.
2937   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2938   #  emacsen earlier and avoid running this altogether.
2939   { (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
2940   ($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
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }
2944         am_cv_lispdir=`sed -n \
2945        -e 's,/$,,' \
2946        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2947        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2948        conftest.out`
2949        rm conftest.out
2950      fi
2951    fi
2952    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
2953
2954 fi
2955 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2956 echo "${ECHO_T}$am_cv_lispdir" >&6
2957   lispdir="$am_cv_lispdir"
2958
2959 fi;
2960
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983   for ac_exec_ext in '' $ac_executable_extensions; do
2984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990 done
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6
2998 else
2999   echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3001 fi
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005   ac_ct_CC=$CC
3006   # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   if test -n "$ac_ct_CC"; then
3014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   for ac_exec_ext in '' $ac_executable_extensions; do
3022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_ac_ct_CC="gcc"
3024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3036 else
3037   echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3039 fi
3040
3041   CC=$ac_ct_CC
3042 else
3043   CC="$ac_cv_prog_CC"
3044 fi
3045
3046 if test -z "$CC"; then
3047   if test -n "$ac_tool_prefix"; then
3048   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   if test -n "$CC"; then
3056   ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063   for ac_exec_ext in '' $ac_executable_extensions; do
3064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065     ac_cv_prog_CC="${ac_tool_prefix}cc"
3066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070 done
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076   echo "$as_me:$LINENO: result: $CC" >&5
3077 echo "${ECHO_T}$CC" >&6
3078 else
3079   echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3081 fi
3082
3083 fi
3084 if test -z "$ac_cv_prog_CC"; then
3085   ac_ct_CC=$CC
3086   # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   if test -n "$ac_ct_CC"; then
3094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101   for ac_exec_ext in '' $ac_executable_extensions; do
3102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103     ac_cv_prog_ac_ct_CC="cc"
3104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108 done
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115 echo "${ECHO_T}$ac_ct_CC" >&6
3116 else
3117   echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6
3119 fi
3120
3121   CC=$ac_ct_CC
3122 else
3123   CC="$ac_cv_prog_CC"
3124 fi
3125
3126 fi
3127 if test -z "$CC"; then
3128   # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_CC+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135   if test -n "$CC"; then
3136   ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138   ac_prog_rejected=no
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144   for ac_exec_ext in '' $ac_executable_extensions; do
3145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147        ac_prog_rejected=yes
3148        continue
3149      fi
3150     ac_cv_prog_CC="cc"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156
3157 if test $ac_prog_rejected = yes; then
3158   # We found a bogon in the path, so make sure we never use it.
3159   set dummy $ac_cv_prog_CC
3160   shift
3161   if test $# != 0; then
3162     # We chose a different compiler from the bogus one.
3163     # However, it has the same basename, so the bogon will be chosen
3164     # first if we set CC to just the basename; use the full file name.
3165     shift
3166     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3167   fi
3168 fi
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   echo "$as_me:$LINENO: result: $CC" >&5
3174 echo "${ECHO_T}$CC" >&6
3175 else
3176   echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 fi
3179
3180 fi
3181 if test -z "$CC"; then
3182   if test -n "$ac_tool_prefix"; then
3183   for ac_prog in cl
3184   do
3185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_CC+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   if test -n "$CC"; then
3193   ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200   for ac_exec_ext in '' $ac_executable_extensions; do
3201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204     break 2
3205   fi
3206 done
3207 done
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213   echo "$as_me:$LINENO: result: $CC" >&5
3214 echo "${ECHO_T}$CC" >&6
3215 else
3216   echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 fi
3219
3220     test -n "$CC" && break
3221   done
3222 fi
3223 if test -z "$CC"; then
3224   ac_ct_CC=$CC
3225   for ac_prog in cl
3226 do
3227   # Extract the first word of "$ac_prog", so it can be a program name with args.
3228 set dummy $ac_prog; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   if test -n "$ac_ct_CC"; then
3235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_ac_ct_CC="$ac_prog"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251 fi
3252 fi
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3256 echo "${ECHO_T}$ac_ct_CC" >&6
3257 else
3258   echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3260 fi
3261
3262   test -n "$ac_ct_CC" && break
3263 done
3264
3265   CC=$ac_ct_CC
3266 fi
3267
3268 fi
3269
3270
3271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: no acceptable C compiler found in \$PATH
3274 See \`config.log' for more details." >&2;}
3275    { (exit 1); exit 1; }; }
3276
3277 # Provide some information about the compiler.
3278 echo "$as_me:$LINENO:" \
3279      "checking for C compiler version" >&5
3280 ac_compiler=`set X $ac_compile; echo $2`
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282   (eval $ac_compiler --version </dev/null >&5) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }
3286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287   (eval $ac_compiler -v </dev/null >&5) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }
3291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292   (eval $ac_compiler -V </dev/null >&5) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }
3296
3297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312 #ifndef __GNUC__
3313        choke me
3314 #endif
3315
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322   (eval $ac_compile) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_c_werror_flag"
3330                          || test ! -s conftest.err'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; } &&
3336          { ac_try='test -s conftest.$ac_objext'
3337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342   ac_compiler_gnu=yes
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 ac_compiler_gnu=no
3348 fi
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3351
3352 fi
3353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3355 GCC=`test $ac_compiler_gnu = yes && echo yes`
3356 ac_test_CFLAGS=${CFLAGS+set}
3357 ac_save_CFLAGS=$CFLAGS
3358 CFLAGS="-g"
3359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381   (eval $ac_compile) 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } &&
3388          { ac_try='test -z "$ac_c_werror_flag"
3389                          || test ! -s conftest.err'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; } &&
3395          { ac_try='test -s conftest.$ac_objext'
3396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397   (eval $ac_try) 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; }; then
3401   ac_cv_prog_cc_g=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 ac_cv_prog_cc_g=no
3407 fi
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3412 if test "$ac_test_CFLAGS" = set; then
3413   CFLAGS=$ac_save_CFLAGS
3414 elif test $ac_cv_prog_cc_g = yes; then
3415   if test "$GCC" = yes; then
3416     CFLAGS="-g -O2"
3417   else
3418     CFLAGS="-g"
3419   fi
3420 else
3421   if test "$GCC" = yes; then
3422     CFLAGS="-O2"
3423   else
3424     CFLAGS=
3425   fi
3426 fi
3427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   ac_cv_prog_cc_stdc=no
3433 ac_save_CC=$CC
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <stdarg.h>
3441 #include <stdio.h>
3442 #include <sys/types.h>
3443 #include <sys/stat.h>
3444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3445 struct buf { int x; };
3446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3447 static char *e (p, i)
3448      char **p;
3449      int i;
3450 {
3451   return p[i];
3452 }
3453 static char *f (char * (*g) (char **, int), char **p, ...)
3454 {
3455   char *s;
3456   va_list v;
3457   va_start (v,p);
3458   s = g (p, va_arg (v,int));
3459   va_end (v);
3460   return s;
3461 }
3462
3463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3464    function prototypes and stuff, but not '\xHH' hex character constants.
3465    These don't provoke an error unfortunately, instead are silently treated
3466    as 'x'.  The following induces an error, until -std1 is added to get
3467    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3468    array size at least.  It's necessary to write '\x00'==0 to get something
3469    that's true only with -std1.  */
3470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471
3472 int test (int i, double x);
3473 struct s1 {int (*f) (int a);};
3474 struct s2 {int (*f) (double a);};
3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 int argc;
3477 char **argv;
3478 int
3479 main ()
3480 {
3481 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 # Don't try gcc -ansi; that turns off useful extensions and
3487 # breaks some systems' header files.
3488 # AIX                   -qlanglvl=ansi
3489 # Ultrix and OSF/1      -std1
3490 # HP-UX 10.20 and later -Ae
3491 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3492 # SVR4                  -Xc -D__EXTENSIONS__
3493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494 do
3495   CC="$ac_save_CC $ac_arg"
3496   rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498   (eval $ac_compile) 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } &&
3505          { ac_try='test -z "$ac_c_werror_flag"
3506                          || test ! -s conftest.err'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_cv_prog_cc_stdc=$ac_arg
3519 break
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 fi
3525 rm -f conftest.err conftest.$ac_objext
3526 done
3527 rm -f conftest.$ac_ext conftest.$ac_objext
3528 CC=$ac_save_CC
3529
3530 fi
3531
3532 case "x$ac_cv_prog_cc_stdc" in
3533   x|xno)
3534     echo "$as_me:$LINENO: result: none needed" >&5
3535 echo "${ECHO_T}none needed" >&6 ;;
3536   *)
3537     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3539     CC="$CC $ac_cv_prog_cc_stdc" ;;
3540 esac
3541
3542 # Some people use a C++ compiler to compile C.  Since we use `exit',
3543 # in C++ we need to declare it.  In case someone uses the same compiler
3544 # for both compiling C and C++ we need to have the C++ compiler decide
3545 # the declaration of exit, since it's the most demanding environment.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #ifndef __cplusplus
3548   choke me
3549 #endif
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553   (eval $ac_compile) 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          { ac_try='test -z "$ac_c_werror_flag"
3561                          || test ! -s conftest.err'
3562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563   (eval $ac_try) 2>&5
3564   ac_status=$?
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); }; } &&
3567          { ac_try='test -s conftest.$ac_objext'
3568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569   (eval $ac_try) 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); }; }; then
3573   for ac_declaration in \
3574    '' \
3575    'extern "C" void std::exit (int) throw (); using std::exit;' \
3576    'extern "C" void std::exit (int); using std::exit;' \
3577    'extern "C" void exit (int) throw ();' \
3578    'extern "C" void exit (int);' \
3579    'void exit (int);'
3580 do
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 $ac_declaration
3588 #include <stdlib.h>
3589 int
3590 main ()
3591 {
3592 exit (42);
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -z "$ac_c_werror_flag"
3607                          || test ! -s conftest.err'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   :
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 continue
3625 fi
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627   cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633 $ac_declaration
3634 int
3635 main ()
3636 {
3637 exit (42);
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644   (eval $ac_compile) 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -z "$ac_c_werror_flag"
3652                          || test ! -s conftest.err'
3653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654   (eval $ac_try) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); }; } &&
3658          { ac_try='test -s conftest.$ac_objext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   break
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 fi
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 done
3672 rm -f conftest*
3673 if test -n "$ac_declaration"; then
3674   echo '#ifdef __cplusplus' >>confdefs.h
3675   echo $ac_declaration      >>confdefs.h
3676   echo '#endif'             >>confdefs.h
3677 fi
3678
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 fi
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691 depcc="$CC"   am_compiler_list=
3692
3693 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699   # We make a subdir and do the tests there.  Otherwise we can end up
3700   # making bogus files that we don't know about and never remove.  For
3701   # instance it was reported that on HP-UX the gcc test will end up
3702   # making a dummy file named `D' -- because `-MD' means `put the output
3703   # in D'.
3704   mkdir conftest.dir
3705   # Copy depcomp to subdir because otherwise we won't find it if we're
3706   # using a relative directory.
3707   cp "$am_depcomp" conftest.dir
3708   cd conftest.dir
3709   # We will build objects and dependencies in a subdirectory because
3710   # it helps to detect inapplicable dependency modes.  For instance
3711   # both Tru64's cc and ICC support -MD to output dependencies as a
3712   # side effect of compilation, but ICC will put the dependencies in
3713   # the current directory while Tru64 will put them in the object
3714   # directory.
3715   mkdir sub
3716
3717   am_cv_CC_dependencies_compiler_type=none
3718   if test "$am_compiler_list" = ""; then
3719      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720   fi
3721   for depmode in $am_compiler_list; do
3722     # Setup a source with many dependencies, because some compilers
3723     # like to wrap large dependency lists on column 80 (with \), and
3724     # we should not choose a depcomp mode which is confused by this.
3725     #
3726     # We need to recreate these files for each test, as the compiler may
3727     # overwrite some of them when testing with obscure command lines.
3728     # This happens at least with the AIX C compiler.
3729     : > sub/conftest.c
3730     for i in 1 2 3 4 5 6; do
3731       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3732       : > sub/conftst$i.h
3733     done
3734     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3735
3736     case $depmode in
3737     nosideeffect)
3738       # after this tag, mechanisms are not by side-effect, so they'll
3739       # only be used when explicitly requested
3740       if test "x$enable_dependency_tracking" = xyes; then
3741         continue
3742       else
3743         break
3744       fi
3745       ;;
3746     none) break ;;
3747     esac
3748     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3749     # mode.  It turns out that the SunPro C++ compiler does not properly
3750     # handle `-M -o', and we need to detect this.
3751     if depmode=$depmode \
3752        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3753        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3754        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3755          >/dev/null 2>conftest.err &&
3756        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3758        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759       # icc doesn't choke on unknown options, it will just issue warnings
3760       # (even with -Werror).  So we grep stderr for any message
3761       # that says an option was ignored.
3762       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3763         am_cv_CC_dependencies_compiler_type=$depmode
3764         break
3765       fi
3766     fi
3767   done
3768
3769   cd ..
3770   rm -rf conftest.dir
3771 else
3772   am_cv_CC_dependencies_compiler_type=none
3773 fi
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3777 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3779
3780
3781
3782 if
3783   test "x$enable_dependency_tracking" != xno \
3784   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785   am__fastdepCC_TRUE=
3786   am__fastdepCC_FALSE='#'
3787 else
3788   am__fastdepCC_TRUE='#'
3789   am__fastdepCC_FALSE=
3790 fi
3791
3792
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3800 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3801 # On Suns, sometimes $CPP names a directory.
3802 if test -n "$CPP" && test -d "$CPP"; then
3803   CPP=
3804 fi
3805 if test -z "$CPP"; then
3806   if test "${ac_cv_prog_CPP+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809       # Double quotes because CPP needs to be expanded
3810     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3811     do
3812       ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3814 do
3815   # Use a header file that comes with gcc, so configuring glibc
3816   # with a fresh cross-compiler works.
3817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818   # <limits.h> exists even on freestanding compilers.
3819   # On the NeXT, cc -E runs the code through the compiler's parser,
3820   # not just through cpp. "Syntax error" is here to catch this case.
3821   cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h.  */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h.  */
3827 #ifdef __STDC__
3828 # include <limits.h>
3829 #else
3830 # include <assert.h>
3831 #endif
3832                      Syntax error
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836   ac_status=$?
3837   grep -v '^ *+' conftest.er1 >conftest.err
3838   rm -f conftest.er1
3839   cat conftest.err >&5
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } >/dev/null; then
3842   if test -s conftest.err; then
3843     ac_cpp_err=$ac_c_preproc_warn_flag
3844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845   else
3846     ac_cpp_err=
3847   fi
3848 else
3849   ac_cpp_err=yes
3850 fi
3851 if test -z "$ac_cpp_err"; then
3852   :
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857   # Broken: fails on valid input.
3858 continue
3859 fi
3860 rm -f conftest.err conftest.$ac_ext
3861
3862   # OK, works on sane cases.  Now check whether non-existent headers
3863   # can be detected and how.
3864   cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870 #include <ac_nonexistent.h>
3871 _ACEOF
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } >/dev/null; then
3880   if test -s conftest.err; then
3881     ac_cpp_err=$ac_c_preproc_warn_flag
3882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883   else
3884     ac_cpp_err=
3885   fi
3886 else
3887   ac_cpp_err=yes
3888 fi
3889 if test -z "$ac_cpp_err"; then
3890   # Broken: success on invalid input.
3891 continue
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3899 fi
3900 rm -f conftest.err conftest.$ac_ext
3901
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3906   break
3907 fi
3908
3909     done
3910     ac_cv_prog_CPP=$CPP
3911
3912 fi
3913   CPP=$ac_cv_prog_CPP
3914 else
3915   ac_cv_prog_CPP=$CPP
3916 fi
3917 echo "$as_me:$LINENO: result: $CPP" >&5
3918 echo "${ECHO_T}$CPP" >&6
3919 ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922   # Use a header file that comes with gcc, so configuring glibc
3923   # with a fresh cross-compiler works.
3924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925   # <limits.h> exists even on freestanding compilers.
3926   # On the NeXT, cc -E runs the code through the compiler's parser,
3927   # not just through cpp. "Syntax error" is here to catch this case.
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #ifdef __STDC__
3935 # include <limits.h>
3936 #else
3937 # include <assert.h>
3938 #endif
3939                      Syntax error
3940 _ACEOF
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } >/dev/null; then
3949   if test -s conftest.err; then
3950     ac_cpp_err=$ac_c_preproc_warn_flag
3951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952   else
3953     ac_cpp_err=
3954   fi
3955 else
3956   ac_cpp_err=yes
3957 fi
3958 if test -z "$ac_cpp_err"; then
3959   :
3960 else
3961   echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964   # Broken: fails on valid input.
3965 continue
3966 fi
3967 rm -f conftest.err conftest.$ac_ext
3968
3969   # OK, works on sane cases.  Now check whether non-existent headers
3970   # can be detected and how.
3971   cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } >/dev/null; then
3987   if test -s conftest.err; then
3988     ac_cpp_err=$ac_c_preproc_warn_flag
3989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990   else
3991     ac_cpp_err=
3992   fi
3993 else
3994   ac_cpp_err=yes
3995 fi
3996 if test -z "$ac_cpp_err"; then
3997   # Broken: success on invalid input.
3998 continue
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003   # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4006 fi
4007 rm -f conftest.err conftest.$ac_ext
4008
4009 done
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then
4013   :
4014 else
4015   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details." >&5
4017 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4018 See \`config.log' for more details." >&2;}
4019    { (exit 1); exit 1; }; }
4020 fi
4021
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028
4029 echo "$as_me:$LINENO: checking for egrep" >&5
4030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4031 if test "${ac_cv_prog_egrep+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4035     then ac_cv_prog_egrep='grep -E'
4036     else ac_cv_prog_egrep='egrep'
4037     fi
4038 fi
4039 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4040 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4041  EGREP=$ac_cv_prog_egrep
4042
4043
4044 if test $ac_cv_c_compiler_gnu = yes; then
4045     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4046 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4047 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050     ac_pattern="Autoconf.*'x'"
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #include <sgtty.h>
4058 Autoconf TIOCGETP
4059 _ACEOF
4060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4062   ac_cv_prog_gcc_traditional=yes
4063 else
4064   ac_cv_prog_gcc_traditional=no
4065 fi
4066 rm -f conftest*
4067
4068
4069   if test $ac_cv_prog_gcc_traditional = no; then
4070     cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076 #include <termio.h>
4077 Autoconf TCGETA
4078 _ACEOF
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4081   ac_cv_prog_gcc_traditional=yes
4082 fi
4083 rm -f conftest*
4084
4085   fi
4086 fi
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4088 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4089   if test $ac_cv_prog_gcc_traditional = yes; then
4090     CC="$CC -traditional"
4091   fi
4092 fi
4093
4094 # Find a good install program.  We prefer a C program (faster),
4095 # so one script is as good as another.  But avoid the broken or
4096 # incompatible versions:
4097 # SysV /etc/install, /usr/sbin/install
4098 # SunOS /usr/etc/install
4099 # IRIX /sbin/install
4100 # AIX /bin/install
4101 # AmigaOS /C/install, which installs bootblocks on floppy discs
4102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105 # OS/2's system install, which has a completely different semantic
4106 # ./install, which can be erroneously created by make from ./install.sh.
4107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4109 if test -z "$INSTALL"; then
4110 if test "${ac_cv_path_install+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   # Account for people who put trailing slashes in PATH elements.
4119 case $as_dir/ in
4120   ./ | .// | /cC/* | \
4121   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4123   /usr/ucb/* ) ;;
4124   *)
4125     # OSF1 and SCO ODT 3.0 have their own names for install.
4126     # Don't use installbsd from OSF since it installs stuff as root
4127     # by default.
4128     for ac_prog in ginstall scoinst install; do
4129       for ac_exec_ext in '' $ac_executable_extensions; do
4130         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4131           if test $ac_prog = install &&
4132             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133             # AIX install.  It has an incompatible calling convention.
4134             :
4135           elif test $ac_prog = install &&
4136             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137             # program-specific install script used by HP pwplus--don't use.
4138             :
4139           else
4140             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141             break 3
4142           fi
4143         fi
4144       done
4145     done
4146     ;;
4147 esac
4148 done
4149
4150
4151 fi
4152   if test "${ac_cv_path_install+set}" = set; then
4153     INSTALL=$ac_cv_path_install
4154   else
4155     # As a last resort, use the slow shell script.  We don't cache a
4156     # path for INSTALL within a source directory, because that will
4157     # break other packages using the cache if that directory is
4158     # removed, or if the path is relative.
4159     INSTALL=$ac_install_sh
4160   fi
4161 fi
4162 echo "$as_me:$LINENO: result: $INSTALL" >&5
4163 echo "${ECHO_T}$INSTALL" >&6
4164
4165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4166 # It thinks the first close brace ends the variable substitution.
4167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4168
4169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4170
4171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4172
4173 for ac_prog in gawk mawk nawk awk
4174 do
4175   # Extract the first word of "$ac_prog", so it can be a program name with args.
4176 set dummy $ac_prog; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_AWK+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$AWK"; then
4183   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_AWK="$ac_prog"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198
4199 fi
4200 fi
4201 AWK=$ac_cv_prog_AWK
4202 if test -n "$AWK"; then
4203   echo "$as_me:$LINENO: result: $AWK" >&5
4204 echo "${ECHO_T}$AWK" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210   test -n "$AWK" && break
4211 done
4212
4213 if test -n "$ac_tool_prefix"; then
4214   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_RANLIB+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$RANLIB"; then
4222   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 RANLIB=$ac_cv_prog_RANLIB
4241 if test -n "$RANLIB"; then
4242   echo "$as_me:$LINENO: result: $RANLIB" >&5
4243 echo "${ECHO_T}$RANLIB" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249 fi
4250 if test -z "$ac_cv_prog_RANLIB"; then
4251   ac_ct_RANLIB=$RANLIB
4252   # Extract the first word of "ranlib", so it can be a program name with args.
4253 set dummy ranlib; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   if test -n "$ac_ct_RANLIB"; then
4260   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267   for ac_exec_ext in '' $ac_executable_extensions; do
4268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269     ac_cv_prog_ac_ct_RANLIB="ranlib"
4270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271     break 2
4272   fi
4273 done
4274 done
4275
4276   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4277 fi
4278 fi
4279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4280 if test -n "$ac_ct_RANLIB"; then
4281   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4283 else
4284   echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4286 fi
4287
4288   RANLIB=$ac_ct_RANLIB
4289 else
4290   RANLIB="$ac_cv_prog_RANLIB"
4291 fi
4292
4293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4295 LN_S=$as_ln_s
4296 if test "$LN_S" = "ln -s"; then
4297   echo "$as_me:$LINENO: result: yes" >&5
4298 echo "${ECHO_T}yes" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4301 echo "${ECHO_T}no, using $LN_S" >&6
4302 fi
4303
4304 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4305 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
4306 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4307 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   cat > conftest.$ac_ext <<EOF
4311 int main() {return 0;}
4312 EOF
4313 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4314     if test -s conftest.out; then
4315         eval "timidity_cv_ccoption_$ac_ccoption=no"
4316     else
4317         eval "timidity_cv_ccoption_$ac_ccoption=yes"
4318     fi
4319 else
4320     eval "timidity_cv_ccoption_$ac_ccoption=no"
4321 fi
4322
4323 fi
4324
4325 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4326   echo "$as_me:$LINENO: result: yes" >&5
4327 echo "${ECHO_T}yes" >&6
4328
4329 else
4330   echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332
4333 fi
4334
4335
4336 # Checks for target dependencies
4337
4338
4339 # Check whether --with-elf or --without-elf was given.
4340 if test "${with_elf+set}" = set; then
4341   withval="$with_elf"
4342    ELFFORMAT=$withval
4343 else
4344    ELFFORMAT="yes"
4345 fi;
4346
4347 # AC_ARG_WITH(simd,
4348 #  [  --with-simd             create SIMD friendly binary (default is no) ],
4349 #  [ SIMD=$withval ], [ SIMD="no" ])
4350
4351 case "$target" in
4352   *-*-hpux*)
4353     EXTRADEFS="-DHPUX"
4354     test -n "$SHLD" || SHLD="ld -b"
4355     so="sl"
4356     ;;
4357   *-sgi-irix*)
4358         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4359     test -n "$SHLD" || SHLD="cc -shared -all"
4360     so="so"
4361     ;;
4362   *-*-netbsd*)
4363     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4364     so="so"
4365     ;;
4366
4367   *-*-freebsd2*)
4368         test -n "$SHLD" || SHLD="ld -Bshareable"
4369     so="so"
4370     ;;
4371   *-*-freebsd*)
4372     if test "$ELFFORMAT" = yes; then
4373         test -n "$SHLD" || SHLD="ld -Bshareable"
4374     else
4375         SHCFLAGS=-aou
4376         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4377         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4378     fi
4379         so="so"
4380     ;;
4381
4382 #  *-*-freebsd*)
4383 #    EXTRALIBS="$EXTRALIBS -lxpg4"
4384 #    test -n "$SHLD" || SHLD="ld -Bshareable"
4385 #    so="so"
4386 #  ;;
4387
4388   *-*-cygwin*|*-*-mingw*)
4389     EXTRADEFS="-D__W32__"
4390     # ??
4391     case "x${CC} " in
4392       "xbcc32 "*)
4393 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
4394         test -n "$SHLD" || SHLD="BCC32 -WD"
4395         BORLANDC=yes
4396         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4397         BORLANDC_START='C0X32.OBJ'
4398         CFLAGS="$CFLAGS  -tWM -VM"
4399         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4400         ;;
4401       "xwcc386_w.sh "*)
4402          WATCOM_C=yes
4403          CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4404          DLLFLAG=" "
4405          WATCOM_LDFLAGS=
4406          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4407          ;;
4408       "xcl "*)
4409          test -n "$SHLD" || SHLD="link -dll"
4410          VCPP=yes
4411          case " $CFLAGS " in
4412            *" -MT "*)  NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4413            *" -MD "*)  NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4414            *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4415            *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4416            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4417          esac
4418          VCPP_LDFLAGS="-nologo -incremental:no  $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4419          CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX  -Ob2"
4420          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
4421          ;;
4422       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4423       *) test -n "$SHLD" || SHLD="unknown" ;;
4424     esac
4425     so="dll"
4426     MSYS=yes
4427     lib_user32_test=-luser32
4428     ;;
4429   *-dec-*)
4430     EXTRADEFS="-DDEC"
4431     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4432     so="so"
4433     ;;
4434   *-*-solaris*)
4435     EXTRADEFS="-DSOLARIS"
4436     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4437     so="so"
4438     ;;
4439   *-*-nextstep*)
4440     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4441     so="so"
4442     ;;
4443   *-*-darwin*)
4444     if test "x$SIMD" = "xyes"; then
4445
4446 cat >>confdefs.h <<\_ACEOF
4447 #define USE_ALTIVEC 1
4448 _ACEOF
4449
4450        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4451        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4452     else
4453
4454 cat >>confdefs.h <<\_ACEOF
4455 #define USE_ALTIVEC 0
4456 _ACEOF
4457
4458     fi
4459     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4460     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4461     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4462     so="bundle"
4463     ;;
4464   *)
4465     test -n "$SHLD" || \
4466       if test "x$GCC" = xyes; then
4467         SHLD="$CC -shared"
4468       else
4469         SHLD="ld -Bdynamic -G"
4470       fi
4471     so="so"
4472     ;;
4473 esac
4474
4475
4476 # Checks for libraries.
4477
4478 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4479 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4480 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lm  $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491
4492 /* Override any gcc2 internal prototype to avoid an error.  */
4493 #ifdef __cplusplus
4494 extern "C"
4495 #endif
4496 /* We use char because int might match the return type of a gcc2
4497    builtin and then its argument prototype would still apply.  */
4498 char sqrt ();
4499 int
4500 main ()
4501 {
4502 sqrt ();
4503   ;
4504   return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509   (eval $ac_link) 2>conftest.er1
4510   ac_status=$?
4511   grep -v '^ *+' conftest.er1 >conftest.err
4512   rm -f conftest.er1
4513   cat conftest.err >&5
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } &&
4516          { ac_try='test -z "$ac_c_werror_flag"
4517                          || test ! -s conftest.err'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest$ac_exeext'
4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525   (eval $ac_try) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; }; then
4529   ac_cv_lib_m_sqrt=yes
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_cv_lib_m_sqrt=no
4535 fi
4536 rm -f conftest.err conftest.$ac_objext \
4537       conftest$ac_exeext conftest.$ac_ext
4538 LIBS=$ac_check_lib_save_LIBS
4539 fi
4540 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4541 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4542 if test $ac_cv_lib_m_sqrt = yes; then
4543   cat >>confdefs.h <<_ACEOF
4544 #define HAVE_LIBM 1
4545 _ACEOF
4546
4547   LIBS="-lm $LIBS"
4548
4549 fi
4550
4551
4552 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4553 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4554 if test "${ac_cv_lib_socket_socket+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   ac_check_lib_save_LIBS=$LIBS
4558 LIBS="-lsocket  $LIBS"
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565
4566 /* Override any gcc2 internal prototype to avoid an error.  */
4567 #ifdef __cplusplus
4568 extern "C"
4569 #endif
4570 /* We use char because int might match the return type of a gcc2
4571    builtin and then its argument prototype would still apply.  */
4572 char socket ();
4573 int
4574 main ()
4575 {
4576 socket ();
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583   (eval $ac_link) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -z "$ac_c_werror_flag"
4591                          || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest$ac_exeext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_lib_socket_socket=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 ac_cv_lib_socket_socket=no
4609 fi
4610 rm -f conftest.err conftest.$ac_objext \
4611       conftest$ac_exeext conftest.$ac_ext
4612 LIBS=$ac_check_lib_save_LIBS
4613 fi
4614 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4615 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4616 if test $ac_cv_lib_socket_socket = yes; then
4617   cat >>confdefs.h <<_ACEOF
4618 #define HAVE_LIBSOCKET 1
4619 _ACEOF
4620
4621   LIBS="-lsocket $LIBS"
4622
4623 fi
4624
4625 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4626 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   ac_check_lib_save_LIBS=$LIBS
4631 LIBS="-ldl  $LIBS"
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638
4639 /* Override any gcc2 internal prototype to avoid an error.  */
4640 #ifdef __cplusplus
4641 extern "C"
4642 #endif
4643 /* We use char because int might match the return type of a gcc2
4644    builtin and then its argument prototype would still apply.  */
4645 char dlopen ();
4646 int
4647 main ()
4648 {
4649 dlopen ();
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656   (eval $ac_link) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_cv_lib_dl_dlopen=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_cv_lib_dl_dlopen=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext \
4684       conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4686 fi
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4689 if test $ac_cv_lib_dl_dlopen = yes; then
4690   lib_dl_opt=-ldl
4691 fi
4692
4693 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4694 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4695 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   ac_check_lib_save_LIBS=$LIBS
4699 LIBS="-lobjc  $LIBS"
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 /* Override any gcc2 internal prototype to avoid an error.  */
4708 #ifdef __cplusplus
4709 extern "C"
4710 #endif
4711 /* We use char because int might match the return type of a gcc2
4712    builtin and then its argument prototype would still apply.  */
4713 char NSLinkModule ();
4714 int
4715 main ()
4716 {
4717 NSLinkModule ();
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724   (eval $ac_link) 2>conftest.er1
4725   ac_status=$?
4726   grep -v '^ *+' conftest.er1 >conftest.err
4727   rm -f conftest.er1
4728   cat conftest.err >&5
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          { ac_try='test -z "$ac_c_werror_flag"
4732                          || test ! -s conftest.err'
4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734   (eval $ac_try) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }; } &&
4738          { ac_try='test -s conftest$ac_exeext'
4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740   (eval $ac_try) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   ac_cv_lib_objc_NSLinkModule=yes
4745 else
4746   echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ac_cv_lib_objc_NSLinkModule=no
4750 fi
4751 rm -f conftest.err conftest.$ac_objext \
4752       conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4756 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4757 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4758   lib_dl_opt=-lobjc
4759 fi
4760  # Mac OS X need this.
4761 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4762
4763 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4764 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4765 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   ac_check_lib_save_LIBS=$LIBS
4769 LIBS="-lxpg4  $LIBS"
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776
4777 /* Override any gcc2 internal prototype to avoid an error.  */
4778 #ifdef __cplusplus
4779 extern "C"
4780 #endif
4781 /* We use char because int might match the return type of a gcc2
4782    builtin and then its argument prototype would still apply.  */
4783 char setlocale ();
4784 int
4785 main ()
4786 {
4787 setlocale ();
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794   (eval $ac_link) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_c_werror_flag"
4802                          || test ! -s conftest.err'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest$ac_exeext'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   ac_cv_lib_xpg4_setlocale=yes
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 ac_cv_lib_xpg4_setlocale=no
4820 fi
4821 rm -f conftest.err conftest.$ac_objext \
4822       conftest$ac_exeext conftest.$ac_ext
4823 LIBS=$ac_check_lib_save_LIBS
4824 fi
4825 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4826 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4827 if test $ac_cv_lib_xpg4_setlocale = yes; then
4828   cat >>confdefs.h <<_ACEOF
4829 #define HAVE_LIBXPG4 1
4830 _ACEOF
4831
4832   LIBS="-lxpg4 $LIBS"
4833
4834 fi
4835  # Mac OS X (and maybe NetBSD) need this.
4836 fi
4837
4838 for ac_func in gethostbyname
4839 do
4840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4841 echo "$as_me:$LINENO: checking for $ac_func" >&5
4842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4843 if eval "test \"\${$as_ac_var+set}\" = set"; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4854 #define $ac_func innocuous_$ac_func
4855
4856 /* System header to define __stub macros and hopefully few prototypes,
4857     which can conflict with char $ac_func (); below.
4858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859     <limits.h> exists even on freestanding compilers.  */
4860
4861 #ifdef __STDC__
4862 # include <limits.h>
4863 #else
4864 # include <assert.h>
4865 #endif
4866
4867 #undef $ac_func
4868
4869 /* Override any gcc2 internal prototype to avoid an error.  */
4870 #ifdef __cplusplus
4871 extern "C"
4872 {
4873 #endif
4874 /* We use char because int might match the return type of a gcc2
4875    builtin and then its argument prototype would still apply.  */
4876 char $ac_func ();
4877 /* The GNU C library defines this for functions which it implements
4878     to always fail with ENOSYS.  Some functions are actually named
4879     something starting with __ and the normal name is an alias.  */
4880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4881 choke me
4882 #else
4883 char (*f) () = $ac_func;
4884 #endif
4885 #ifdef __cplusplus
4886 }
4887 #endif
4888
4889 int
4890 main ()
4891 {
4892 return f != $ac_func;
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899   (eval $ac_link) 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -z "$ac_c_werror_flag"
4907                          || test ! -s conftest.err'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; } &&
4913          { ac_try='test -s conftest$ac_exeext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   eval "$as_ac_var=yes"
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 eval "$as_ac_var=no"
4925 fi
4926 rm -f conftest.err conftest.$ac_objext \
4927       conftest$ac_exeext conftest.$ac_ext
4928 fi
4929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4931 if test `eval echo '${'$as_ac_var'}'` = yes; then
4932   cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4934 _ACEOF
4935
4936 else
4937
4938 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   ac_check_lib_save_LIBS=$LIBS
4944 LIBS="-lnsl  $LIBS"
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951
4952 /* Override any gcc2 internal prototype to avoid an error.  */
4953 #ifdef __cplusplus
4954 extern "C"
4955 #endif
4956 /* We use char because int might match the return type of a gcc2
4957    builtin and then its argument prototype would still apply.  */
4958 char gethostbyname ();
4959 int
4960 main ()
4961 {
4962 gethostbyname ();
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969   (eval $ac_link) 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -z "$ac_c_werror_flag"
4977                          || test ! -s conftest.err'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; } &&
4983          { ac_try='test -s conftest$ac_exeext'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; }; then
4989   ac_cv_lib_nsl_gethostbyname=yes
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 ac_cv_lib_nsl_gethostbyname=no
4995 fi
4996 rm -f conftest.err conftest.$ac_objext \
4997       conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
4999 fi
5000 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5001 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5002 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5003   cat >>confdefs.h <<_ACEOF
5004 #define HAVE_LIBNSL 1
5005 _ACEOF
5006
5007   LIBS="-lnsl $LIBS"
5008
5009 fi
5010
5011 fi
5012 done
5013
5014 echo "$as_me:$LINENO: checking for X" >&5
5015 echo $ECHO_N "checking for X... $ECHO_C" >&6
5016
5017
5018 # Check whether --with-x or --without-x was given.
5019 if test "${with_x+set}" = set; then
5020   withval="$with_x"
5021
5022 fi;
5023 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5024 if test "x$with_x" = xno; then
5025   # The user explicitly disabled X.
5026   have_x=disabled
5027 else
5028   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5029     # Both variables are already set.
5030     have_x=yes
5031   else
5032     if test "${ac_cv_have_x+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   # One or both of the vars are not set, and there is no cached value.
5036 ac_x_includes=no ac_x_libraries=no
5037 rm -fr conftest.dir
5038 if mkdir conftest.dir; then
5039   cd conftest.dir
5040   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5041   cat >Imakefile <<'_ACEOF'
5042 acfindx:
5043         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5044 _ACEOF
5045   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5046     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5047     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5048     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5049     for ac_extension in a so sl; do
5050       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5051          test -f $ac_im_libdir/libX11.$ac_extension; then
5052         ac_im_usrlibdir=$ac_im_libdir; break
5053       fi
5054     done
5055     # Screen out bogus values from the imake configuration.  They are
5056     # bogus both because they are the default anyway, and because
5057     # using them would break gcc on systems where it needs fixed includes.
5058     case $ac_im_incroot in
5059         /usr/include) ;;
5060         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5061     esac
5062     case $ac_im_usrlibdir in
5063         /usr/lib | /lib) ;;
5064         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5065     esac
5066   fi
5067   cd ..
5068   rm -fr conftest.dir
5069 fi
5070
5071 # Standard set of common directories for X headers.
5072 # Check X11 before X11Rn because it is often a symlink to the current release.
5073 ac_x_header_dirs='
5074 /usr/X11/include
5075 /usr/X11R6/include
5076 /usr/X11R5/include
5077 /usr/X11R4/include
5078
5079 /usr/include/X11
5080 /usr/include/X11R6
5081 /usr/include/X11R5
5082 /usr/include/X11R4
5083
5084 /usr/local/X11/include
5085 /usr/local/X11R6/include
5086 /usr/local/X11R5/include
5087 /usr/local/X11R4/include
5088
5089 /usr/local/include/X11
5090 /usr/local/include/X11R6
5091 /usr/local/include/X11R5
5092 /usr/local/include/X11R4
5093
5094 /usr/X386/include
5095 /usr/x386/include
5096 /usr/XFree86/include/X11
5097
5098 /usr/include
5099 /usr/local/include
5100 /usr/unsupported/include
5101 /usr/athena/include
5102 /usr/local/x11r5/include
5103 /usr/lpp/Xamples/include
5104
5105 /usr/openwin/include
5106 /usr/openwin/share/include'
5107
5108 if test "$ac_x_includes" = no; then
5109   # Guess where to find include files, by looking for Intrinsic.h.
5110   # First, try using that file with no special directory specified.
5111   cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 #include <X11/Intrinsic.h>
5118 _ACEOF
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } >/dev/null; then
5127   if test -s conftest.err; then
5128     ac_cpp_err=$ac_c_preproc_warn_flag
5129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130   else
5131     ac_cpp_err=
5132   fi
5133 else
5134   ac_cpp_err=yes
5135 fi
5136 if test -z "$ac_cpp_err"; then
5137   # We can compile using X headers with no special include directory.
5138 ac_x_includes=
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143   for ac_dir in $ac_x_header_dirs; do
5144   if test -r "$ac_dir/X11/Intrinsic.h"; then
5145     ac_x_includes=$ac_dir
5146     break
5147   fi
5148 done
5149 fi
5150 rm -f conftest.err conftest.$ac_ext
5151 fi # $ac_x_includes = no
5152
5153 if test "$ac_x_libraries" = no; then
5154   # Check for the libraries.
5155   # See if we find them without any special options.
5156   # Don't add to $LIBS permanently.
5157   ac_save_LIBS=$LIBS
5158   LIBS="-lXt $LIBS"
5159   cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165 #include <X11/Intrinsic.h>
5166 int
5167 main ()
5168 {
5169 XtMalloc (0)
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176   (eval $ac_link) 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } &&
5183          { ac_try='test -z "$ac_c_werror_flag"
5184                          || test ! -s conftest.err'
5185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186   (eval $ac_try) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; } &&
5190          { ac_try='test -s conftest$ac_exeext'
5191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192   (eval $ac_try) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }; }; then
5196   LIBS=$ac_save_LIBS
5197 # We can link X programs with no special library path.
5198 ac_x_libraries=
5199 else
5200   echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 LIBS=$ac_save_LIBS
5204 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5205 do
5206   # Don't even attempt the hair of trying to link an X program!
5207   for ac_extension in a so sl; do
5208     if test -r $ac_dir/libXt.$ac_extension; then
5209       ac_x_libraries=$ac_dir
5210       break 2
5211     fi
5212   done
5213 done
5214 fi
5215 rm -f conftest.err conftest.$ac_objext \
5216       conftest$ac_exeext conftest.$ac_ext
5217 fi # $ac_x_libraries = no
5218
5219 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5220   # Didn't find X anywhere.  Cache the known absence of X.
5221   ac_cv_have_x="have_x=no"
5222 else
5223   # Record where we found X for the cache.
5224   ac_cv_have_x="have_x=yes \
5225                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5226 fi
5227 fi
5228
5229   fi
5230   eval "$ac_cv_have_x"
5231 fi # $with_x != no
5232
5233 if test "$have_x" != yes; then
5234   echo "$as_me:$LINENO: result: $have_x" >&5
5235 echo "${ECHO_T}$have_x" >&6
5236   no_x=yes
5237 else
5238   # If each of the values was on the command line, it overrides each guess.
5239   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5240   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5241   # Update the cache value to reflect the command line values.
5242   ac_cv_have_x="have_x=yes \
5243                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5244   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5245 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5246 fi
5247
5248 if test "$no_x" = yes; then
5249   # Not all programs may use this symbol, but it does not hurt to define it.
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define X_DISPLAY_MISSING 1
5253 _ACEOF
5254
5255   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5256 else
5257   if test -n "$x_includes"; then
5258     X_CFLAGS="$X_CFLAGS -I$x_includes"
5259   fi
5260
5261   # It would also be nice to do this for all -L options, not just this one.
5262   if test -n "$x_libraries"; then
5263     X_LIBS="$X_LIBS -L$x_libraries"
5264     # For Solaris; some versions of Sun CC require a space after -R and
5265     # others require no space.  Words are not sufficient . . . .
5266     case `(uname -sr) 2>/dev/null` in
5267     "SunOS 5"*)
5268       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5269 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5270       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5271       cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277
5278 int
5279 main ()
5280 {
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288   (eval $ac_link) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"
5296                          || test ! -s conftest.err'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; } &&
5302          { ac_try='test -s conftest$ac_exeext'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   ac_R_nospace=yes
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_R_nospace=no
5314 fi
5315 rm -f conftest.err conftest.$ac_objext \
5316       conftest$ac_exeext conftest.$ac_ext
5317       if test $ac_R_nospace = yes; then
5318         echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320         X_LIBS="$X_LIBS -R$x_libraries"
5321       else
5322         LIBS="$ac_xsave_LIBS -R $x_libraries"
5323         cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340   (eval $ac_link) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag"
5348                          || test ! -s conftest.err'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; } &&
5354          { ac_try='test -s conftest$ac_exeext'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   ac_R_space=yes
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_R_space=no
5366 fi
5367 rm -f conftest.err conftest.$ac_objext \
5368       conftest$ac_exeext conftest.$ac_ext
5369         if test $ac_R_space = yes; then
5370           echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372           X_LIBS="$X_LIBS -R $x_libraries"
5373         else
5374           echo "$as_me:$LINENO: result: neither works" >&5
5375 echo "${ECHO_T}neither works" >&6
5376         fi
5377       fi
5378       LIBS=$ac_xsave_LIBS
5379     esac
5380   fi
5381
5382   # Check for system-dependent libraries X programs must link with.
5383   # Do this before checking for the system-independent R6 libraries
5384   # (-lICE), since we may need -lsocket or whatever for X linking.
5385
5386   if test "$ISC" = yes; then
5387     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5388   else
5389     # Martyn Johnson says this is needed for Ultrix, if the X
5390     # libraries were built with DECnet support.  And Karl Berry says
5391     # the Alpha needs dnet_stub (dnet does not exist).
5392     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5393     cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399
5400 /* Override any gcc2 internal prototype to avoid an error.  */
5401 #ifdef __cplusplus
5402 extern "C"
5403 #endif
5404 /* We use char because int might match the return type of a gcc2
5405    builtin and then its argument prototype would still apply.  */
5406 char XOpenDisplay ();
5407 int
5408 main ()
5409 {
5410 XOpenDisplay ();
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext conftest$ac_exeext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5417   (eval $ac_link) 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } &&
5424          { ac_try='test -z "$ac_c_werror_flag"
5425                          || test ! -s conftest.err'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; } &&
5431          { ac_try='test -s conftest$ac_exeext'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; }; then
5437   :
5438 else
5439   echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5443 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5444 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   ac_check_lib_save_LIBS=$LIBS
5448 LIBS="-ldnet  $LIBS"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455
5456 /* Override any gcc2 internal prototype to avoid an error.  */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461    builtin and then its argument prototype would still apply.  */
5462 char dnet_ntoa ();
5463 int
5464 main ()
5465 {
5466 dnet_ntoa ();
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>conftest.er1
5474   ac_status=$?
5475   grep -v '^ *+' conftest.er1 >conftest.err
5476   rm -f conftest.er1
5477   cat conftest.err >&5
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } &&
5480          { ac_try='test -z "$ac_c_werror_flag"
5481                          || test ! -s conftest.err'
5482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483   (eval $ac_try) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }; } &&
5487          { ac_try='test -s conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_lib_dnet_dnet_ntoa=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_cv_lib_dnet_dnet_ntoa=no
5499 fi
5500 rm -f conftest.err conftest.$ac_objext \
5501       conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5503 fi
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5505 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5506 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5507   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5508 fi
5509
5510     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5511       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5512 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5513 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-ldnet_stub  $LIBS"
5518 cat >conftest.$ac_ext <<_ACEOF
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 dnet_ntoa ();
5532 int
5533 main ()
5534 {
5535 dnet_ntoa ();
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>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -z "$ac_c_werror_flag"
5550                          || test ! -s conftest.err'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; } &&
5556          { ac_try='test -s conftest$ac_exeext'
5557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558   (eval $ac_try) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 ac_cv_lib_dnet_stub_dnet_ntoa=no
5568 fi
5569 rm -f conftest.err conftest.$ac_objext \
5570       conftest$ac_exeext conftest.$ac_ext
5571 LIBS=$ac_check_lib_save_LIBS
5572 fi
5573 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5574 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5575 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5576   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5577 fi
5578
5579     fi
5580 fi
5581 rm -f conftest.err conftest.$ac_objext \
5582       conftest$ac_exeext conftest.$ac_ext
5583     LIBS="$ac_xsave_LIBS"
5584
5585     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5586     # to get the SysV transport functions.
5587     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5588     # needs -lnsl.
5589     # The nsl library prevents programs from opening the X display
5590     # on Irix 5.2, according to T.E. Dickey.
5591     # The functions gethostbyname, getservbyname, and inet_addr are
5592     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5593     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5594 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5595 if test "${ac_cv_func_gethostbyname+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5606 #define gethostbyname innocuous_gethostbyname
5607
5608 /* System header to define __stub macros and hopefully few prototypes,
5609     which can conflict with char gethostbyname (); below.
5610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611     <limits.h> exists even on freestanding compilers.  */
5612
5613 #ifdef __STDC__
5614 # include <limits.h>
5615 #else
5616 # include <assert.h>
5617 #endif
5618
5619 #undef gethostbyname
5620
5621 /* Override any gcc2 internal prototype to avoid an error.  */
5622 #ifdef __cplusplus
5623 extern "C"
5624 {
5625 #endif
5626 /* We use char because int might match the return type of a gcc2
5627    builtin and then its argument prototype would still apply.  */
5628 char gethostbyname ();
5629 /* The GNU C library defines this for functions which it implements
5630     to always fail with ENOSYS.  Some functions are actually named
5631     something starting with __ and the normal name is an alias.  */
5632 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5633 choke me
5634 #else
5635 char (*f) () = gethostbyname;
5636 #endif
5637 #ifdef __cplusplus
5638 }
5639 #endif
5640
5641 int
5642 main ()
5643 {
5644 return f != gethostbyname;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 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_func_gethostbyname=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_func_gethostbyname=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext \
5679       conftest$ac_exeext conftest.$ac_ext
5680 fi
5681 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5682 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5683
5684     if test $ac_cv_func_gethostbyname = no; then
5685       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5686 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5687 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lnsl  $LIBS"
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698
5699 /* Override any gcc2 internal prototype to avoid an error.  */
5700 #ifdef __cplusplus
5701 extern "C"
5702 #endif
5703 /* We use char because int might match the return type of a gcc2
5704    builtin and then its argument prototype would still apply.  */
5705 char gethostbyname ();
5706 int
5707 main ()
5708 {
5709 gethostbyname ();
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext conftest$ac_exeext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716   (eval $ac_link) 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -z "$ac_c_werror_flag"
5724                          || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest$ac_exeext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_cv_lib_nsl_gethostbyname=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cv_lib_nsl_gethostbyname=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext \
5744       conftest$ac_exeext conftest.$ac_ext
5745 LIBS=$ac_check_lib_save_LIBS
5746 fi
5747 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5748 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5749 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5750   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5751 fi
5752
5753       if test $ac_cv_lib_nsl_gethostbyname = no; then
5754         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5755 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5756 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lbsd  $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
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 gethostbyname ();
5775 int
5776 main ()
5777 {
5778 gethostbyname ();
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>conftest.er1
5786   ac_status=$?
5787   grep -v '^ *+' conftest.er1 >conftest.err
5788   rm -f conftest.er1
5789   cat conftest.err >&5
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } &&
5792          { ac_try='test -z "$ac_c_werror_flag"
5793                          || test ! -s conftest.err'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; } &&
5799          { ac_try='test -s conftest$ac_exeext'
5800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801   (eval $ac_try) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }; }; then
5805   ac_cv_lib_bsd_gethostbyname=yes
5806 else
5807   echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_cv_lib_bsd_gethostbyname=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext \
5813       conftest$ac_exeext conftest.$ac_ext
5814 LIBS=$ac_check_lib_save_LIBS
5815 fi
5816 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5817 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5818 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5819   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5820 fi
5821
5822       fi
5823     fi
5824
5825     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5826     # socket/setsockopt and other routines are undefined under SCO ODT
5827     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5828     # on later versions), says Simon Leinen: it contains gethostby*
5829     # variants that don't use the name server (or something).  -lsocket
5830     # must be given before -lnsl if both are needed.  We assume that
5831     # if connect needs -lnsl, so does gethostbyname.
5832     echo "$as_me:$LINENO: checking for connect" >&5
5833 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5834 if test "${ac_cv_func_connect+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5845 #define connect innocuous_connect
5846
5847 /* System header to define __stub macros and hopefully few prototypes,
5848     which can conflict with char connect (); below.
5849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850     <limits.h> exists even on freestanding compilers.  */
5851
5852 #ifdef __STDC__
5853 # include <limits.h>
5854 #else
5855 # include <assert.h>
5856 #endif
5857
5858 #undef connect
5859
5860 /* Override any gcc2 internal prototype to avoid an error.  */
5861 #ifdef __cplusplus
5862 extern "C"
5863 {
5864 #endif
5865 /* We use char because int might match the return type of a gcc2
5866    builtin and then its argument prototype would still apply.  */
5867 char connect ();
5868 /* The GNU C library defines this for functions which it implements
5869     to always fail with ENOSYS.  Some functions are actually named
5870     something starting with __ and the normal name is an alias.  */
5871 #if defined (__stub_connect) || defined (__stub___connect)
5872 choke me
5873 #else
5874 char (*f) () = connect;
5875 #endif
5876 #ifdef __cplusplus
5877 }
5878 #endif
5879
5880 int
5881 main ()
5882 {
5883 return f != connect;
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890   (eval $ac_link) 2>conftest.er1
5891   ac_status=$?
5892   grep -v '^ *+' conftest.er1 >conftest.err
5893   rm -f conftest.er1
5894   cat conftest.err >&5
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } &&
5897          { ac_try='test -z "$ac_c_werror_flag"
5898                          || test ! -s conftest.err'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_func_connect=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ac_cv_func_connect=no
5916 fi
5917 rm -f conftest.err conftest.$ac_objext \
5918       conftest$ac_exeext conftest.$ac_ext
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5921 echo "${ECHO_T}$ac_cv_func_connect" >&6
5922
5923     if test $ac_cv_func_connect = no; then
5924       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5925 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5926 if test "${ac_cv_lib_socket_connect+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 /* Override any gcc2 internal prototype to avoid an error.  */
5939 #ifdef __cplusplus
5940 extern "C"
5941 #endif
5942 /* We use char because int might match the return type of a gcc2
5943    builtin and then its argument prototype would still apply.  */
5944 char connect ();
5945 int
5946 main ()
5947 {
5948 connect ();
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955   (eval $ac_link) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_c_werror_flag"
5963                          || test ! -s conftest.err'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest$ac_exeext'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; }; then
5975   ac_cv_lib_socket_connect=yes
5976 else
5977   echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 ac_cv_lib_socket_connect=no
5981 fi
5982 rm -f conftest.err conftest.$ac_objext \
5983       conftest$ac_exeext conftest.$ac_ext
5984 LIBS=$ac_check_lib_save_LIBS
5985 fi
5986 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5987 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5988 if test $ac_cv_lib_socket_connect = yes; then
5989   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5990 fi
5991
5992     fi
5993
5994     # Guillermo Gomez says -lposix is necessary on A/UX.
5995     echo "$as_me:$LINENO: checking for remove" >&5
5996 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5997 if test "${ac_cv_func_remove+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6008 #define remove innocuous_remove
6009
6010 /* System header to define __stub macros and hopefully few prototypes,
6011     which can conflict with char remove (); below.
6012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013     <limits.h> exists even on freestanding compilers.  */
6014
6015 #ifdef __STDC__
6016 # include <limits.h>
6017 #else
6018 # include <assert.h>
6019 #endif
6020
6021 #undef remove
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 {
6027 #endif
6028 /* We use char because int might match the return type of a gcc2
6029    builtin and then its argument prototype would still apply.  */
6030 char remove ();
6031 /* The GNU C library defines this for functions which it implements
6032     to always fail with ENOSYS.  Some functions are actually named
6033     something starting with __ and the normal name is an alias.  */
6034 #if defined (__stub_remove) || defined (__stub___remove)
6035 choke me
6036 #else
6037 char (*f) () = remove;
6038 #endif
6039 #ifdef __cplusplus
6040 }
6041 #endif
6042
6043 int
6044 main ()
6045 {
6046 return f != remove;
6047   ;
6048   return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053   (eval $ac_link) 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } &&
6060          { ac_try='test -z "$ac_c_werror_flag"
6061                          || test ! -s conftest.err'
6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; } &&
6067          { ac_try='test -s conftest$ac_exeext'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; }; then
6073   ac_cv_func_remove=yes
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ac_cv_func_remove=no
6079 fi
6080 rm -f conftest.err conftest.$ac_objext \
6081       conftest$ac_exeext conftest.$ac_ext
6082 fi
6083 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6084 echo "${ECHO_T}$ac_cv_func_remove" >&6
6085
6086     if test $ac_cv_func_remove = no; then
6087       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6088 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6089 if test "${ac_cv_lib_posix_remove+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   ac_check_lib_save_LIBS=$LIBS
6093 LIBS="-lposix  $LIBS"
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100
6101 /* Override any gcc2 internal prototype to avoid an error.  */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 /* We use char because int might match the return type of a gcc2
6106    builtin and then its argument prototype would still apply.  */
6107 char remove ();
6108 int
6109 main ()
6110 {
6111 remove ();
6112   ;
6113   return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118   (eval $ac_link) 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -z "$ac_c_werror_flag"
6126                          || test ! -s conftest.err'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; } &&
6132          { ac_try='test -s conftest$ac_exeext'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; }; then
6138   ac_cv_lib_posix_remove=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_cv_lib_posix_remove=no
6144 fi
6145 rm -f conftest.err conftest.$ac_objext \
6146       conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_check_lib_save_LIBS
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6150 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6151 if test $ac_cv_lib_posix_remove = yes; then
6152   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6153 fi
6154
6155     fi
6156
6157     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6158     echo "$as_me:$LINENO: checking for shmat" >&5
6159 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6160 if test "${ac_cv_func_shmat+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6171 #define shmat innocuous_shmat
6172
6173 /* System header to define __stub macros and hopefully few prototypes,
6174     which can conflict with char shmat (); below.
6175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176     <limits.h> exists even on freestanding compilers.  */
6177
6178 #ifdef __STDC__
6179 # include <limits.h>
6180 #else
6181 # include <assert.h>
6182 #endif
6183
6184 #undef shmat
6185
6186 /* Override any gcc2 internal prototype to avoid an error.  */
6187 #ifdef __cplusplus
6188 extern "C"
6189 {
6190 #endif
6191 /* We use char because int might match the return type of a gcc2
6192    builtin and then its argument prototype would still apply.  */
6193 char shmat ();
6194 /* The GNU C library defines this for functions which it implements
6195     to always fail with ENOSYS.  Some functions are actually named
6196     something starting with __ and the normal name is an alias.  */
6197 #if defined (__stub_shmat) || defined (__stub___shmat)
6198 choke me
6199 #else
6200 char (*f) () = shmat;
6201 #endif
6202 #ifdef __cplusplus
6203 }
6204 #endif
6205
6206 int
6207 main ()
6208 {
6209 return f != shmat;
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216   (eval $ac_link) 2>conftest.er1
6217   ac_status=$?
6218   grep -v '^ *+' conftest.er1 >conftest.err
6219   rm -f conftest.er1
6220   cat conftest.err >&5
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } &&
6223          { ac_try='test -z "$ac_c_werror_flag"
6224                          || test ! -s conftest.err'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; } &&
6230          { ac_try='test -s conftest$ac_exeext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   ac_cv_func_shmat=yes
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 ac_cv_func_shmat=no
6242 fi
6243 rm -f conftest.err conftest.$ac_objext \
6244       conftest$ac_exeext conftest.$ac_ext
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6247 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6248
6249     if test $ac_cv_func_shmat = no; then
6250       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6251 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6252 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lipc  $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 /* Override any gcc2 internal prototype to avoid an error.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 /* We use char because int might match the return type of a gcc2
6269    builtin and then its argument prototype would still apply.  */
6270 char shmat ();
6271 int
6272 main ()
6273 {
6274 shmat ();
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"
6289                          || test ! -s conftest.err'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; } &&
6295          { ac_try='test -s conftest$ac_exeext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_cv_lib_ipc_shmat=yes
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 ac_cv_lib_ipc_shmat=no
6307 fi
6308 rm -f conftest.err conftest.$ac_objext \
6309       conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6311 fi
6312 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6313 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6314 if test $ac_cv_lib_ipc_shmat = yes; then
6315   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6316 fi
6317
6318     fi
6319   fi
6320
6321   # Check for libraries that X11R6 Xt/Xaw programs need.
6322   ac_save_LDFLAGS=$LDFLAGS
6323   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6324   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6325   # check for ICE first), but we must link in the order -lSM -lICE or
6326   # we get undefined symbols.  So assume we have SM if we have ICE.
6327   # These have to be linked with before -lX11, unlike the other
6328   # libraries we check for below, so use a different variable.
6329   # John Interrante, Karl Berry
6330   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6331 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6332 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343
6344 /* Override any gcc2 internal prototype to avoid an error.  */
6345 #ifdef __cplusplus
6346 extern "C"
6347 #endif
6348 /* We use char because int might match the return type of a gcc2
6349    builtin and then its argument prototype would still apply.  */
6350 char IceConnectionNumber ();
6351 int
6352 main ()
6353 {
6354 IceConnectionNumber ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361   (eval $ac_link) 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_c_werror_flag"
6369                          || test ! -s conftest.err'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_lib_ICE_IceConnectionNumber=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_cv_lib_ICE_IceConnectionNumber=no
6387 fi
6388 rm -f conftest.err conftest.$ac_objext \
6389       conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6391 fi
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6393 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6394 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6395   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6396 fi
6397
6398   LDFLAGS=$ac_save_LDFLAGS
6399
6400 fi
6401
6402
6403 # Checks for X
6404 if test "x$with_x" = xyes; then
6405   if test "x$have_x" = xno; then
6406     if test "x$x_config_flag" = xyes; then
6407       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6408 echo "$as_me: error: Could not configure X" >&2;}
6409    { (exit 1); exit 1; }; }
6410     else
6411       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6412 echo "$as_me: WARNING: Could not configure X" >&2;}
6413     fi
6414   fi
6415 fi
6416 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6417   if test "x$x_libraries" != x; then
6418     ldflags_x_opt="-L$x_libraries"
6419     LDFLAGS="$LDFLAGS $ldflags_x_opt"
6420     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6421   else
6422     ldflags_x_opt=
6423   fi
6424   if test "x$x_includes" != x; then
6425     CPPFLAGS="$CPPFLAGS -I$x_includes"
6426   fi
6427
6428
6429 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6430 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6431 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   ac_check_lib_save_LIBS=$LIBS
6435 LIBS="-lX11  $LIBS"
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h.  */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h.  */
6442
6443 /* Override any gcc2 internal prototype to avoid an error.  */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 /* We use char because int might match the return type of a gcc2
6448    builtin and then its argument prototype would still apply.  */
6449 char XOpenDisplay ();
6450 int
6451 main ()
6452 {
6453 XOpenDisplay ();
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460   (eval $ac_link) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest$ac_exeext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_cv_lib_X11_XOpenDisplay=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 ac_cv_lib_X11_XOpenDisplay=no
6486 fi
6487 rm -f conftest.err conftest.$ac_objext \
6488       conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6490 fi
6491 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6492 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6493 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6494   cat >>confdefs.h <<_ACEOF
6495 #define HAVE_LIBX11 1
6496 _ACEOF
6497
6498   LIBS="-lX11 $LIBS"
6499
6500 fi
6501
6502   echo "$as_me:$LINENO: checking X11 version 6" >&5
6503 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6504   if test "${timidity_cv_x11_version_6+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 #include <X11/Xlib.h>
6514 int
6515 main ()
6516 {
6517
6518 #if XlibSpecificationRelease < 6
6519 fail;
6520 #endif
6521
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 rm -f conftest.$ac_objext conftest$ac_exeext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528   (eval $ac_link) 2>conftest.er1
6529   ac_status=$?
6530   grep -v '^ *+' conftest.er1 >conftest.err
6531   rm -f conftest.er1
6532   cat conftest.err >&5
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } &&
6535          { ac_try='test -z "$ac_c_werror_flag"
6536                          || test ! -s conftest.err'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; } &&
6542          { ac_try='test -s conftest$ac_exeext'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   timidity_cv_x11_version_6=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 timidity_cv_x11_version_6=no
6554 fi
6555 rm -f conftest.err conftest.$ac_objext \
6556       conftest$ac_exeext conftest.$ac_ext
6557 fi
6558
6559   if test "$timidity_cv_x11_version_6" = "yes"; then
6560     echo "$as_me:$LINENO: result: 6 or newer" >&5
6561 echo "${ECHO_T}6 or newer" >&6
6562       else
6563     echo "$as_me:$LINENO: result: before 6" >&5
6564 echo "${ECHO_T}before 6" >&6
6565   fi
6566
6567     KEEPLIBS=$LIBS
6568   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6569 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6570 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   ac_check_lib_save_LIBS=$LIBS
6574 LIBS="-lXext  $LIBS"
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581
6582 /* Override any gcc2 internal prototype to avoid an error.  */
6583 #ifdef __cplusplus
6584 extern "C"
6585 #endif
6586 /* We use char because int might match the return type of a gcc2
6587    builtin and then its argument prototype would still apply.  */
6588 char XShapeCombineMask ();
6589 int
6590 main ()
6591 {
6592 XShapeCombineMask ();
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>conftest.er1
6600   ac_status=$?
6601   grep -v '^ *+' conftest.er1 >conftest.err
6602   rm -f conftest.er1
6603   cat conftest.err >&5
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -z "$ac_c_werror_flag"
6607                          || test ! -s conftest.err'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; } &&
6613          { ac_try='test -s conftest$ac_exeext'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; }; then
6619   ac_cv_lib_Xext_XShapeCombineMask=yes
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 ac_cv_lib_Xext_XShapeCombineMask=no
6625 fi
6626 rm -f conftest.err conftest.$ac_objext \
6627       conftest$ac_exeext conftest.$ac_ext
6628 LIBS=$ac_check_lib_save_LIBS
6629 fi
6630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6631 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6632 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6633   have_xext=yes; LIBS="-lXext $LIBS"
6634 else
6635   have_xext=no
6636 fi
6637
6638
6639 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6640 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6641 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   ac_check_lib_save_LIBS=$LIBS
6645 LIBS="-lICE  $LIBS"
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652
6653 /* Override any gcc2 internal prototype to avoid an error.  */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 /* We use char because int might match the return type of a gcc2
6658    builtin and then its argument prototype would still apply.  */
6659 char IceConnectionNumber ();
6660 int
6661 main ()
6662 {
6663 IceConnectionNumber ();
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670   (eval $ac_link) 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_c_werror_flag"
6678                          || test ! -s conftest.err'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; } &&
6684          { ac_try='test -s conftest$ac_exeext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   ac_cv_lib_ICE_IceConnectionNumber=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_lib_ICE_IceConnectionNumber=no
6696 fi
6697 rm -f conftest.err conftest.$ac_objext \
6698       conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6700 fi
6701 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6702 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6703 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6704   cat >>confdefs.h <<_ACEOF
6705 #define HAVE_LIBICE 1
6706 _ACEOF
6707
6708   LIBS="-lICE $LIBS"
6709
6710 fi
6711
6712   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6713 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6714 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   ac_check_lib_save_LIBS=$LIBS
6718 LIBS="-lSM  $LIBS"
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725
6726 /* Override any gcc2 internal prototype to avoid an error.  */
6727 #ifdef __cplusplus
6728 extern "C"
6729 #endif
6730 /* We use char because int might match the return type of a gcc2
6731    builtin and then its argument prototype would still apply.  */
6732 char SmcOpenConnection ();
6733 int
6734 main ()
6735 {
6736 SmcOpenConnection ();
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743   (eval $ac_link) 2>conftest.er1
6744   ac_status=$?
6745   grep -v '^ *+' conftest.er1 >conftest.err
6746   rm -f conftest.er1
6747   cat conftest.err >&5
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); } &&
6750          { ac_try='test -z "$ac_c_werror_flag"
6751                          || test ! -s conftest.err'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; } &&
6757          { ac_try='test -s conftest$ac_exeext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763   ac_cv_lib_SM_SmcOpenConnection=yes
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 ac_cv_lib_SM_SmcOpenConnection=no
6769 fi
6770 rm -f conftest.err conftest.$ac_objext \
6771       conftest$ac_exeext conftest.$ac_ext
6772 LIBS=$ac_check_lib_save_LIBS
6773 fi
6774 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6775 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6776 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6777   have_xprelibs=yes; LIBS="-lSM $LIBS"
6778 else
6779   have_xprelibs=no
6780 fi
6781
6782   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6783 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6784 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   ac_check_lib_save_LIBS=$LIBS
6788 LIBS="-lXt  $LIBS"
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795
6796 /* Override any gcc2 internal prototype to avoid an error.  */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 /* We use char because int might match the return type of a gcc2
6801    builtin and then its argument prototype would still apply.  */
6802 char XtVaAppInitialize ();
6803 int
6804 main ()
6805 {
6806 XtVaAppInitialize ();
6807   ;
6808   return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813   (eval $ac_link) 2>conftest.er1
6814   ac_status=$?
6815   grep -v '^ *+' conftest.er1 >conftest.err
6816   rm -f conftest.er1
6817   cat conftest.err >&5
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); } &&
6820          { ac_try='test -z "$ac_c_werror_flag"
6821                          || test ! -s conftest.err'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; } &&
6827          { ac_try='test -s conftest$ac_exeext'
6828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829   (eval $ac_try) 2>&5
6830   ac_status=$?
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); }; }; then
6833   ac_cv_lib_Xt_XtVaAppInitialize=yes
6834 else
6835   echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_cv_lib_Xt_XtVaAppInitialize=no
6839 fi
6840 rm -f conftest.err conftest.$ac_objext \
6841       conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6843 fi
6844 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6845 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6846 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6847   have_xt=yes; LIBS="-lXt $LIBS"
6848 else
6849   have_xt=no
6850 fi
6851
6852   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6853 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6854 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   ac_check_lib_save_LIBS=$LIBS
6858 LIBS="-lXmu  $LIBS"
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865
6866 /* Override any gcc2 internal prototype to avoid an error.  */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871    builtin and then its argument prototype would still apply.  */
6872 char XmuInternAtom ();
6873 int
6874 main ()
6875 {
6876 XmuInternAtom ();
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883   (eval $ac_link) 2>conftest.er1
6884   ac_status=$?
6885   grep -v '^ *+' conftest.er1 >conftest.err
6886   rm -f conftest.er1
6887   cat conftest.err >&5
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); } &&
6890          { ac_try='test -z "$ac_c_werror_flag"
6891                          || test ! -s conftest.err'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; } &&
6897          { ac_try='test -s conftest$ac_exeext'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   ac_cv_lib_Xmu_XmuInternAtom=yes
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 ac_cv_lib_Xmu_XmuInternAtom=no
6909 fi
6910 rm -f conftest.err conftest.$ac_objext \
6911       conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6915 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6916 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6917   LIBS="-lXmu $LIBS"
6918 fi
6919
6920
6921 for ac_func in XmuRegisterExternalAgent
6922 do
6923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6924 echo "$as_me:$LINENO: checking for $ac_func" >&5
6925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6926 if eval "test \"\${$as_ac_var+set}\" = set"; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6937 #define $ac_func innocuous_$ac_func
6938
6939 /* System header to define __stub macros and hopefully few prototypes,
6940     which can conflict with char $ac_func (); below.
6941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942     <limits.h> exists even on freestanding compilers.  */
6943
6944 #ifdef __STDC__
6945 # include <limits.h>
6946 #else
6947 # include <assert.h>
6948 #endif
6949
6950 #undef $ac_func
6951
6952 /* Override any gcc2 internal prototype to avoid an error.  */
6953 #ifdef __cplusplus
6954 extern "C"
6955 {
6956 #endif
6957 /* We use char because int might match the return type of a gcc2
6958    builtin and then its argument prototype would still apply.  */
6959 char $ac_func ();
6960 /* The GNU C library defines this for functions which it implements
6961     to always fail with ENOSYS.  Some functions are actually named
6962     something starting with __ and the normal name is an alias.  */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6964 choke me
6965 #else
6966 char (*f) () = $ac_func;
6967 #endif
6968 #ifdef __cplusplus
6969 }
6970 #endif
6971
6972 int
6973 main ()
6974 {
6975 return f != $ac_func;
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>conftest.er1
6983   ac_status=$?
6984   grep -v '^ *+' conftest.er1 >conftest.err
6985   rm -f conftest.er1
6986   cat conftest.err >&5
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); } &&
6989          { ac_try='test -z "$ac_c_werror_flag"
6990                          || test ! -s conftest.err'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; } &&
6996          { ac_try='test -s conftest$ac_exeext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   eval "$as_ac_var=yes"
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 eval "$as_ac_var=no"
7008 fi
7009 rm -f conftest.err conftest.$ac_objext \
7010       conftest$ac_exeext conftest.$ac_ext
7011 fi
7012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7014 if test `eval echo '${'$as_ac_var'}'` = yes; then
7015   cat >>confdefs.h <<_ACEOF
7016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7017 _ACEOF
7018
7019 fi
7020 done
7021
7022   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7023 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
7024 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lXaw3d  $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035
7036 /* Override any gcc2 internal prototype to avoid an error.  */
7037 #ifdef __cplusplus
7038 extern "C"
7039 #endif
7040 /* We use char because int might match the return type of a gcc2
7041    builtin and then its argument prototype would still apply.  */
7042 char XawInitializeWidgetSet ();
7043 int
7044 main ()
7045 {
7046 XawInitializeWidgetSet ();
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053   (eval $ac_link) 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } &&
7060          { ac_try='test -z "$ac_c_werror_flag"
7061                          || test ! -s conftest.err'
7062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063   (eval $ac_try) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); }; } &&
7067          { ac_try='test -s conftest$ac_exeext'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7079 fi
7080 rm -f conftest.err conftest.$ac_objext \
7081       conftest$ac_exeext conftest.$ac_ext
7082 LIBS=$ac_check_lib_save_LIBS
7083 fi
7084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7085 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
7086 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7087   have_xaw=3d
7088 else
7089    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7090 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
7091 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   ac_check_lib_save_LIBS=$LIBS
7095 LIBS="-lXaw  $LIBS"
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102
7103 /* Override any gcc2 internal prototype to avoid an error.  */
7104 #ifdef __cplusplus
7105 extern "C"
7106 #endif
7107 /* We use char because int might match the return type of a gcc2
7108    builtin and then its argument prototype would still apply.  */
7109 char XawInitializeWidgetSet ();
7110 int
7111 main ()
7112 {
7113 XawInitializeWidgetSet ();
7114   ;
7115   return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120   (eval $ac_link) 2>conftest.er1
7121   ac_status=$?
7122   grep -v '^ *+' conftest.er1 >conftest.err
7123   rm -f conftest.er1
7124   cat conftest.err >&5
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } &&
7127          { ac_try='test -z "$ac_c_werror_flag"
7128                          || test ! -s conftest.err'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; } &&
7134          { ac_try='test -s conftest$ac_exeext'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; }; then
7140   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7141 else
7142   echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7146 fi
7147 rm -f conftest.err conftest.$ac_objext \
7148       conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7150 fi
7151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7152 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
7153 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7154   have_xaw=yes
7155 else
7156   have_xaw=no
7157 fi
7158
7159 fi
7160
7161   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7162 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
7163 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lXm  $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174
7175 /* Override any gcc2 internal prototype to avoid an error.  */
7176 #ifdef __cplusplus
7177 extern "C"
7178 #endif
7179 /* We use char because int might match the return type of a gcc2
7180    builtin and then its argument prototype would still apply.  */
7181 char XmCreateForm ();
7182 int
7183 main ()
7184 {
7185 XmCreateForm ();
7186   ;
7187   return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192   (eval $ac_link) 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -z "$ac_c_werror_flag"
7200                          || test ! -s conftest.err'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; } &&
7206          { ac_try='test -s conftest$ac_exeext'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; }; then
7212   ac_cv_lib_Xm_XmCreateForm=yes
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_cv_lib_Xm_XmCreateForm=no
7218 fi
7219 rm -f conftest.err conftest.$ac_objext \
7220       conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7222 fi
7223 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7224 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
7225 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7226   have_xm=yes
7227 else
7228   have_xm=no
7229 fi
7230
7231
7232 for ac_func in XShmCreatePixmap
7233 do
7234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7235 echo "$as_me:$LINENO: checking for $ac_func" >&5
7236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7237 if eval "test \"\${$as_ac_var+set}\" = set"; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7248 #define $ac_func innocuous_$ac_func
7249
7250 /* System header to define __stub macros and hopefully few prototypes,
7251     which can conflict with char $ac_func (); below.
7252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253     <limits.h> exists even on freestanding compilers.  */
7254
7255 #ifdef __STDC__
7256 # include <limits.h>
7257 #else
7258 # include <assert.h>
7259 #endif
7260
7261 #undef $ac_func
7262
7263 /* Override any gcc2 internal prototype to avoid an error.  */
7264 #ifdef __cplusplus
7265 extern "C"
7266 {
7267 #endif
7268 /* We use char because int might match the return type of a gcc2
7269    builtin and then its argument prototype would still apply.  */
7270 char $ac_func ();
7271 /* The GNU C library defines this for functions which it implements
7272     to always fail with ENOSYS.  Some functions are actually named
7273     something starting with __ and the normal name is an alias.  */
7274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7275 choke me
7276 #else
7277 char (*f) () = $ac_func;
7278 #endif
7279 #ifdef __cplusplus
7280 }
7281 #endif
7282
7283 int
7284 main ()
7285 {
7286 return f != $ac_func;
7287   ;
7288   return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293   (eval $ac_link) 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } &&
7300          { ac_try='test -z "$ac_c_werror_flag"
7301                          || test ! -s conftest.err'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; } &&
7307          { ac_try='test -s conftest$ac_exeext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   eval "$as_ac_var=yes"
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 eval "$as_ac_var=no"
7319 fi
7320 rm -f conftest.err conftest.$ac_objext \
7321       conftest$ac_exeext conftest.$ac_ext
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7325 if test `eval echo '${'$as_ac_var'}'` = yes; then
7326   cat >>confdefs.h <<_ACEOF
7327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7328 _ACEOF
7329
7330 fi
7331 done
7332
7333   LIBS=$KEEPLIBS
7334 fi
7335
7336 # Checks for header files.
7337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7339 if test "${ac_cv_header_stdc+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 #include <stdlib.h>
7349 #include <stdarg.h>
7350 #include <string.h>
7351 #include <float.h>
7352
7353 int
7354 main ()
7355 {
7356
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363   (eval $ac_compile) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } &&
7370          { ac_try='test -z "$ac_c_werror_flag"
7371                          || test ! -s conftest.err'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; } &&
7377          { ac_try='test -s conftest.$ac_objext'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; }; then
7383   ac_cv_header_stdc=yes
7384 else
7385   echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_cv_header_stdc=no
7389 fi
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391
7392 if test $ac_cv_header_stdc = yes; then
7393   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 #include <string.h>
7401
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404   $EGREP "memchr" >/dev/null 2>&1; then
7405   :
7406 else
7407   ac_cv_header_stdc=no
7408 fi
7409 rm -f conftest*
7410
7411 fi
7412
7413 if test $ac_cv_header_stdc = yes; then
7414   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7415   cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h.  */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h.  */
7421 #include <stdlib.h>
7422
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425   $EGREP "free" >/dev/null 2>&1; then
7426   :
7427 else
7428   ac_cv_header_stdc=no
7429 fi
7430 rm -f conftest*
7431
7432 fi
7433
7434 if test $ac_cv_header_stdc = yes; then
7435   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7436   if test "$cross_compiling" = yes; then
7437   :
7438 else
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <ctype.h>
7446 #if ((' ' & 0x0FF) == 0x020)
7447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7449 #else
7450 # define ISLOWER(c) \
7451                    (('a' <= (c) && (c) <= 'i') \
7452                      || ('j' <= (c) && (c) <= 'r') \
7453                      || ('s' <= (c) && (c) <= 'z'))
7454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7455 #endif
7456
7457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7458 int
7459 main ()
7460 {
7461   int i;
7462   for (i = 0; i < 256; i++)
7463     if (XOR (islower (i), ISLOWER (i))
7464         || toupper (i) != TOUPPER (i))
7465       exit(2);
7466   exit (0);
7467 }
7468 _ACEOF
7469 rm -f conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471   (eval $ac_link) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; }; then
7480   :
7481 else
7482   echo "$as_me: program exited with status $ac_status" >&5
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 ( exit $ac_status )
7487 ac_cv_header_stdc=no
7488 fi
7489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 fi
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7495 if test $ac_cv_header_stdc = yes; then
7496
7497 cat >>confdefs.h <<\_ACEOF
7498 #define STDC_HEADERS 1
7499 _ACEOF
7500
7501 fi
7502
7503 #AC_HEADER_STDBOOL
7504 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7505 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7506 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h.  */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h.  */
7515 #include <sys/types.h>
7516 #include <sys/wait.h>
7517 #ifndef WEXITSTATUS
7518 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7519 #endif
7520 #ifndef WIFEXITED
7521 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7522 #endif
7523
7524 int
7525 main ()
7526 {
7527   int s;
7528   wait (&s);
7529   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536   (eval $ac_compile) 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } &&
7543          { ac_try='test -z "$ac_c_werror_flag"
7544                          || test ! -s conftest.err'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; } &&
7550          { ac_try='test -s conftest.$ac_objext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   ac_cv_header_sys_wait_h=yes
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_cv_header_sys_wait_h=no
7562 fi
7563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7566 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7567 if test $ac_cv_header_sys_wait_h = yes; then
7568
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_SYS_WAIT_H 1
7571 _ACEOF
7572
7573 fi
7574
7575 if test "x$WATCOM_C" != xyes ; then
7576 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7577 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7578 if test "${ac_cv_header_time+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587 #include <sys/types.h>
7588 #include <sys/time.h>
7589 #include <time.h>
7590
7591 int
7592 main ()
7593 {
7594 if ((struct tm *) 0)
7595 return 0;
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602   (eval $ac_compile) 2>conftest.er1
7603   ac_status=$?
7604   grep -v '^ *+' conftest.er1 >conftest.err
7605   rm -f conftest.er1
7606   cat conftest.err >&5
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); } &&
7609          { ac_try='test -z "$ac_c_werror_flag"
7610                          || test ! -s conftest.err'
7611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612   (eval $ac_try) 2>&5
7613   ac_status=$?
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); }; } &&
7616          { ac_try='test -s conftest.$ac_objext'
7617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618   (eval $ac_try) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }; }; then
7622   ac_cv_header_time=yes
7623 else
7624   echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627 ac_cv_header_time=no
7628 fi
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7632 echo "${ECHO_T}$ac_cv_header_time" >&6
7633 if test $ac_cv_header_time = yes; then
7634
7635 cat >>confdefs.h <<\_ACEOF
7636 #define TIME_WITH_SYS_TIME 1
7637 _ACEOF
7638
7639 fi
7640
7641 fi
7642
7643
7644
7645
7646
7647 ac_header_dirent=no
7648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7649   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7650 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661 #include <sys/types.h>
7662 #include <$ac_hdr>
7663
7664 int
7665 main ()
7666 {
7667 if ((DIR *) 0)
7668 return 0;
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675   (eval $ac_compile) 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag"
7683                          || test ! -s conftest.err'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; } &&
7689          { ac_try='test -s conftest.$ac_objext'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; }; then
7695   eval "$as_ac_Header=yes"
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 eval "$as_ac_Header=no"
7701 fi
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7707   cat >>confdefs.h <<_ACEOF
7708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7709 _ACEOF
7710
7711 ac_header_dirent=$ac_hdr; break
7712 fi
7713
7714 done
7715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7716 if test $ac_header_dirent = dirent.h; then
7717   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7719 if test "${ac_cv_search_opendir+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   ac_func_search_save_LIBS=$LIBS
7723 ac_cv_search_opendir=no
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730
7731 /* Override any gcc2 internal prototype to avoid an error.  */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736    builtin and then its argument prototype would still apply.  */
7737 char opendir ();
7738 int
7739 main ()
7740 {
7741 opendir ();
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>conftest.er1
7749   ac_status=$?
7750   grep -v '^ *+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } &&
7755          { ac_try='test -z "$ac_c_werror_flag"
7756                          || test ! -s conftest.err'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; } &&
7762          { ac_try='test -s conftest$ac_exeext'
7763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764   (eval $ac_try) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   ac_cv_search_opendir="none required"
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 fi
7774 rm -f conftest.err conftest.$ac_objext \
7775       conftest$ac_exeext conftest.$ac_ext
7776 if test "$ac_cv_search_opendir" = no; then
7777   for ac_lib in dir; do
7778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7779     cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any gcc2 internal prototype to avoid an error.  */
7787 #ifdef __cplusplus
7788 extern "C"
7789 #endif
7790 /* We use char because int might match the return type of a gcc2
7791    builtin and then its argument prototype would still apply.  */
7792 char opendir ();
7793 int
7794 main ()
7795 {
7796 opendir ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803   (eval $ac_link) 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } &&
7810          { ac_try='test -z "$ac_c_werror_flag"
7811                          || test ! -s conftest.err'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; } &&
7817          { ac_try='test -s conftest$ac_exeext'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_cv_search_opendir="-l$ac_lib"
7824 break
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 fi
7830 rm -f conftest.err conftest.$ac_objext \
7831       conftest$ac_exeext conftest.$ac_ext
7832   done
7833 fi
7834 LIBS=$ac_func_search_save_LIBS
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7838 if test "$ac_cv_search_opendir" != no; then
7839   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7840
7841 fi
7842
7843 else
7844   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7846 if test "${ac_cv_search_opendir+set}" = set; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849   ac_func_search_save_LIBS=$LIBS
7850 ac_cv_search_opendir=no
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h.  */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h.  */
7857
7858 /* Override any gcc2 internal prototype to avoid an error.  */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 /* We use char because int might match the return type of a gcc2
7863    builtin and then its argument prototype would still apply.  */
7864 char opendir ();
7865 int
7866 main ()
7867 {
7868 opendir ();
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875   (eval $ac_link) 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -z "$ac_c_werror_flag"
7883                          || test ! -s conftest.err'
7884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885   (eval $ac_try) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; } &&
7889          { ac_try='test -s conftest$ac_exeext'
7890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891   (eval $ac_try) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); }; }; then
7895   ac_cv_search_opendir="none required"
7896 else
7897   echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 fi
7901 rm -f conftest.err conftest.$ac_objext \
7902       conftest$ac_exeext conftest.$ac_ext
7903 if test "$ac_cv_search_opendir" = no; then
7904   for ac_lib in x; do
7905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7906     cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912
7913 /* Override any gcc2 internal prototype to avoid an error.  */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 /* We use char because int might match the return type of a gcc2
7918    builtin and then its argument prototype would still apply.  */
7919 char opendir ();
7920 int
7921 main ()
7922 {
7923 opendir ();
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7930   (eval $ac_link) 2>conftest.er1
7931   ac_status=$?
7932   grep -v '^ *+' conftest.er1 >conftest.err
7933   rm -f conftest.er1
7934   cat conftest.err >&5
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } &&
7937          { ac_try='test -z "$ac_c_werror_flag"
7938                          || test ! -s conftest.err'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; } &&
7944          { ac_try='test -s conftest$ac_exeext'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_search_opendir="-l$ac_lib"
7951 break
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 fi
7957 rm -f conftest.err conftest.$ac_objext \
7958       conftest$ac_exeext conftest.$ac_ext
7959   done
7960 fi
7961 LIBS=$ac_func_search_save_LIBS
7962 fi
7963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7965 if test "$ac_cv_search_opendir" != no; then
7966   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7967
7968 fi
7969
7970 fi
7971
7972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7983                   inttypes.h stdint.h unistd.h
7984 do
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991   cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 $ac_includes_default
7998
7999 #include <$ac_header>
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -z "$ac_c_werror_flag"
8011                          || test ! -s conftest.err'
8012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013   (eval $ac_try) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; } &&
8017          { ac_try='test -s conftest.$ac_objext'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; }; then
8023   eval "$as_ac_Header=yes"
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 eval "$as_ac_Header=no"
8029 fi
8030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8035   cat >>confdefs.h <<_ACEOF
8036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8037 _ACEOF
8038
8039 fi
8040
8041 done
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 for ac_header in \
8083   arpa/inet.h \
8084   errno.h \
8085   getopt.h \
8086   glob.h \
8087   dlfcn.h \
8088   fcntl.h \
8089   inttypes.h \
8090   limits.h \
8091   machine/endian.h \
8092   malloc.h \
8093   memory.h \
8094   netdb.h \
8095   netinet/in.h \
8096   nlist.h \
8097   stddef.h \
8098   stdlib.h \
8099   stdint.h \
8100   string.h \
8101   strings.h \
8102   stropts.h \
8103   soundcard.h \
8104   alsa/asoundlib.h \
8105   sys/asoundlib.h \
8106   sys/audioio.h \
8107   sys/awe_voice.h\
8108   sys/ioctl.h \
8109   sys/ipc.h \
8110   sys/param.h \
8111   sys/shm.h \
8112   sys/socket.h \
8113   sys/soundcard.h \
8114   sys/param.h \
8115   sys/time.h \
8116   sys/types.h \
8117   sys/sysctl.h \
8118   termios.h \
8119   unistd.h \
8120   X11/Xlib.h
8121 do
8122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124   echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 fi
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131 else
8132   # Is the header compilable?
8133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141 $ac_includes_default
8142 #include <$ac_header>
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146   (eval $ac_compile) 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } &&
8153          { ac_try='test -z "$ac_c_werror_flag"
8154                          || test ! -s conftest.err'
8155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156   (eval $ac_try) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); }; } &&
8160          { ac_try='test -s conftest.$ac_objext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_header_compiler=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_header_compiler=no
8172 fi
8173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175 echo "${ECHO_T}$ac_header_compiler" >&6
8176
8177 # Is the header present?
8178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186 #include <$ac_header>
8187 _ACEOF
8188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } >/dev/null; then
8196   if test -s conftest.err; then
8197     ac_cpp_err=$ac_c_preproc_warn_flag
8198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8199   else
8200     ac_cpp_err=
8201   fi
8202 else
8203   ac_cpp_err=yes
8204 fi
8205 if test -z "$ac_cpp_err"; then
8206   ac_header_preproc=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211   ac_header_preproc=no
8212 fi
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8216
8217 # So?  What about this header?
8218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8219   yes:no: )
8220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8224     ac_header_preproc=yes
8225     ;;
8226   no:yes:* )
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8239     (
8240       cat <<\_ASBOX
8241 ## ------------------------------- ##
8242 ## Report this to root@mput.dip.jp ##
8243 ## ------------------------------- ##
8244 _ASBOX
8245     ) |
8246       sed "s/^/$as_me: WARNING:     /" >&2
8247     ;;
8248 esac
8249 echo "$as_me:$LINENO: checking for $ac_header" >&5
8250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   eval "$as_ac_Header=\$ac_header_preproc"
8255 fi
8256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8258
8259 fi
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261   cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269
8270
8271 for ac_header in \
8272   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8273 do
8274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275 echo "$as_me:$LINENO: checking for $ac_header" >&5
8276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280   cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 #ifdef HAVE_X11_XLIB_H
8288 #include <X11/Xlib.h>
8289 #endif
8290
8291
8292 #include <$ac_header>
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296   (eval $ac_compile) 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag"
8304                          || test ! -s conftest.err'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; } &&
8310          { ac_try='test -s conftest.$ac_objext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   eval "$as_ac_Header=yes"
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 eval "$as_ac_Header=no"
8322 fi
8323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324 fi
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328   cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8331
8332 fi
8333
8334 done
8335
8336 if test "${ac_cv_header_string_h+set}" = set; then
8337   echo "$as_me:$LINENO: checking for string.h" >&5
8338 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8339 if test "${ac_cv_header_string_h+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 fi
8342 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8343 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8344 else
8345   # Is the header compilable?
8346 echo "$as_me:$LINENO: checking string.h usability" >&5
8347 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354 $ac_includes_default
8355 #include <string.h>
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359   (eval $ac_compile) 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -z "$ac_c_werror_flag"
8367                          || test ! -s conftest.err'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; } &&
8373          { ac_try='test -s conftest.$ac_objext'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_header_compiler=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384 ac_header_compiler=no
8385 fi
8386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388 echo "${ECHO_T}$ac_header_compiler" >&6
8389
8390 # Is the header present?
8391 echo "$as_me:$LINENO: checking string.h presence" >&5
8392 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h.  */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h.  */
8399 #include <string.h>
8400 _ACEOF
8401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } >/dev/null; then
8409   if test -s conftest.err; then
8410     ac_cpp_err=$ac_c_preproc_warn_flag
8411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8412   else
8413     ac_cpp_err=
8414   fi
8415 else
8416   ac_cpp_err=yes
8417 fi
8418 if test -z "$ac_cpp_err"; then
8419   ac_header_preproc=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424   ac_header_preproc=no
8425 fi
8426 rm -f conftest.err conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8428 echo "${ECHO_T}$ac_header_preproc" >&6
8429
8430 # So?  What about this header?
8431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8432   yes:no: )
8433     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8434 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8435     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8436 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8437     ac_header_preproc=yes
8438     ;;
8439   no:yes:* )
8440     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8441 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8442     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8443 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8444     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8445 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8446     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8447 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8449 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8450     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8451 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8452     (
8453       cat <<\_ASBOX
8454 ## ------------------------------- ##
8455 ## Report this to root@mput.dip.jp ##
8456 ## ------------------------------- ##
8457 _ASBOX
8458     ) |
8459       sed "s/^/$as_me: WARNING:     /" >&2
8460     ;;
8461 esac
8462 echo "$as_me:$LINENO: checking for string.h" >&5
8463 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8464 if test "${ac_cv_header_string_h+set}" = set; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   ac_cv_header_string_h=$ac_header_preproc
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8470 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8471
8472 fi
8473 if test $ac_cv_header_string_h = yes; then
8474   :
8475 else
8476
8477 cat >>confdefs.h <<\_ACEOF
8478 #define NO_STRING_H 1
8479 _ACEOF
8480
8481 fi
8482
8483
8484
8485 # Checks for typedefs, structures, and compiler characteristics.
8486 if test "x$WATCOM_C" != xyes ; then
8487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8489 if test "${ac_cv_c_bigendian+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   # See if sys/param.h defines the BYTE_ORDER macro.
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499 #include <sys/types.h>
8500 #include <sys/param.h>
8501
8502 int
8503 main ()
8504 {
8505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8506  bogus endian macros
8507 #endif
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515   (eval $ac_compile) 2>conftest.er1
8516   ac_status=$?
8517   grep -v '^ *+' conftest.er1 >conftest.err
8518   rm -f conftest.er1
8519   cat conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -z "$ac_c_werror_flag"
8523                          || test ! -s conftest.err'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; } &&
8529          { ac_try='test -s conftest.$ac_objext'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   # It does; now see whether it defined to BIG_ENDIAN or not.
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542 #include <sys/types.h>
8543 #include <sys/param.h>
8544
8545 int
8546 main ()
8547 {
8548 #if BYTE_ORDER != BIG_ENDIAN
8549  not big endian
8550 #endif
8551
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558   (eval $ac_compile) 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -z "$ac_c_werror_flag"
8566                          || test ! -s conftest.err'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; } &&
8572          { ac_try='test -s conftest.$ac_objext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_c_bigendian=yes
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_c_bigendian=no
8584 fi
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 # It does not; compile a test program.
8591 if test "$cross_compiling" = yes; then
8592   # try to guess the endianness by grepping values into an object file
8593   ac_cv_c_bigendian=unknown
8594   cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8601 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8602 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8603 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8604 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8605 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8606 int
8607 main ()
8608 {
8609  _ascii (); _ebcdic ();
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616   (eval $ac_compile) 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -z "$ac_c_werror_flag"
8624                          || test ! -s conftest.err'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest.$ac_objext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8637   ac_cv_c_bigendian=yes
8638 fi
8639 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8640   if test "$ac_cv_c_bigendian" = unknown; then
8641     ac_cv_c_bigendian=no
8642   else
8643     # finding both strings is unlikely to happen, but who knows?
8644     ac_cv_c_bigendian=unknown
8645   fi
8646 fi
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 fi
8652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653 else
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 int
8661 main ()
8662 {
8663   /* Are we little or big endian?  From Harbison&Steele.  */
8664   union
8665   {
8666     long l;
8667     char c[sizeof (long)];
8668   } u;
8669   u.l = 1;
8670   exit (u.c[sizeof (long) - 1] == 1);
8671 }
8672 _ACEOF
8673 rm -f conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675   (eval $ac_link) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   ac_cv_c_bigendian=no
8685 else
8686   echo "$as_me: program exited with status $ac_status" >&5
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 ( exit $ac_status )
8691 ac_cv_c_bigendian=yes
8692 fi
8693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8694 fi
8695 fi
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8699 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8700 case $ac_cv_c_bigendian in
8701   yes)
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define WORDS_BIGENDIAN 1
8705 _ACEOF
8706  ;;
8707   no)
8708      ;;
8709   *)
8710     { { echo "$as_me:$LINENO: error: unknown endianness
8711 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8712 echo "$as_me: error: unknown endianness
8713 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8714    { (exit 1); exit 1; }; } ;;
8715 esac
8716
8717 fi
8718
8719 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8720 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8721 if test "${ac_cv_c_char_unsigned+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730 $ac_includes_default
8731 int
8732 main ()
8733 {
8734 static int test_array [1 - 2 * !(((char) -1) < 0)];
8735 test_array [0] = 0
8736
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743   (eval $ac_compile) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } &&
8750          { ac_try='test -z "$ac_c_werror_flag"
8751                          || test ! -s conftest.err'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; } &&
8757          { ac_try='test -s conftest.$ac_objext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   ac_cv_c_char_unsigned=no
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_c_char_unsigned=yes
8769 fi
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8773 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8774 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8775   cat >>confdefs.h <<\_ACEOF
8776 #define __CHAR_UNSIGNED__ 1
8777 _ACEOF
8778
8779 fi
8780
8781 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8782 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8783 if test "${ac_cv_c_const+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 int
8794 main ()
8795 {
8796 /* FIXME: Include the comments suggested by Paul. */
8797 #ifndef __cplusplus
8798   /* Ultrix mips cc rejects this.  */
8799   typedef int charset[2];
8800   const charset x;
8801   /* SunOS 4.1.1 cc rejects this.  */
8802   char const *const *ccp;
8803   char **p;
8804   /* NEC SVR4.0.2 mips cc rejects this.  */
8805   struct point {int x, y;};
8806   static struct point const zero = {0,0};
8807   /* AIX XL C 1.02.0.0 rejects this.
8808      It does not let you subtract one const X* pointer from another in
8809      an arm of an if-expression whose if-part is not a constant
8810      expression */
8811   const char *g = "string";
8812   ccp = &g + (g ? g-g : 0);
8813   /* HPUX 7.0 cc rejects these. */
8814   ++ccp;
8815   p = (char**) ccp;
8816   ccp = (char const *const *) p;
8817   { /* SCO 3.2v4 cc rejects this.  */
8818     char *t;
8819     char const *s = 0 ? (char *) 0 : (char const *) 0;
8820
8821     *t++ = 0;
8822   }
8823   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8824     int x[] = {25, 17};
8825     const int *foo = &x[0];
8826     ++foo;
8827   }
8828   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8829     typedef const int *iptr;
8830     iptr p = 0;
8831     ++p;
8832   }
8833   { /* AIX XL C 1.02.0.0 rejects this saying
8834        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8835     struct s { int j; const int *ap[3]; };
8836     struct s *b; b->j = 5;
8837   }
8838   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8839     const int foo = 10;
8840   }
8841 #endif
8842
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849   (eval $ac_compile) 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -z "$ac_c_werror_flag"
8857                          || test ! -s conftest.err'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; } &&
8863          { ac_try='test -s conftest.$ac_objext'
8864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865   (eval $ac_try) 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; }; then
8869   ac_cv_c_const=yes
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_cv_c_const=no
8875 fi
8876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8879 echo "${ECHO_T}$ac_cv_c_const" >&6
8880 if test $ac_cv_c_const = no; then
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define const
8884 _ACEOF
8885
8886 fi
8887
8888 echo "$as_me:$LINENO: checking for inline" >&5
8889 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8890 if test "${ac_cv_c_inline+set}" = set; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   ac_cv_c_inline=no
8894 for ac_kw in inline __inline__ __inline; do
8895   cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h.  */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h.  */
8901 #ifndef __cplusplus
8902 typedef int foo_t;
8903 static $ac_kw foo_t static_foo () {return 0; }
8904 $ac_kw foo_t foo () {return 0; }
8905 #endif
8906
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910   (eval $ac_compile) 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -z "$ac_c_werror_flag"
8918                          || test ! -s conftest.err'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   ac_cv_c_inline=$ac_kw; break
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 fi
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 done
8938
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8941 echo "${ECHO_T}$ac_cv_c_inline" >&6
8942
8943
8944 case $ac_cv_c_inline in
8945   inline | yes) ;;
8946   *)
8947     case $ac_cv_c_inline in
8948       no) ac_val=;;
8949       *) ac_val=$ac_cv_c_inline;;
8950     esac
8951     cat >>confdefs.h <<_ACEOF
8952 #ifndef __cplusplus
8953 #define inline $ac_val
8954 #endif
8955 _ACEOF
8956     ;;
8957 esac
8958
8959 echo "$as_me:$LINENO: checking for working volatile" >&5
8960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8961 if test "${ac_cv_c_volatile+set}" = set; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964   cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 int
8972 main ()
8973 {
8974
8975 volatile int x;
8976 int * volatile y;
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983   (eval $ac_compile) 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -z "$ac_c_werror_flag"
8991                          || test ! -s conftest.err'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; } &&
8997          { ac_try='test -s conftest.$ac_objext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_c_volatile=yes
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 ac_cv_c_volatile=no
9009 fi
9010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9013 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9014 if test $ac_cv_c_volatile = no; then
9015
9016 cat >>confdefs.h <<\_ACEOF
9017 #define volatile
9018 _ACEOF
9019
9020 fi
9021
9022 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9023 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9024 if test "${ac_cv_c_stringize+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #define x(y) #y
9034
9035 char *s = x(teststring);
9036 _ACEOF
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038   $EGREP "#teststring" >/dev/null 2>&1; then
9039   ac_cv_c_stringize=no
9040 else
9041   ac_cv_c_stringize=yes
9042 fi
9043 rm -f conftest*
9044
9045 fi
9046 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9047 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9048 if test $ac_cv_c_stringize = yes; then
9049
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_STRINGIZE 1
9052 _ACEOF
9053
9054 fi
9055
9056 echo "$as_me:$LINENO: checking for function prototypes" >&5
9057 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9058 if test "$ac_cv_prog_cc_stdc" != no; then
9059   echo "$as_me:$LINENO: result: yes" >&5
9060 echo "${ECHO_T}yes" >&6
9061
9062 cat >>confdefs.h <<\_ACEOF
9063 #define PROTOTYPES 1
9064 _ACEOF
9065
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define __PROTOTYPES 1
9069 _ACEOF
9070
9071 else
9072   echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9074 fi
9075
9076 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9077 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9078 if test "${ac_cv_struct_tm+set}" = set; then
9079   echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081   cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087 #include <sys/types.h>
9088 #include <time.h>
9089
9090 int
9091 main ()
9092 {
9093 struct tm *tp; tp->tm_sec;
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100   (eval $ac_compile) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag"
9108                          || test ! -s conftest.err'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; } &&
9114          { ac_try='test -s conftest.$ac_objext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_cv_struct_tm=time.h
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 ac_cv_struct_tm=sys/time.h
9126 fi
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 fi
9129 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9130 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9131 if test $ac_cv_struct_tm = sys/time.h; then
9132
9133 cat >>confdefs.h <<\_ACEOF
9134 #define TM_IN_SYS_TIME 1
9135 _ACEOF
9136
9137 fi
9138
9139 echo "$as_me:$LINENO: checking for size_t" >&5
9140 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9141 if test "${ac_cv_type_size_t+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h.  */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h.  */
9150 $ac_includes_default
9151 int
9152 main ()
9153 {
9154 if ((size_t *) 0)
9155   return 0;
9156 if (sizeof (size_t))
9157   return 0;
9158   ;
9159   return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164   (eval $ac_compile) 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } &&
9171          { ac_try='test -z "$ac_c_werror_flag"
9172                          || test ! -s conftest.err'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; } &&
9178          { ac_try='test -s conftest.$ac_objext'
9179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180   (eval $ac_try) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   ac_cv_type_size_t=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_cv_type_size_t=no
9190 fi
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9192 fi
9193 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9194 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9195 if test $ac_cv_type_size_t = yes; then
9196   :
9197 else
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define size_t unsigned
9201 _ACEOF
9202
9203 fi
9204
9205 echo "$as_me:$LINENO: checking for off_t" >&5
9206 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9207 if test "${ac_cv_type_off_t+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 $ac_includes_default
9217 int
9218 main ()
9219 {
9220 if ((off_t *) 0)
9221   return 0;
9222 if (sizeof (off_t))
9223   return 0;
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230   (eval $ac_compile) 2>conftest.er1
9231   ac_status=$?
9232   grep -v '^ *+' conftest.er1 >conftest.err
9233   rm -f conftest.er1
9234   cat conftest.err >&5
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } &&
9237          { ac_try='test -z "$ac_c_werror_flag"
9238                          || test ! -s conftest.err'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; } &&
9244          { ac_try='test -s conftest.$ac_objext'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250   ac_cv_type_off_t=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_cv_type_off_t=no
9256 fi
9257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9260 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9261 if test $ac_cv_type_off_t = yes; then
9262   :
9263 else
9264
9265 cat >>confdefs.h <<_ACEOF
9266 #define off_t long
9267 _ACEOF
9268
9269 fi
9270
9271 echo "$as_me:$LINENO: checking for pid_t" >&5
9272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9273 if test "${ac_cv_type_pid_t+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282 $ac_includes_default
9283 int
9284 main ()
9285 {
9286 if ((pid_t *) 0)
9287   return 0;
9288 if (sizeof (pid_t))
9289   return 0;
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296   (eval $ac_compile) 2>conftest.er1
9297   ac_status=$?
9298   grep -v '^ *+' conftest.er1 >conftest.err
9299   rm -f conftest.er1
9300   cat conftest.err >&5
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); } &&
9303          { ac_try='test -z "$ac_c_werror_flag"
9304                          || test ! -s conftest.err'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; } &&
9310          { ac_try='test -s conftest.$ac_objext'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; }; then
9316   ac_cv_type_pid_t=yes
9317 else
9318   echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 ac_cv_type_pid_t=no
9322 fi
9323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9324 fi
9325 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9326 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9327 if test $ac_cv_type_pid_t = yes; then
9328   :
9329 else
9330
9331 cat >>confdefs.h <<_ACEOF
9332 #define pid_t int
9333 _ACEOF
9334
9335 fi
9336
9337
9338 echo "$as_me:$LINENO: checking volatile declaration" >&5
9339 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9340 if test "${timidity_cv_type_volatile+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343   cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349
9350 int
9351 main ()
9352 {
9353 volatile int x
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360   (eval $ac_compile) 2>conftest.er1
9361   ac_status=$?
9362   grep -v '^ *+' conftest.er1 >conftest.err
9363   rm -f conftest.er1
9364   cat conftest.err >&5
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); } &&
9367          { ac_try='test -z "$ac_c_werror_flag"
9368                          || test ! -s conftest.err'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; } &&
9374          { ac_try='test -s conftest.$ac_objext'
9375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376   (eval $ac_try) 2>&5
9377   ac_status=$?
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); }; }; then
9380   timidity_cv_type_volatile=yes
9381 else
9382   echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385 timidity_cv_type_volatile=no
9386 fi
9387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9390 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9391 if test $timidity_cv_type_volatile = no; then
9392
9393 cat >>confdefs.h <<\_ACEOF
9394 #define NO_VOLATILE 1
9395 _ACEOF
9396
9397 fi
9398
9399 echo "$as_me:$LINENO: checking union semun declaration" >&5
9400 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9401 if test "${timidity_cv_type_union_semun+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410
9411 #include <sys/types.h>
9412 #include <sys/ipc.h>
9413 #include <sys/sem.h>
9414
9415 int
9416 main ()
9417 {
9418 union semun x
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425   (eval $ac_compile) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -z "$ac_c_werror_flag"
9433                          || test ! -s conftest.err'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   timidity_cv_type_union_semun=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 timidity_cv_type_union_semun=no
9451 fi
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9455 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9456 if test $timidity_cv_type_union_semun = yes; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_UNION_SEMUN 1
9460 _ACEOF
9461
9462 fi
9463
9464 if test "x$MSYS" = xyes ; then
9465         case "x${CC}" in
9466         "xgcc"*)
9467                 msnative_struct=''
9468             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9469 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9470             if test -z "$ac_cv_prog_CC"; then
9471                         our_gcc="$CC"
9472                 else
9473                         our_gcc="$ac_cv_prog_CC"
9474                 fi
9475                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9476                         2.)
9477                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9478                         msnative_struct='-fnative-struct'
9479                 fi
9480                 ;;
9481                         *)
9482                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9483                         msnative_struct='-mms-bitfields'
9484                 fi
9485                 ;;
9486                 esac
9487                 if test x"$msnative_struct" = x ; then
9488                         echo "$as_me:$LINENO: result: no way" >&5
9489 echo "${ECHO_T}no way" >&6
9490                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9491 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9492                 else
9493                         CFLAGS="$CFLAGS $msnative_struct"
9494                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9495                         echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9496 echo "${ECHO_T}${msnative_struct}" >&6
9497                 fi
9498                 ;;
9499         *)
9500                 ;;
9501         esac
9502 fi
9503 if test "x$MSYS" = xyes ; then
9504   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9505 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9506 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515
9516 #include <windows.h>
9517 #include <mmsystem.h>
9518
9519 int
9520 main ()
9521 {
9522 return WOM_OPEN != 0x3BB
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag"
9537                          || test ! -s conftest.err'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 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   timidity_cv_header_new_mmsystem=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 timidity_cv_header_new_mmsystem=no
9555 fi
9556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 fi
9558 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9559 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9560   if test $timidity_cv_header_new_mmsystem = yes; then
9561
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_NEW_MMSYSTEM 1
9564 _ACEOF
9565
9566   fi
9567 fi
9568
9569 # Checks for library functions.
9570 echo "$as_me:$LINENO: checking for error_at_line" >&5
9571 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9572 if test "${ac_cv_lib_error_at_line+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 $ac_includes_default
9582 int
9583 main ()
9584 {
9585 error_at_line (0, 0, "", 0, "");
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592   (eval $ac_link) 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -z "$ac_c_werror_flag"
9600                          || test ! -s conftest.err'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; } &&
9606          { ac_try='test -s conftest$ac_exeext'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_lib_error_at_line=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_lib_error_at_line=no
9618 fi
9619 rm -f conftest.err conftest.$ac_objext \
9620       conftest$ac_exeext conftest.$ac_ext
9621 fi
9622 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9623 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9624 if test $ac_cv_lib_error_at_line = no; then
9625   case $LIBOBJS in
9626     "error.$ac_objext"   | \
9627   *" error.$ac_objext"   | \
9628     "error.$ac_objext "* | \
9629   *" error.$ac_objext "* ) ;;
9630   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9631 esac
9632
9633 fi
9634
9635
9636
9637 for ac_header in unistd.h vfork.h
9638 do
9639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641   echo "$as_me:$LINENO: checking for $ac_header" >&5
9642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 fi
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9648 else
9649   # Is the header compilable?
9650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658 $ac_includes_default
9659 #include <$ac_header>
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663   (eval $ac_compile) 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_c_werror_flag"
9671                          || test ! -s conftest.err'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; } &&
9677          { ac_try='test -s conftest.$ac_objext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_header_compiler=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_header_compiler=no
9689 fi
9690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6
9693
9694 # Is the header present?
9695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 #include <$ac_header>
9704 _ACEOF
9705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } >/dev/null; then
9713   if test -s conftest.err; then
9714     ac_cpp_err=$ac_c_preproc_warn_flag
9715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9716   else
9717     ac_cpp_err=
9718   fi
9719 else
9720   ac_cpp_err=yes
9721 fi
9722 if test -z "$ac_cpp_err"; then
9723   ac_header_preproc=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728   ac_header_preproc=no
9729 fi
9730 rm -f conftest.err conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6
9733
9734 # So?  What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736   yes:no: )
9737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741     ac_header_preproc=yes
9742     ;;
9743   no:yes:* )
9744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9756     (
9757       cat <<\_ASBOX
9758 ## ------------------------------- ##
9759 ## Report this to root@mput.dip.jp ##
9760 ## ------------------------------- ##
9761 _ASBOX
9762     ) |
9763       sed "s/^/$as_me: WARNING:     /" >&2
9764     ;;
9765 esac
9766 echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771   eval "$as_ac_Header=\$ac_header_preproc"
9772 fi
9773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9775
9776 fi
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778   cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 fi
9783
9784 done
9785
9786
9787
9788 for ac_func in fork vfork
9789 do
9790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9791 echo "$as_me:$LINENO: checking for $ac_func" >&5
9792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9793 if eval "test \"\${$as_ac_var+set}\" = set"; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9804 #define $ac_func innocuous_$ac_func
9805
9806 /* System header to define __stub macros and hopefully few prototypes,
9807     which can conflict with char $ac_func (); below.
9808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809     <limits.h> exists even on freestanding compilers.  */
9810
9811 #ifdef __STDC__
9812 # include <limits.h>
9813 #else
9814 # include <assert.h>
9815 #endif
9816
9817 #undef $ac_func
9818
9819 /* Override any gcc2 internal prototype to avoid an error.  */
9820 #ifdef __cplusplus
9821 extern "C"
9822 {
9823 #endif
9824 /* We use char because int might match the return type of a gcc2
9825    builtin and then its argument prototype would still apply.  */
9826 char $ac_func ();
9827 /* The GNU C library defines this for functions which it implements
9828     to always fail with ENOSYS.  Some functions are actually named
9829     something starting with __ and the normal name is an alias.  */
9830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831 choke me
9832 #else
9833 char (*f) () = $ac_func;
9834 #endif
9835 #ifdef __cplusplus
9836 }
9837 #endif
9838
9839 int
9840 main ()
9841 {
9842 return f != $ac_func;
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849   (eval $ac_link) 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag"
9857                          || test ! -s conftest.err'
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); }; } &&
9863          { ac_try='test -s conftest$ac_exeext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   eval "$as_ac_var=yes"
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 eval "$as_ac_var=no"
9875 fi
9876 rm -f conftest.err conftest.$ac_objext \
9877       conftest$ac_exeext conftest.$ac_ext
9878 fi
9879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9881 if test `eval echo '${'$as_ac_var'}'` = yes; then
9882   cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9884 _ACEOF
9885
9886 fi
9887 done
9888
9889 if test "x$ac_cv_func_fork" = xyes; then
9890   echo "$as_me:$LINENO: checking for working fork" >&5
9891 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9892 if test "${ac_cv_func_fork_works+set}" = set; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895   if test "$cross_compiling" = yes; then
9896   ac_cv_func_fork_works=cross
9897 else
9898   cat >conftest.$ac_ext <<_ACEOF
9899 /* By Ruediger Kuhlmann. */
9900       #include <sys/types.h>
9901       #if HAVE_UNISTD_H
9902       # include <unistd.h>
9903       #endif
9904       /* Some systems only have a dummy stub for fork() */
9905       int main ()
9906       {
9907         if (fork() < 0)
9908           exit (1);
9909         exit (0);
9910       }
9911 _ACEOF
9912 rm -f conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914   (eval $ac_link) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_func_fork_works=yes
9924 else
9925   echo "$as_me: program exited with status $ac_status" >&5
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 ( exit $ac_status )
9930 ac_cv_func_fork_works=no
9931 fi
9932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9933 fi
9934 fi
9935 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9936 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9937
9938 else
9939   ac_cv_func_fork_works=$ac_cv_func_fork
9940 fi
9941 if test "x$ac_cv_func_fork_works" = xcross; then
9942   case $host in
9943     *-*-amigaos* | *-*-msdosdjgpp*)
9944       # Override, as these systems have only a dummy fork() stub
9945       ac_cv_func_fork_works=no
9946       ;;
9947     *)
9948       ac_cv_func_fork_works=yes
9949       ;;
9950   esac
9951   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9952 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9953 fi
9954 ac_cv_func_vfork_works=$ac_cv_func_vfork
9955 if test "x$ac_cv_func_vfork" = xyes; then
9956   echo "$as_me:$LINENO: checking for working vfork" >&5
9957 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9958 if test "${ac_cv_func_vfork_works+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   if test "$cross_compiling" = yes; then
9962   ac_cv_func_vfork_works=cross
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 /* Thanks to Paul Eggert for this test.  */
9971 #include <stdio.h>
9972 #include <stdlib.h>
9973 #include <sys/types.h>
9974 #include <sys/stat.h>
9975 #include <sys/wait.h>
9976 #if HAVE_UNISTD_H
9977 # include <unistd.h>
9978 #endif
9979 #if HAVE_VFORK_H
9980 # include <vfork.h>
9981 #endif
9982 /* On some sparc systems, changes by the child to local and incoming
9983    argument registers are propagated back to the parent.  The compiler
9984    is told about this with #include <vfork.h>, but some compilers
9985    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9986    static variable whose address is put into a register that is
9987    clobbered by the vfork.  */
9988 static void
9989 #ifdef __cplusplus
9990 sparc_address_test (int arg)
9991 # else
9992 sparc_address_test (arg) int arg;
9993 #endif
9994 {
9995   static pid_t child;
9996   if (!child) {
9997     child = vfork ();
9998     if (child < 0) {
9999       perror ("vfork");
10000       _exit(2);
10001     }
10002     if (!child) {
10003       arg = getpid();
10004       write(-1, "", 0);
10005       _exit (arg);
10006     }
10007   }
10008 }
10009
10010 int
10011 main ()
10012 {
10013   pid_t parent = getpid ();
10014   pid_t child;
10015
10016   sparc_address_test (0);
10017
10018   child = vfork ();
10019
10020   if (child == 0) {
10021     /* Here is another test for sparc vfork register problems.  This
10022        test uses lots of local variables, at least as many local
10023        variables as main has allocated so far including compiler
10024        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10025        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10026        reuse the register of parent for one of the local variables,
10027        since it will think that parent can't possibly be used any more
10028        in this routine.  Assigning to the local variable will thus
10029        munge parent in the parent process.  */
10030     pid_t
10031       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10032       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10033     /* Convince the compiler that p..p7 are live; otherwise, it might
10034        use the same hardware register for all 8 local variables.  */
10035     if (p != p1 || p != p2 || p != p3 || p != p4
10036         || p != p5 || p != p6 || p != p7)
10037       _exit(1);
10038
10039     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10040        from child file descriptors.  If the child closes a descriptor
10041        before it execs or exits, this munges the parent's descriptor
10042        as well.  Test for this by closing stdout in the child.  */
10043     _exit(close(fileno(stdout)) != 0);
10044   } else {
10045     int status;
10046     struct stat st;
10047
10048     while (wait(&status) != child)
10049       ;
10050     exit(
10051          /* Was there some problem with vforking?  */
10052          child < 0
10053
10054          /* Did the child fail?  (This shouldn't happen.)  */
10055          || status
10056
10057          /* Did the vfork/compiler bug occur?  */
10058          || parent != getpid()
10059
10060          /* Did the file descriptor bug occur?  */
10061          || fstat(fileno(stdout), &st) != 0
10062          );
10063   }
10064 }
10065 _ACEOF
10066 rm -f conftest$ac_exeext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068   (eval $ac_link) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_func_vfork_works=yes
10078 else
10079   echo "$as_me: program exited with status $ac_status" >&5
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ( exit $ac_status )
10084 ac_cv_func_vfork_works=no
10085 fi
10086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10087 fi
10088 fi
10089 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10090 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10091
10092 fi;
10093 if test "x$ac_cv_func_fork_works" = xcross; then
10094   ac_cv_func_vfork_works=$ac_cv_func_vfork
10095   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10096 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10097 fi
10098
10099 if test "x$ac_cv_func_vfork_works" = xyes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_WORKING_VFORK 1
10103 _ACEOF
10104
10105 else
10106
10107 cat >>confdefs.h <<\_ACEOF
10108 #define vfork fork
10109 _ACEOF
10110
10111 fi
10112 if test "x$ac_cv_func_fork_works" = xyes; then
10113
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_WORKING_FORK 1
10116 _ACEOF
10117
10118 fi
10119
10120 echo "$as_me:$LINENO: checking for working memcmp" >&5
10121 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10122 if test "${ac_cv_func_memcmp_working+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   if test "$cross_compiling" = yes; then
10126   ac_cv_func_memcmp_working=no
10127 else
10128   cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h.  */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h.  */
10134 $ac_includes_default
10135 int
10136 main ()
10137 {
10138
10139   /* Some versions of memcmp are not 8-bit clean.  */
10140   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10141   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10142     exit (1);
10143
10144   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10145      or more and with at least one buffer not starting on a 4-byte boundary.
10146      William Lewis provided this test program.   */
10147   {
10148     char foo[21];
10149     char bar[21];
10150     int i;
10151     for (i = 0; i < 4; i++)
10152       {
10153         char *a = foo + i;
10154         char *b = bar + i;
10155         strcpy (a, "--------01111111");
10156         strcpy (b, "--------10000000");
10157         if (memcmp (a, b, 16) >= 0)
10158           exit (1);
10159       }
10160     exit (0);
10161   }
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169   (eval $ac_link) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_cv_func_memcmp_working=yes
10179 else
10180   echo "$as_me: program exited with status $ac_status" >&5
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ( exit $ac_status )
10185 ac_cv_func_memcmp_working=no
10186 fi
10187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10191 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10192 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
10193     "memcmp.$ac_objext"   | \
10194   *" memcmp.$ac_objext"   | \
10195     "memcmp.$ac_objext "* | \
10196   *" memcmp.$ac_objext "* ) ;;
10197   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
10198 esac
10199
10200
10201
10202
10203 for ac_header in stdlib.h unistd.h
10204 do
10205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207   echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 fi
10212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10214 else
10215   # Is the header compilable?
10216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224 $ac_includes_default
10225 #include <$ac_header>
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229   (eval $ac_compile) 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -z "$ac_c_werror_flag"
10237                          || test ! -s conftest.err'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest.$ac_objext'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_header_compiler=yes
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_header_compiler=no
10255 fi
10256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10258 echo "${ECHO_T}$ac_header_compiler" >&6
10259
10260 # Is the header present?
10261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269 #include <$ac_header>
10270 _ACEOF
10271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } >/dev/null; then
10279   if test -s conftest.err; then
10280     ac_cpp_err=$ac_c_preproc_warn_flag
10281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10282   else
10283     ac_cpp_err=
10284   fi
10285 else
10286   ac_cpp_err=yes
10287 fi
10288 if test -z "$ac_cpp_err"; then
10289   ac_header_preproc=yes
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294   ac_header_preproc=no
10295 fi
10296 rm -f conftest.err conftest.$ac_ext
10297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10298 echo "${ECHO_T}$ac_header_preproc" >&6
10299
10300 # So?  What about this header?
10301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10302   yes:no: )
10303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10307     ac_header_preproc=yes
10308     ;;
10309   no:yes:* )
10310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10322     (
10323       cat <<\_ASBOX
10324 ## ------------------------------- ##
10325 ## Report this to root@mput.dip.jp ##
10326 ## ------------------------------- ##
10327 _ASBOX
10328     ) |
10329       sed "s/^/$as_me: WARNING:     /" >&2
10330     ;;
10331 esac
10332 echo "$as_me:$LINENO: checking for $ac_header" >&5
10333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   eval "$as_ac_Header=\$ac_header_preproc"
10338 fi
10339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10341
10342 fi
10343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10344   cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10346 _ACEOF
10347
10348 fi
10349
10350 done
10351
10352
10353 for ac_func in getpagesize
10354 do
10355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10356 echo "$as_me:$LINENO: checking for $ac_func" >&5
10357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_var+set}\" = set"; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10369 #define $ac_func innocuous_$ac_func
10370
10371 /* System header to define __stub macros and hopefully few prototypes,
10372     which can conflict with char $ac_func (); below.
10373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374     <limits.h> exists even on freestanding compilers.  */
10375
10376 #ifdef __STDC__
10377 # include <limits.h>
10378 #else
10379 # include <assert.h>
10380 #endif
10381
10382 #undef $ac_func
10383
10384 /* Override any gcc2 internal prototype to avoid an error.  */
10385 #ifdef __cplusplus
10386 extern "C"
10387 {
10388 #endif
10389 /* We use char because int might match the return type of a gcc2
10390    builtin and then its argument prototype would still apply.  */
10391 char $ac_func ();
10392 /* The GNU C library defines this for functions which it implements
10393     to always fail with ENOSYS.  Some functions are actually named
10394     something starting with __ and the normal name is an alias.  */
10395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10396 choke me
10397 #else
10398 char (*f) () = $ac_func;
10399 #endif
10400 #ifdef __cplusplus
10401 }
10402 #endif
10403
10404 int
10405 main ()
10406 {
10407 return f != $ac_func;
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414   (eval $ac_link) 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -z "$ac_c_werror_flag"
10422                          || test ! -s conftest.err'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 eval "$as_ac_var=no"
10440 fi
10441 rm -f conftest.err conftest.$ac_objext \
10442       conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447   cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10449 _ACEOF
10450
10451 fi
10452 done
10453
10454 echo "$as_me:$LINENO: checking for working mmap" >&5
10455 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10456 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   if test "$cross_compiling" = yes; then
10460   ac_cv_func_mmap_fixed_mapped=no
10461 else
10462   cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 $ac_includes_default
10469 /* malloc might have been renamed as rpl_malloc. */
10470 #undef malloc
10471
10472 /* Thanks to Mike Haertel and Jim Avera for this test.
10473    Here is a matrix of mmap possibilities:
10474         mmap private not fixed
10475         mmap private fixed at somewhere currently unmapped
10476         mmap private fixed at somewhere already mapped
10477         mmap shared not fixed
10478         mmap shared fixed at somewhere currently unmapped
10479         mmap shared fixed at somewhere already mapped
10480    For private mappings, we should verify that changes cannot be read()
10481    back from the file, nor mmap's back from the file at a different
10482    address.  (There have been systems where private was not correctly
10483    implemented like the infamous i386 svr4.0, and systems where the
10484    VM page cache was not coherent with the file system buffer cache
10485    like early versions of FreeBSD and possibly contemporary NetBSD.)
10486    For shared mappings, we should conversely verify that changes get
10487    propagated back to all the places they're supposed to be.
10488
10489    Grep wants private fixed already mapped.
10490    The main things grep needs to know about mmap are:
10491    * does it exist and is it safe to write into the mmap'd area
10492    * how to use it (BSD variants)  */
10493
10494 #include <fcntl.h>
10495 #include <sys/mman.h>
10496
10497 #if !STDC_HEADERS && !HAVE_STDLIB_H
10498 char *malloc ();
10499 #endif
10500
10501 /* This mess was copied from the GNU getpagesize.h.  */
10502 #if !HAVE_GETPAGESIZE
10503 /* Assume that all systems that can run configure have sys/param.h.  */
10504 # if !HAVE_SYS_PARAM_H
10505 #  define HAVE_SYS_PARAM_H 1
10506 # endif
10507
10508 # ifdef _SC_PAGESIZE
10509 #  define getpagesize() sysconf(_SC_PAGESIZE)
10510 # else /* no _SC_PAGESIZE */
10511 #  if HAVE_SYS_PARAM_H
10512 #   include <sys/param.h>
10513 #   ifdef EXEC_PAGESIZE
10514 #    define getpagesize() EXEC_PAGESIZE
10515 #   else /* no EXEC_PAGESIZE */
10516 #    ifdef NBPG
10517 #     define getpagesize() NBPG * CLSIZE
10518 #     ifndef CLSIZE
10519 #      define CLSIZE 1
10520 #     endif /* no CLSIZE */
10521 #    else /* no NBPG */
10522 #     ifdef NBPC
10523 #      define getpagesize() NBPC
10524 #     else /* no NBPC */
10525 #      ifdef PAGESIZE
10526 #       define getpagesize() PAGESIZE
10527 #      endif /* PAGESIZE */
10528 #     endif /* no NBPC */
10529 #    endif /* no NBPG */
10530 #   endif /* no EXEC_PAGESIZE */
10531 #  else /* no HAVE_SYS_PARAM_H */
10532 #   define getpagesize() 8192   /* punt totally */
10533 #  endif /* no HAVE_SYS_PARAM_H */
10534 # endif /* no _SC_PAGESIZE */
10535
10536 #endif /* no HAVE_GETPAGESIZE */
10537
10538 int
10539 main ()
10540 {
10541   char *data, *data2, *data3;
10542   int i, pagesize;
10543   int fd;
10544
10545   pagesize = getpagesize ();
10546
10547   /* First, make a file with some known garbage in it. */
10548   data = (char *) malloc (pagesize);
10549   if (!data)
10550     exit (1);
10551   for (i = 0; i < pagesize; ++i)
10552     *(data + i) = rand ();
10553   umask (0);
10554   fd = creat ("conftest.mmap", 0600);
10555   if (fd < 0)
10556     exit (1);
10557   if (write (fd, data, pagesize) != pagesize)
10558     exit (1);
10559   close (fd);
10560
10561   /* Next, try to mmap the file at a fixed address which already has
10562      something else allocated at it.  If we can, also make sure that
10563      we see the same garbage.  */
10564   fd = open ("conftest.mmap", O_RDWR);
10565   if (fd < 0)
10566     exit (1);
10567   data2 = (char *) malloc (2 * pagesize);
10568   if (!data2)
10569     exit (1);
10570   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10571   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10572                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10573     exit (1);
10574   for (i = 0; i < pagesize; ++i)
10575     if (*(data + i) != *(data2 + i))
10576       exit (1);
10577
10578   /* Finally, make sure that changes to the mapped area do not
10579      percolate back to the file as seen by read().  (This is a bug on
10580      some variants of i386 svr4.0.)  */
10581   for (i = 0; i < pagesize; ++i)
10582     *(data2 + i) = *(data2 + i) + 1;
10583   data3 = (char *) malloc (pagesize);
10584   if (!data3)
10585     exit (1);
10586   if (read (fd, data3, pagesize) != pagesize)
10587     exit (1);
10588   for (i = 0; i < pagesize; ++i)
10589     if (*(data + i) != *(data3 + i))
10590       exit (1);
10591   close (fd);
10592   exit (0);
10593 }
10594 _ACEOF
10595 rm -f conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597   (eval $ac_link) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602   (eval $ac_try) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; }; then
10606   ac_cv_func_mmap_fixed_mapped=yes
10607 else
10608   echo "$as_me: program exited with status $ac_status" >&5
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ( exit $ac_status )
10613 ac_cv_func_mmap_fixed_mapped=no
10614 fi
10615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10616 fi
10617 fi
10618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10619 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10620 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10621
10622 cat >>confdefs.h <<\_ACEOF
10623 #define HAVE_MMAP 1
10624 _ACEOF
10625
10626 fi
10627 rm -f conftest.mmap
10628
10629 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10630 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10631 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   ac_cv_func_setvbuf_reversed=no
10635    cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641 #include <stdio.h>
10642 #         if PROTOTYPES
10643            int (setvbuf) (FILE *, int, char *, size_t);
10644 #         endif
10645 int
10646 main ()
10647 {
10648 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10649   ;
10650   return 0;
10651 }
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655   (eval $ac_link) 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } &&
10662          { ac_try='test -z "$ac_c_werror_flag"
10663                          || test ! -s conftest.err'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; } &&
10669          { ac_try='test -s conftest$ac_exeext'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; }; then
10675   cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 #include <stdio.h>
10682 #            if PROTOTYPES
10683               int (setvbuf) (FILE *, int, char *, size_t);
10684 #            endif
10685 int
10686 main ()
10687 {
10688 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695   (eval $ac_link) 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -z "$ac_c_werror_flag"
10703                          || test ! -s conftest.err'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; } &&
10709          { ac_try='test -s conftest$ac_exeext'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   # It compiles and links either way, so it must not be declared
10716          # with a prototype and most likely this is a K&R C compiler.
10717          # Try running it.
10718          if test "$cross_compiling" = yes; then
10719   : # Assume setvbuf is not reversed when cross-compiling.
10720 else
10721   cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727 #include <stdio.h>
10728 int
10729 main ()
10730 {
10731 /* This call has the arguments reversed.
10732                    A reversed system may check and see that the address of buf
10733                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10734                 char buf;
10735                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10736                   exit (1);
10737                 putchar ('\r');
10738                 exit (0); /* Non-reversed systems SEGV here.  */
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745   (eval $ac_link) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ac_cv_func_setvbuf_reversed=yes
10755 else
10756   echo "$as_me: program exited with status $ac_status" >&5
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ( exit $ac_status )
10761 rm -f core *.core
10762 fi
10763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10764 fi
10765         ac_cv_func_setvbuf_reversed=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 fi
10771 rm -f conftest.err conftest.$ac_objext \
10772       conftest$ac_exeext conftest.$ac_ext
10773 else
10774   echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 fi
10778 rm -f conftest.err conftest.$ac_objext \
10779       conftest$ac_exeext conftest.$ac_ext
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10782 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10783 if test $ac_cv_func_setvbuf_reversed = yes; then
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define SETVBUF_REVERSED 1
10787 _ACEOF
10788
10789 fi
10790
10791 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10792 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10793 if test "${ac_cv_type_signal+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h.  */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h.  */
10802 #include <sys/types.h>
10803 #include <signal.h>
10804 #ifdef signal
10805 # undef signal
10806 #endif
10807 #ifdef __cplusplus
10808 extern "C" void (*signal (int, void (*)(int)))(int);
10809 #else
10810 void (*signal ()) ();
10811 #endif
10812
10813 int
10814 main ()
10815 {
10816 int i;
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest.$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823   (eval $ac_compile) 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } &&
10830          { ac_try='test -z "$ac_c_werror_flag"
10831                          || test ! -s conftest.err'
10832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833   (eval $ac_try) 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); }; } &&
10837          { ac_try='test -s conftest.$ac_objext'
10838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839   (eval $ac_try) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; }; then
10843   ac_cv_type_signal=void
10844 else
10845   echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848 ac_cv_type_signal=int
10849 fi
10850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10853 echo "${ECHO_T}$ac_cv_type_signal" >&6
10854
10855 cat >>confdefs.h <<_ACEOF
10856 #define RETSIGTYPE $ac_cv_type_signal
10857 _ACEOF
10858
10859
10860 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10861
10862 for ac_func in vprintf
10863 do
10864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865 echo "$as_me:$LINENO: checking for $ac_func" >&5
10866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_var+set}\" = set"; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10878 #define $ac_func innocuous_$ac_func
10879
10880 /* System header to define __stub macros and hopefully few prototypes,
10881     which can conflict with char $ac_func (); below.
10882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883     <limits.h> exists even on freestanding compilers.  */
10884
10885 #ifdef __STDC__
10886 # include <limits.h>
10887 #else
10888 # include <assert.h>
10889 #endif
10890
10891 #undef $ac_func
10892
10893 /* Override any gcc2 internal prototype to avoid an error.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 {
10897 #endif
10898 /* We use char because int might match the return type of a gcc2
10899    builtin and then its argument prototype would still apply.  */
10900 char $ac_func ();
10901 /* The GNU C library defines this for functions which it implements
10902     to always fail with ENOSYS.  Some functions are actually named
10903     something starting with __ and the normal name is an alias.  */
10904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10905 choke me
10906 #else
10907 char (*f) () = $ac_func;
10908 #endif
10909 #ifdef __cplusplus
10910 }
10911 #endif
10912
10913 int
10914 main ()
10915 {
10916 return f != $ac_func;
10917   ;
10918   return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923   (eval $ac_link) 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag"
10931                          || test ! -s conftest.err'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; } &&
10937          { ac_try='test -s conftest$ac_exeext'
10938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939   (eval $ac_try) 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; }; then
10943   eval "$as_ac_var=yes"
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 eval "$as_ac_var=no"
10949 fi
10950 rm -f conftest.err conftest.$ac_objext \
10951       conftest$ac_exeext conftest.$ac_ext
10952 fi
10953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10955 if test `eval echo '${'$as_ac_var'}'` = yes; then
10956   cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 _ACEOF
10959
10960 echo "$as_me:$LINENO: checking for _doprnt" >&5
10961 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10962 if test "${ac_cv_func__doprnt+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10973 #define _doprnt innocuous__doprnt
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976     which can conflict with char _doprnt (); below.
10977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978     <limits.h> exists even on freestanding compilers.  */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef _doprnt
10987
10988 /* Override any gcc2 internal prototype to avoid an error.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 {
10992 #endif
10993 /* We use char because int might match the return type of a gcc2
10994    builtin and then its argument prototype would still apply.  */
10995 char _doprnt ();
10996 /* The GNU C library defines this for functions which it implements
10997     to always fail with ENOSYS.  Some functions are actually named
10998     something starting with __ and the normal name is an alias.  */
10999 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11000 choke me
11001 #else
11002 char (*f) () = _doprnt;
11003 #endif
11004 #ifdef __cplusplus
11005 }
11006 #endif
11007
11008 int
11009 main ()
11010 {
11011 return f != _doprnt;
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018   (eval $ac_link) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -z "$ac_c_werror_flag"
11026                          || test ! -s conftest.err'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest$ac_exeext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_cv_func__doprnt=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_cv_func__doprnt=no
11044 fi
11045 rm -f conftest.err conftest.$ac_objext \
11046       conftest$ac_exeext conftest.$ac_ext
11047 fi
11048 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11049 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11050 if test $ac_cv_func__doprnt = yes; then
11051
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_DOPRNT 1
11054 _ACEOF
11055
11056 fi
11057
11058 fi
11059 done
11060
11061
11062 fi
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099 for ac_func in \
11100   alarm \
11101   dup2 \
11102   floor \
11103   getcwd \
11104   getopt \
11105   gethostbyname \
11106   gettimeofday \
11107   getwd \
11108   isatty \
11109   memchr \
11110   memmove \
11111   memset \
11112   mkstemp \
11113   modf \
11114   munmap \
11115   popen \
11116   pow \
11117   select \
11118   signal \
11119   socket \
11120   sleep \
11121   vsnprintf \
11122   snprintf \
11123   sqrt \
11124   strchr \
11125   strdup \
11126   strstr \
11127   strerror \
11128   strcasecmp \
11129   strncasecmp \
11130   strrchr \
11131   strstr \
11132   strtol \
11133   strlcat \
11134   strlcpy \
11135   usleep
11136 do
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11140 if eval "test \"\${$as_ac_var+set}\" = set"; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11151 #define $ac_func innocuous_$ac_func
11152
11153 /* System header to define __stub macros and hopefully few prototypes,
11154     which can conflict with char $ac_func (); below.
11155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156     <limits.h> exists even on freestanding compilers.  */
11157
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11163
11164 #undef $ac_func
11165
11166 /* Override any gcc2 internal prototype to avoid an error.  */
11167 #ifdef __cplusplus
11168 extern "C"
11169 {
11170 #endif
11171 /* We use char because int might match the return type of a gcc2
11172    builtin and then its argument prototype would still apply.  */
11173 char $ac_func ();
11174 /* The GNU C library defines this for functions which it implements
11175     to always fail with ENOSYS.  Some functions are actually named
11176     something starting with __ and the normal name is an alias.  */
11177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11178 choke me
11179 #else
11180 char (*f) () = $ac_func;
11181 #endif
11182 #ifdef __cplusplus
11183 }
11184 #endif
11185
11186 int
11187 main ()
11188 {
11189 return f != $ac_func;
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196   (eval $ac_link) 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -z "$ac_c_werror_flag"
11204                          || test ! -s conftest.err'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; } &&
11210          { ac_try='test -s conftest$ac_exeext'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   eval "$as_ac_var=yes"
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 eval "$as_ac_var=no"
11222 fi
11223 rm -f conftest.err conftest.$ac_objext \
11224       conftest$ac_exeext conftest.$ac_ext
11225 fi
11226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11228 if test `eval echo '${'$as_ac_var'}'` = yes; then
11229   cat >>confdefs.h <<_ACEOF
11230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 _ACEOF
11232
11233 fi
11234 done
11235
11236 if test "x$VCPP" = xyes; then
11237   cat >>confdefs.h <<\_ACEOF
11238 #define RETSIGTYPE int
11239 _ACEOF
11240
11241   cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GETCWD int
11243 _ACEOF
11244
11245 fi
11246 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11247   cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_GETHOSTBYNAME 1
11249 _ACEOF
11250
11251   cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_POPEN 1
11253 _ACEOF
11254
11255
11256 cat >>confdefs.h <<\_ACEOF
11257 #define popen _popen
11258 _ACEOF
11259
11260
11261 cat >>confdefs.h <<\_ACEOF
11262 #define pclose _pclose
11263 _ACEOF
11264
11265   cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_SELECT 1
11267 _ACEOF
11268
11269   cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_SNPRINTF 1
11271 _ACEOF
11272
11273   cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_STRDUP 1
11275 _ACEOF
11276
11277   cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_STRERROR 1
11279 _ACEOF
11280
11281   cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_STRNCASECMP 1
11283 _ACEOF
11284
11285   cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_STRSTR 1
11287 _ACEOF
11288
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define snprintf _snprintf
11292 _ACEOF
11293
11294   cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_SOCKET 1
11296 _ACEOF
11297
11298   cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_VSNPRINTF 1
11300 _ACEOF
11301
11302
11303 cat >>confdefs.h <<\_ACEOF
11304 #define vsnprintf _vsnprintf
11305 _ACEOF
11306
11307
11308 cat >>confdefs.h <<\_ACEOF
11309 #define TIMID_VERSION $(PACKAGE_VERSION)
11310 _ACEOF
11311
11312 fi
11313
11314 echo "$as_me:$LINENO: checking for getopt_long" >&5
11315 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11316 if test "${ac_cv_func_getopt_long+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319   cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11327 #define getopt_long innocuous_getopt_long
11328
11329 /* System header to define __stub macros and hopefully few prototypes,
11330     which can conflict with char getopt_long (); below.
11331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11332     <limits.h> exists even on freestanding compilers.  */
11333
11334 #ifdef __STDC__
11335 # include <limits.h>
11336 #else
11337 # include <assert.h>
11338 #endif
11339
11340 #undef getopt_long
11341
11342 /* Override any gcc2 internal prototype to avoid an error.  */
11343 #ifdef __cplusplus
11344 extern "C"
11345 {
11346 #endif
11347 /* We use char because int might match the return type of a gcc2
11348    builtin and then its argument prototype would still apply.  */
11349 char getopt_long ();
11350 /* The GNU C library defines this for functions which it implements
11351     to always fail with ENOSYS.  Some functions are actually named
11352     something starting with __ and the normal name is an alias.  */
11353 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11354 choke me
11355 #else
11356 char (*f) () = getopt_long;
11357 #endif
11358 #ifdef __cplusplus
11359 }
11360 #endif
11361
11362 int
11363 main ()
11364 {
11365 return f != getopt_long;
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372   (eval $ac_link) 2>conftest.er1
11373   ac_status=$?
11374   grep -v '^ *+' conftest.er1 >conftest.err
11375   rm -f conftest.er1
11376   cat conftest.err >&5
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -z "$ac_c_werror_flag"
11380                          || test ! -s conftest.err'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; } &&
11386          { ac_try='test -s conftest$ac_exeext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_func_getopt_long=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_func_getopt_long=no
11398 fi
11399 rm -f conftest.err conftest.$ac_objext \
11400       conftest$ac_exeext conftest.$ac_ext
11401 fi
11402 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11403 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11404 if test $ac_cv_func_getopt_long = yes; then
11405
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_GETOPT_LONG 1
11408 _ACEOF
11409
11410          tm_cv_needgetopt="no"
11411 else
11412   tm_cv_needgetopt="yes"
11413 fi
11414
11415
11416
11417 if test "x$tm_cv_needgetopt" = "xyes"; then
11418   NEEDGETOPT_TRUE=
11419   NEEDGETOPT_FALSE='#'
11420 else
11421   NEEDGETOPT_TRUE='#'
11422   NEEDGETOPT_FALSE=
11423 fi
11424
11425
11426 # Checks on cygnus and MYSYS
11427 if test "x$MSYS" = xyes ; then
11428   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
11429   *yes*)
11430     echo "$as_me:$LINENO: checking for opendir" >&5
11431 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11432 if test "${ac_cv_func_opendir+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11443 #define opendir innocuous_opendir
11444
11445 /* System header to define __stub macros and hopefully few prototypes,
11446     which can conflict with char opendir (); below.
11447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11448     <limits.h> exists even on freestanding compilers.  */
11449
11450 #ifdef __STDC__
11451 # include <limits.h>
11452 #else
11453 # include <assert.h>
11454 #endif
11455
11456 #undef opendir
11457
11458 /* Override any gcc2 internal prototype to avoid an error.  */
11459 #ifdef __cplusplus
11460 extern "C"
11461 {
11462 #endif
11463 /* We use char because int might match the return type of a gcc2
11464    builtin and then its argument prototype would still apply.  */
11465 char opendir ();
11466 /* The GNU C library defines this for functions which it implements
11467     to always fail with ENOSYS.  Some functions are actually named
11468     something starting with __ and the normal name is an alias.  */
11469 #if defined (__stub_opendir) || defined (__stub___opendir)
11470 choke me
11471 #else
11472 char (*f) () = opendir;
11473 #endif
11474 #ifdef __cplusplus
11475 }
11476 #endif
11477
11478 int
11479 main ()
11480 {
11481 return f != opendir;
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488   (eval $ac_link) 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -z "$ac_c_werror_flag"
11496                          || test ! -s conftest.err'
11497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498   (eval $ac_try) 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); }; } &&
11502          { ac_try='test -s conftest$ac_exeext'
11503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504   (eval $ac_try) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; }; then
11508   ac_cv_func_opendir=yes
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_cv_func_opendir=no
11514 fi
11515 rm -f conftest.err conftest.$ac_objext \
11516       conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11519 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11520 if test $ac_cv_func_opendir = yes; then
11521   :
11522 else
11523    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11524     W32READDIR=yes
11525 fi
11526
11527     ;;
11528   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11529     W32READDIR=yes
11530     ;;
11531   esac
11532   if test "x$enable_network" = "xyes"; then
11533         if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11534       EXTRALIBS="$EXTRALIBS  wsock32.lib"
11535       EXTRADEFS="$EXTRADEFS -DWINSOCK"
11536     else
11537       echo "$as_me:$LINENO: checking for socket" >&5
11538 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11539 if test "${ac_cv_func_socket+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11550 #define socket innocuous_socket
11551
11552 /* System header to define __stub macros and hopefully few prototypes,
11553     which can conflict with char socket (); below.
11554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11555     <limits.h> exists even on freestanding compilers.  */
11556
11557 #ifdef __STDC__
11558 # include <limits.h>
11559 #else
11560 # include <assert.h>
11561 #endif
11562
11563 #undef socket
11564
11565 /* Override any gcc2 internal prototype to avoid an error.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 {
11569 #endif
11570 /* We use char because int might match the return type of a gcc2
11571    builtin and then its argument prototype would still apply.  */
11572 char socket ();
11573 /* The GNU C library defines this for functions which it implements
11574     to always fail with ENOSYS.  Some functions are actually named
11575     something starting with __ and the normal name is an alias.  */
11576 #if defined (__stub_socket) || defined (__stub___socket)
11577 choke me
11578 #else
11579 char (*f) () = socket;
11580 #endif
11581 #ifdef __cplusplus
11582 }
11583 #endif
11584
11585 int
11586 main ()
11587 {
11588 return f != socket;
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } &&
11602          { ac_try='test -z "$ac_c_werror_flag"
11603                          || test ! -s conftest.err'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; } &&
11609          { ac_try='test -s conftest$ac_exeext'
11610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611   (eval $ac_try) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; }; then
11615   ac_cv_func_socket=yes
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620 ac_cv_func_socket=no
11621 fi
11622 rm -f conftest.err conftest.$ac_objext \
11623       conftest$ac_exeext conftest.$ac_ext
11624 fi
11625 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11626 echo "${ECHO_T}$ac_cv_func_socket" >&6
11627 if test $ac_cv_func_socket = yes; then
11628   :
11629 else
11630   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11631 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11632 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11633 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   ac_save_LIBS="$LIBS"
11637 LIBS="-lwsock32  $LIBS"
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <windows.h>
11645 #include <winsock.h>
11646
11647 int
11648 main ()
11649 {
11650 WSAStartup(0,0);
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657   (eval $ac_link) 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -z "$ac_c_werror_flag"
11665                          || test ! -s conftest.err'
11666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667   (eval $ac_try) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; } &&
11671          { ac_try='test -s conftest$ac_exeext'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   eval "wapi_cv_lib_$ac_lib_var=yes"
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 eval "wapi_cv_lib_$ac_lib_var=no"
11683 fi
11684 rm -f conftest.err conftest.$ac_objext \
11685       conftest$ac_exeext conftest.$ac_ext
11686 LIBS="$ac_save_LIBS"
11687
11688 fi
11689 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11690   echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692    EXTRALIBS="$EXTRALIBS -lwsock32"
11693           EXTRADEFS="$EXTRADEFS -DWINSOCK"
11694
11695 else
11696   echo "$as_me:$LINENO: result: no" >&5
11697 echo "${ECHO_T}no" >&6
11698 fi
11699
11700
11701 fi
11702
11703     fi
11704   fi
11705 fi
11706
11707 # Checks on extra paths
11708
11709
11710 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11711 if test "${with_tcl_includes+set}" = set; then
11712   withval="$with_tcl_includes"
11713    if test ! -d $withval; then
11714       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11715 echo "$as_me: WARNING: $withval is not found." >&2;}
11716     fi
11717     tcl_include_dir="-I$withval"
11718
11719 fi;
11720
11721 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11722 if test "${with_tcl_libs+set}" = set; then
11723   withval="$with_tcl_libs"
11724    if test ! -d $withval; then
11725       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11726 echo "$as_me: WARNING: $withval is not found." >&2;}
11727     fi
11728     tcl_libdir="-L$withval"
11729 fi;
11730
11731 # Check whether --with-tk-includes or --without-tk-includes was given.
11732 if test "${with_tk_includes+set}" = set; then
11733   withval="$with_tk_includes"
11734    if test ! -d $withval; then
11735       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11736 echo "$as_me: WARNING: $withval is not found." >&2;}
11737     fi
11738     tk_includes="-I$withval"
11739 fi;
11740
11741 # Check whether --with-tk-libs or --without-tk-libs was given.
11742 if test "${with_tk_libs+set}" = set; then
11743   withval="$with_tk_libs"
11744    if test ! -d $withval; then
11745       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11746 echo "$as_me: WARNING: $withval is not found." >&2;}
11747     fi
11748     tk_libdir="-L$withval"
11749 fi;
11750
11751
11752 # Check whether --with-offix-includes or --without-offix-includes was given.
11753 if test "${with_offix_includes+set}" = set; then
11754   withval="$with_offix_includes"
11755    if test ! -d $withval; then
11756       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11757 echo "$as_me: WARNING: $withval is not found." >&2;}
11758     fi
11759     offix_include_dir="-I$withval"
11760 fi;
11761
11762 # Check whether --with-offix-libs or --without-offix-libs was given.
11763 if test "${with_offix_libs+set}" = set; then
11764   withval="$with_offix_libs"
11765    if test ! -d $withval; then
11766       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11767 echo "$as_me: WARNING: $withval is not found." >&2;}
11768     fi
11769     offix_lib_dir="-L$withval"
11770 fi;
11771
11772
11773 #
11774 # audio section
11775 #
11776
11777 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11778
11779
11780 # Check whether --with-nas-library or --without-nas-library was given.
11781 if test "${with_nas_library+set}" = set; then
11782   withval="$with_nas_library"
11783
11784 fi;
11785
11786 # Check whether --with-nas-includes or --without-nas-includes was given.
11787 if test "${with_nas_includes+set}" = set; then
11788   withval="$with_nas_includes"
11789
11790 fi;
11791
11792
11793 # Check whether --enable-audio or --disable-audio was given.
11794 if test "${enable_audio+set}" = set; then
11795   enableval="$enable_audio"
11796    enable_audio=$enableval
11797     have_audio_opt=yes
11798 else
11799    enable_audio=yes
11800     have_audio_opt=no
11801 fi;
11802
11803 test "x$enable_audio" = xyes && enable_audio=default
11804
11805 if test "x$enable_audio" != xno; then
11806   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11807     eval "au_enable_$i=yes"
11808   done
11809 fi
11810
11811 DEFAULT_PLAYMODE=
11812
11813 # Check whether --with-default-output or --without-default-output was given.
11814 if test "${with_default_output+set}" = set; then
11815   withval="$with_default_output"
11816    if test "$enable_audio" != no; then
11817     DEFAULT_PLAYMODE=$withval
11818     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11819   else
11820     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11821 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11822   fi
11823 fi;
11824
11825
11826 if test "x$au_enable_default" = xyes; then
11827   case "$target" in
11828   *-*-linux*|*-*-freebsd*)
11829     au_enable_oss=yes
11830     ;;
11831   *-*-bsdi2.0)
11832     au_enable_sb_dsp=yes
11833     ;;
11834   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11835     au_enable_oss=yes
11836     ;;
11837   *-*-hpux*)
11838     au_enable_hpux=yes
11839     ;;
11840   *-dec-*)
11841     au_enable_mme=yes
11842     ;;
11843   *irix*)
11844     au_enable_irix=yes
11845     ;;
11846   *-*-sunos4*)
11847     au_enable_sun=yes
11848     ;;
11849   *-*-solaris*)
11850     au_enable_sun=yes
11851     ;;
11852   *-*-netbsd*)
11853     au_enable_sun=yes
11854     ;;
11855   *-*-cygwin*)
11856     au_enable_w32=yes
11857     ;;
11858   *-*-mingw*)
11859     au_enable_w32=yes
11860     ;;
11861   *-*-darwin*)
11862     au_enable_darwin=yes
11863     ;;
11864   *)
11865     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11866 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11867     ;;
11868   esac
11869 fi
11870
11871
11872 # Each audio mode's configurations
11873 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11874 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11875 if test "x$au_enable_oss" = xyes; then
11876   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11877   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11878   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11879     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11880 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11881   else
11882     case "$target" in
11883       *linux*|*freebsd*)
11884                 echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6
11886         ;;
11887       *)
11888         if test "x$ac_cv_header_soundcard_h" = xyes; then
11889           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11890 echo "${ECHO_T}yes - <soundcard.h>" >&6
11891         else
11892           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11893 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11894         fi
11895         ;;
11896     esac
11897   fi
11898
11899 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11900 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11901 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lossaudio  $LIBS"
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 /* We use char because int might match the return type of a gcc2
11918    builtin and then its argument prototype would still apply.  */
11919 char open ();
11920 int
11921 main ()
11922 {
11923 open ();
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930   (eval $ac_link) 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_c_werror_flag"
11938                          || test ! -s conftest.err'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s 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   ac_cv_lib_ossaudio_open=yes
11951 else
11952   echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 ac_cv_lib_ossaudio_open=no
11956 fi
11957 rm -f conftest.err conftest.$ac_objext \
11958       conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11960 fi
11961 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11962 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11963 if test $ac_cv_lib_ossaudio_open = yes; then
11964   cat >>confdefs.h <<_ACEOF
11965 #define HAVE_LIBOSSAUDIO 1
11966 _ACEOF
11967
11968   LIBS="-lossaudio $LIBS"
11969
11970 fi
11971
11972
11973     case "$target" in
11974     *openbsd*)
11975       if test ! -e "/dev/dsp"; then
11976         oss_device=/dev/audio
11977       fi
11978       ;;
11979   esac
11980 else
11981   echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11983 fi
11984
11985 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11986 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11987 if test "x$au_enable_sun" = xyes; then
11988   case "$target" in
11989     *-*-sunos4*)
11990       if test -f /usr/demo/SOUND/libaudio.a; then
11991         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11992         echo "$as_me:$LINENO: result: yes" >&5
11993 echo "${ECHO_T}yes" >&6
11994       else
11995         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11996 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11997       fi
11998       ;;
11999     *-*-solaris*)
12000       if test -f /usr/demo/SOUND/lib/libaudio.a; then
12001         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
12002         echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6
12004       else
12005         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12006 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
12007       fi
12008       ;;
12009     *)   echo "$as_me:$LINENO: result: yes" >&5
12010 echo "${ECHO_T}yes" >&6
12011       ;;
12012   esac
12013   EXTRADEFS="$EXTRADEFS -DAU_SUN"
12014   SYSEXTRAS="$SYSEXTRAS sun_a.c"
12015 else
12016   echo "$as_me:$LINENO: result: no" >&5
12017 echo "${ECHO_T}no" >&6
12018 fi
12019
12020 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12021 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
12022 if test "x$au_enable_hpux" = xyes; then
12023   case "$target" in
12024     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12025 echo "${ECHO_T}yes" >&6 ;;
12026     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12027 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12028   esac
12029   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12030   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12031 else
12032   echo "$as_me:$LINENO: result: no" >&5
12033 echo "${ECHO_T}no" >&6
12034 fi
12035
12036 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12037 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
12038 if test "x$au_enable_irix" = xyes; then
12039   case "$target" in
12040     *-sgi-irix5*|*-sgi-irix6.2)
12041       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12042       echo "$as_me:$LINENO: result: yes" >&5
12043 echo "${ECHO_T}yes" >&6
12044       ;;
12045     *-sgi-irix6*)
12046       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12047       echo "$as_me:$LINENO: result: yes" >&5
12048 echo "${ECHO_T}yes" >&6
12049       ;;
12050     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12051 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12052   esac
12053   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12054   EXTRALIBS="$EXTRASLIBS -laudio"
12055 else
12056   echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12058 fi
12059
12060 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12061 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
12062 if test "x$au_enable_mme" = xyes; then
12063   case "$target" in
12064     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6 ;;
12066     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12067 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12068   esac
12069   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
12070   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12071   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12072   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12073 else
12074   echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12076 fi
12077
12078 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12079 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
12080 if test "x$au_enable_sb_dsp" = xyes; then
12081   case "$target" in
12082     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
12083 echo "${ECHO_T}yes" >&6 ;;
12084     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12085 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12086   esac
12087   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12088   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12089 else
12090   echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12092 fi
12093
12094 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12095 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
12096 if test "x$au_enable_w32" = xyes; then
12097   case "$target" in
12098     *-*-cygwin*)
12099      echo "$as_me:$LINENO: result: yes" >&5
12100 echo "${ECHO_T}yes" >&6
12101      ;;
12102     *-*-mingw32)
12103      echo "$as_me:$LINENO: result: yes" >&5
12104 echo "${ECHO_T}yes" >&6
12105      ;;
12106     *)
12107      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12108 echo "$as_me: WARNING: may not work on $target" >&2;}
12109      ;;
12110   esac
12111   SYSEXTRAS="$SYSEXTRAS w32_a.c"
12112   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
12113         EXTRALIBS="$EXTRALIBS winmm.lib"
12114   else
12115     EXTRALIBS="$EXTRALIBS -lwinmm"
12116   fi
12117   EXTRADEFS="$EXTRADEFS -DAU_W32"
12118 else
12119   echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12121 fi
12122
12123 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12124 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
12125 if test "x$au_enable_darwin" = xyes; then
12126   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12127   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12128   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12129     case "$target" in
12130     *-*-darwin*)
12131      echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6;;
12133    *)
12134      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12135 echo "$as_me: WARNING: may not work on $target" >&2;}
12136      ;;
12137   esac
12138 else
12139   echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12141 fi
12142
12143
12144 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12145 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
12146 if test "x$au_enable_alsa" = xyes; then
12147   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12148 echo "${ECHO_T}yes, configuring alsa" >&6
12149   KEEPCFLAGS=$CFLAGS
12150   KEEPLIBS=$LIBS
12151   KEEPLDFLAGS=$LDFLAGS
12152   alsa_save_CFLAGS="$CFLAGS"
12153 alsa_save_LDFLAGS="$LDFLAGS"
12154 alsa_save_LIBS="$LIBS"
12155 alsa_found=yes
12156
12157
12158 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
12159 if test "${with_alsa_prefix+set}" = set; then
12160   withval="$with_alsa_prefix"
12161   alsa_prefix="$withval"
12162 else
12163   alsa_prefix=""
12164 fi;
12165
12166
12167 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12168 if test "${with_alsa_inc_prefix+set}" = set; then
12169   withval="$with_alsa_inc_prefix"
12170   alsa_inc_prefix="$withval"
12171 else
12172   alsa_inc_prefix=""
12173 fi;
12174
12175 # Check whether --enable-alsatest or --disable-alsatest was given.
12176 if test "${enable_alsatest+set}" = set; then
12177   enableval="$enable_alsatest"
12178   enable_alsatest=no
12179 else
12180   enable_alsatest=yes
12181 fi;
12182
12183 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12184 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12185 if test "$alsa_inc_prefix" != "" ; then
12186         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12187         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12188 fi
12189 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12190 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12191
12192 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12193 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12194 if test "$alsa_prefix" != "" ; then
12195         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12196         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12197 fi
12198
12199 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12200 LIBS=`echo $LIBS | sed 's/-lm//'`
12201 LIBS=`echo $LIBS | sed 's/-ldl//'`
12202 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12203 LIBS=`echo $LIBS | sed 's/  //'`
12204 LIBS="$ALSA_LIBS $LIBS"
12205 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12206 echo "${ECHO_T}$ALSA_LIBS" >&6
12207
12208 min_alsa_version=0.1.1
12209 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12210 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12211 no_alsa=""
12212     alsa_min_major_version=`echo $min_alsa_version | \
12213            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12214     alsa_min_minor_version=`echo $min_alsa_version | \
12215            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12216     alsa_min_micro_version=`echo $min_alsa_version | \
12217            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12218
12219
12220
12221
12222 ac_ext=c
12223 ac_cpp='$CPP $CPPFLAGS'
12224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234
12235 #include <alsa/asoundlib.h>
12236
12237 int
12238 main ()
12239 {
12240
12241 /* ensure backward compatibility */
12242 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12243 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12244 #endif
12245 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12246 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12247 #endif
12248 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12249 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12250 #endif
12251
12252 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12253   exit(0);
12254 #  else
12255 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12256 #       error not present
12257 #    endif
12258
12259 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12260   exit(0);
12261 #   else
12262 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12263 #          error not present
12264 #      endif
12265
12266 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12267 #        error not present
12268 #      endif
12269 #    endif
12270 #  endif
12271 exit(0);
12272
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279   (eval $ac_compile) 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag"
12287                          || test ! -s conftest.err'
12288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289   (eval $ac_try) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; } &&
12293          { ac_try='test -s conftest.$ac_objext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   echo "$as_me:$LINENO: result: found." >&5
12300 echo "${ECHO_T}found." >&6
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311
12312 #include <sys/asoundlib.h>
12313
12314 int
12315 main ()
12316 {
12317
12318 /* ensure backward compatibility */
12319 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12320 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12321 #endif
12322 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12323 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12324 #endif
12325 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12326 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12327 #endif
12328
12329 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12330   exit(0);
12331 #  else
12332 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12333 #       error not present
12334 #    endif
12335
12336 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12337   exit(0);
12338 #   else
12339 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12340 #          error not present
12341 #      endif
12342
12343 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12344 #        error not present
12345 #      endif
12346 #    endif
12347 #  endif
12348 exit(0);
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356   (eval $ac_compile) 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -z "$ac_c_werror_flag"
12364                          || test ! -s conftest.err'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; } &&
12370          { ac_try='test -s conftest.$ac_objext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   echo "$as_me:$LINENO: result: found." >&5
12377 echo "${ECHO_T}found." >&6
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 echo "$as_me:$LINENO: result: not present." >&5
12383 echo "${ECHO_T}not present." >&6
12384    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12385 echo "${ECHO_T}libasound was not found anywhere." >&6
12386    alsa_found=no
12387 fi
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12390 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12391
12392 fi
12393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394 ac_ext=c
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400
12401
12402 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12403 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12404 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12405   echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407   ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lasound  $LIBS"
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415
12416 /* Override any gcc2 internal prototype to avoid an error.  */
12417 #ifdef __cplusplus
12418 extern "C"
12419 #endif
12420 /* We use char because int might match the return type of a gcc2
12421    builtin and then its argument prototype would still apply.  */
12422 char snd_ctl_open ();
12423 int
12424 main ()
12425 {
12426 snd_ctl_open ();
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433   (eval $ac_link) 2>conftest.er1
12434   ac_status=$?
12435   grep -v '^ *+' conftest.er1 >conftest.err
12436   rm -f conftest.er1
12437   cat conftest.err >&5
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } &&
12440          { ac_try='test -z "$ac_c_werror_flag"
12441                          || test ! -s conftest.err'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest$ac_exeext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_lib_asound_snd_ctl_open=yes
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_cv_lib_asound_snd_ctl_open=no
12459 fi
12460 rm -f conftest.err conftest.$ac_objext \
12461       conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12463 fi
12464 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12465 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12466 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12467   cat >>confdefs.h <<_ACEOF
12468 #define HAVE_LIBASOUND 1
12469 _ACEOF
12470
12471   LIBS="-lasound $LIBS"
12472
12473 else
12474   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12475 echo "${ECHO_T}No linkable libasound was found." >&6
12476    alsa_found=no
12477
12478 fi
12479
12480
12481 if test "x$alsa_found" = "xyes" ; then
12482    :
12483    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12484    LIBS=`echo $LIBS | sed 's/  //'`
12485    LIBS="-lasound $LIBS"
12486 else
12487    :
12488    CFLAGS="$alsa_save_CFLAGS"
12489    LDFLAGS="$alsa_save_LDFLAGS"
12490    LIBS="$alsa_save_LIBS"
12491    ALSA_CFLAGS=""
12492    ALSA_LIBS=""
12493 fi
12494
12495
12496
12497
12498   if test "x$alsa_found" = "xyes" ; then
12499         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12500     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12501     for f in $ALSA_CFLAGS; do
12502     case ".$f" in
12503         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12504         *)              CFLAGS="$CPPFLAGS $f" ;;
12505     esac
12506 done
12507
12508     LIBS="$LIBS $ALSA_LIBS"
12509
12510 for ac_func in snd_seq_port_info_set_timestamping
12511 do
12512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12513 echo "$as_me:$LINENO: checking for $ac_func" >&5
12514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12515 if eval "test \"\${$as_ac_var+set}\" = set"; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12526 #define $ac_func innocuous_$ac_func
12527
12528 /* System header to define __stub macros and hopefully few prototypes,
12529     which can conflict with char $ac_func (); below.
12530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12531     <limits.h> exists even on freestanding compilers.  */
12532
12533 #ifdef __STDC__
12534 # include <limits.h>
12535 #else
12536 # include <assert.h>
12537 #endif
12538
12539 #undef $ac_func
12540
12541 /* Override any gcc2 internal prototype to avoid an error.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 {
12545 #endif
12546 /* We use char because int might match the return type of a gcc2
12547    builtin and then its argument prototype would still apply.  */
12548 char $ac_func ();
12549 /* The GNU C library defines this for functions which it implements
12550     to always fail with ENOSYS.  Some functions are actually named
12551     something starting with __ and the normal name is an alias.  */
12552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12553 choke me
12554 #else
12555 char (*f) () = $ac_func;
12556 #endif
12557 #ifdef __cplusplus
12558 }
12559 #endif
12560
12561 int
12562 main ()
12563 {
12564 return f != $ac_func;
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571   (eval $ac_link) 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag"
12579                          || test ! -s conftest.err'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; } &&
12585          { ac_try='test -s conftest$ac_exeext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   eval "$as_ac_var=yes"
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 eval "$as_ac_var=no"
12597 fi
12598 rm -f conftest.err conftest.$ac_objext \
12599       conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12603 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604   cat >>confdefs.h <<_ACEOF
12605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12606 _ACEOF
12607
12608 fi
12609 done
12610
12611   else
12612     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12613 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12614     CFLAGS=$KEEPCFLAGS
12615     LIBS=$KEEPLIBS
12616     LDFLAGS=$KEEPLDFLAGS
12617   fi
12618 else
12619   echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6
12621 fi
12622
12623 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12624 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12625 if test "x$au_enable_alib" = xyes; then
12626   case "$target" in
12627     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12628 echo "${ECHO_T}yes" >&6 ;;
12629     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12630 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12631   esac
12632   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12633   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12634   if test -d /opt/audio/include; then
12635     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12636   fi
12637   if test -d /opt/audio/lib; then
12638     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12639   fi
12640   EXTRALIBS="$EXTRALIBS -lAlib"
12641 else
12642   echo "$as_me:$LINENO: result: no" >&5
12643 echo "${ECHO_T}no" >&6
12644 fi
12645
12646 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12647 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12648 if test "x$au_enable_nas" = xyes; then
12649   if test "x$with_x" != xyes; then
12650     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12651 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12652    { (exit 1); exit 1; }; }
12653   fi
12654   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12655   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12656
12657
12658   if test "x$with_nas_library" != x; then
12659     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12660 echo "${ECHO_T}$with_nas_library" >&6;
12661     EXTRALIBS="$EXTRALIBS $with_nas_library"
12662   else
12663     echo "$as_me:$LINENO: result: " >&5
12664 echo "${ECHO_T}" >&6
12665     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12666 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12667 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12668   echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670   ac_func_search_save_LIBS="$LIBS"
12671 timidity_cv_search_AuOpenServer="no"
12672 for i in $x_libraries/libaudio.a \
12673          /usr/lib/libaudio.so \
12674          /usr/lib/libaudio.a ; do
12675   LIBS="$i  $ac_func_search_save_LIBS"
12676   cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h.  */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h.  */
12682
12683 /* Override any gcc2 internal prototype to avoid an error.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 /* We use char because int might match the return type of a gcc2
12688    builtin and then its argument prototype would still apply.  */
12689 char AuOpenServer ();
12690 int
12691 main ()
12692 {
12693 AuOpenServer ();
12694   ;
12695   return 0;
12696 }
12697 _ACEOF
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700   (eval $ac_link) 2>conftest.er1
12701   ac_status=$?
12702   grep -v '^ *+' conftest.er1 >conftest.err
12703   rm -f conftest.er1
12704   cat conftest.err >&5
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } &&
12707          { ac_try='test -z "$ac_c_werror_flag"
12708                          || test ! -s conftest.err'
12709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710   (eval $ac_try) 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; } &&
12714          { ac_try='test -s conftest$ac_exeext'
12715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716   (eval $ac_try) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; }; then
12720   timidity_cv_search_AuOpenServer="$i"; break
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 fi
12726 rm -f conftest.err conftest.$ac_objext \
12727       conftest$ac_exeext conftest.$ac_ext
12728 done
12729 LIBS="$ac_func_search_save_LIBS"
12730 fi
12731 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12732 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12733 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12734    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12735 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12736           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12737 else :
12738   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12739 echo "$as_me: WARNING: NAS library is not found." >&2;}
12740 fi
12741   fi
12742   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12743   lib_xt_opt=-lXt
12744   if test "x$have_xext" = xyes; then
12745     lib_xext_opt=-lXext
12746   fi
12747   if test "x$have_xprelibs" = xyes; then
12748     lib_xprelibs_opt='-lSM -lICE'
12749   fi
12750 else
12751   echo "$as_me:$LINENO: result: no" >&5
12752 echo "${ECHO_T}no" >&6
12753 fi
12754
12755 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12756 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12757 if test "x$au_enable_arts" = xyes; then
12758   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12759 echo "${ECHO_T}yes, configuring aRts" >&6
12760   KEEPCFLAGS=$CFLAGS
12761   KEEPLIBS=$LIBS
12762   KEEPLDFLAGS=$LDFLAGS
12763
12764 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12765 if test "${with_arts_prefix+set}" = set; then
12766   withval="$with_arts_prefix"
12767   arts_prefix="$withval"
12768 else
12769   arts_prefix=""
12770 fi;
12771 # Check whether --enable-artstest or --disable-artstest was given.
12772 if test "${enable_artstest+set}" = set; then
12773   enableval="$enable_artstest"
12774
12775 else
12776   enable_artstest=yes
12777 fi;
12778
12779   if test x$arts_prefix != x ; then
12780      arts_args="$arts_args --prefix=$arts_prefix"
12781      if test x${ARTS_CONFIG+set} != xset ; then
12782         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12783      fi
12784   fi
12785
12786   # Extract the first word of "artsc-config", so it can be a program name with args.
12787 set dummy artsc-config; ac_word=$2
12788 echo "$as_me:$LINENO: checking for $ac_word" >&5
12789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12790 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12791   echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793   case $ARTS_CONFIG in
12794   [\\/]* | ?:[\\/]*)
12795   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12796   ;;
12797   *)
12798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12800 do
12801   IFS=$as_save_IFS
12802   test -z "$as_dir" && as_dir=.
12803   for ac_exec_ext in '' $ac_executable_extensions; do
12804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12805     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12807     break 2
12808   fi
12809 done
12810 done
12811
12812   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12813   ;;
12814 esac
12815 fi
12816 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12817
12818 if test -n "$ARTS_CONFIG"; then
12819   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12820 echo "${ECHO_T}$ARTS_CONFIG" >&6
12821 else
12822   echo "$as_me:$LINENO: result: no" >&5
12823 echo "${ECHO_T}no" >&6
12824 fi
12825
12826   min_arts_version=0.9.5
12827   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12828 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12829   no_arts=""
12830   if test "$ARTS_CONFIG" = "no" ; then
12831     no_arts=yes
12832   else
12833     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12834     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12835
12836     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12837            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12838     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12839            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12840     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12841            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12842     if test "x$enable_artstest" = "xyes" ; then
12843       ac_save_CFLAGS="$CFLAGS"
12844       ac_save_LIBS="$LIBS"
12845       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12846       LIBS="$LIBS $ARTS_LIBS"
12847       rm -f conf.artstest
12848       if test "$cross_compiling" = yes; then
12849   echo $ac_n "cross compiling; assumed OK... $ac_c"
12850 else
12851   cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857
12858 #include <stdio.h>
12859 #include <stdlib.h>
12860 #include <string.h>
12861 #include <artsc.h>
12862
12863 char*
12864 my_strdup (char *str)
12865 {
12866   char *new_str;
12867
12868   if (str)
12869     {
12870       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12871       strcpy (new_str, str);
12872     }
12873   else
12874     new_str = NULL;
12875
12876   return new_str;
12877 }
12878
12879 int main ()
12880 {
12881   int major, minor, micro;
12882   char *tmp_version;
12883
12884   system ("touch conf.artstest");
12885
12886   /* HP/UX 9 (%@#!) writes to sscanf strings */
12887   tmp_version = my_strdup("$min_arts_version");
12888   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12889      printf("%s, bad version string\n", "$min_arts_version");
12890      exit(1);
12891    }
12892
12893    if (($arts_major_version > major) ||
12894       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12895       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12896     {
12897       return 0;
12898     }
12899   else
12900     {
12901       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12902       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12903       printf("*** best to upgrade to the required version.\n");
12904       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12905       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12906       printf("*** config.cache before re-running configure\n");
12907       return 1;
12908     }
12909 }
12910
12911
12912 _ACEOF
12913 rm -f conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915   (eval $ac_link) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920   (eval $ac_try) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; }; then
12924   :
12925 else
12926   echo "$as_me: program exited with status $ac_status" >&5
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ( exit $ac_status )
12931 no_arts=yes
12932 fi
12933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12934 fi
12935        CFLAGS="$ac_save_CFLAGS"
12936        LIBS="$ac_save_LIBS"
12937      fi
12938   fi
12939   if test "x$no_arts" = x ; then
12940      echo "$as_me:$LINENO: result: yes" >&5
12941 echo "${ECHO_T}yes" >&6
12942      :
12943   else
12944      echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6
12946      if test "$ARTS_CONFIG" = "no" ; then
12947        echo "*** The artsc-config script installed by ARTS could not be found"
12948        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12949        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12950        echo "*** full path to artsc-config."
12951      else
12952        if test -f conf.artstest ; then
12953         :
12954        else
12955           echo "*** Could not run ARTS test program, checking why..."
12956           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12957           LIBS="$LIBS $ARTS_LIBS"
12958           cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964
12965 #include <stdio.h>
12966 #include <artsc.h>
12967
12968 int
12969 main ()
12970 {
12971  return 0;
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag"
12986                          || test ! -s conftest.err'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; } &&
12992          { ac_try='test -s conftest$ac_exeext'
12993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994   (eval $ac_try) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; }; then
12998    echo "*** The test program compiled, but did not run. This usually means"
12999           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
13000           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
13001           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13002           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13003           echo "*** is required on your system"
13004           echo "***"
13005           echo "*** If you have an old version installed, it is best to remove it, although"
13006           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011  echo "*** The test program failed to compile or link. See the file config.log for the"
13012           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
13013           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
13014           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
13015 fi
13016 rm -f conftest.err conftest.$ac_objext \
13017       conftest$ac_exeext conftest.$ac_ext
13018           CFLAGS="$ac_save_CFLAGS"
13019           LIBS="$ac_save_LIBS"
13020        fi
13021      fi
13022      ARTS_CFLAGS=""
13023      ARTS_LIBS=""
13024      :
13025   fi
13026
13027
13028   rm -f conf.artstest
13029
13030   CFLAGS=$KEEPCFLAGS
13031   LIBS=$KEEPLIBS
13032   LDFLAGS=$KEEPLDFLAGS
13033   if test "x$no_arts" = x; then
13034         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
13035     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
13036     for f in $ARTS_CFLAGS; do
13037     case ".$f" in
13038         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13039         *)              CFLAGS="$CPPFLAGS $f" ;;
13040     esac
13041 done
13042
13043     LIBS="$LIBS $ARTS_LIBS"
13044   else
13045     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
13046 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
13047   fi
13048 else
13049   echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6
13051 fi
13052
13053 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
13054 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
13055 if test "x$au_enable_esd" = xyes; then
13056   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
13057 echo "${ECHO_T}yes, configuring esd" >&6
13058   KEEPCFLAGS=$CFLAGS
13059   KEEPLIBS=$LIBS
13060   KEEPLDFLAGS=$LDFLAGS
13061
13062 # Check whether --with-esd-prefix or --without-esd-prefix was given.
13063 if test "${with_esd_prefix+set}" = set; then
13064   withval="$with_esd_prefix"
13065   esd_prefix="$withval"
13066 else
13067   esd_prefix=""
13068 fi;
13069
13070 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
13071 if test "${with_esd_exec_prefix+set}" = set; then
13072   withval="$with_esd_exec_prefix"
13073   esd_exec_prefix="$withval"
13074 else
13075   esd_exec_prefix=""
13076 fi;
13077 # Check whether --enable-esdtest or --disable-esdtest was given.
13078 if test "${enable_esdtest+set}" = set; then
13079   enableval="$enable_esdtest"
13080
13081 else
13082   enable_esdtest=yes
13083 fi;
13084
13085   if test x$esd_exec_prefix != x ; then
13086      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13087      if test x${ESD_CONFIG+set} != xset ; then
13088         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13089      fi
13090   fi
13091   if test x$esd_prefix != x ; then
13092      esd_args="$esd_args --prefix=$esd_prefix"
13093      if test x${ESD_CONFIG+set} != xset ; then
13094         ESD_CONFIG=$esd_prefix/bin/esd-config
13095      fi
13096   fi
13097
13098   # Extract the first word of "esd-config", so it can be a program name with args.
13099 set dummy esd-config; ac_word=$2
13100 echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13102 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   case $ESD_CONFIG in
13106   [\\/]* | ?:[\\/]*)
13107   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13108   ;;
13109   *)
13110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113   IFS=$as_save_IFS
13114   test -z "$as_dir" && as_dir=.
13115   for ac_exec_ext in '' $ac_executable_extensions; do
13116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13119     break 2
13120   fi
13121 done
13122 done
13123
13124   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13125   ;;
13126 esac
13127 fi
13128 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13129
13130 if test -n "$ESD_CONFIG"; then
13131   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13132 echo "${ECHO_T}$ESD_CONFIG" >&6
13133 else
13134   echo "$as_me:$LINENO: result: no" >&5
13135 echo "${ECHO_T}no" >&6
13136 fi
13137
13138   min_esd_version=0.2.7
13139   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13140 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
13141   no_esd=""
13142   if test "$ESD_CONFIG" = "no" ; then
13143     no_esd=yes
13144   else
13145
13146
13147     ac_ext=c
13148 ac_cpp='$CPP $CPPFLAGS'
13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13152
13153     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13154     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13155
13156     esd_major_version=`$ESD_CONFIG $esd_args --version | \
13157            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13158     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13159            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13160     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13161            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13162     if test "x$enable_esdtest" = "xyes" ; then
13163       ac_save_CFLAGS="$CFLAGS"
13164       ac_save_LIBS="$LIBS"
13165       CFLAGS="$CFLAGS $ESD_CFLAGS"
13166       LIBS="$LIBS $ESD_LIBS"
13167       rm -f conf.esdtest
13168       if test "$cross_compiling" = yes; then
13169   echo $ac_n "cross compiling; assumed OK... $ac_c"
13170 else
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177
13178 #include <stdio.h>
13179 #include <stdlib.h>
13180 #include <string.h>
13181 #include <esd.h>
13182
13183 char*
13184 my_strdup (char *str)
13185 {
13186   char *new_str;
13187
13188   if (str)
13189     {
13190       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13191       strcpy (new_str, str);
13192     }
13193   else
13194     new_str = NULL;
13195
13196   return new_str;
13197 }
13198
13199 int main ()
13200 {
13201   int major, minor, micro;
13202   char *tmp_version;
13203
13204   system ("touch conf.esdtest");
13205
13206   /* HP/UX 9 (%@#!) writes to sscanf strings */
13207   tmp_version = my_strdup("$min_esd_version");
13208   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13209      printf("%s, bad version string\n", "$min_esd_version");
13210      exit(1);
13211    }
13212
13213    if (($esd_major_version > major) ||
13214       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13215       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13216     {
13217       return 0;
13218     }
13219   else
13220     {
13221       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13222       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13223       printf("*** best to upgrade to the required version.\n");
13224       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13225       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13226       printf("*** config.cache before re-running configure\n");
13227       return 1;
13228     }
13229 }
13230
13231
13232 _ACEOF
13233 rm -f conftest$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235   (eval $ac_link) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   :
13245 else
13246   echo "$as_me: program exited with status $ac_status" >&5
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ( exit $ac_status )
13251 no_esd=yes
13252 fi
13253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13254 fi
13255        CFLAGS="$ac_save_CFLAGS"
13256        LIBS="$ac_save_LIBS"
13257        ac_ext=c
13258 ac_cpp='$CPP $CPPFLAGS'
13259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13262
13263      fi
13264   fi
13265   if test "x$no_esd" = x ; then
13266      echo "$as_me:$LINENO: result: yes" >&5
13267 echo "${ECHO_T}yes" >&6
13268      :
13269   else
13270      echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6
13272      if test "$ESD_CONFIG" = "no" ; then
13273        echo "*** The esd-config script installed by ESD could not be found"
13274        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13275        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13276        echo "*** full path to esd-config."
13277      else
13278        if test -f conf.esdtest ; then
13279         :
13280        else
13281           echo "*** Could not run ESD test program, checking why..."
13282           CFLAGS="$CFLAGS $ESD_CFLAGS"
13283           LIBS="$LIBS $ESD_LIBS"
13284
13285
13286           ac_ext=c
13287 ac_cpp='$CPP $CPPFLAGS'
13288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13291
13292           cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298
13299 #include <stdio.h>
13300 #include <esd.h>
13301
13302 int
13303 main ()
13304 {
13305  return 0;
13306   ;
13307   return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312   (eval $ac_link) 2>conftest.er1
13313   ac_status=$?
13314   grep -v '^ *+' conftest.er1 >conftest.err
13315   rm -f conftest.er1
13316   cat conftest.err >&5
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -z "$ac_c_werror_flag"
13320                          || test ! -s conftest.err'
13321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322   (eval $ac_try) 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; } &&
13326          { ac_try='test -s conftest$ac_exeext'
13327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328   (eval $ac_try) 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; }; then
13332    echo "*** The test program compiled, but did not run. This usually means"
13333           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13334           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13335           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13336           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13337           echo "*** is required on your system"
13338           echo "***"
13339           echo "*** If you have an old version installed, it is best to remove it, although"
13340           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345  echo "*** The test program failed to compile or link. See the file config.log for the"
13346           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13347           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13348           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13349 fi
13350 rm -f conftest.err conftest.$ac_objext \
13351       conftest$ac_exeext conftest.$ac_ext
13352           CFLAGS="$ac_save_CFLAGS"
13353           LIBS="$ac_save_LIBS"
13354           ac_ext=c
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359
13360        fi
13361      fi
13362      ESD_CFLAGS=""
13363      ESD_LIBS=""
13364      :
13365   fi
13366
13367
13368   rm -f conf.esdtest
13369
13370   CFLAGS=$KEEPCFLAGS
13371   LIBS=$KEEPLIBS
13372   LDFLAGS=$KEEPLDFLAGS
13373   if test "x$no_esd" = x; then
13374         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13375     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13376     for f in $ESD_CFLAGS; do
13377     case ".$f" in
13378         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13379         *)              CFLAGS="$CPPFLAGS $f" ;;
13380     esac
13381 done
13382
13383     LIBS="$LIBS $ESD_LIBS"
13384   else
13385     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13386 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13387   fi
13388 else
13389   echo "$as_me:$LINENO: result: no" >&5
13390 echo "${ECHO_T}no" >&6
13391 fi
13392
13393 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13394 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13395 if test "x$au_enable_portaudio" = xyes; then
13396   echo "$as_me:$LINENO: result: yes" >&5
13397 echo "${ECHO_T}yes" >&6
13398   if test "x$MSYS" = xyes ; then
13399         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13400         EXTRALIBS="$EXTRALIBS -lportaudio"
13401         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13402   else
13403         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13404         EXTRALIBS="$EXTRALIBS -lportaudio"
13405         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13406   fi
13407 else
13408   echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13410 fi
13411
13412 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13413 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13414 if test "x$au_enable_jack" = xyes; then
13415   echo "$as_me:$LINENO: result: yes" >&5
13416 echo "${ECHO_T}yes" >&6
13417   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13418   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13419   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13420 else
13421   echo "$as_me:$LINENO: result: no" >&5
13422 echo "${ECHO_T}no" >&6
13423 fi
13424
13425 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13426 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13427 if test "x$au_enable_ao" = xyes; then
13428   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13429 echo "${ECHO_T}yes, configuring ao" >&6
13430
13431 # Check whether --with-ao or --without-ao was given.
13432 if test "${with_ao+set}" = set; then
13433   withval="$with_ao"
13434   ao_prefix="$withval"
13435 else
13436   ao_prefix=""
13437 fi;
13438
13439 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13440 if test "${with_ao_libraries+set}" = set; then
13441   withval="$with_ao_libraries"
13442   ao_libraries="$withval"
13443 else
13444   ao_libraries=""
13445 fi;
13446
13447 # Check whether --with-ao-includes or --without-ao-includes was given.
13448 if test "${with_ao_includes+set}" = set; then
13449   withval="$with_ao_includes"
13450   ao_includes="$withval"
13451 else
13452   ao_includes=""
13453 fi;
13454 # Check whether --enable-aotest or --disable-aotest was given.
13455 if test "${enable_aotest+set}" = set; then
13456   enableval="$enable_aotest"
13457
13458 else
13459   enable_aotest=yes
13460 fi;
13461
13462
13463   if test "x$ao_libraries" != "x" ; then
13464     AO_LIBS="-L$ao_libraries"
13465   elif test "x$ao_prefix" != "x"; then
13466     AO_LIBS="-L$ao_prefix/lib"
13467   elif test "x$prefix" != "xNONE"; then
13468     AO_LIBS="-L$prefix/lib"
13469   fi
13470
13471   if test "x$ao_includes" != "x" ; then
13472     AO_CFLAGS="-I$ao_includes"
13473   elif test "x$ao_prefix" != "x"; then
13474     AO_CFLAGS="-I$ao_prefix/include"
13475   elif test "x$prefix" != "xNONE"; then
13476     AO_CFLAGS="-I$prefix/include"
13477   fi
13478
13479   # see where dl* and friends live
13480
13481 for ac_func in dlopen
13482 do
13483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13484 echo "$as_me:$LINENO: checking for $ac_func" >&5
13485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13486 if eval "test \"\${$as_ac_var+set}\" = set"; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13497 #define $ac_func innocuous_$ac_func
13498
13499 /* System header to define __stub macros and hopefully few prototypes,
13500     which can conflict with char $ac_func (); below.
13501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13502     <limits.h> exists even on freestanding compilers.  */
13503
13504 #ifdef __STDC__
13505 # include <limits.h>
13506 #else
13507 # include <assert.h>
13508 #endif
13509
13510 #undef $ac_func
13511
13512 /* Override any gcc2 internal prototype to avoid an error.  */
13513 #ifdef __cplusplus
13514 extern "C"
13515 {
13516 #endif
13517 /* We use char because int might match the return type of a gcc2
13518    builtin and then its argument prototype would still apply.  */
13519 char $ac_func ();
13520 /* The GNU C library defines this for functions which it implements
13521     to always fail with ENOSYS.  Some functions are actually named
13522     something starting with __ and the normal name is an alias.  */
13523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13524 choke me
13525 #else
13526 char (*f) () = $ac_func;
13527 #endif
13528 #ifdef __cplusplus
13529 }
13530 #endif
13531
13532 int
13533 main ()
13534 {
13535 return f != $ac_func;
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542   (eval $ac_link) 2>conftest.er1
13543   ac_status=$?
13544   grep -v '^ *+' conftest.er1 >conftest.err
13545   rm -f conftest.er1
13546   cat conftest.err >&5
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } &&
13549          { ac_try='test -z "$ac_c_werror_flag"
13550                          || test ! -s conftest.err'
13551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552   (eval $ac_try) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; } &&
13556          { ac_try='test -s conftest$ac_exeext'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; }; then
13562   eval "$as_ac_var=yes"
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 eval "$as_ac_var=no"
13568 fi
13569 rm -f conftest.err conftest.$ac_objext \
13570       conftest$ac_exeext conftest.$ac_ext
13571 fi
13572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13574 if test `eval echo '${'$as_ac_var'}'` = yes; then
13575   cat >>confdefs.h <<_ACEOF
13576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13577 _ACEOF
13578  AO_DL_LIBS=""
13579 else
13580
13581     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   ac_check_lib_save_LIBS=$LIBS
13587 LIBS="-ldl  $LIBS"
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594
13595 /* Override any gcc2 internal prototype to avoid an error.  */
13596 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 /* We use char because int might match the return type of a gcc2
13600    builtin and then its argument prototype would still apply.  */
13601 char dlopen ();
13602 int
13603 main ()
13604 {
13605 dlopen ();
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612   (eval $ac_link) 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag"
13620                          || test ! -s conftest.err'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   ac_cv_lib_dl_dlopen=yes
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_cv_lib_dl_dlopen=no
13638 fi
13639 rm -f conftest.err conftest.$ac_objext \
13640       conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13642 fi
13643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13645 if test $ac_cv_lib_dl_dlopen = yes; then
13646   AO_DL_LIBS="-ldl"
13647 else
13648
13649       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13650       your system may not be supported." >&5
13651 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13652       your system may not be supported." >&2;}
13653
13654 fi
13655
13656
13657 fi
13658 done
13659
13660
13661   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13662
13663   echo "$as_me:$LINENO: checking for ao" >&5
13664 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13665   no_ao=""
13666
13667
13668   if test "x$enable_aotest" = "xyes" ; then
13669     ac_save_CFLAGS="$CFLAGS"
13670     ac_save_LIBS="$LIBS"
13671     CFLAGS="$CFLAGS $AO_CFLAGS"
13672     LIBS="$LIBS $AO_LIBS"
13673       rm -f conf.aotest
13674       if test "$cross_compiling" = yes; then
13675   echo $ac_n "cross compiling; assumed OK... $ac_c"
13676 else
13677   cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683
13684 #include <stdio.h>
13685 #include <stdlib.h>
13686 #include <string.h>
13687 #include <ao/ao.h>
13688
13689 int main ()
13690 {
13691   system("touch conf.aotest");
13692   return 0;
13693 }
13694
13695
13696 _ACEOF
13697 rm -f conftest$ac_exeext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13699   (eval $ac_link) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   :
13709 else
13710   echo "$as_me: program exited with status $ac_status" >&5
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ( exit $ac_status )
13715 no_ao=yes
13716 fi
13717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718 fi
13719        CFLAGS="$ac_save_CFLAGS"
13720        LIBS="$ac_save_LIBS"
13721   fi
13722
13723   if test "x$no_ao" = "x" ; then
13724      echo "$as_me:$LINENO: result: yes" >&5
13725 echo "${ECHO_T}yes" >&6
13726      :
13727   else
13728      echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6
13730      if test -f conf.aotest ; then
13731        :
13732      else
13733        echo "*** Could not run ao test program, checking why..."
13734        CFLAGS="$CFLAGS $AO_CFLAGS"
13735        LIBS="$LIBS $AO_LIBS"
13736        cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742
13743 #include <stdio.h>
13744 #include <ao/ao.h>
13745
13746 int
13747 main ()
13748 {
13749  return 0;
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756   (eval $ac_link) 2>conftest.er1
13757   ac_status=$?
13758   grep -v '^ *+' conftest.er1 >conftest.err
13759   rm -f conftest.er1
13760   cat conftest.err >&5
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } &&
13763          { ac_try='test -z "$ac_c_werror_flag"
13764                          || test ! -s conftest.err'
13765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766   (eval $ac_try) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; } &&
13770          { ac_try='test -s conftest$ac_exeext'
13771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772   (eval $ac_try) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776    echo "*** The test program compiled, but did not run. This usually means"
13777        echo "*** that the run-time linker is not finding ao or finding the wrong"
13778        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13779        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13780        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13781        echo "*** is required on your system"
13782        echo "***"
13783        echo "*** If you have an old version installed, it is best to remove it, although"
13784        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789  echo "*** The test program failed to compile or link. See the file config.log for the"
13790        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13791        echo "*** or that you have moved ao since it was installed."
13792 fi
13793 rm -f conftest.err conftest.$ac_objext \
13794       conftest$ac_exeext conftest.$ac_ext
13795        CFLAGS="$ac_save_CFLAGS"
13796        LIBS="$ac_save_LIBS"
13797      fi
13798      AO_CFLAGS=""
13799      AO_LIBS=""
13800      :
13801   fi
13802
13803
13804   rm -f conf.aotest
13805
13806   if test "x$no_ao" = "x" ; then
13807     # AC_MSG_RESULT(yes)
13808     EXTRADEFS="$EXTRADEFS -DAU_AO"
13809     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13810     for f in $AO_CFLAGS; do
13811     case ".$f" in
13812         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13813         *)              CFLAGS="$CPPFLAGS $f" ;;
13814     esac
13815 done
13816
13817     LIBS="$LIBS $AO_LIBS"
13818   else
13819     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13820 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13821   fi
13822 else
13823   echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6
13825 fi
13826
13827 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13828 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13829 if test "x$au_enable_vorbis" = xyes; then
13830   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13831 echo "${ECHO_T}yes, configuring vorbis" >&6
13832
13833 # Check whether --with-ogg or --without-ogg was given.
13834 if test "${with_ogg+set}" = set; then
13835   withval="$with_ogg"
13836   ogg_prefix="$withval"
13837 else
13838   ogg_prefix=""
13839 fi;
13840
13841 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13842 if test "${with_ogg_libraries+set}" = set; then
13843   withval="$with_ogg_libraries"
13844   ogg_libraries="$withval"
13845 else
13846   ogg_libraries=""
13847 fi;
13848
13849 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13850 if test "${with_ogg_includes+set}" = set; then
13851   withval="$with_ogg_includes"
13852   ogg_includes="$withval"
13853 else
13854   ogg_includes=""
13855 fi;
13856 # Check whether --enable-oggtest or --disable-oggtest was given.
13857 if test "${enable_oggtest+set}" = set; then
13858   enableval="$enable_oggtest"
13859
13860 else
13861   enable_oggtest=yes
13862 fi;
13863
13864   if test "x$ogg_libraries" != "x" ; then
13865     OGG_LIBS="-L$ogg_libraries"
13866   elif test "x$ogg_prefix" != "x" ; then
13867     OGG_LIBS="-L$ogg_prefix/lib"
13868   elif test "x$prefix" != "xNONE" ; then
13869     OGG_LIBS="-L$prefix/lib"
13870   fi
13871
13872   OGG_LIBS="$OGG_LIBS -logg"
13873
13874   if test "x$ogg_includes" != "x" ; then
13875     OGG_CFLAGS="-I$ogg_includes"
13876   elif test "x$ogg_prefix" != "x" ; then
13877     OGG_CFLAGS="-I$ogg_prefix/include"
13878   elif test "x$prefix" != "xNONE"; then
13879     OGG_CFLAGS="-I$prefix/include"
13880   fi
13881
13882   echo "$as_me:$LINENO: checking for Ogg" >&5
13883 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13884   no_ogg=""
13885
13886
13887   if test "x$enable_oggtest" = "xyes" ; then
13888     ac_save_CFLAGS="$CFLAGS"
13889     ac_save_LIBS="$LIBS"
13890     CFLAGS="$CFLAGS $OGG_CFLAGS"
13891     LIBS="$LIBS $OGG_LIBS"
13892       rm -f conf.oggtest
13893       if test "$cross_compiling" = yes; then
13894   echo $ac_n "cross compiling; assumed OK... $ac_c"
13895 else
13896   cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902
13903 #include <stdio.h>
13904 #include <stdlib.h>
13905 #include <string.h>
13906 #include <ogg/ogg.h>
13907
13908 int main ()
13909 {
13910   system("touch conf.oggtest");
13911   return 0;
13912 }
13913
13914
13915 _ACEOF
13916 rm -f conftest$ac_exeext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13918   (eval $ac_link) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   :
13928 else
13929   echo "$as_me: program exited with status $ac_status" >&5
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 ( exit $ac_status )
13934 no_ogg=yes
13935 fi
13936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13937 fi
13938        CFLAGS="$ac_save_CFLAGS"
13939        LIBS="$ac_save_LIBS"
13940   fi
13941
13942   if test "x$no_ogg" = "x" ; then
13943      echo "$as_me:$LINENO: result: yes" >&5
13944 echo "${ECHO_T}yes" >&6
13945
13946
13947 # Check whether --with-vorbis or --without-vorbis was given.
13948 if test "${with_vorbis+set}" = set; then
13949   withval="$with_vorbis"
13950   vorbis_prefix="$withval"
13951 else
13952   vorbis_prefix=""
13953 fi;
13954
13955 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13956 if test "${with_vorbis_libraries+set}" = set; then
13957   withval="$with_vorbis_libraries"
13958   vorbis_libraries="$withval"
13959 else
13960   vorbis_libraries=""
13961 fi;
13962
13963 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13964 if test "${with_vorbis_includes+set}" = set; then
13965   withval="$with_vorbis_includes"
13966   vorbis_includes="$withval"
13967 else
13968   vorbis_includes=""
13969 fi;
13970 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13971 if test "${enable_vorbistest+set}" = set; then
13972   enableval="$enable_vorbistest"
13973
13974 else
13975   enable_vorbistest=yes
13976 fi;
13977
13978   if test "x$vorbis_libraries" != "x" ; then
13979     VORBIS_LIBS="-L$vorbis_libraries"
13980   elif test "x$vorbis_prefix" != "x" ; then
13981     VORBIS_LIBS="-L$vorbis_prefix/lib"
13982   elif test "x$prefix" != "xNONE"; then
13983     VORBIS_LIBS="-L$prefix/lib"
13984   fi
13985
13986   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13987   VORBISFILE_LIBS="-lvorbisfile"
13988   VORBISENC_LIBS="-lvorbisenc"
13989
13990   if test "x$vorbis_includes" != "x" ; then
13991     VORBIS_CFLAGS="-I$vorbis_includes"
13992   elif test "x$vorbis_prefix" != "x" ; then
13993     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13994   elif test "x$prefix" != "xNONE"; then
13995     VORBIS_CFLAGS="-I$prefix/include"
13996   fi
13997
13998
13999   echo "$as_me:$LINENO: checking for Vorbis" >&5
14000 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
14001   no_vorbis=""
14002
14003
14004   if test "x$enable_vorbistest" = "xyes" ; then
14005     ac_save_CFLAGS="$CFLAGS"
14006     ac_save_LIBS="$LIBS"
14007     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
14008     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14009       rm -f conf.vorbistest
14010       if test "$cross_compiling" = yes; then
14011   echo $ac_n "cross compiling; assumed OK... $ac_c"
14012 else
14013   cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019
14020 #include <stdio.h>
14021 #include <stdlib.h>
14022 #include <string.h>
14023 #include <vorbis/codec.h>
14024
14025 int main ()
14026 {
14027   system("touch conf.vorbistest");
14028   return 0;
14029 }
14030
14031
14032 _ACEOF
14033 rm -f conftest$ac_exeext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14035   (eval $ac_link) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   :
14045 else
14046   echo "$as_me: program exited with status $ac_status" >&5
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ( exit $ac_status )
14051 no_vorbis=yes
14052 fi
14053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14054 fi
14055        CFLAGS="$ac_save_CFLAGS"
14056        LIBS="$ac_save_LIBS"
14057   fi
14058
14059   if test "x$no_vorbis" = "x" ; then
14060      echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6
14062
14063       have_vorbis=yes
14064       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14065       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14066       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14067       if test "x$MSYS" = "xyes"; then
14068       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14069           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14070       fi
14071
14072   else
14073      echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6
14075      if test -f conf.vorbistest ; then
14076        :
14077      else
14078        echo "*** Could not run Vorbis test program, checking why..."
14079        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14080        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14081        cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087
14088 #include <stdio.h>
14089 #include <vorbis/codec.h>
14090
14091 int
14092 main ()
14093 {
14094  return 0;
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101   (eval $ac_link) 2>conftest.er1
14102   ac_status=$?
14103   grep -v '^ *+' conftest.er1 >conftest.err
14104   rm -f conftest.er1
14105   cat conftest.err >&5
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); } &&
14108          { ac_try='test -z "$ac_c_werror_flag"
14109                          || test ! -s conftest.err'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; } &&
14115          { ac_try='test -s conftest$ac_exeext'
14116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117   (eval $ac_try) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121    echo "*** The test program compiled, but did not run. This usually means"
14122        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14123        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14124        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14125        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14126        echo "*** is required on your system"
14127        echo "***"
14128        echo "*** If you have an old version installed, it is best to remove it, although"
14129        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134  echo "*** The test program failed to compile or link. See the file config.log for the"
14135        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14136        echo "*** or that you have moved Vorbis since it was installed."
14137 fi
14138 rm -f conftest.err conftest.$ac_objext \
14139       conftest$ac_exeext conftest.$ac_ext
14140        CFLAGS="$ac_save_CFLAGS"
14141        LIBS="$ac_save_LIBS"
14142      fi
14143      VORBIS_CFLAGS=""
14144      VORBIS_LIBS=""
14145      VORBISFILE_LIBS=""
14146      VORBISENC_LIBS=""
14147
14148       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14149 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14150
14151   fi
14152
14153
14154
14155
14156   rm -f conf.vorbistest
14157
14158
14159   else
14160      echo "$as_me:$LINENO: result: no" >&5
14161 echo "${ECHO_T}no" >&6
14162      if test -f conf.oggtest ; then
14163        :
14164      else
14165        echo "*** Could not run Ogg test program, checking why..."
14166        CFLAGS="$CFLAGS $OGG_CFLAGS"
14167        LIBS="$LIBS $OGG_LIBS"
14168        cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174
14175 #include <stdio.h>
14176 #include <ogg/ogg.h>
14177
14178 int
14179 main ()
14180 {
14181  return 0;
14182   ;
14183   return 0;
14184 }
14185 _ACEOF
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188   (eval $ac_link) 2>conftest.er1
14189   ac_status=$?
14190   grep -v '^ *+' conftest.er1 >conftest.err
14191   rm -f conftest.er1
14192   cat conftest.err >&5
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } &&
14195          { ac_try='test -z "$ac_c_werror_flag"
14196                          || test ! -s conftest.err'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; } &&
14202          { ac_try='test -s conftest$ac_exeext'
14203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204   (eval $ac_try) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; }; then
14208    echo "*** The test program compiled, but did not run. This usually means"
14209        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14210        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14211        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14212        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14213        echo "*** is required on your system"
14214        echo "***"
14215        echo "*** If you have an old version installed, it is best to remove it, although"
14216        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14217 else
14218   echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221  echo "*** The test program failed to compile or link. See the file config.log for the"
14222        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14223        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14224        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14225 fi
14226 rm -f conftest.err conftest.$ac_objext \
14227       conftest$ac_exeext conftest.$ac_ext
14228        CFLAGS="$ac_save_CFLAGS"
14229        LIBS="$ac_save_LIBS"
14230      fi
14231      OGG_CFLAGS=""
14232      OGG_LIBS=""
14233
14234     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14235 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14236     have_vorbis=no
14237
14238   fi
14239
14240
14241   rm -f conf.oggtest
14242
14243 else
14244   echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14246 fi
14247
14248 if test "x$MSYS" = xyes ; then
14249   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14250 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14251   if test "x$au_enable_flac" = xyes; then
14252     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14253 echo "${ECHO_T}yes, configuring flac" >&6
14254     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14255
14256 # Check whether --with-libFLAC or --without-libFLAC was given.
14257 if test "${with_libFLAC+set}" = set; then
14258   withval="$with_libFLAC"
14259   libFLAC_prefix="$withval"
14260 else
14261   libFLAC_prefix=""
14262 fi;
14263
14264 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14265 if test "${with_libFLAC_libraries+set}" = set; then
14266   withval="$with_libFLAC_libraries"
14267   libFLAC_libraries="$withval"
14268 else
14269   libFLAC_libraries=""
14270 fi;
14271
14272 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14273 if test "${with_libFLAC_includes+set}" = set; then
14274   withval="$with_libFLAC_includes"
14275   libFLAC_includes="$withval"
14276 else
14277   libFLAC_includes=""
14278 fi;
14279 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14280 if test "${enable_libFLACtest+set}" = set; then
14281   enableval="$enable_libFLACtest"
14282
14283 else
14284   enable_libFLACtest=yes
14285 fi;
14286
14287   if test "x$libFLAC_libraries" != "x" ; then
14288     LIBFLAC_LIBS="-L$libFLAC_libraries"
14289   elif test "x$libFLAC_prefix" != "x" ; then
14290     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14291   elif test "x$prefix" != "xNONE" ; then
14292     LIBFLAC_LIBS="-L$prefix/lib"
14293   fi
14294
14295   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14296
14297   if test "x$libFLAC_includes" != "x" ; then
14298     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14299   elif test "x$libFLAC_prefix" != "x" ; then
14300     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14301   elif test "$prefix" != "xNONE"; then
14302     LIBFLAC_CFLAGS="-I$prefix/include"
14303   fi
14304
14305   echo "$as_me:$LINENO: checking for libFLAC" >&5
14306 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14307   no_libFLAC=""
14308
14309
14310   if test "x$enable_libFLACtest" = "xyes" ; then
14311     ac_save_CFLAGS="$CFLAGS"
14312     ac_save_CXXFLAGS="$CXXFLAGS"
14313     ac_save_LIBS="$LIBS"
14314     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14315     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14316     LIBS="$LIBS $LIBFLAC_LIBS"
14317       rm -f conf.libFLACtest
14318       if test "$cross_compiling" = yes; then
14319   echo $ac_n "cross compiling; assumed OK... $ac_c"
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327
14328 #include <stdio.h>
14329 #include <stdlib.h>
14330 #include <string.h>
14331 #include <FLAC/format.h>
14332
14333 int main ()
14334 {
14335   system("touch conf.libFLACtest");
14336   return 0;
14337 }
14338
14339
14340 _ACEOF
14341 rm -f conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343   (eval $ac_link) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348   (eval $ac_try) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; }; then
14352   :
14353 else
14354   echo "$as_me: program exited with status $ac_status" >&5
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ( exit $ac_status )
14359 no_libFLAC=yes
14360 fi
14361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14362 fi
14363        CFLAGS="$ac_save_CFLAGS"
14364        LIBS="$ac_save_LIBS"
14365   fi
14366
14367   if test "x$no_libFLAC" = "x" ; then
14368      echo "$as_me:$LINENO: result: yes" >&5
14369 echo "${ECHO_T}yes" >&6
14370
14371       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14372       for f in $LIBFLAC_CFLAGS; do
14373     case ".$f" in
14374         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14375         *)              CFLAGS="$CPPFLAGS $f" ;;
14376     esac
14377 done
14378
14379       LIBS="$LIBS $LIBFLAC_LIBS"
14380
14381   else
14382      echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6
14384      if test -f conf.libFLACtest ; then
14385        :
14386      else
14387        echo "*** Could not run libFLAC test program, checking why..."
14388        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14389        LIBS="$LIBS $LIBFLAC_LIBS"
14390        cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h.  */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h.  */
14396
14397 #include <stdio.h>
14398 #include <FLAC/format.h>
14399
14400 int
14401 main ()
14402 {
14403  return 0;
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410   (eval $ac_link) 2>conftest.er1
14411   ac_status=$?
14412   grep -v '^ *+' conftest.er1 >conftest.err
14413   rm -f conftest.er1
14414   cat conftest.err >&5
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } &&
14417          { ac_try='test -z "$ac_c_werror_flag"
14418                          || test ! -s conftest.err'
14419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420   (eval $ac_try) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; } &&
14424          { ac_try='test -s conftest$ac_exeext'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; }; then
14430    echo "*** The test program compiled, but did not run. This usually means"
14431        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14432        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14433        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14434        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14435        echo "*** is required on your system"
14436        echo "***"
14437        echo "*** If you have an old version installed, it is best to remove it, although"
14438        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443  echo "*** The test program failed to compile or link. See the file config.log for the"
14444        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14445        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14446        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14447 fi
14448 rm -f conftest.err conftest.$ac_objext \
14449       conftest$ac_exeext conftest.$ac_ext
14450        CFLAGS="$ac_save_CFLAGS"
14451        LIBS="$ac_save_LIBS"
14452      fi
14453      LIBFLAC_CFLAGS=""
14454      LIBFLAC_LIBS=""
14455      :
14456   fi
14457
14458
14459   rm -f conf.libFLACtest
14460
14461
14462 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14463 if test "${with_libOggFLAC+set}" = set; then
14464   withval="$with_libOggFLAC"
14465   libOggFLAC_prefix="$withval"
14466 else
14467   libOggFLAC_prefix=""
14468 fi;
14469
14470 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14471 if test "${with_libOggFLAC_libraries+set}" = set; then
14472   withval="$with_libOggFLAC_libraries"
14473   libOggFLAC_libraries="$withval"
14474 else
14475   libOggFLAC_libraries=""
14476 fi;
14477
14478 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14479 if test "${with_libOggFLAC_includes+set}" = set; then
14480   withval="$with_libOggFLAC_includes"
14481   libOggFLAC_includes="$withval"
14482 else
14483   libOggFLAC_includes=""
14484 fi;
14485 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14486 if test "${enable_libOggFLACtest+set}" = set; then
14487   enableval="$enable_libOggFLACtest"
14488
14489 else
14490   enable_libOggFLACtest=yes
14491 fi;
14492
14493   if test "x$libOggFLAC_libraries" != "x" ; then
14494     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14495   elif test "x$libOggFLAC_prefix" != "x" ; then
14496     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14497   elif test "x$prefix" != "xNONE" ; then
14498     LIBOGGFLAC_LIBS="-L$prefix/lib"
14499   fi
14500
14501   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14502
14503   if test "x$libOggFLAC_includes" != "x" ; then
14504     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14505   elif test "x$libOggFLAC_prefix" != "x" ; then
14506     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14507   elif test "$prefix" != "xNONE"; then
14508     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14509   fi
14510
14511   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14512 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14513   no_libOggFLAC=""
14514
14515
14516   if test "x$enable_libOggFLACtest" = "xyes" ; then
14517     ac_save_CFLAGS="$CFLAGS"
14518     ac_save_CXXFLAGS="$CXXFLAGS"
14519     ac_save_LIBS="$LIBS"
14520     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14521     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14522     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14523       rm -f conf.libOggFLACtest
14524       if test "$cross_compiling" = yes; then
14525   echo $ac_n "cross compiling; assumed OK... $ac_c"
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533
14534 #include <stdio.h>
14535 #include <stdlib.h>
14536 #include <string.h>
14537 #include <OggFLAC/stream_decoder.h>
14538
14539 int main ()
14540 {
14541   system("touch conf.libOggFLACtest");
14542   return 0;
14543 }
14544
14545
14546 _ACEOF
14547 rm -f conftest$ac_exeext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14549   (eval $ac_link) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; }; then
14558   :
14559 else
14560   echo "$as_me: program exited with status $ac_status" >&5
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ( exit $ac_status )
14565 no_libOggFLAC=yes
14566 fi
14567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14568 fi
14569        CFLAGS="$ac_save_CFLAGS"
14570        LIBS="$ac_save_LIBS"
14571   fi
14572
14573   if test "x$no_libOggFLAC" = "x" ; then
14574      echo "$as_me:$LINENO: result: yes" >&5
14575 echo "${ECHO_T}yes" >&6
14576
14577       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14578       for f in $LIBOGGFLAC_CFLAGS; do
14579     case ".$f" in
14580         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14581         *)              CFLAGS="$CPPFLAGS $f" ;;
14582     esac
14583 done
14584
14585       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14586
14587   else
14588      echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6
14590      if test -f conf.libOggFLACtest ; then
14591        :
14592      else
14593        echo "*** Could not run libOggFLAC test program, checking why..."
14594        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14595        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14596        cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602
14603 #include <stdio.h>
14604 #include <OggFLAC/stream_decoder.h>
14605
14606 int
14607 main ()
14608 {
14609  return 0;
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14616   (eval $ac_link) 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } &&
14623          { ac_try='test -z "$ac_c_werror_flag"
14624                          || test ! -s conftest.err'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; } &&
14630          { ac_try='test -s conftest$ac_exeext'
14631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636    echo "*** The test program compiled, but did not run. This usually means"
14637        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14638        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14639        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14640        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14641        echo "*** is required on your system"
14642        echo "***"
14643        echo "*** If you have an old version installed, it is best to remove it, although"
14644        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649  echo "*** The test program failed to compile or link. See the file config.log for the"
14650        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14651        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14652        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14653 fi
14654 rm -f conftest.err conftest.$ac_objext \
14655       conftest$ac_exeext conftest.$ac_ext
14656        CFLAGS="$ac_save_CFLAGS"
14657        LIBS="$ac_save_LIBS"
14658      fi
14659      LIBOGGFLAC_CFLAGS=""
14660      LIBOGGFLAC_LIBS=""
14661      :
14662   fi
14663
14664
14665   rm -f conf.libOggFLACtest
14666
14667   else
14668     echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14670   fi
14671 else
14672   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14673 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14674   if test "x$au_enable_flac" = xyes; then
14675     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14676 echo "${ECHO_T}yes, configuring flac" >&6
14677     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14678
14679 # Check whether --with-libFLAC or --without-libFLAC was given.
14680 if test "${with_libFLAC+set}" = set; then
14681   withval="$with_libFLAC"
14682   libFLAC_prefix="$withval"
14683 else
14684   libFLAC_prefix=""
14685 fi;
14686
14687 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14688 if test "${with_libFLAC_libraries+set}" = set; then
14689   withval="$with_libFLAC_libraries"
14690   libFLAC_libraries="$withval"
14691 else
14692   libFLAC_libraries=""
14693 fi;
14694
14695 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14696 if test "${with_libFLAC_includes+set}" = set; then
14697   withval="$with_libFLAC_includes"
14698   libFLAC_includes="$withval"
14699 else
14700   libFLAC_includes=""
14701 fi;
14702 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14703 if test "${enable_libFLACtest+set}" = set; then
14704   enableval="$enable_libFLACtest"
14705
14706 else
14707   enable_libFLACtest=yes
14708 fi;
14709
14710   if test "x$libFLAC_libraries" != "x" ; then
14711     LIBFLAC_LIBS="-L$libFLAC_libraries"
14712   elif test "x$libFLAC_prefix" != "x" ; then
14713     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14714   elif test "x$prefix" != "xNONE" ; then
14715     LIBFLAC_LIBS="-L$prefix/lib"
14716   fi
14717
14718   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14719
14720   if test "x$libFLAC_includes" != "x" ; then
14721     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14722   elif test "x$libFLAC_prefix" != "x" ; then
14723     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14724   elif test "$prefix" != "xNONE"; then
14725     LIBFLAC_CFLAGS="-I$prefix/include"
14726   fi
14727
14728   echo "$as_me:$LINENO: checking for libFLAC" >&5
14729 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14730   no_libFLAC=""
14731
14732
14733   if test "x$enable_libFLACtest" = "xyes" ; then
14734     ac_save_CFLAGS="$CFLAGS"
14735     ac_save_CXXFLAGS="$CXXFLAGS"
14736     ac_save_LIBS="$LIBS"
14737     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14738     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14739     LIBS="$LIBS $LIBFLAC_LIBS"
14740       rm -f conf.libFLACtest
14741       if test "$cross_compiling" = yes; then
14742   echo $ac_n "cross compiling; assumed OK... $ac_c"
14743 else
14744   cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750
14751 #include <stdio.h>
14752 #include <stdlib.h>
14753 #include <string.h>
14754 #include <FLAC/format.h>
14755
14756 int main ()
14757 {
14758   system("touch conf.libFLACtest");
14759   return 0;
14760 }
14761
14762
14763 _ACEOF
14764 rm -f conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766   (eval $ac_link) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775   :
14776 else
14777   echo "$as_me: program exited with status $ac_status" >&5
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14780
14781 ( exit $ac_status )
14782 no_libFLAC=yes
14783 fi
14784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14785 fi
14786        CFLAGS="$ac_save_CFLAGS"
14787        LIBS="$ac_save_LIBS"
14788   fi
14789
14790   if test "x$no_libFLAC" = "x" ; then
14791      echo "$as_me:$LINENO: result: yes" >&5
14792 echo "${ECHO_T}yes" >&6
14793
14794       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14795       for f in $LIBFLAC_CFLAGS; do
14796     case ".$f" in
14797         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14798         *)              CFLAGS="$CPPFLAGS $f" ;;
14799     esac
14800 done
14801
14802       LIBS="$LIBS $LIBFLAC_LIBS"
14803
14804   else
14805      echo "$as_me:$LINENO: result: no" >&5
14806 echo "${ECHO_T}no" >&6
14807      if test -f conf.libFLACtest ; then
14808        :
14809      else
14810        echo "*** Could not run libFLAC test program, checking why..."
14811        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14812        LIBS="$LIBS $LIBFLAC_LIBS"
14813        cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819
14820 #include <stdio.h>
14821 #include <FLAC/format.h>
14822
14823 int
14824 main ()
14825 {
14826  return 0;
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833   (eval $ac_link) 2>conftest.er1
14834   ac_status=$?
14835   grep -v '^ *+' conftest.er1 >conftest.err
14836   rm -f conftest.er1
14837   cat conftest.err >&5
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -z "$ac_c_werror_flag"
14841                          || test ! -s conftest.err'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; } &&
14847          { ac_try='test -s conftest$ac_exeext'
14848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849   (eval $ac_try) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; }; then
14853    echo "*** The test program compiled, but did not run. This usually means"
14854        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14855        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14856        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14857        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14858        echo "*** is required on your system"
14859        echo "***"
14860        echo "*** If you have an old version installed, it is best to remove it, although"
14861        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866  echo "*** The test program failed to compile or link. See the file config.log for the"
14867        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14868        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14869        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14870 fi
14871 rm -f conftest.err conftest.$ac_objext \
14872       conftest$ac_exeext conftest.$ac_ext
14873        CFLAGS="$ac_save_CFLAGS"
14874        LIBS="$ac_save_LIBS"
14875      fi
14876      LIBFLAC_CFLAGS=""
14877      LIBFLAC_LIBS=""
14878      :
14879   fi
14880
14881
14882   rm -f conf.libFLACtest
14883
14884
14885 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14886 if test "${with_libOggFLAC+set}" = set; then
14887   withval="$with_libOggFLAC"
14888   libOggFLAC_prefix="$withval"
14889 else
14890   libOggFLAC_prefix=""
14891 fi;
14892
14893 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14894 if test "${with_libOggFLAC_libraries+set}" = set; then
14895   withval="$with_libOggFLAC_libraries"
14896   libOggFLAC_libraries="$withval"
14897 else
14898   libOggFLAC_libraries=""
14899 fi;
14900
14901 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14902 if test "${with_libOggFLAC_includes+set}" = set; then
14903   withval="$with_libOggFLAC_includes"
14904   libOggFLAC_includes="$withval"
14905 else
14906   libOggFLAC_includes=""
14907 fi;
14908 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14909 if test "${enable_libOggFLACtest+set}" = set; then
14910   enableval="$enable_libOggFLACtest"
14911
14912 else
14913   enable_libOggFLACtest=yes
14914 fi;
14915
14916   if test "x$libOggFLAC_libraries" != "x" ; then
14917     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14918   elif test "x$libOggFLAC_prefix" != "x" ; then
14919     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14920   elif test "x$prefix" != "xNONE" ; then
14921     LIBOGGFLAC_LIBS="-L$prefix/lib"
14922   fi
14923
14924   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14925
14926   if test "x$libOggFLAC_includes" != "x" ; then
14927     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14928   elif test "x$libOggFLAC_prefix" != "x" ; then
14929     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14930   elif test "$prefix" != "xNONE"; then
14931     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14932   fi
14933
14934   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14935 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14936   no_libOggFLAC=""
14937
14938
14939   if test "x$enable_libOggFLACtest" = "xyes" ; then
14940     ac_save_CFLAGS="$CFLAGS"
14941     ac_save_CXXFLAGS="$CXXFLAGS"
14942     ac_save_LIBS="$LIBS"
14943     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14944     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14945     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14946       rm -f conf.libOggFLACtest
14947       if test "$cross_compiling" = yes; then
14948   echo $ac_n "cross compiling; assumed OK... $ac_c"
14949 else
14950   cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956
14957 #include <stdio.h>
14958 #include <stdlib.h>
14959 #include <string.h>
14960 #include <OggFLAC/stream_decoder.h>
14961
14962 int main ()
14963 {
14964   system("touch conf.libOggFLACtest");
14965   return 0;
14966 }
14967
14968
14969 _ACEOF
14970 rm -f conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972   (eval $ac_link) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981   :
14982 else
14983   echo "$as_me: program exited with status $ac_status" >&5
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ( exit $ac_status )
14988 no_libOggFLAC=yes
14989 fi
14990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 fi
14992        CFLAGS="$ac_save_CFLAGS"
14993        LIBS="$ac_save_LIBS"
14994   fi
14995
14996   if test "x$no_libOggFLAC" = "x" ; then
14997      echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
14999
15000       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15001       for f in $LIBOGGFLAC_CFLAGS; do
15002     case ".$f" in
15003         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
15004         *)              CFLAGS="$CPPFLAGS $f" ;;
15005     esac
15006 done
15007
15008       LIBS="$LIBS $LIBOGGFLAC_LIBS"
15009
15010   else
15011      echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15013      if test -f conf.libOggFLACtest ; then
15014        :
15015      else
15016        echo "*** Could not run libOggFLAC test program, checking why..."
15017        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15018        LIBS="$LIBS $LIBOGGFLAC_LIBS"
15019        cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025
15026 #include <stdio.h>
15027 #include <OggFLAC/stream_decoder.h>
15028
15029 int
15030 main ()
15031 {
15032  return 0;
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest$ac_exeext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059    echo "*** The test program compiled, but did not run. This usually means"
15060        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15061        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15062        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15063        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15064        echo "*** is required on your system"
15065        echo "***"
15066        echo "*** If you have an old version installed, it is best to remove it, although"
15067        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072  echo "*** The test program failed to compile or link. See the file config.log for the"
15073        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15074        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15075        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15076 fi
15077 rm -f conftest.err conftest.$ac_objext \
15078       conftest$ac_exeext conftest.$ac_ext
15079        CFLAGS="$ac_save_CFLAGS"
15080        LIBS="$ac_save_LIBS"
15081      fi
15082      LIBOGGFLAC_CFLAGS=""
15083      LIBOGGFLAC_LIBS=""
15084      :
15085   fi
15086
15087
15088   rm -f conf.libOggFLACtest
15089
15090   else
15091     echo "$as_me:$LINENO: result: no" >&5
15092 echo "${ECHO_T}no" >&6
15093   fi
15094 fi
15095 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15096 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
15097 if test "x$au_enable_speex" = xyes; then
15098   if test "${have_speex+set}" = set; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101   cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107
15108   #include <speex.h>
15109   #include <ogg/ogg.h>
15110
15111 int
15112 main ()
15113 {
15114
15115     SpeexBits *dummy;
15116
15117   ;
15118   return 0;
15119 }
15120 _ACEOF
15121 rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15123   (eval $ac_link) 2>conftest.er1
15124   ac_status=$?
15125   grep -v '^ *+' conftest.er1 >conftest.err
15126   rm -f conftest.er1
15127   cat conftest.err >&5
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); } &&
15130          { ac_try='test -z "$ac_c_werror_flag"
15131                          || test ! -s conftest.err'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } &&
15137          { ac_try='test -s conftest$ac_exeext'
15138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139   (eval $ac_try) 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); }; }; then
15143   have_speex=yes
15144 else
15145   echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148 have_speex=no
15149 fi
15150 rm -f conftest.err conftest.$ac_objext \
15151       conftest$ac_exeext conftest.$ac_ext
15152 fi
15153
15154   echo "$as_me:$LINENO: result: $have_speex" >&5
15155 echo "${ECHO_T}$have_speex" >&6
15156   if test "x$have_speex" = xyes; then
15157     SYSEXTRAS="$SYSEXTRAS speex_a.c"
15158     EXTRALIBS="$EXTRALIBS -lspeex -logg"
15159     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15160   fi
15161 else
15162   echo "$as_me:$LINENO: result: no" >&5
15163 echo "${ECHO_T}no" >&6
15164 fi
15165
15166 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15167 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
15168 if test "x$au_enable_gogo" = xyes; then
15169   if test "x$MSYS" = "xyes"; then
15170     echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15172   else
15173     { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
15174 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
15175   fi
15176   have_gogo=yes
15177   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15178   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15179   EXTRALIBS="$EXTRALIBS -lgogo"
15180 else
15181   echo "$as_me:$LINENO: result: no" >&5
15182 echo "${ECHO_T}no" >&6
15183 fi
15184
15185 if test "x$au_enable_none" = xyes; then
15186     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15187     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15188 fi
15189 echo "$as_me:$LINENO: checking default output mode" >&5
15190 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
15191 if test "x$DEFAULT_PLAYMODE" = x; then
15192   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15193 fi
15194 case ".$DEFAULT_PLAYMODE" in
15195   .default)  TIMIDITY_OUTPUT_ID=d ;;
15196   .oss)      TIMIDITY_OUTPUT_ID=d ;;
15197   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
15198   .sun)      TIMIDITY_OUTPUT_ID=d ;;
15199   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
15200   .irix)     TIMIDITY_OUTPUT_ID=d ;;
15201   .mme)      TIMIDITY_OUTPUT_ID=d ;;
15202   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
15203   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
15204   .w32)      TIMIDITY_OUTPUT_ID=d ;;
15205   .alib)     TIMIDITY_OUTPUT_ID=A ;;
15206   .nas)      TIMIDITY_OUTPUT_ID=n ;;
15207   .arts)     TIMIDITY_OUTPUT_ID=R ;;
15208   .esd)      TIMIDITY_OUTPUT_ID=e ;;
15209   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
15210   .wav)      TIMIDITY_OUTPUT_ID=w ;;
15211   .au)       TIMIDITY_OUTPUT_ID=u ;;
15212   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
15213   .list)     TIMIDITY_OUTPUT_ID=l ;;
15214   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
15215   .flac)     TIMIDITY_OUTPUT_ID=F ;;
15216   .speex)    TIMIDITY_OUTPUT_ID=S ;;
15217   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
15218   .jack)     TIMIDITY_OUTPUT_ID=j ;;
15219   *)         TIMIDITY_OUTPUT_ID= ;;
15220 esac
15221 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15222 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
15223
15224
15225 #
15226 # Interface Section
15227 #
15228
15229 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
15230
15231 # Check whether --enable-interface or --disable-interface was given.
15232 if test "${enable_interface+set}" = set; then
15233   enableval="$enable_interface"
15234    for i in `echo $enableval | sed 's/,/ /g'`; do
15235       eval "enable_$i=yes"
15236     done
15237 fi;
15238
15239 #  Dynamic link configuration
15240 # Check whether --enable-dynamic or --disable-dynamic was given.
15241 if test "${enable_dynamic+set}" = set; then
15242   enableval="$enable_dynamic"
15243        if test "x$enable_dynamic" = xyes; then
15244       enable_dynamic=dynamic
15245     elif test "x$enable_dynamic" != xno; then
15246       for i in `echo $enableval | sed 's/,/ /g'`; do
15247         eval "enable_$i=dynamic"
15248       done
15249     fi
15250 fi;
15251
15252 join_targets=
15253 for i in $interface_targets; do
15254   eval "join_targets=$join_targets\$enable_$i"
15255 done
15256
15257 case ".$join_targets" in
15258 .*dynamic*) NEEDDLOPEN=yes;;
15259 *)          NEEDDLOPEN=no;;
15260 esac
15261
15262 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15263 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15264
15265 if test "$NEEDDLOPEN" = "yes"; then
15266   have_dl=no
15267
15268   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15269 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
15270 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <windows.h>
15280
15281
15282 int
15283 main ()
15284 {
15285 LoadLibrary(0);
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15292   (eval $ac_link) 2>conftest.er1
15293   ac_status=$?
15294   grep -v '^ *+' conftest.er1 >conftest.err
15295   rm -f conftest.er1
15296   cat conftest.err >&5
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); } &&
15299          { ac_try='test -z "$ac_c_werror_flag"
15300                          || test ! -s conftest.err'
15301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302   (eval $ac_try) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; } &&
15306          { ac_try='test -s conftest$ac_exeext'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312   wapi_cv_func_LoadLibrary=yes
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 wapi_cv_func_LoadLibrary=no
15318 fi
15319 rm -f conftest.err conftest.$ac_objext \
15320       conftest$ac_exeext conftest.$ac_ext
15321 fi
15322
15323 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15324   echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6
15326   have_dl=w32
15327 else
15328   echo "$as_me:$LINENO: result: no" >&5
15329 echo "${ECHO_T}no" >&6
15330 fi
15331
15332   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15333
15334   if test "$have_dl" = "no"; then
15335     echo "$as_me:$LINENO: checking for shl_load" >&5
15336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15337 if test "${ac_cv_func_shl_load+set}" = set; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340   cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15348 #define shl_load innocuous_shl_load
15349
15350 /* System header to define __stub macros and hopefully few prototypes,
15351     which can conflict with char shl_load (); below.
15352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15353     <limits.h> exists even on freestanding compilers.  */
15354
15355 #ifdef __STDC__
15356 # include <limits.h>
15357 #else
15358 # include <assert.h>
15359 #endif
15360
15361 #undef shl_load
15362
15363 /* Override any gcc2 internal prototype to avoid an error.  */
15364 #ifdef __cplusplus
15365 extern "C"
15366 {
15367 #endif
15368 /* We use char because int might match the return type of a gcc2
15369    builtin and then its argument prototype would still apply.  */
15370 char shl_load ();
15371 /* The GNU C library defines this for functions which it implements
15372     to always fail with ENOSYS.  Some functions are actually named
15373     something starting with __ and the normal name is an alias.  */
15374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15375 choke me
15376 #else
15377 char (*f) () = shl_load;
15378 #endif
15379 #ifdef __cplusplus
15380 }
15381 #endif
15382
15383 int
15384 main ()
15385 {
15386 return f != shl_load;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393   (eval $ac_link) 2>conftest.er1
15394   ac_status=$?
15395   grep -v '^ *+' conftest.er1 >conftest.err
15396   rm -f conftest.er1
15397   cat conftest.err >&5
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } &&
15400          { ac_try='test -z "$ac_c_werror_flag"
15401                          || test ! -s conftest.err'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; } &&
15407          { ac_try='test -s conftest$ac_exeext'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; }; then
15413   ac_cv_func_shl_load=yes
15414 else
15415   echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418 ac_cv_func_shl_load=no
15419 fi
15420 rm -f conftest.err conftest.$ac_objext \
15421       conftest$ac_exeext conftest.$ac_ext
15422 fi
15423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15425 if test $ac_cv_func_shl_load = yes; then
15426   have_dl=hpux
15427 fi
15428
15429   fi
15430   if test "$have_dl" = "no"; then
15431             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15432 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15433 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436   cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h.  */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h.  */
15442 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15444 #define NSLinkModule innocuous_NSLinkModule
15445
15446 /* System header to define __stub macros and hopefully few prototypes,
15447     which can conflict with char NSLinkModule (); below.
15448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15449     <limits.h> exists even on freestanding compilers.  */
15450
15451 #ifdef __STDC__
15452 # include <limits.h>
15453 #else
15454 # include <assert.h>
15455 #endif
15456
15457 #undef NSLinkModule
15458
15459 /* Override any gcc2 internal prototype to avoid an error.  */
15460 #ifdef __cplusplus
15461 extern "C"
15462 {
15463 #endif
15464 /* We use char because int might match the return type of a gcc2
15465    builtin and then its argument prototype would still apply.  */
15466 char NSLinkModule ();
15467 /* The GNU C library defines this for functions which it implements
15468     to always fail with ENOSYS.  Some functions are actually named
15469     something starting with __ and the normal name is an alias.  */
15470 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15471 choke me
15472 #else
15473 char (*f) () = NSLinkModule;
15474 #endif
15475 #ifdef __cplusplus
15476 }
15477 #endif
15478
15479 int
15480 main ()
15481 {
15482 return f != NSLinkModule;
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15489   (eval $ac_link) 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } &&
15496          { ac_try='test -z "$ac_c_werror_flag"
15497                          || test ! -s conftest.err'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; } &&
15503          { ac_try='test -s conftest$ac_exeext'
15504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505   (eval $ac_try) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_cv_func_NSLinkModule=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_cv_func_NSLinkModule=no
15515 fi
15516 rm -f conftest.err conftest.$ac_objext \
15517       conftest$ac_exeext conftest.$ac_ext
15518 fi
15519 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15520 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15521 if test $ac_cv_func_NSLinkModule = yes; then
15522   have_dl=dyld
15523 fi
15524
15525   fi
15526   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15527     have_dl=dlopen
15528   fi
15529   if test "$have_dl" = "no"; then
15530     echo "$as_me:$LINENO: checking for dlopen" >&5
15531 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15532 if test "${ac_cv_func_dlopen+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535   cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15543 #define dlopen innocuous_dlopen
15544
15545 /* System header to define __stub macros and hopefully few prototypes,
15546     which can conflict with char dlopen (); below.
15547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548     <limits.h> exists even on freestanding compilers.  */
15549
15550 #ifdef __STDC__
15551 # include <limits.h>
15552 #else
15553 # include <assert.h>
15554 #endif
15555
15556 #undef dlopen
15557
15558 /* Override any gcc2 internal prototype to avoid an error.  */
15559 #ifdef __cplusplus
15560 extern "C"
15561 {
15562 #endif
15563 /* We use char because int might match the return type of a gcc2
15564    builtin and then its argument prototype would still apply.  */
15565 char dlopen ();
15566 /* The GNU C library defines this for functions which it implements
15567     to always fail with ENOSYS.  Some functions are actually named
15568     something starting with __ and the normal name is an alias.  */
15569 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15570 choke me
15571 #else
15572 char (*f) () = dlopen;
15573 #endif
15574 #ifdef __cplusplus
15575 }
15576 #endif
15577
15578 int
15579 main ()
15580 {
15581 return f != dlopen;
15582   ;
15583   return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588   (eval $ac_link) 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } &&
15595          { ac_try='test -z "$ac_c_werror_flag"
15596                          || test ! -s conftest.err'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; } &&
15602          { ac_try='test -s conftest$ac_exeext'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   ac_cv_func_dlopen=yes
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_cv_func_dlopen=no
15614 fi
15615 rm -f conftest.err conftest.$ac_objext \
15616       conftest$ac_exeext conftest.$ac_ext
15617 fi
15618 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15619 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15620 if test $ac_cv_func_dlopen = yes; then
15621   have_dl=dlopen
15622 fi
15623
15624   fi
15625   if test "$have_dl" = "no"; then
15626     echo "$as_me:$LINENO: checking for dld_init" >&5
15627 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15628 if test "${ac_cv_func_dld_init+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15639 #define dld_init innocuous_dld_init
15640
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char dld_init (); below.
15643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644     <limits.h> exists even on freestanding compilers.  */
15645
15646 #ifdef __STDC__
15647 # include <limits.h>
15648 #else
15649 # include <assert.h>
15650 #endif
15651
15652 #undef dld_init
15653
15654 /* Override any gcc2 internal prototype to avoid an error.  */
15655 #ifdef __cplusplus
15656 extern "C"
15657 {
15658 #endif
15659 /* We use char because int might match the return type of a gcc2
15660    builtin and then its argument prototype would still apply.  */
15661 char dld_init ();
15662 /* The GNU C library defines this for functions which it implements
15663     to always fail with ENOSYS.  Some functions are actually named
15664     something starting with __ and the normal name is an alias.  */
15665 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15666 choke me
15667 #else
15668 char (*f) () = dld_init;
15669 #endif
15670 #ifdef __cplusplus
15671 }
15672 #endif
15673
15674 int
15675 main ()
15676 {
15677 return f != dld_init;
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15684   (eval $ac_link) 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } &&
15691          { ac_try='test -z "$ac_c_werror_flag"
15692                          || test ! -s conftest.err'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; } &&
15698          { ac_try='test -s conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_cv_func_dld_init=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 ac_cv_func_dld_init=no
15710 fi
15711 rm -f conftest.err conftest.$ac_objext \
15712       conftest$ac_exeext conftest.$ac_ext
15713 fi
15714 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15715 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15716 if test $ac_cv_func_dld_init = yes; then
15717   have_dl=dld
15718 fi
15719
15720   fi
15721   if test "$have_dl" = "no"; then
15722     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15723 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15724 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-ldld  $LIBS"
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h.  */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h.  */
15735
15736 /* Override any gcc2 internal prototype to avoid an error.  */
15737 #ifdef __cplusplus
15738 extern "C"
15739 #endif
15740 /* We use char because int might match the return type of a gcc2
15741    builtin and then its argument prototype would still apply.  */
15742 char dld_init ();
15743 int
15744 main ()
15745 {
15746 dld_init ();
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753   (eval $ac_link) 2>conftest.er1
15754   ac_status=$?
15755   grep -v '^ *+' conftest.er1 >conftest.err
15756   rm -f conftest.er1
15757   cat conftest.err >&5
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } &&
15760          { ac_try='test -z "$ac_c_werror_flag"
15761                          || test ! -s conftest.err'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; } &&
15767          { ac_try='test -s conftest$ac_exeext'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; }; then
15773   ac_cv_lib_dld_dld_init=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_cv_lib_dld_dld_init=no
15779 fi
15780 rm -f conftest.err conftest.$ac_objext \
15781       conftest$ac_exeext conftest.$ac_ext
15782 LIBS=$ac_check_lib_save_LIBS
15783 fi
15784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15785 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15786 if test $ac_cv_lib_dld_dld_init = yes; then
15787   have_dl=dld;lib_dl_opt=-ldld
15788 fi
15789
15790   fi
15791
15792   echo "$as_me:$LINENO: checking dynamic link method" >&5
15793 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15794   case "$have_dl" in
15795     dlopen)
15796       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15797 echo "${ECHO_T}use dl_dlopen.c" >&6
15798       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15799       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15800 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15801 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   case "$ac_cv_header_dlfcn_h" in
15805 yes) i_dlfcn=define;;
15806 *)   i_dlfcn=undef;;
15807 esac
15808 cat > dyna.c <<EOM
15809 fred () { }
15810 EOM
15811
15812 cat > fred.c <<EOM
15813 #include <stdio.h>
15814 #$i_dlfcn I_DLFCN
15815 #ifdef I_DLFCN
15816 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15817 #else
15818 #include <sys/types.h>
15819 #include <nlist.h>
15820 #include <link.h>
15821 #endif
15822
15823 extern int fred() ;
15824
15825 main()
15826 {
15827     void * handle ;
15828     void * symbol ;
15829 #ifndef RTLD_LAZY
15830     int mode = 1 ;
15831 #else
15832     int mode = RTLD_LAZY ;
15833 #endif
15834     handle = dlopen("./dyna.$so", mode) ;
15835     if (handle == NULL) {
15836         printf ("1\n") ;
15837         fflush (stdout) ;
15838         exit(0);
15839     }
15840     symbol = dlsym(handle, "fred") ;
15841     if (symbol == NULL) {
15842         /* try putting a leading underscore */
15843         symbol = dlsym(handle, "_fred") ;
15844         if (symbol == NULL) {
15845             printf ("2\n") ;
15846             fflush (stdout) ;
15847             exit(0);
15848         }
15849         printf ("3\n") ;
15850     }
15851     else
15852         printf ("4\n") ;
15853     fflush (stdout) ;
15854     exit(0);
15855 }
15856 EOM
15857 : Call the object file tmp-dyna.o in case dlext=o.
15858 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15859         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15860         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15861         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15862         xxx=`./fred`
15863         case $xxx in
15864         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15865 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15866                 ;;
15867         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15868 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15869                 ;;
15870         3)      timidity_cv_func_dlsym_underscore=yes
15871                 ;;
15872         4)      timidity_cv_func_dlsym_underscore=no
15873                 ;;
15874         esac
15875 else
15876         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15877 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15878 fi
15879 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15880
15881 fi
15882
15883 case "x$timidity_cv_func_dlsym_underscore" in
15884 xyes)
15885 cat >>confdefs.h <<\_ACEOF
15886 #define DLSYM_NEEDS_UNDERSCORE 1
15887 _ACEOF
15888
15889         echo "$as_me:$LINENO: result: yes" >&5
15890 echo "${ECHO_T}yes" >&6
15891         ;;
15892 xno)
15893         echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15895         ;;
15896 esac
15897
15898       ;;
15899     dld)
15900       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15901 echo "${ECHO_T}use dl_dld.c" >&6
15902       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15903       ;;
15904     hpux)
15905       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15906 echo "${ECHO_T}use dl_hpux.c" >&6
15907       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15908       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15909       ;;
15910     w32)
15911       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15912 echo "${ECHO_T}use dl_w32.c" >&6
15913       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15914       ;;
15915     dyld)
15916       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15917 echo "${ECHO_T}use dl_dyld.c" >&6
15918       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15919       ;;
15920     *)
15921       NEEDDLOPEN="no"
15922       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15923 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15924       ;;
15925   esac
15926 fi
15927
15928 if test "$NEEDDLOPEN" = "yes"; then
15929   cat >> confdefs.h <<EOF
15930 #define IA_DYNAMIC 1
15931 EOF
15932
15933
15934 cat >>confdefs.h <<_ACEOF
15935 #define SHARED_LIB_EXT ".$so"
15936 _ACEOF
15937
15938       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15939 fi
15940
15941
15942
15943 if test "$NEEDDLOPEN" = "yes"; then
15944   NEEDDLOPEN_TRUE=
15945   NEEDDLOPEN_FALSE='#'
15946 else
15947   NEEDDLOPEN_TRUE='#'
15948   NEEDDLOPEN_FALSE=
15949 fi
15950
15951
15952
15953
15954
15955 if false; then
15956   ENABLE_NCURSES_TRUE=
15957   ENABLE_NCURSES_FALSE='#'
15958 else
15959   ENABLE_NCURSES_TRUE='#'
15960   ENABLE_NCURSES_FALSE=
15961 fi
15962
15963 # Check whether --enable-ncurses or --disable-ncurses was given.
15964 if test "${enable_ncurses+set}" = set; then
15965   enableval="$enable_ncurses"
15966   case "x$enable_ncurses" in xyes|xdynamic)
15967
15968
15969 for ac_header in ncurses.h ncurses/curses.h curses.h
15970 do
15971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15973   echo "$as_me:$LINENO: checking for $ac_header" >&5
15974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 fi
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15980 else
15981   # Is the header compilable?
15982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 $ac_includes_default
15991 #include <$ac_header>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995   (eval $ac_compile) 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } &&
16002          { ac_try='test -z "$ac_c_werror_flag"
16003                          || test ! -s conftest.err'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; } &&
16009          { ac_try='test -s conftest.$ac_objext'
16010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011   (eval $ac_try) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; }; then
16015   ac_header_compiler=yes
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_header_compiler=no
16021 fi
16022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16024 echo "${ECHO_T}$ac_header_compiler" >&6
16025
16026 # Is the header present?
16027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <$ac_header>
16036 _ACEOF
16037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } >/dev/null; then
16045   if test -s conftest.err; then
16046     ac_cpp_err=$ac_c_preproc_warn_flag
16047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16048   else
16049     ac_cpp_err=
16050   fi
16051 else
16052   ac_cpp_err=yes
16053 fi
16054 if test -z "$ac_cpp_err"; then
16055   ac_header_preproc=yes
16056 else
16057   echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16059
16060   ac_header_preproc=no
16061 fi
16062 rm -f conftest.err conftest.$ac_ext
16063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16064 echo "${ECHO_T}$ac_header_preproc" >&6
16065
16066 # So?  What about this header?
16067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16068   yes:no: )
16069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16073     ac_header_preproc=yes
16074     ;;
16075   no:yes:* )
16076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16088     (
16089       cat <<\_ASBOX
16090 ## ------------------------------- ##
16091 ## Report this to root@mput.dip.jp ##
16092 ## ------------------------------- ##
16093 _ASBOX
16094     ) |
16095       sed "s/^/$as_me: WARNING:     /" >&2
16096     ;;
16097 esac
16098 echo "$as_me:$LINENO: checking for $ac_header" >&5
16099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16101   echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103   eval "$as_ac_Header=\$ac_header_preproc"
16104 fi
16105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16107
16108 fi
16109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16110   cat >>confdefs.h <<_ACEOF
16111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16112 _ACEOF
16113
16114 fi
16115
16116 done
16117
16118
16119
16120   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16121     *yes*);;
16122     *)  for i in /usr/include /usr/local/include; do
16123           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16124             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
16125 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
16126             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16127             break
16128           fi
16129         done
16130         ;;
16131     esac
16132
16133     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16134 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
16135 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16136   echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138   ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lncurses  $LIBS"
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146
16147 /* Override any gcc2 internal prototype to avoid an error.  */
16148 #ifdef __cplusplus
16149 extern "C"
16150 #endif
16151 /* We use char because int might match the return type of a gcc2
16152    builtin and then its argument prototype would still apply.  */
16153 char initscr ();
16154 int
16155 main ()
16156 {
16157 initscr ();
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164   (eval $ac_link) 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -z "$ac_c_werror_flag"
16172                          || test ! -s conftest.err'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; } &&
16178          { ac_try='test -s conftest$ac_exeext'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }; then
16184   ac_cv_lib_ncurses_initscr=yes
16185 else
16186   echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189 ac_cv_lib_ncurses_initscr=no
16190 fi
16191 rm -f conftest.err conftest.$ac_objext \
16192       conftest$ac_exeext conftest.$ac_ext
16193 LIBS=$ac_check_lib_save_LIBS
16194 fi
16195 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16196 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
16197 if test $ac_cv_lib_ncurses_initscr = yes; then
16198   lib_curses_opt=-lncurses
16199 else
16200         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16201 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
16202 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   ac_check_lib_save_LIBS=$LIBS
16206 LIBS="-lcurses $lib_user32_test $LIBS"
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213
16214 /* Override any gcc2 internal prototype to avoid an error.  */
16215 #ifdef __cplusplus
16216 extern "C"
16217 #endif
16218 /* We use char because int might match the return type of a gcc2
16219    builtin and then its argument prototype would still apply.  */
16220 char PDC_set_ctrl_break ();
16221 int
16222 main ()
16223 {
16224 PDC_set_ctrl_break ();
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16231   (eval $ac_link) 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_c_werror_flag"
16239                          || test ! -s conftest.err'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; } &&
16245          { ac_try='test -s conftest$ac_exeext'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   ac_cv_lib_curses_PDC_set_ctrl_break=yes
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_cv_lib_curses_PDC_set_ctrl_break=no
16257 fi
16258 rm -f conftest.err conftest.$ac_objext \
16259       conftest$ac_exeext conftest.$ac_ext
16260 LIBS=$ac_check_lib_save_LIBS
16261 fi
16262 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16263 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
16264 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16265    lib_curses_opt=-lcurses
16266
16267 cat >>confdefs.h <<\_ACEOF
16268 #define USE_PDCURSES 1
16269 _ACEOF
16270
16271             lib_user32_opt="$lib_user32_test"
16272
16273 else
16274             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16275 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
16276 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   ac_check_lib_save_LIBS=$LIBS
16280 LIBS="-lpdcurses  $LIBS"
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h.  */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h.  */
16287
16288 /* Override any gcc2 internal prototype to avoid an error.  */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 /* We use char because int might match the return type of a gcc2
16293    builtin and then its argument prototype would still apply.  */
16294 char PDC_set_ctrl_break ();
16295 int
16296 main ()
16297 {
16298 PDC_set_ctrl_break ();
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16305   (eval $ac_link) 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -z "$ac_c_werror_flag"
16313                          || test ! -s conftest.err'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest$ac_exeext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16331 fi
16332 rm -f conftest.err conftest.$ac_objext \
16333       conftest$ac_exeext conftest.$ac_ext
16334 LIBS=$ac_check_lib_save_LIBS
16335 fi
16336 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16337 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16338 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16339    lib_curses_opt=-lpdcurses
16340
16341 cat >>confdefs.h <<\_ACEOF
16342 #define USE_PDCURSES 1
16343 _ACEOF
16344
16345               lib_user32_opt="$lib_user32_test"
16346
16347 else
16348               case "$target" in
16349                 *openbsd*)
16350                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16351 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16352 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16353   echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355   ac_check_lib_save_LIBS=$LIBS
16356 LIBS="-lcurses  $LIBS"
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h.  */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h.  */
16363
16364 /* Override any gcc2 internal prototype to avoid an error.  */
16365 #ifdef __cplusplus
16366 extern "C"
16367 #endif
16368 /* We use char because int might match the return type of a gcc2
16369    builtin and then its argument prototype would still apply.  */
16370 char initscr ();
16371 int
16372 main ()
16373 {
16374 initscr ();
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381   (eval $ac_link) 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } &&
16388          { ac_try='test -z "$ac_c_werror_flag"
16389                          || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   ac_cv_lib_curses_initscr=yes
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_cv_lib_curses_initscr=no
16407 fi
16408 rm -f conftest.err conftest.$ac_objext \
16409       conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16411 fi
16412 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16413 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16414 if test $ac_cv_lib_curses_initscr = yes; then
16415   lib_curses_opt=-lcurses
16416 else
16417    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16418 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16419                       enable_ncurses=no
16420 fi
16421
16422                   ;;
16423                 *)
16424                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
16425                     lib_curses_opt=libpdcurses.lib
16426
16427 cat >>confdefs.h <<\_ACEOF
16428 #define USE_PDCURSES 1
16429 _ACEOF
16430
16431                   else
16432                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16433 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16434                     enable_ncurses=no
16435                   fi
16436                   ;;
16437               esac
16438
16439 fi
16440
16441
16442 fi
16443
16444
16445 fi
16446
16447    ;; esac
16448 fi;
16449 case "x$enable_ncurses" in
16450 xyes)
16451   cat >> confdefs.h <<EOF
16452 #define IA_NCURSES 1
16453 EOF
16454
16455
16456
16457 if true; then
16458   ENABLE_NCURSES_TRUE=
16459   ENABLE_NCURSES_FALSE='#'
16460 else
16461   ENABLE_NCURSES_TRUE='#'
16462   ENABLE_NCURSES_FALSE=
16463 fi
16464
16465    LIBS="$LIBS $lib_curses_opt"
16466     case "$target" in
16467        *-*-freebsd123*)
16468          EXTRALIBS="$EXTRALIBS -lmytinfo"
16469          ;;
16470      esac
16471     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16472
16473   ;;
16474 xdynamic)
16475   dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16476    n_so_libs="$lib_curses_opt"
16477     case "$target" in
16478        *-*-freebsd123*)
16479          EXTRALIBS="$EXTRALIBS -lmytinfo"
16480          ;;
16481      esac
16482   ;;
16483 *)
16484
16485   ;;
16486 esac
16487
16488
16489
16490
16491
16492 if false; then
16493   ENABLE_SLANG_TRUE=
16494   ENABLE_SLANG_FALSE='#'
16495 else
16496   ENABLE_SLANG_TRUE='#'
16497   ENABLE_SLANG_FALSE=
16498 fi
16499
16500 # Check whether --enable-slang or --disable-slang was given.
16501 if test "${enable_slang+set}" = set; then
16502   enableval="$enable_slang"
16503   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16504 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16505 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lslang  $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517 /* Override any gcc2 internal prototype to avoid an error.  */
16518 #ifdef __cplusplus
16519 extern "C"
16520 #endif
16521 /* We use char because int might match the return type of a gcc2
16522    builtin and then its argument prototype would still apply.  */
16523 char SLang_init_tty ();
16524 int
16525 main ()
16526 {
16527 SLang_init_tty ();
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534   (eval $ac_link) 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } &&
16541          { ac_try='test -z "$ac_c_werror_flag"
16542                          || test ! -s conftest.err'
16543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544   (eval $ac_try) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; } &&
16548          { ac_try='test -s conftest$ac_exeext'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_cv_lib_slang_SLang_init_tty=yes
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_cv_lib_slang_SLang_init_tty=no
16560 fi
16561 rm -f conftest.err conftest.$ac_objext \
16562       conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16564 fi
16565 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16566 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16567 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16568   :
16569 else
16570    enable_slang=no
16571       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16572 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16573
16574 fi
16575
16576
16577
16578 for ac_header in slang/slang.h slang.h
16579 do
16580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16582   echo "$as_me:$LINENO: checking for $ac_header" >&5
16583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16585   echo $ECHO_N "(cached) $ECHO_C" >&6
16586 fi
16587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16589 else
16590   # Is the header compilable?
16591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h.  */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h.  */
16599 $ac_includes_default
16600 #include <$ac_header>
16601 _ACEOF
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16604   (eval $ac_compile) 2>conftest.er1
16605   ac_status=$?
16606   grep -v '^ *+' conftest.er1 >conftest.err
16607   rm -f conftest.er1
16608   cat conftest.err >&5
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -z "$ac_c_werror_flag"
16612                          || test ! -s conftest.err'
16613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614   (eval $ac_try) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; } &&
16618          { ac_try='test -s conftest.$ac_objext'
16619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620   (eval $ac_try) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; }; then
16624   ac_header_compiler=yes
16625 else
16626   echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 ac_header_compiler=no
16630 fi
16631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16633 echo "${ECHO_T}$ac_header_compiler" >&6
16634
16635 # Is the header present?
16636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h.  */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h.  */
16644 #include <$ac_header>
16645 _ACEOF
16646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16648   ac_status=$?
16649   grep -v '^ *+' conftest.er1 >conftest.err
16650   rm -f conftest.er1
16651   cat conftest.err >&5
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); } >/dev/null; then
16654   if test -s conftest.err; then
16655     ac_cpp_err=$ac_c_preproc_warn_flag
16656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16657   else
16658     ac_cpp_err=
16659   fi
16660 else
16661   ac_cpp_err=yes
16662 fi
16663 if test -z "$ac_cpp_err"; then
16664   ac_header_preproc=yes
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669   ac_header_preproc=no
16670 fi
16671 rm -f conftest.err conftest.$ac_ext
16672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673 echo "${ECHO_T}$ac_header_preproc" >&6
16674
16675 # So?  What about this header?
16676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16677   yes:no: )
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682     ac_header_preproc=yes
16683     ;;
16684   no:yes:* )
16685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16697     (
16698       cat <<\_ASBOX
16699 ## ------------------------------- ##
16700 ## Report this to root@mput.dip.jp ##
16701 ## ------------------------------- ##
16702 _ASBOX
16703     ) |
16704       sed "s/^/$as_me: WARNING:     /" >&2
16705     ;;
16706 esac
16707 echo "$as_me:$LINENO: checking for $ac_header" >&5
16708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   eval "$as_ac_Header=\$ac_header_preproc"
16713 fi
16714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16716
16717 fi
16718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16719   cat >>confdefs.h <<_ACEOF
16720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16721 _ACEOF
16722
16723 fi
16724
16725 done
16726
16727    ;; esac
16728 fi;
16729 case "x$enable_slang" in
16730 xyes)
16731   cat >> confdefs.h <<EOF
16732 #define IA_SLANG 1
16733 EOF
16734
16735
16736
16737 if true; then
16738   ENABLE_SLANG_TRUE=
16739   ENABLE_SLANG_FALSE='#'
16740 else
16741   ENABLE_SLANG_TRUE='#'
16742   ENABLE_SLANG_FALSE=
16743 fi
16744
16745    LIBS="$LIBS -lslang"
16746     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16747
16748   ;;
16749 xdynamic)
16750   dynamic_targets="$dynamic_targets if_slang.\$(so)"
16751    s_so_libs="-lslang"
16752     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16753 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16754 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   ac_check_lib_save_LIBS=$LIBS
16758 LIBS="-ltermcap  $LIBS"
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765
16766 /* Override any gcc2 internal prototype to avoid an error.  */
16767 #ifdef __cplusplus
16768 extern "C"
16769 #endif
16770 /* We use char because int might match the return type of a gcc2
16771    builtin and then its argument prototype would still apply.  */
16772 char initscr ();
16773 int
16774 main ()
16775 {
16776 initscr ();
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783   (eval $ac_link) 2>conftest.er1
16784   ac_status=$?
16785   grep -v '^ *+' conftest.er1 >conftest.err
16786   rm -f conftest.er1
16787   cat conftest.err >&5
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); } &&
16790          { ac_try='test -z "$ac_c_werror_flag"
16791                          || test ! -s conftest.err'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; } &&
16797          { ac_try='test -s conftest$ac_exeext'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   ac_cv_lib_termcap_initscr=yes
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_cv_lib_termcap_initscr=no
16809 fi
16810 rm -f conftest.err conftest.$ac_objext \
16811       conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16813 fi
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16815 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16816 if test $ac_cv_lib_termcap_initscr = yes; then
16817   s_so_libs="$s_so_libs -ltermcap"
16818 fi
16819
16820
16821   ;;
16822 *)
16823
16824   ;;
16825 esac
16826
16827
16828
16829
16830
16831 if false; then
16832   ENABLE_MOTIF_TRUE=
16833   ENABLE_MOTIF_FALSE='#'
16834 else
16835   ENABLE_MOTIF_TRUE='#'
16836   ENABLE_MOTIF_FALSE=
16837 fi
16838
16839 # Check whether --enable-motif or --disable-motif was given.
16840 if test "${enable_motif+set}" = set; then
16841   enableval="$enable_motif"
16842   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16843         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16844 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16845    { (exit 1); exit 1; }; }
16846     fi
16847     if test "x$have_xm" != xyes; then
16848       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16849 echo "$as_me: WARNING: Motif library is not found." >&2;}
16850       enable_motif=no
16851     fi
16852    ;; esac
16853 fi;
16854 case "x$enable_motif" in
16855 xyes)
16856   cat >> confdefs.h <<EOF
16857 #define IA_MOTIF 1
16858 EOF
16859
16860
16861
16862 if true; then
16863   ENABLE_MOTIF_TRUE=
16864   ENABLE_MOTIF_FALSE='#'
16865 else
16866   ENABLE_MOTIF_TRUE='#'
16867   ENABLE_MOTIF_FALSE=
16868 fi
16869
16870    lib_xm_opt=-lXm
16871     lib_xt_opt=-lXt
16872     lib_xext_opt=-lXext
16873     if test "x$have_xprelibs" = xyes; then
16874         lib_xprelibs_opt='-lSM -lICE'
16875     fi
16876     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16877
16878   ;;
16879 xdynamic)
16880   dynamic_targets="$dynamic_targets if_motif.\$(so)"
16881    if test x$have_xprelibs = xyes; then
16882       m_so_libs="-lXext -lSM -lICE"
16883     fi
16884     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16885
16886   ;;
16887 *)
16888
16889   ;;
16890 esac
16891
16892
16893
16894
16895
16896 if false; then
16897   ENABLE_TCLTK_TRUE=
16898   ENABLE_TCLTK_FALSE='#'
16899 else
16900   ENABLE_TCLTK_TRUE='#'
16901   ENABLE_TCLTK_FALSE=
16902 fi
16903
16904 # Check whether --enable-tcltk or --disable-tcltk was given.
16905 if test "${enable_tcltk+set}" = set; then
16906   enableval="$enable_tcltk"
16907   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16908         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16909 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16910    { (exit 1); exit 1; }; }
16911     fi
16912
16913         KEEPCPPFLAGS=$CPPFLAGS
16914     KEEPLDFLAGS=$LDFLAGS
16915     KEEPLIBS=$LIBS
16916
16917     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16918     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16919     LIBS="$LIBS $lib_dl_opt"
16920
16921     tcl_lib=
16922     tk_lib=
16923     for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16924       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16925 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16926 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16928   echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930   ac_check_lib_save_LIBS=$LIBS
16931 LIBS="-l$l  $LIBS"
16932 cat >conftest.$ac_ext <<_ACEOF
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938
16939 /* Override any gcc2 internal prototype to avoid an error.  */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 /* We use char because int might match the return type of a gcc2
16944    builtin and then its argument prototype would still apply.  */
16945 char Tcl_Init ();
16946 int
16947 main ()
16948 {
16949 Tcl_Init ();
16950   ;
16951   return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956   (eval $ac_link) 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_c_werror_flag"
16964                          || test ! -s conftest.err'
16965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966   (eval $ac_try) 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest$ac_exeext'
16971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972   (eval $ac_try) 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; }; then
16976   eval "$as_ac_Lib=yes"
16977 else
16978   echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 eval "$as_ac_Lib=no"
16982 fi
16983 rm -f conftest.err conftest.$ac_objext \
16984       conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16986 fi
16987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16988 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16989 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16990   tcl_lib=-l$l
16991 fi
16992 ;; esac
16993     done
16994     LIBS="$LIBS $tcl_lib"
16995     for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16996       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16997 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16998 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16999 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-l$l  $LIBS"
17004 cat >conftest.$ac_ext <<_ACEOF
17005 /* confdefs.h.  */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h.  */
17010
17011 /* Override any gcc2 internal prototype to avoid an error.  */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 /* We use char because int might match the return type of a gcc2
17016    builtin and then its argument prototype would still apply.  */
17017 char Tk_Init ();
17018 int
17019 main ()
17020 {
17021 Tk_Init ();
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028   (eval $ac_link) 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } &&
17035          { ac_try='test -z "$ac_c_werror_flag"
17036                          || test ! -s conftest.err'
17037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038   (eval $ac_try) 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; } &&
17042          { ac_try='test -s conftest$ac_exeext'
17043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044   (eval $ac_try) 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); }; }; then
17048   eval "$as_ac_Lib=yes"
17049 else
17050   echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 eval "$as_ac_Lib=no"
17054 fi
17055 rm -f conftest.err conftest.$ac_objext \
17056       conftest$ac_exeext conftest.$ac_ext
17057 LIBS=$ac_check_lib_save_LIBS
17058 fi
17059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17060 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17061 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17062   tk_lib=-l$l
17063 fi
17064 ;; esac
17065     done
17066
17067     LIBS=$KEEPLIBS
17068     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17069       CPPFLAGS=$KEEPCPPFLAGS
17070       LDFLAGS=$KEEPLDFLAGS
17071       enable_tcltk=no
17072       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17073 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17074     else
17075       tcltk_dep='tclIndex'
17076     fi
17077    ;; esac
17078 fi;
17079 case "x$enable_tcltk" in
17080 xyes)
17081   cat >> confdefs.h <<EOF
17082 #define IA_TCLTK 1
17083 EOF
17084
17085
17086
17087 if true; then
17088   ENABLE_TCLTK_TRUE=
17089   ENABLE_TCLTK_FALSE='#'
17090 else
17091   ENABLE_TCLTK_TRUE='#'
17092   ENABLE_TCLTK_FALSE=
17093 fi
17094
17095    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17096     case "$target" in
17097       *-*-bsdi*)
17098         EXTRALIBS="$EXTRALIBS -lipc"
17099         ;;
17100     esac
17101     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17102
17103   ;;
17104 xdynamic)
17105   dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17106    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17107     case "$target" in
17108       *-*-bsdi*)
17109         k_so_libs="$k_so_libs -lipc"
17110         ;;
17111     esac
17112     k_so_libs="$k_so_libs -lX11 -lm"
17113
17114   ;;
17115 *)
17116
17117   ;;
17118 esac
17119
17120
17121
17122
17123 if test "x$enable_tcltk" = "xdynamic"; then
17124   ENABLE_DYNAMIC_TCLTK_TRUE=
17125   ENABLE_DYNAMIC_TCLTK_FALSE='#'
17126 else
17127   ENABLE_DYNAMIC_TCLTK_TRUE='#'
17128   ENABLE_DYNAMIC_TCLTK_FALSE=
17129 fi
17130
17131
17132
17133
17134 if false; then
17135   ENABLE_EMACS_TRUE=
17136   ENABLE_EMACS_FALSE='#'
17137 else
17138   ENABLE_EMACS_TRUE='#'
17139   ENABLE_EMACS_FALSE=
17140 fi
17141
17142 # Check whether --enable-emacs or --disable-emacs was given.
17143 if test "${enable_emacs+set}" = set; then
17144   enableval="$enable_emacs"
17145   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
17146 fi;
17147 case "x$enable_emacs" in
17148 xyes)
17149   cat >> confdefs.h <<EOF
17150 #define IA_EMACS 1
17151 EOF
17152
17153
17154
17155 if true; then
17156   ENABLE_EMACS_TRUE=
17157   ENABLE_EMACS_FALSE='#'
17158 else
17159   ENABLE_EMACS_TRUE='#'
17160   ENABLE_EMACS_FALSE=
17161 fi
17162
17163    ELFILES="$ELFILES timidity.el"
17164     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17165
17166   ;;
17167 xdynamic)
17168   dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17169    ELFILES="$ELFILES timidity.el"
17170   ;;
17171 *)
17172
17173   ;;
17174 esac
17175
17176
17177
17178
17179
17180 if false; then
17181   ENABLE_VT100_TRUE=
17182   ENABLE_VT100_FALSE='#'
17183 else
17184   ENABLE_VT100_TRUE='#'
17185   ENABLE_VT100_FALSE=
17186 fi
17187
17188 # Check whether --enable-vt100 or --disable-vt100 was given.
17189 if test "${enable_vt100+set}" = set; then
17190   enableval="$enable_vt100"
17191   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
17192 fi;
17193 case "x$enable_vt100" in
17194 xyes)
17195   cat >> confdefs.h <<EOF
17196 #define IA_VT100 1
17197 EOF
17198
17199
17200
17201 if true; then
17202   ENABLE_VT100_TRUE=
17203   ENABLE_VT100_FALSE='#'
17204 else
17205   ENABLE_VT100_TRUE='#'
17206   ENABLE_VT100_FALSE=
17207 fi
17208
17209    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17210   ;;
17211 xdynamic)
17212   dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17213
17214   ;;
17215 *)
17216
17217   ;;
17218 esac
17219
17220
17221
17222
17223
17224 if false; then
17225   ENABLE_XAW_TRUE=
17226   ENABLE_XAW_FALSE='#'
17227 else
17228   ENABLE_XAW_TRUE='#'
17229   ENABLE_XAW_FALSE=
17230 fi
17231
17232 # Check whether --enable-xaw or --disable-xaw was given.
17233 if test "${enable_xaw+set}" = set; then
17234   enableval="$enable_xaw"
17235   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17236         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17237 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17238    { (exit 1); exit 1; }; }
17239     fi
17240     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17241       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17242 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17243       enable_xaw=no
17244     fi  ;; esac
17245 fi;
17246 case "x$enable_xaw" in
17247 xyes)
17248   cat >> confdefs.h <<EOF
17249 #define IA_XAW 1
17250 EOF
17251
17252
17253
17254 if true; then
17255   ENABLE_XAW_TRUE=
17256   ENABLE_XAW_FALSE='#'
17257 else
17258   ENABLE_XAW_TRUE='#'
17259   ENABLE_XAW_FALSE=
17260 fi
17261
17262        if test "x$have_xext" = xyes; then
17263       lib_xext_opt=-lXext
17264     fi
17265     if test "x$have_xprelibs" = xyes; then
17266       lib_xprelibs_opt='-lSM -lICE'
17267     fi
17268     lib_xmu_opt=-lXmu
17269     lib_xt_opt=-lXt
17270     if test "x$have_xaw" = x3d; then
17271
17272 cat >>confdefs.h <<\_ACEOF
17273 #define XAW3D 1
17274 _ACEOF
17275
17276       lib_xaw_opt=-lXaw3d
17277     else
17278       lib_xaw_opt=-lXaw
17279     fi
17280     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17281
17282   ;;
17283 xdynamic)
17284   dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17285    if test "x$have_xext" = xyes; then
17286       a_so_libs="-lXext -lX11"
17287     else
17288       a_so_libs="-lX11"
17289     fi
17290     case "$target" in
17291       *darwin*)
17292         a_so_libs="$a_so_libs -lcc_dynamic"
17293         ;;
17294     esac
17295     if test "x$have_xprelibs" = xyes; then
17296       a_so_libs="-lSM -lICE $a_so_libs"
17297     fi
17298     if test "x$have_xaw" = xyes; then
17299       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17300     elif test "x$have_xaw" = x3d; then
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define XAW3D 1
17304 _ACEOF
17305
17306       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17307     fi
17308     a_so_libs="$ldflags_x_opt $a_so_libs"
17309
17310   ;;
17311 *)
17312
17313   ;;
17314 esac
17315
17316
17317
17318
17319 if test "x$enable_xaw" = "xdynamic"; then
17320   ENABLE_DYNAMIC_XAW_TRUE=
17321   ENABLE_DYNAMIC_XAW_FALSE='#'
17322 else
17323   ENABLE_DYNAMIC_XAW_TRUE='#'
17324   ENABLE_DYNAMIC_XAW_FALSE=
17325 fi
17326
17327
17328
17329
17330 if false; then
17331   ENABLE_XSKIN_TRUE=
17332   ENABLE_XSKIN_FALSE='#'
17333 else
17334   ENABLE_XSKIN_TRUE='#'
17335   ENABLE_XSKIN_FALSE=
17336 fi
17337
17338 # Check whether --enable-xskin or --disable-xskin was given.
17339 if test "${enable_xskin+set}" = set; then
17340   enableval="$enable_xskin"
17341   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17342         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17343 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17344    { (exit 1); exit 1; }; }
17345     fi
17346    ;; esac
17347 fi;
17348 case "x$enable_xskin" in
17349 xyes)
17350   cat >> confdefs.h <<EOF
17351 #define IA_XSKIN 1
17352 EOF
17353
17354
17355
17356 if true; then
17357   ENABLE_XSKIN_TRUE=
17358   ENABLE_XSKIN_FALSE='#'
17359 else
17360   ENABLE_XSKIN_TRUE='#'
17361   ENABLE_XSKIN_FALSE=
17362 fi
17363
17364    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17365   ;;
17366 xdynamic)
17367   dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17368    i_so_libs="$ldflags_x_opt -lX11"
17369   ;;
17370 *)
17371
17372   ;;
17373 esac
17374
17375
17376
17377
17378
17379 if false; then
17380   ENABLE_GTK_TRUE=
17381   ENABLE_GTK_FALSE='#'
17382 else
17383   ENABLE_GTK_TRUE='#'
17384   ENABLE_GTK_FALSE=
17385 fi
17386
17387 # Check whether --enable-gtk or --disable-gtk was given.
17388 if test "${enable_gtk+set}" = set; then
17389   enableval="$enable_gtk"
17390   case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest or --disable-gtktest was given.
17391 if test "${enable_gtktest+set}" = set; then
17392   enableval="$enable_gtktest"
17393
17394 else
17395   enable_gtktest=yes
17396 fi;
17397
17398   pkg_config_args=gtk+-2.0
17399   for module in .
17400   do
17401       case "$module" in
17402          gthread)
17403              pkg_config_args="$pkg_config_args gthread-2.0"
17404          ;;
17405       esac
17406   done
17407
17408   no_gtk=""
17409
17410   # Extract the first word of "pkg-config", so it can be a program name with args.
17411 set dummy pkg-config; ac_word=$2
17412 echo "$as_me:$LINENO: checking for $ac_word" >&5
17413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17414 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   case $PKG_CONFIG in
17418   [\\/]* | ?:[\\/]*)
17419   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17420   ;;
17421   *)
17422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17423 for as_dir in $PATH
17424 do
17425   IFS=$as_save_IFS
17426   test -z "$as_dir" && as_dir=.
17427   for ac_exec_ext in '' $ac_executable_extensions; do
17428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17429     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17431     break 2
17432   fi
17433 done
17434 done
17435
17436   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17437   ;;
17438 esac
17439 fi
17440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17441
17442 if test -n "$PKG_CONFIG"; then
17443   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17444 echo "${ECHO_T}$PKG_CONFIG" >&6
17445 else
17446   echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6
17448 fi
17449
17450
17451   if test x$PKG_CONFIG != xno ; then
17452     if pkg-config --atleast-pkgconfig-version 0.7 ; then
17453       :
17454     else
17455       echo *** pkg-config too old; version 0.7 or better required.
17456       no_gtk=yes
17457       PKG_CONFIG=no
17458     fi
17459   else
17460     no_gtk=yes
17461   fi
17462
17463   min_gtk_version=2.0.0
17464   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17465 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17466
17467   if test x$PKG_CONFIG != xno ; then
17468     ## don't try to run the test against uninstalled libtool libs
17469     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17470           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17471           enable_gtktest=no
17472     fi
17473
17474     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17475           :
17476     else
17477           no_gtk=yes
17478     fi
17479   fi
17480
17481   if test x"$no_gtk" = x ; then
17482     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17483     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17484     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17485            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17486     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17487            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17488     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17489            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17490     if test "x$enable_gtktest" = "xyes" ; then
17491       ac_save_CFLAGS="$CFLAGS"
17492       ac_save_LIBS="$LIBS"
17493       CFLAGS="$CFLAGS $GTK_CFLAGS"
17494       LIBS="$GTK_LIBS $LIBS"
17495       rm -f conf.gtktest
17496       if test "$cross_compiling" = yes; then
17497   echo $ac_n "cross compiling; assumed OK... $ac_c"
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505
17506 #include <gtk/gtk.h>
17507 #include <stdio.h>
17508 #include <stdlib.h>
17509
17510 int
17511 main ()
17512 {
17513   int major, minor, micro;
17514   char *tmp_version;
17515
17516   system ("touch conf.gtktest");
17517
17518   /* HP/UX 9 (%@#!) writes to sscanf strings */
17519   tmp_version = g_strdup("$min_gtk_version");
17520   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17521      printf("%s, bad version string\n", "$min_gtk_version");
17522      exit(1);
17523    }
17524
17525   if ((gtk_major_version != $gtk_config_major_version) ||
17526       (gtk_minor_version != $gtk_config_minor_version) ||
17527       (gtk_micro_version != $gtk_config_micro_version))
17528     {
17529       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17530              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17531              gtk_major_version, gtk_minor_version, gtk_micro_version);
17532       printf ("*** was found! If pkg-config was correct, then it is best\n");
17533       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17534       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17535       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17536       printf("*** required on your system.\n");
17537       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17538       printf("*** to point to the correct configuration files\n");
17539     }
17540   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17541            (gtk_minor_version != GTK_MINOR_VERSION) ||
17542            (gtk_micro_version != GTK_MICRO_VERSION))
17543     {
17544       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17545              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17546       printf("*** library (version %d.%d.%d)\n",
17547              gtk_major_version, gtk_minor_version, gtk_micro_version);
17548     }
17549   else
17550     {
17551       if ((gtk_major_version > major) ||
17552         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17553         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17554       {
17555         return 0;
17556        }
17557      else
17558       {
17559         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17560                gtk_major_version, gtk_minor_version, gtk_micro_version);
17561         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17562                major, minor, micro);
17563         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17564         printf("***\n");
17565         printf("*** If you have already installed a sufficiently new version, this error\n");
17566         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17567         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17568         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17569         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17570         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17571         printf("*** so that the correct libraries are found at run-time))\n");
17572       }
17573     }
17574   return 1;
17575 }
17576
17577 _ACEOF
17578 rm -f conftest$ac_exeext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580   (eval $ac_link) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   :
17590 else
17591   echo "$as_me: program exited with status $ac_status" >&5
17592 echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17594
17595 ( exit $ac_status )
17596 no_gtk=yes
17597 fi
17598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17599 fi
17600        CFLAGS="$ac_save_CFLAGS"
17601        LIBS="$ac_save_LIBS"
17602      fi
17603   fi
17604   if test "x$no_gtk" = x ; then
17605      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17606 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17607
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_GTK_2 1
17610 _ACEOF
17611
17612   else
17613      echo "$as_me:$LINENO: result: no" >&5
17614 echo "${ECHO_T}no" >&6
17615      if test "$PKG_CONFIG" = "no" ; then
17616        echo "*** A new enough version of pkg-config was not found."
17617        echo "*** See http://pkgconfig.sourceforge.net"
17618      else
17619        if test -f conf.gtktest ; then
17620         :
17621        else
17622           echo "*** Could not run GTK+ test program, checking why..."
17623           ac_save_CFLAGS="$CFLAGS"
17624           ac_save_LIBS="$LIBS"
17625           CFLAGS="$CFLAGS $GTK_CFLAGS"
17626           LIBS="$LIBS $GTK_LIBS"
17627           cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633
17634 #include <gtk/gtk.h>
17635 #include <stdio.h>
17636
17637 int
17638 main ()
17639 {
17640  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647   (eval $ac_link) 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -z "$ac_c_werror_flag"
17655                          || test ! -s conftest.err'
17656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657   (eval $ac_try) 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; } &&
17661          { ac_try='test -s conftest$ac_exeext'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; }; then
17667    echo "*** The test program compiled, but did not run. This usually means"
17668           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17669           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17670           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17671           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17672           echo "*** is required on your system"
17673           echo "***"
17674           echo "*** If you have an old version installed, it is best to remove it, although"
17675           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680  echo "*** The test program failed to compile or link. See the file config.log for the"
17681           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17682 fi
17683 rm -f conftest.err conftest.$ac_objext \
17684       conftest$ac_exeext conftest.$ac_ext
17685           CFLAGS="$ac_save_CFLAGS"
17686           LIBS="$ac_save_LIBS"
17687        fi
17688      fi
17689      GTK_CFLAGS=""
17690      GTK_LIBS=""
17691
17692 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17693 if test "${with_gtk_prefix+set}" = set; then
17694   withval="$with_gtk_prefix"
17695   gtk_config_prefix="$withval"
17696 else
17697   gtk_config_prefix=""
17698 fi;
17699
17700 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17701 if test "${with_gtk_exec_prefix+set}" = set; then
17702   withval="$with_gtk_exec_prefix"
17703   gtk_config_exec_prefix="$withval"
17704 else
17705   gtk_config_exec_prefix=""
17706 fi;
17707 # Check whether --enable-gtktest or --disable-gtktest was given.
17708 if test "${enable_gtktest+set}" = set; then
17709   enableval="$enable_gtktest"
17710
17711 else
17712   enable_gtktest=yes
17713 fi;
17714
17715   for module in .
17716   do
17717       case "$module" in
17718          gthread)
17719              gtk_config_args="$gtk_config_args gthread"
17720          ;;
17721       esac
17722   done
17723
17724   if test x$gtk_config_exec_prefix != x ; then
17725      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17726      if test x${GTK_CONFIG+set} != xset ; then
17727         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17728      fi
17729   fi
17730   if test x$gtk_config_prefix != x ; then
17731      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17732      if test x${GTK_CONFIG+set} != xset ; then
17733         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17734      fi
17735   fi
17736
17737   # Extract the first word of "gtk-config", so it can be a program name with args.
17738 set dummy gtk-config; ac_word=$2
17739 echo "$as_me:$LINENO: checking for $ac_word" >&5
17740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17741 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17742   echo $ECHO_N "(cached) $ECHO_C" >&6
17743 else
17744   case $GTK_CONFIG in
17745   [\\/]* | ?:[\\/]*)
17746   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17747   ;;
17748   *)
17749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17751 do
17752   IFS=$as_save_IFS
17753   test -z "$as_dir" && as_dir=.
17754   for ac_exec_ext in '' $ac_executable_extensions; do
17755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17756     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17758     break 2
17759   fi
17760 done
17761 done
17762
17763   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17764   ;;
17765 esac
17766 fi
17767 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17768
17769 if test -n "$GTK_CONFIG"; then
17770   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17771 echo "${ECHO_T}$GTK_CONFIG" >&6
17772 else
17773   echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6
17775 fi
17776
17777   min_gtk_version=1.1.3
17778   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17779 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17780   no_gtk=""
17781   if test "$GTK_CONFIG" = "no" ; then
17782     no_gtk=yes
17783   else
17784     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17785     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17786     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17787            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17788     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17789            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17790     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17791            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17792     if test "x$enable_gtktest" = "xyes" ; then
17793       ac_save_CFLAGS="$CFLAGS"
17794       ac_save_LIBS="$LIBS"
17795       CFLAGS="$CFLAGS $GTK_CFLAGS"
17796       LIBS="$GTK_LIBS $LIBS"
17797       rm -f conf.gtktest
17798       if test "$cross_compiling" = yes; then
17799   echo $ac_n "cross compiling; assumed OK... $ac_c"
17800 else
17801   cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807
17808 #include <gtk/gtk.h>
17809 #include <stdio.h>
17810 #include <stdlib.h>
17811
17812 int
17813 main ()
17814 {
17815   int major, minor, micro;
17816   char *tmp_version;
17817
17818   system ("touch conf.gtktest");
17819
17820   /* HP/UX 9 (%@#!) writes to sscanf strings */
17821   tmp_version = g_strdup("$min_gtk_version");
17822   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17823      printf("%s, bad version string\n", "$min_gtk_version");
17824      exit(1);
17825    }
17826
17827   if ((gtk_major_version != $gtk_config_major_version) ||
17828       (gtk_minor_version != $gtk_config_minor_version) ||
17829       (gtk_micro_version != $gtk_config_micro_version))
17830     {
17831       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17832              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17833              gtk_major_version, gtk_minor_version, gtk_micro_version);
17834       printf ("*** was found! If gtk-config was correct, then it is best\n");
17835       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17836       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17837       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17838       printf("*** required on your system.\n");
17839       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17840       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17841       printf("*** before re-running configure\n");
17842     }
17843 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17844   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17845            (gtk_minor_version != GTK_MINOR_VERSION) ||
17846            (gtk_micro_version != GTK_MICRO_VERSION))
17847     {
17848       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17849              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17850       printf("*** library (version %d.%d.%d)\n",
17851              gtk_major_version, gtk_minor_version, gtk_micro_version);
17852     }
17853 #endif /* defined (GTK_MAJOR_VERSION) ... */
17854   else
17855     {
17856       if ((gtk_major_version > major) ||
17857         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17858         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17859       {
17860         return 0;
17861        }
17862      else
17863       {
17864         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17865                gtk_major_version, gtk_minor_version, gtk_micro_version);
17866         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17867                major, minor, micro);
17868         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17869         printf("***\n");
17870         printf("*** If you have already installed a sufficiently new version, this error\n");
17871         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17872         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17873         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17874         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17875         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17876         printf("*** so that the correct libraries are found at run-time))\n");
17877       }
17878     }
17879   return 1;
17880 }
17881
17882 _ACEOF
17883 rm -f conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885   (eval $ac_link) 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   :
17895 else
17896   echo "$as_me: program exited with status $ac_status" >&5
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17899
17900 ( exit $ac_status )
17901 no_gtk=yes
17902 fi
17903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17904 fi
17905        CFLAGS="$ac_save_CFLAGS"
17906        LIBS="$ac_save_LIBS"
17907      fi
17908   fi
17909   if test "x$no_gtk" = x ; then
17910      echo "$as_me:$LINENO: result: yes" >&5
17911 echo "${ECHO_T}yes" >&6
17912      :
17913   else
17914      echo "$as_me:$LINENO: result: no" >&5
17915 echo "${ECHO_T}no" >&6
17916      if test "$GTK_CONFIG" = "no" ; then
17917        echo "*** The gtk-config script installed by GTK could not be found"
17918        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17919        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17920        echo "*** full path to gtk-config."
17921      else
17922        if test -f conf.gtktest ; then
17923         :
17924        else
17925           echo "*** Could not run GTK test program, checking why..."
17926           CFLAGS="$CFLAGS $GTK_CFLAGS"
17927           LIBS="$LIBS $GTK_LIBS"
17928           cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935 #include <gtk/gtk.h>
17936 #include <stdio.h>
17937
17938 int
17939 main ()
17940 {
17941  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17942   ;
17943   return 0;
17944 }
17945 _ACEOF
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948   (eval $ac_link) 2>conftest.er1
17949   ac_status=$?
17950   grep -v '^ *+' conftest.er1 >conftest.err
17951   rm -f conftest.er1
17952   cat conftest.err >&5
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } &&
17955          { ac_try='test -z "$ac_c_werror_flag"
17956                          || test ! -s conftest.err'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; } &&
17962          { ac_try='test -s conftest$ac_exeext'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968    echo "*** The test program compiled, but did not run. This usually means"
17969           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17970           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17971           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17972           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17973           echo "*** is required on your system"
17974           echo "***"
17975           echo "*** If you have an old version installed, it is best to remove it, although"
17976           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17977           echo "***"
17978           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17979           echo "*** came with the system with the command"
17980           echo "***"
17981           echo "***    rpm --erase --nodeps gtk gtk-devel"
17982 else
17983   echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986  echo "*** The test program failed to compile or link. See the file config.log for the"
17987           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17988           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17989           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17990 fi
17991 rm -f conftest.err conftest.$ac_objext \
17992       conftest$ac_exeext conftest.$ac_ext
17993           CFLAGS="$ac_save_CFLAGS"
17994           LIBS="$ac_save_LIBS"
17995        fi
17996      fi
17997      GTK_CFLAGS=""
17998      GTK_LIBS=""
17999      enable_gtk=no
18000   fi
18001
18002
18003   rm -f conf.gtktest
18004
18005   fi
18006
18007
18008   rm -f conf.gtktest
18009   ;; esac
18010 fi;
18011 case "x$enable_gtk" in
18012 xyes)
18013   cat >> confdefs.h <<EOF
18014 #define IA_GTK 1
18015 EOF
18016
18017
18018
18019 if true; then
18020   ENABLE_GTK_TRUE=
18021   ENABLE_GTK_FALSE='#'
18022 else
18023   ENABLE_GTK_TRUE='#'
18024   ENABLE_GTK_FALSE=
18025 fi
18026
18027    LIBS="$LIBS $GTK_LIBS"
18028     for f in $GTK_CFLAGS; do
18029     case ".$f" in
18030         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18031         *)              CFLAGS="$CPPFLAGS $f" ;;
18032     esac
18033 done
18034
18035     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18036
18037   ;;
18038 xdynamic)
18039   dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18040    if test "x$GCC" = xyes; then
18041                 for i in $GTK_LIBS; do
18042             case "x$i" in
18043                 x-rdynamic) ;;
18044                 *) g_so_libs="$g_so_libs $i" ;;
18045             esac
18046         done
18047     else
18048         g_so_libs="$GTK_LIBS"
18049     fi
18050     for f in $GTK_CFLAGS; do
18051     case ".$f" in
18052         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18053         *)              CFLAGS="$CPPFLAGS $f" ;;
18054     esac
18055 done
18056
18057   ;;
18058 *)
18059
18060   ;;
18061 esac
18062
18063
18064
18065
18066
18067 if false; then
18068   ENABLE_SERVER_TRUE=
18069   ENABLE_SERVER_FALSE='#'
18070 else
18071   ENABLE_SERVER_TRUE='#'
18072   ENABLE_SERVER_FALSE=
18073 fi
18074
18075 # Check whether --enable-server or --disable-server was given.
18076 if test "${enable_server+set}" = set; then
18077   enableval="$enable_server"
18078   case "x$enable_server" in xyes|xdynamic)  ;; esac
18079 fi;
18080 case "x$enable_server" in
18081 xyes)
18082   cat >> confdefs.h <<EOF
18083 #define IA_SERVER 1
18084 EOF
18085
18086
18087
18088 if true; then
18089   ENABLE_SERVER_TRUE=
18090   ENABLE_SERVER_FALSE='#'
18091 else
18092   ENABLE_SERVER_TRUE='#'
18093   ENABLE_SERVER_FALSE=
18094 fi
18095
18096    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18097
18098 for ac_header in sys/soundcard.h
18099 do
18100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18102   echo "$as_me:$LINENO: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 fi
18107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18109 else
18110   # Is the header compilable?
18111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h.  */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h.  */
18119 $ac_includes_default
18120 #include <$ac_header>
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124   (eval $ac_compile) 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } &&
18131          { ac_try='test -z "$ac_c_werror_flag"
18132                          || test ! -s conftest.err'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; } &&
18138          { ac_try='test -s conftest.$ac_objext'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; }; then
18144   ac_header_compiler=yes
18145 else
18146   echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ac_header_compiler=no
18150 fi
18151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18153 echo "${ECHO_T}$ac_header_compiler" >&6
18154
18155 # Is the header present?
18156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <$ac_header>
18165 _ACEOF
18166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18168   ac_status=$?
18169   grep -v '^ *+' conftest.er1 >conftest.err
18170   rm -f conftest.er1
18171   cat conftest.err >&5
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); } >/dev/null; then
18174   if test -s conftest.err; then
18175     ac_cpp_err=$ac_c_preproc_warn_flag
18176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18177   else
18178     ac_cpp_err=
18179   fi
18180 else
18181   ac_cpp_err=yes
18182 fi
18183 if test -z "$ac_cpp_err"; then
18184   ac_header_preproc=yes
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189   ac_header_preproc=no
18190 fi
18191 rm -f conftest.err conftest.$ac_ext
18192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18193 echo "${ECHO_T}$ac_header_preproc" >&6
18194
18195 # So?  What about this header?
18196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18197   yes:no: )
18198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18202     ac_header_preproc=yes
18203     ;;
18204   no:yes:* )
18205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18217     (
18218       cat <<\_ASBOX
18219 ## ------------------------------- ##
18220 ## Report this to root@mput.dip.jp ##
18221 ## ------------------------------- ##
18222 _ASBOX
18223     ) |
18224       sed "s/^/$as_me: WARNING:     /" >&2
18225     ;;
18226 esac
18227 echo "$as_me:$LINENO: checking for $ac_header" >&5
18228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18230   echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232   eval "$as_ac_Header=\$ac_header_preproc"
18233 fi
18234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18236
18237 fi
18238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18239   cat >>confdefs.h <<_ACEOF
18240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18241 _ACEOF
18242
18243 fi
18244
18245 done
18246
18247
18248   ;;
18249 xdynamic)
18250   dynamic_targets="$dynamic_targets if_server.\$(so)"
18251
18252   ;;
18253 *)
18254
18255   ;;
18256 esac
18257
18258
18259
18260
18261
18262 if false; then
18263   ENABLE_ALSASEQ_TRUE=
18264   ENABLE_ALSASEQ_FALSE='#'
18265 else
18266   ENABLE_ALSASEQ_TRUE='#'
18267   ENABLE_ALSASEQ_FALSE=
18268 fi
18269
18270 # Check whether --enable-alsaseq or --disable-alsaseq was given.
18271 if test "${enable_alsaseq+set}" = set; then
18272   enableval="$enable_alsaseq"
18273   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
18274 fi;
18275 case "x$enable_alsaseq" in
18276 xyes)
18277   cat >> confdefs.h <<EOF
18278 #define IA_ALSASEQ 1
18279 EOF
18280
18281
18282
18283 if true; then
18284   ENABLE_ALSASEQ_TRUE=
18285   ENABLE_ALSASEQ_FALSE='#'
18286 else
18287   ENABLE_ALSASEQ_TRUE='#'
18288   ENABLE_ALSASEQ_FALSE=
18289 fi
18290
18291    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18292     alsa_save_CFLAGS="$CFLAGS"
18293 alsa_save_LDFLAGS="$LDFLAGS"
18294 alsa_save_LIBS="$LIBS"
18295 alsa_found=yes
18296
18297
18298 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
18299 if test "${with_alsa_prefix+set}" = set; then
18300   withval="$with_alsa_prefix"
18301   alsa_prefix="$withval"
18302 else
18303   alsa_prefix=""
18304 fi;
18305
18306
18307 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
18308 if test "${with_alsa_inc_prefix+set}" = set; then
18309   withval="$with_alsa_inc_prefix"
18310   alsa_inc_prefix="$withval"
18311 else
18312   alsa_inc_prefix=""
18313 fi;
18314
18315 # Check whether --enable-alsatest or --disable-alsatest was given.
18316 if test "${enable_alsatest+set}" = set; then
18317   enableval="$enable_alsatest"
18318   enable_alsatest=no
18319 else
18320   enable_alsatest=yes
18321 fi;
18322
18323 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18324 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18325 if test "$alsa_inc_prefix" != "" ; then
18326         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18327         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18328 fi
18329 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18330 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18331
18332 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18333 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18334 if test "$alsa_prefix" != "" ; then
18335         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18336         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18337 fi
18338
18339 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18340 LIBS=`echo $LIBS | sed 's/-lm//'`
18341 LIBS=`echo $LIBS | sed 's/-ldl//'`
18342 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18343 LIBS=`echo $LIBS | sed 's/  //'`
18344 LIBS="$ALSA_LIBS $LIBS"
18345 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18346 echo "${ECHO_T}$ALSA_LIBS" >&6
18347
18348 min_alsa_version=0.1.1
18349 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18350 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18351 no_alsa=""
18352     alsa_min_major_version=`echo $min_alsa_version | \
18353            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18354     alsa_min_minor_version=`echo $min_alsa_version | \
18355            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18356     alsa_min_micro_version=`echo $min_alsa_version | \
18357            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18358
18359
18360
18361
18362 ac_ext=c
18363 ac_cpp='$CPP $CPPFLAGS'
18364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18367
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h.  */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h.  */
18374
18375 #include <alsa/asoundlib.h>
18376
18377 int
18378 main ()
18379 {
18380
18381 /* ensure backward compatibility */
18382 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18383 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18384 #endif
18385 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18386 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18387 #endif
18388 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18389 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18390 #endif
18391
18392 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18393   exit(0);
18394 #  else
18395 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18396 #       error not present
18397 #    endif
18398
18399 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18400   exit(0);
18401 #   else
18402 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18403 #          error not present
18404 #      endif
18405
18406 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18407 #        error not present
18408 #      endif
18409 #    endif
18410 #  endif
18411 exit(0);
18412
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419   (eval $ac_compile) 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } &&
18426          { ac_try='test -z "$ac_c_werror_flag"
18427                          || test ! -s conftest.err'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest.$ac_objext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   echo "$as_me:$LINENO: result: found." >&5
18440 echo "${ECHO_T}found." >&6
18441 else
18442   echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451
18452 #include <sys/asoundlib.h>
18453
18454 int
18455 main ()
18456 {
18457
18458 /* ensure backward compatibility */
18459 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18460 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18461 #endif
18462 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18463 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18464 #endif
18465 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18466 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18467 #endif
18468
18469 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18470   exit(0);
18471 #  else
18472 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18473 #       error not present
18474 #    endif
18475
18476 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18477   exit(0);
18478 #   else
18479 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18480 #          error not present
18481 #      endif
18482
18483 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18484 #        error not present
18485 #      endif
18486 #    endif
18487 #  endif
18488 exit(0);
18489
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496   (eval $ac_compile) 2>conftest.er1
18497   ac_status=$?
18498   grep -v '^ *+' conftest.er1 >conftest.err
18499   rm -f conftest.er1
18500   cat conftest.err >&5
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); } &&
18503          { ac_try='test -z "$ac_c_werror_flag"
18504                          || test ! -s conftest.err'
18505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506   (eval $ac_try) 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); }; } &&
18510          { ac_try='test -s conftest.$ac_objext'
18511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512   (eval $ac_try) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   echo "$as_me:$LINENO: result: found." >&5
18517 echo "${ECHO_T}found." >&6
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 echo "$as_me:$LINENO: result: not present." >&5
18523 echo "${ECHO_T}not present." >&6
18524    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18525 echo "${ECHO_T}libasound was not found anywhere." >&6
18526    alsa_found=no
18527 fi
18528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18529    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18530 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18531
18532 fi
18533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18534 ac_ext=c
18535 ac_cpp='$CPP $CPPFLAGS'
18536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18539
18540
18541
18542 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18543 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18544 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lasound  $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any gcc2 internal prototype to avoid an error.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 /* We use char because int might match the return type of a gcc2
18561    builtin and then its argument prototype would still apply.  */
18562 char snd_ctl_open ();
18563 int
18564 main ()
18565 {
18566 snd_ctl_open ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573   (eval $ac_link) 2>conftest.er1
18574   ac_status=$?
18575   grep -v '^ *+' conftest.er1 >conftest.err
18576   rm -f conftest.er1
18577   cat conftest.err >&5
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } &&
18580          { ac_try='test -z "$ac_c_werror_flag"
18581                          || test ! -s conftest.err'
18582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583   (eval $ac_try) 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; } &&
18587          { ac_try='test -s conftest$ac_exeext'
18588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589   (eval $ac_try) 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); }; }; then
18593   ac_cv_lib_asound_snd_ctl_open=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598 ac_cv_lib_asound_snd_ctl_open=no
18599 fi
18600 rm -f conftest.err conftest.$ac_objext \
18601       conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18603 fi
18604 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18605 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18606 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18607   cat >>confdefs.h <<_ACEOF
18608 #define HAVE_LIBASOUND 1
18609 _ACEOF
18610
18611   LIBS="-lasound $LIBS"
18612
18613 else
18614   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18615 echo "${ECHO_T}No linkable libasound was found." >&6
18616    alsa_found=no
18617
18618 fi
18619
18620
18621 if test "x$alsa_found" = "xyes" ; then
18622    :
18623    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18624    LIBS=`echo $LIBS | sed 's/  //'`
18625    LIBS="-lasound $LIBS"
18626 else
18627    :
18628    CFLAGS="$alsa_save_CFLAGS"
18629    LDFLAGS="$alsa_save_LDFLAGS"
18630    LIBS="$alsa_save_LIBS"
18631    ALSA_CFLAGS=""
18632    ALSA_LIBS=""
18633 fi
18634
18635
18636
18637
18638
18639   ;;
18640 xdynamic)
18641   dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18642
18643   ;;
18644 *)
18645
18646   ;;
18647 esac
18648
18649
18650
18651
18652
18653 if false; then
18654   ENABLE_WINSYN_TRUE=
18655   ENABLE_WINSYN_FALSE='#'
18656 else
18657   ENABLE_WINSYN_TRUE='#'
18658   ENABLE_WINSYN_FALSE=
18659 fi
18660
18661 # Check whether --enable-winsyn or --disable-winsyn was given.
18662 if test "${enable_winsyn+set}" = set; then
18663   enableval="$enable_winsyn"
18664   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18665 fi;
18666 case "x$enable_winsyn" in
18667 xyes)
18668   cat >> confdefs.h <<EOF
18669 #define IA_WINSYN 1
18670 EOF
18671
18672
18673
18674 if true; then
18675   ENABLE_WINSYN_TRUE=
18676   ENABLE_WINSYN_FALSE='#'
18677 else
18678   ENABLE_WINSYN_TRUE='#'
18679   ENABLE_WINSYN_FALSE=
18680 fi
18681
18682    WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18683   ;;
18684 xdynamic)
18685   dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18686
18687   ;;
18688 *)
18689
18690   ;;
18691 esac
18692
18693
18694
18695
18696
18697 if false; then
18698   ENABLE_PORTMIDISYN_TRUE=
18699   ENABLE_PORTMIDISYN_FALSE='#'
18700 else
18701   ENABLE_PORTMIDISYN_TRUE='#'
18702   ENABLE_PORTMIDISYN_FALSE=
18703 fi
18704
18705 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18706 if test "${enable_portmidisyn+set}" = set; then
18707   enableval="$enable_portmidisyn"
18708   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18709 fi;
18710 case "x$enable_portmidisyn" in
18711 xyes)
18712   cat >> confdefs.h <<EOF
18713 #define IA_PORTMIDISYN 1
18714 EOF
18715
18716
18717
18718 if true; then
18719   ENABLE_PORTMIDISYN_TRUE=
18720   ENABLE_PORTMIDISYN_FALSE='#'
18721 else
18722   ENABLE_PORTMIDISYN_TRUE='#'
18723   ENABLE_PORTMIDISYN_FALSE=
18724 fi
18725
18726    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18727   ;;
18728 xdynamic)
18729   dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18730
18731   ;;
18732 *)
18733
18734   ;;
18735 esac
18736
18737
18738
18739
18740
18741 if false; then
18742   ENABLE_W32G_SYN_TRUE=
18743   ENABLE_W32G_SYN_FALSE='#'
18744 else
18745   ENABLE_W32G_SYN_TRUE='#'
18746   ENABLE_W32G_SYN_FALSE=
18747 fi
18748
18749 # Check whether --enable-winsyng or --disable-winsyng was given.
18750 if test "${enable_winsyng+set}" = set; then
18751   enableval="$enable_winsyng"
18752   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18753 fi;
18754 case "x$enable_winsyng" in
18755 xyes)
18756   cat >> confdefs.h <<EOF
18757 #define IA_W32G_SYN 1
18758 EOF
18759
18760
18761
18762 if true; then
18763   ENABLE_W32G_SYN_TRUE=
18764   ENABLE_W32G_SYN_FALSE='#'
18765 else
18766   ENABLE_W32G_SYN_TRUE='#'
18767   ENABLE_W32G_SYN_FALSE=
18768 fi
18769
18770
18771   W32G_GUI=yes
18772   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18773     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18774     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18775     lib_user32_opt='user32.lib'
18776     if test "x$VCPP" = xyes; then
18777           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18778         fi
18779         if test "x$BORLANDC" = xyes; then
18780           BORLANDC_START='C0W32.OBJ'
18781           CFLAGS="$CFLAGS -tW"
18782           lib_w32gui_opt="-aa $lib_w32gui_opt"
18783         fi
18784         if test "x$WATCOM_C" = xyes; then
18785           CFLAGS="$CFLAGS -bw"
18786           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18787         fi
18788   else
18789         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18790     lib_user32_opt='-luser32'
18791     LDFLAGS="-mwindows $LDFLAGS"
18792     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18793   fi
18794
18795   ;;
18796 xdynamic)
18797   dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18798
18799   ;;
18800 *)
18801
18802   ;;
18803 esac
18804
18805
18806
18807
18808
18809
18810 if false; then
18811   ENABLE_W32GUI_TRUE=
18812   ENABLE_W32GUI_FALSE='#'
18813 else
18814   ENABLE_W32GUI_TRUE='#'
18815   ENABLE_W32GUI_FALSE=
18816 fi
18817
18818 # Check whether --enable-w32gui or --disable-w32gui was given.
18819 if test "${enable_w32gui+set}" = set; then
18820   enableval="$enable_w32gui"
18821   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18822 fi;
18823 case "x$enable_w32gui" in
18824 xyes)
18825   cat >> confdefs.h <<EOF
18826 #define IA_W32GUI 1
18827 EOF
18828
18829
18830
18831 if true; then
18832   ENABLE_W32GUI_TRUE=
18833   ENABLE_W32GUI_FALSE='#'
18834 else
18835   ENABLE_W32GUI_TRUE='#'
18836   ENABLE_W32GUI_FALSE=
18837 fi
18838
18839
18840   W32G_GUI=yes
18841   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18842         INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
18843     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18844     lib_user32_opt='user32.lib'
18845     if test "x$VCPP" = xyes; then
18846           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18847         fi
18848         if test "x$BORLANDC" = xyes; then
18849           BORLANDC_START='C0W32.OBJ'
18850           CFLAGS="$CFLAGS -tW"
18851           lib_w32gui_opt="-aa $lib_w32gui_opt"
18852         fi
18853         if test "x$WATCOM_C" = xyes; then
18854           CFLAGS="$CFLAGS -bw"
18855           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18856         fi
18857   else
18858     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18859     lib_user32_opt='-luser32'
18860     LDFLAGS="-mwindows $LDFLAGS"
18861     INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
18862   fi
18863
18864   ;;
18865 xdynamic)
18866   dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18867
18868   ;;
18869 *)
18870
18871   ;;
18872 esac
18873
18874
18875
18876
18877
18878 if false; then
18879   ENABLE_PLUGIN_TRUE=
18880   ENABLE_PLUGIN_FALSE='#'
18881 else
18882   ENABLE_PLUGIN_TRUE='#'
18883   ENABLE_PLUGIN_FALSE=
18884 fi
18885
18886 # Check whether --enable-ump or --disable-ump was given.
18887 if test "${enable_ump+set}" = set; then
18888   enableval="$enable_ump"
18889   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18890         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18891 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18892    { (exit 1); exit 1; }; }
18893     fi
18894     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18895   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18896 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18897 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 fi
18900 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18901 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18902 else
18903   # Is the header compilable?
18904 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18905 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h.  */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h.  */
18912 $ac_includes_default
18913 #include <X11/xpm.h>
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917   (eval $ac_compile) 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } &&
18924          { ac_try='test -z "$ac_c_werror_flag"
18925                          || test ! -s conftest.err'
18926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927   (eval $ac_try) 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; } &&
18931          { ac_try='test -s conftest.$ac_objext'
18932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933   (eval $ac_try) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; }; then
18937   ac_header_compiler=yes
18938 else
18939   echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 ac_header_compiler=no
18943 fi
18944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18946 echo "${ECHO_T}$ac_header_compiler" >&6
18947
18948 # Is the header present?
18949 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18950 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 #include <X11/xpm.h>
18958 _ACEOF
18959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } >/dev/null; then
18967   if test -s conftest.err; then
18968     ac_cpp_err=$ac_c_preproc_warn_flag
18969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18970   else
18971     ac_cpp_err=
18972   fi
18973 else
18974   ac_cpp_err=yes
18975 fi
18976 if test -z "$ac_cpp_err"; then
18977   ac_header_preproc=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982   ac_header_preproc=no
18983 fi
18984 rm -f conftest.err conftest.$ac_ext
18985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18986 echo "${ECHO_T}$ac_header_preproc" >&6
18987
18988 # So?  What about this header?
18989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18990   yes:no: )
18991     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18992 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18993     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18994 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18995     ac_header_preproc=yes
18996     ;;
18997   no:yes:* )
18998     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18999 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
19000     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
19001 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
19002     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
19003 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
19004     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
19005 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19006     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19007 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
19008     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
19009 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19010     (
19011       cat <<\_ASBOX
19012 ## ------------------------------- ##
19013 ## Report this to root@mput.dip.jp ##
19014 ## ------------------------------- ##
19015 _ASBOX
19016     ) |
19017       sed "s/^/$as_me: WARNING:     /" >&2
19018     ;;
19019 esac
19020 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19021 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
19022 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19023   echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025   ac_cv_header_X11_xpm_h=$ac_header_preproc
19026 fi
19027 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19028 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
19029
19030 fi
19031 if test $ac_cv_header_X11_xpm_h = yes; then
19032   :
19033 else
19034   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19035 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19036    { (exit 1); exit 1; }; }
19037 fi
19038
19039
19040     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19041 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
19042 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-lXpm  $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19053
19054 /* Override any gcc2 internal prototype to avoid an error.  */
19055 #ifdef __cplusplus
19056 extern "C"
19057 #endif
19058 /* We use char because int might match the return type of a gcc2
19059    builtin and then its argument prototype would still apply.  */
19060 char XpmCreatePixmapFromData ();
19061 int
19062 main ()
19063 {
19064 XpmCreatePixmapFromData ();
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071   (eval $ac_link) 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -z "$ac_c_werror_flag"
19079                          || test ! -s conftest.err'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest$ac_exeext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19092 else
19093   echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19097 fi
19098 rm -f conftest.err conftest.$ac_objext \
19099       conftest$ac_exeext conftest.$ac_ext
19100 LIBS=$ac_check_lib_save_LIBS
19101 fi
19102 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19103 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
19104 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19105   :
19106 else
19107   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19108 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19109    { (exit 1); exit 1; }; }
19110 fi
19111
19112     if test "x$have_xext" = xyes; then
19113       lib_xext_opt=-lXext
19114     fi
19115     if test "x$have_xprelibs" = xyes; then
19116       lib_xprelibs_opt='-lSM -lICE'
19117     fi
19118     lib_xmu_opt=-lXmu
19119     lib_xt_opt=-lXt
19120    ;; esac
19121 fi;
19122 case "x$enable_ump" in
19123 xyes)
19124   cat >> confdefs.h <<EOF
19125 #define IA_PLUGIN 1
19126 EOF
19127
19128
19129
19130 if true; then
19131   ENABLE_PLUGIN_TRUE=
19132   ENABLE_PLUGIN_FALSE='#'
19133 else
19134   ENABLE_PLUGIN_TRUE='#'
19135   ENABLE_PLUGIN_FALSE=
19136 fi
19137
19138
19139   ;;
19140 xdynamic)
19141   dynamic_targets="$dynamic_targets if_ump.\$(so)"
19142
19143   ;;
19144 *)
19145
19146   ;;
19147 esac
19148
19149
19150
19151 # Check whether --enable-windrv or --disable-windrv was given.
19152 if test "${enable_windrv+set}" = set; then
19153   enableval="$enable_windrv"
19154    if test "$enableval" = "yes"; then
19155       if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
19156         { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom" >&5
19157 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom" >&2;}
19158    { (exit 1); exit 1; }; }
19159           elif test "x$WINSYN" != "xyes"; then
19160         { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19161 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19162    { (exit 1); exit 1; }; }
19163           else
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define WINDRV 1
19167 _ACEOF
19168
19169     WINDRV=yes
19170     if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19171     CFLAGS="$CFLAGS $DLLFLAG -DANOTHER_MAIN "
19172       fi
19173     fi
19174 fi;
19175
19176 # Check whether --enable-offix or --disable-offix was given.
19177 if test "${enable_offix+set}" = set; then
19178   enableval="$enable_offix"
19179    if test "$enableval" = "yes"; then
19180       KEEPCPPFLAGS=$CPPFLAGS
19181       KEEPLIBS=$LIBS
19182       KEEPLDFLAGS=$LDFLAGS
19183       CPPFLAGS="$CPPFLAGS $offix_include_dir"
19184       LDFLAGS="$LDFLAGS $offix_lib_dir"
19185       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19186       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19187 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
19188 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19189   echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191   ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-lDnd  $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any gcc2 internal prototype to avoid an error.  */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 /* We use char because int might match the return type of a gcc2
19205    builtin and then its argument prototype would still apply.  */
19206 char DndInitialize ();
19207 int
19208 main ()
19209 {
19210 DndInitialize ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217   (eval $ac_link) 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_c_werror_flag"
19225                          || test ! -s conftest.err'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; } &&
19231          { ac_try='test -s conftest$ac_exeext'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_lib_Dnd_DndInitialize=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 ac_cv_lib_Dnd_DndInitialize=no
19243 fi
19244 rm -f conftest.err conftest.$ac_objext \
19245       conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19247 fi
19248 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19249 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
19250 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19251
19252         LIBS=$KEEPLIBS
19253         lib_offix_opt="-lDnd"
19254
19255 cat >>confdefs.h <<\_ACEOF
19256 #define OFFIX 1
19257 _ACEOF
19258
19259
19260 else
19261    LDFLAGS=$KEEPLDFLAGS
19262         CPPFLAGS=$KEEPCPPFLAGS
19263         LIBS=$KEEPLIBS
19264
19265 fi
19266
19267     fi
19268
19269 fi;
19270
19271 # Check whether --enable-network or --disable-network was given.
19272 if test "${enable_network+set}" = set; then
19273   enableval="$enable_network"
19274    if test "$enableval" = "yes"; then
19275
19276 cat >>confdefs.h <<\_ACEOF
19277 #define SUPPORT_SOCKET 1
19278 _ACEOF
19279
19280     fi
19281 fi;
19282
19283
19284 if test "x$enable_network" = "xyes"; then
19285   ENABLE_NETWORK_TRUE=
19286   ENABLE_NETWORK_FALSE='#'
19287 else
19288   ENABLE_NETWORK_TRUE='#'
19289   ENABLE_NETWORK_FALSE=
19290 fi
19291
19292
19293 # Check whether --enable-spectrogram or --disable-spectrogram was given.
19294 if test "${enable_spectrogram+set}" = set; then
19295   enableval="$enable_spectrogram"
19296    if test "$enableval" = "yes"; then
19297       if test "x$with_x" != xyes; then
19298         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19299 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19300    { (exit 1); exit 1; }; }
19301       fi
19302
19303 cat >>confdefs.h <<\_ACEOF
19304 #define SUPPORT_SOUNDSPEC 1
19305 _ACEOF
19306
19307     fi
19308 fi;
19309
19310
19311 if test "x$enable_spectrogram" = "xyes"; then
19312   ENABLE_SOUND_SPEC_TRUE=
19313   ENABLE_SOUND_SPEC_FALSE='#'
19314 else
19315   ENABLE_SOUND_SPEC_TRUE='#'
19316   ENABLE_SOUND_SPEC_FALSE=
19317 fi
19318
19319
19320 # Check whether --enable-spline or --disable-spline was given.
19321 if test "${enable_spline+set}" = set; then
19322   enableval="$enable_spline"
19323    case "x$enableval" in
19324       xlinear)
19325
19326 cat >>confdefs.h <<\_ACEOF
19327 #define DEFAULT_RESAMPLATION resample_linear
19328 _ACEOF
19329
19330         ;;
19331       xcubic)
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define DEFAULT_RESAMPLATION resample_cspline
19335 _ACEOF
19336
19337         ;;
19338       xlagrange)
19339
19340 cat >>confdefs.h <<\_ACEOF
19341 #define DEFAULT_RESAMPLATION resample_lagrange
19342 _ACEOF
19343
19344         ;;
19345       xnewton)
19346
19347 cat >>confdefs.h <<\_ACEOF
19348 #define DEFAULT_RESAMPLATION resample_newton
19349 _ACEOF
19350
19351         ;;
19352       xgauss)
19353
19354 cat >>confdefs.h <<\_ACEOF
19355 #define DEFAULT_RESAMPLATION resample_gauss
19356 _ACEOF
19357
19358         ;;
19359       xno)
19360
19361 cat >>confdefs.h <<\_ACEOF
19362 #define DEFAULT_RESAMPLATION resample_none
19363 _ACEOF
19364
19365         ;;
19366       *)
19367         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19368 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19369    { (exit 1); exit 1; }; }
19370         ;;
19371     esac
19372 fi;
19373
19374 # Check whether --enable-wrd or --disable-wrd was given.
19375 if test "${enable_wrd+set}" = set; then
19376   enableval="$enable_wrd"
19377    if test "$enableval" = "yes"; then
19378       if test "x$with_x" != xyes; then
19379         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19380 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19381    { (exit 1); exit 1; }; }
19382       fi
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define WRDT_X 1
19386 _ACEOF
19387
19388       enable_sherry_wrd=yes
19389       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19390 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19391 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394   ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-lz  $LIBS"
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402
19403 /* Override any gcc2 internal prototype to avoid an error.  */
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 /* We use char because int might match the return type of a gcc2
19408    builtin and then its argument prototype would still apply.  */
19409 char zlibVersion ();
19410 int
19411 main ()
19412 {
19413 zlibVersion ();
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420   (eval $ac_link) 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag"
19428                          || test ! -s conftest.err'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; } &&
19434          { ac_try='test -s conftest$ac_exeext'
19435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436   (eval $ac_try) 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; }; then
19440   ac_cv_lib_z_zlibVersion=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 ac_cv_lib_z_zlibVersion=no
19446 fi
19447 rm -f conftest.err conftest.$ac_objext \
19448       conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_check_lib_save_LIBS
19450 fi
19451 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19452 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19453 if test $ac_cv_lib_z_zlibVersion = yes; then
19454   :
19455 else
19456   enable_sherry_wrd=no
19457 fi
19458
19459       if test "${ac_cv_header_png_h+set}" = set; then
19460   echo "$as_me:$LINENO: checking for png.h" >&5
19461 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19462 if test "${ac_cv_header_png_h+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 fi
19465 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19466 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19467 else
19468   # Is the header compilable?
19469 echo "$as_me:$LINENO: checking png.h usability" >&5
19470 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477 $ac_includes_default
19478 #include <png.h>
19479 _ACEOF
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482   (eval $ac_compile) 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } &&
19489          { ac_try='test -z "$ac_c_werror_flag"
19490                          || test ! -s conftest.err'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; } &&
19496          { ac_try='test -s conftest.$ac_objext'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502   ac_header_compiler=yes
19503 else
19504   echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 ac_header_compiler=no
19508 fi
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19511 echo "${ECHO_T}$ac_header_compiler" >&6
19512
19513 # Is the header present?
19514 echo "$as_me:$LINENO: checking png.h presence" >&5
19515 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522 #include <png.h>
19523 _ACEOF
19524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19526   ac_status=$?
19527   grep -v '^ *+' conftest.er1 >conftest.err
19528   rm -f conftest.er1
19529   cat conftest.err >&5
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } >/dev/null; then
19532   if test -s conftest.err; then
19533     ac_cpp_err=$ac_c_preproc_warn_flag
19534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19535   else
19536     ac_cpp_err=
19537   fi
19538 else
19539   ac_cpp_err=yes
19540 fi
19541 if test -z "$ac_cpp_err"; then
19542   ac_header_preproc=yes
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547   ac_header_preproc=no
19548 fi
19549 rm -f conftest.err conftest.$ac_ext
19550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19551 echo "${ECHO_T}$ac_header_preproc" >&6
19552
19553 # So?  What about this header?
19554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19555   yes:no: )
19556     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19557 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19558     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19559 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19560     ac_header_preproc=yes
19561     ;;
19562   no:yes:* )
19563     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19564 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19565     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19566 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19567     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19568 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19569     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19570 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19571     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19572 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19573     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19574 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19575     (
19576       cat <<\_ASBOX
19577 ## ------------------------------- ##
19578 ## Report this to root@mput.dip.jp ##
19579 ## ------------------------------- ##
19580 _ASBOX
19581     ) |
19582       sed "s/^/$as_me: WARNING:     /" >&2
19583     ;;
19584 esac
19585 echo "$as_me:$LINENO: checking for png.h" >&5
19586 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19587 if test "${ac_cv_header_png_h+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_cv_header_png_h=$ac_header_preproc
19591 fi
19592 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19593 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19594
19595 fi
19596 if test $ac_cv_header_png_h = yes; then
19597   :
19598 else
19599   enable_sherry_wrd=no
19600 fi
19601
19602
19603       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19604 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19605 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19606   echo $ECHO_N "(cached) $ECHO_C" >&6
19607 else
19608   ac_check_lib_save_LIBS=$LIBS
19609 LIBS="-lpng -lz $LIBS"
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616
19617 /* Override any gcc2 internal prototype to avoid an error.  */
19618 #ifdef __cplusplus
19619 extern "C"
19620 #endif
19621 /* We use char because int might match the return type of a gcc2
19622    builtin and then its argument prototype would still apply.  */
19623 char png_init_io ();
19624 int
19625 main ()
19626 {
19627 png_init_io ();
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext conftest$ac_exeext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19634   (eval $ac_link) 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } &&
19641          { ac_try='test -z "$ac_c_werror_flag"
19642                          || test ! -s conftest.err'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; } &&
19648          { ac_try='test -s conftest$ac_exeext'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_cv_lib_png_png_init_io=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_cv_lib_png_png_init_io=no
19660 fi
19661 rm -f conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19664 fi
19665 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19666 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19667 if test $ac_cv_lib_png_png_init_io = yes; then
19668   :
19669 else
19670   enable_sherry_wrd=no
19671 fi
19672
19673       if test "$enable_sherry_wrd" = yes; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define ENABLE_SHERRY 1
19677 _ACEOF
19678
19679         lib_zip_opt=-lz
19680         lib_png_opt=-lpng
19681       else
19682          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19683 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19684       fi
19685       if test "x$have_xext" = xyes; then
19686         lib_xext_opt=-lXext
19687       fi
19688     fi
19689 fi;
19690
19691
19692
19693
19694 #
19695 # Finish up
19696 #
19697
19698
19699
19700 if test "x$enable_wrd" = "xyes"; then
19701   ENABLE_WRD_TRUE=
19702   ENABLE_WRD_FALSE='#'
19703 else
19704   ENABLE_WRD_TRUE='#'
19705   ENABLE_WRD_FALSE=
19706 fi
19707
19708
19709
19710 if test "x$W32G_GUI" = xyes; then
19711   W32G_GUI_TRUE=
19712   W32G_GUI_FALSE='#'
19713 else
19714   W32G_GUI_TRUE='#'
19715   W32G_GUI_FALSE=
19716 fi
19717
19718
19719
19720 if test "x$WINDRV" = xyes; then
19721   WINDRV_TRUE=
19722   WINDRV_FALSE='#'
19723 else
19724   WINDRV_TRUE='#'
19725   WINDRV_FALSE=
19726 fi
19727
19728
19729
19730 if test "x$MSYS" = xyes; then
19731   MSYS_TRUE=
19732   MSYS_FALSE='#'
19733 else
19734   MSYS_TRUE='#'
19735   MSYS_FALSE=
19736 fi
19737
19738
19739
19740 if test "x$VCPP" = xyes; then
19741   VCPP_TRUE=
19742   VCPP_FALSE='#'
19743 else
19744   VCPP_TRUE='#'
19745   VCPP_FALSE=
19746 fi
19747
19748
19749
19750 if test "x$BORLANDC" = xyes; then
19751   BORLANDC_TRUE=
19752   BORLANDC_FALSE='#'
19753 else
19754   BORLANDC_TRUE='#'
19755   BORLANDC_FALSE=
19756 fi
19757
19758
19759
19760 if test "x$WATCOM_C" = xyes; then
19761   WATCOM_C_TRUE=
19762   WATCOM_C_FALSE='#'
19763 else
19764   WATCOM_C_TRUE='#'
19765   WATCOM_C_FALSE=
19766 fi
19767
19768
19769
19770 if test "x$MINGWGCC" = xyes; then
19771   MINGWGCC_TRUE=
19772   MINGWGCC_FALSE='#'
19773 else
19774   MINGWGCC_TRUE='#'
19775   MINGWGCC_FALSE=
19776 fi
19777
19778
19779
19780
19781 if test "x$W32READDIR" = "xyes"; then
19782   W32READDIR_TRUE=
19783   W32READDIR_FALSE='#'
19784 else
19785   W32READDIR_TRUE='#'
19786   W32READDIR_FALSE=
19787 fi
19788
19789
19790 rm -f wordtmp >/dev/null 2>&1
19791 val=''
19792 for f in $LDFLAGS; do
19793   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19794   :
19795 else
19796   echo $f >>wordtmp; val="$val $f"
19797 fi
19798
19799 done
19800 LDFLAGS="$val"
19801 rm -f wordtmp >/dev/null 2>&1
19802
19803 rm -f wordtmp >/dev/null 2>&1
19804 val=''
19805 for f in $SHLDFLAGS; do
19806   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19807   :
19808 else
19809   echo $f >>wordtmp; val="$val $f"
19810 fi
19811
19812 done
19813 SHLDFLAGS="$val"
19814 rm -f wordtmp >/dev/null 2>&1
19815
19816 rm -f wordtmp >/dev/null 2>&1
19817 val=''
19818 for f in $EXTRACFLAGS $CFLAGS; do
19819   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19820   :
19821 else
19822   echo $f >>wordtmp; val="$val $f"
19823 fi
19824
19825 done
19826 CFLAGS="$val"
19827 rm -f wordtmp >/dev/null 2>&1
19828
19829 rm -f wordtmp >/dev/null 2>&1
19830 val=''
19831 for f in $CPPFLAGS $EXTRADEFS; do
19832   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19833   :
19834 else
19835   echo $f >>wordtmp; val="$val $f"
19836 fi
19837
19838 done
19839 CPPFLAGS="$val"
19840 rm -f wordtmp >/dev/null 2>&1
19841
19842
19843 if test "x$oss_device" != x; then
19844
19845 cat >>confdefs.h <<_ACEOF
19846 #define OSS_DEVICE "$oss_device"
19847 _ACEOF
19848
19849 fi
19850
19851 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19852
19853 cat >>confdefs.h <<_ACEOF
19854 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19855 _ACEOF
19856
19857 fi
19858
19859 if test "x$with_x" = xyes; then
19860     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/"`
19861 fi
19862 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19863 SHLD="$SHLD $SHLDFLAGS"
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19888
19889 cat >confcache <<\_ACEOF
19890 # This file is a shell script that caches the results of configure
19891 # tests run on this system so they can be shared between configure
19892 # scripts and configure runs, see configure's option --config-cache.
19893 # It is not useful on other systems.  If it contains results you don't
19894 # want to keep, you may remove or edit it.
19895 #
19896 # config.status only pays attention to the cache file if you give it
19897 # the --recheck option to rerun configure.
19898 #
19899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19901 # following values.
19902
19903 _ACEOF
19904
19905 # The following way of writing the cache mishandles newlines in values,
19906 # but we know of no workaround that is simple, portable, and efficient.
19907 # So, don't put newlines in cache variables' values.
19908 # Ultrix sh set writes to stderr and can't be redirected directly,
19909 # and sets the high bit in the cache file unless we assign to the vars.
19910 {
19911   (set) 2>&1 |
19912     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19913     *ac_space=\ *)
19914       # `set' does not quote correctly, so add quotes (double-quote
19915       # substitution turns \\\\ into \\, and sed turns \\ into \).
19916       sed -n \
19917         "s/'/'\\\\''/g;
19918           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19919       ;;
19920     *)
19921       # `set' quotes correctly as required by POSIX, so do not add quotes.
19922       sed -n \
19923         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19924       ;;
19925     esac;
19926 } |
19927   sed '
19928      t clear
19929      : clear
19930      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19931      t end
19932      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19933      : end' >>confcache
19934 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19935   if test -w $cache_file; then
19936     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19937     cat confcache >$cache_file
19938   else
19939     echo "not updating unwritable cache $cache_file"
19940   fi
19941 fi
19942 rm -f confcache
19943
19944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19945 # Let make expand exec_prefix.
19946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19947
19948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19950 # trailing colons and then remove the whole line if VPATH becomes empty
19951 # (actually we leave an empty line to preserve line numbers).
19952 if test "x$srcdir" = x.; then
19953   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19954 s/:*\$(srcdir):*/:/;
19955 s/:*\${srcdir}:*/:/;
19956 s/:*@srcdir@:*/:/;
19957 s/^\([^=]*=[     ]*\):*/\1/;
19958 s/:*$//;
19959 s/^[^=]*=[       ]*$//;
19960 }'
19961 fi
19962
19963 DEFS=-DHAVE_CONFIG_H
19964
19965 ac_libobjs=
19966 ac_ltlibobjs=
19967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19968   # 1. Remove the extension, and $U if already installed.
19969   ac_i=`echo "$ac_i" |
19970          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19971   # 2. Add them.
19972   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19973   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19974 done
19975 LIBOBJS=$ac_libobjs
19976
19977 LTLIBOBJS=$ac_ltlibobjs
19978
19979
19980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19981   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19982 Usually this means the macro was only invoked conditionally." >&5
19983 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19984 Usually this means the macro was only invoked conditionally." >&2;}
19985    { (exit 1); exit 1; }; }
19986 fi
19987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19988   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19989 Usually this means the macro was only invoked conditionally." >&5
19990 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19991 Usually this means the macro was only invoked conditionally." >&2;}
19992    { (exit 1); exit 1; }; }
19993 fi
19994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19995   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19996 Usually this means the macro was only invoked conditionally." >&5
19997 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19998 Usually this means the macro was only invoked conditionally." >&2;}
19999    { (exit 1); exit 1; }; }
20000 fi
20001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20002   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&5
20004 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20005 Usually this means the macro was only invoked conditionally." >&2;}
20006    { (exit 1); exit 1; }; }
20007 fi
20008 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20009   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&5
20011 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20012 Usually this means the macro was only invoked conditionally." >&2;}
20013    { (exit 1); exit 1; }; }
20014 fi
20015 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20016   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&5
20018 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20019 Usually this means the macro was only invoked conditionally." >&2;}
20020    { (exit 1); exit 1; }; }
20021 fi
20022 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20023   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&5
20025 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20026 Usually this means the macro was only invoked conditionally." >&2;}
20027    { (exit 1); exit 1; }; }
20028 fi
20029 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20030   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034    { (exit 1); exit 1; }; }
20035 fi
20036 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20037   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&5
20039 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&2;}
20041    { (exit 1); exit 1; }; }
20042 fi
20043 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20044   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20045 Usually this means the macro was only invoked conditionally." >&5
20046 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&2;}
20048    { (exit 1); exit 1; }; }
20049 fi
20050 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20051   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20052 Usually this means the macro was only invoked conditionally." >&5
20053 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&2;}
20055    { (exit 1); exit 1; }; }
20056 fi
20057 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20058   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20059 Usually this means the macro was only invoked conditionally." >&5
20060 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&2;}
20062    { (exit 1); exit 1; }; }
20063 fi
20064 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20065   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20066 Usually this means the macro was only invoked conditionally." >&5
20067 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&2;}
20069    { (exit 1); exit 1; }; }
20070 fi
20071 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20072   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20073 Usually this means the macro was only invoked conditionally." >&5
20074 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20075 Usually this means the macro was only invoked conditionally." >&2;}
20076    { (exit 1); exit 1; }; }
20077 fi
20078 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20079   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20080 Usually this means the macro was only invoked conditionally." >&5
20081 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20082 Usually this means the macro was only invoked conditionally." >&2;}
20083    { (exit 1); exit 1; }; }
20084 fi
20085 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20086   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20087 Usually this means the macro was only invoked conditionally." >&5
20088 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20089 Usually this means the macro was only invoked conditionally." >&2;}
20090    { (exit 1); exit 1; }; }
20091 fi
20092 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20093   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20094 Usually this means the macro was only invoked conditionally." >&5
20095 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20096 Usually this means the macro was only invoked conditionally." >&2;}
20097    { (exit 1); exit 1; }; }
20098 fi
20099 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20100   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20101 Usually this means the macro was only invoked conditionally." >&5
20102 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20103 Usually this means the macro was only invoked conditionally." >&2;}
20104    { (exit 1); exit 1; }; }
20105 fi
20106 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20107   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20108 Usually this means the macro was only invoked conditionally." >&5
20109 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20110 Usually this means the macro was only invoked conditionally." >&2;}
20111    { (exit 1); exit 1; }; }
20112 fi
20113 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20114   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20115 Usually this means the macro was only invoked conditionally." >&5
20116 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20117 Usually this means the macro was only invoked conditionally." >&2;}
20118    { (exit 1); exit 1; }; }
20119 fi
20120 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20121   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20122 Usually this means the macro was only invoked conditionally." >&5
20123 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20124 Usually this means the macro was only invoked conditionally." >&2;}
20125    { (exit 1); exit 1; }; }
20126 fi
20127 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20128   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20129 Usually this means the macro was only invoked conditionally." >&5
20130 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20131 Usually this means the macro was only invoked conditionally." >&2;}
20132    { (exit 1); exit 1; }; }
20133 fi
20134 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20135   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20136 Usually this means the macro was only invoked conditionally." >&5
20137 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20138 Usually this means the macro was only invoked conditionally." >&2;}
20139    { (exit 1); exit 1; }; }
20140 fi
20141 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20142   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&5
20144 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&2;}
20146    { (exit 1); exit 1; }; }
20147 fi
20148 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20149   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&5
20151 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20152 Usually this means the macro was only invoked conditionally." >&2;}
20153    { (exit 1); exit 1; }; }
20154 fi
20155 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20156   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20157 Usually this means the macro was only invoked conditionally." >&5
20158 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20159 Usually this means the macro was only invoked conditionally." >&2;}
20160    { (exit 1); exit 1; }; }
20161 fi
20162 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20163   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20164 Usually this means the macro was only invoked conditionally." >&5
20165 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20166 Usually this means the macro was only invoked conditionally." >&2;}
20167    { (exit 1); exit 1; }; }
20168 fi
20169 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20170   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20171 Usually this means the macro was only invoked conditionally." >&5
20172 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20173 Usually this means the macro was only invoked conditionally." >&2;}
20174    { (exit 1); exit 1; }; }
20175 fi
20176 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20177   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20178 Usually this means the macro was only invoked conditionally." >&5
20179 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20180 Usually this means the macro was only invoked conditionally." >&2;}
20181    { (exit 1); exit 1; }; }
20182 fi
20183 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20184   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20185 Usually this means the macro was only invoked conditionally." >&5
20186 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20187 Usually this means the macro was only invoked conditionally." >&2;}
20188    { (exit 1); exit 1; }; }
20189 fi
20190 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20191   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20192 Usually this means the macro was only invoked conditionally." >&5
20193 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20194 Usually this means the macro was only invoked conditionally." >&2;}
20195    { (exit 1); exit 1; }; }
20196 fi
20197 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20198   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20199 Usually this means the macro was only invoked conditionally." >&5
20200 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20201 Usually this means the macro was only invoked conditionally." >&2;}
20202    { (exit 1); exit 1; }; }
20203 fi
20204 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20205   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20206 Usually this means the macro was only invoked conditionally." >&5
20207 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20208 Usually this means the macro was only invoked conditionally." >&2;}
20209    { (exit 1); exit 1; }; }
20210 fi
20211 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20212   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20213 Usually this means the macro was only invoked conditionally." >&5
20214 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20215 Usually this means the macro was only invoked conditionally." >&2;}
20216    { (exit 1); exit 1; }; }
20217 fi
20218 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20219   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20220 Usually this means the macro was only invoked conditionally." >&5
20221 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20222 Usually this means the macro was only invoked conditionally." >&2;}
20223    { (exit 1); exit 1; }; }
20224 fi
20225 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20226   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20227 Usually this means the macro was only invoked conditionally." >&5
20228 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20229 Usually this means the macro was only invoked conditionally." >&2;}
20230    { (exit 1); exit 1; }; }
20231 fi
20232 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20233   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20234 Usually this means the macro was only invoked conditionally." >&5
20235 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20236 Usually this means the macro was only invoked conditionally." >&2;}
20237    { (exit 1); exit 1; }; }
20238 fi
20239 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20240   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20241 Usually this means the macro was only invoked conditionally." >&5
20242 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20243 Usually this means the macro was only invoked conditionally." >&2;}
20244    { (exit 1); exit 1; }; }
20245 fi
20246 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20247   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20248 Usually this means the macro was only invoked conditionally." >&5
20249 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20250 Usually this means the macro was only invoked conditionally." >&2;}
20251    { (exit 1); exit 1; }; }
20252 fi
20253 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20254   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20255 Usually this means the macro was only invoked conditionally." >&5
20256 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20257 Usually this means the macro was only invoked conditionally." >&2;}
20258    { (exit 1); exit 1; }; }
20259 fi
20260 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20261   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20262 Usually this means the macro was only invoked conditionally." >&5
20263 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20264 Usually this means the macro was only invoked conditionally." >&2;}
20265    { (exit 1); exit 1; }; }
20266 fi
20267 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20268   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20269 Usually this means the macro was only invoked conditionally." >&5
20270 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20271 Usually this means the macro was only invoked conditionally." >&2;}
20272    { (exit 1); exit 1; }; }
20273 fi
20274 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20275   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20276 Usually this means the macro was only invoked conditionally." >&5
20277 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20278 Usually this means the macro was only invoked conditionally." >&2;}
20279    { (exit 1); exit 1; }; }
20280 fi
20281 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20282   { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20283 Usually this means the macro was only invoked conditionally." >&5
20284 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20285 Usually this means the macro was only invoked conditionally." >&2;}
20286    { (exit 1); exit 1; }; }
20287 fi
20288 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20289   { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20290 Usually this means the macro was only invoked conditionally." >&5
20291 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20292 Usually this means the macro was only invoked conditionally." >&2;}
20293    { (exit 1); exit 1; }; }
20294 fi
20295 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20296   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20297 Usually this means the macro was only invoked conditionally." >&5
20298 echo "$as_me: error: conditional \"MSYS\" was never defined.
20299 Usually this means the macro was only invoked conditionally." >&2;}
20300    { (exit 1); exit 1; }; }
20301 fi
20302 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20303   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20304 Usually this means the macro was only invoked conditionally." >&5
20305 echo "$as_me: error: conditional \"VCPP\" was never defined.
20306 Usually this means the macro was only invoked conditionally." >&2;}
20307    { (exit 1); exit 1; }; }
20308 fi
20309 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20310   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20311 Usually this means the macro was only invoked conditionally." >&5
20312 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20313 Usually this means the macro was only invoked conditionally." >&2;}
20314    { (exit 1); exit 1; }; }
20315 fi
20316 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20317   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20318 Usually this means the macro was only invoked conditionally." >&5
20319 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20320 Usually this means the macro was only invoked conditionally." >&2;}
20321    { (exit 1); exit 1; }; }
20322 fi
20323 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20324   { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20325 Usually this means the macro was only invoked conditionally." >&5
20326 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20327 Usually this means the macro was only invoked conditionally." >&2;}
20328    { (exit 1); exit 1; }; }
20329 fi
20330 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20331   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20332 Usually this means the macro was only invoked conditionally." >&5
20333 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20334 Usually this means the macro was only invoked conditionally." >&2;}
20335    { (exit 1); exit 1; }; }
20336 fi
20337
20338 : ${CONFIG_STATUS=./config.status}
20339 ac_clean_files_save=$ac_clean_files
20340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20343 cat >$CONFIG_STATUS <<_ACEOF
20344 #! $SHELL
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20349
20350 debug=false
20351 ac_cs_recheck=false
20352 ac_cs_silent=false
20353 SHELL=\${CONFIG_SHELL-$SHELL}
20354 _ACEOF
20355
20356 cat >>$CONFIG_STATUS <<\_ACEOF
20357 ## --------------------- ##
20358 ## M4sh Initialization.  ##
20359 ## --------------------- ##
20360
20361 # Be Bourne compatible
20362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20363   emulate sh
20364   NULLCMD=:
20365   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20366   # is contrary to our usage.  Disable this feature.
20367   alias -g '${1+"$@"}'='"$@"'
20368 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20369   set -o posix
20370 fi
20371 DUALCASE=1; export DUALCASE # for MKS sh
20372
20373 # Support unset when possible.
20374 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20375   as_unset=unset
20376 else
20377   as_unset=false
20378 fi
20379
20380
20381 # Work around bugs in pre-3.0 UWIN ksh.
20382 $as_unset ENV MAIL MAILPATH
20383 PS1='$ '
20384 PS2='> '
20385 PS4='+ '
20386
20387 # NLS nuisances.
20388 for as_var in \
20389   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20390   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20391   LC_TELEPHONE LC_TIME
20392 do
20393   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20394     eval $as_var=C; export $as_var
20395   else
20396     $as_unset $as_var
20397   fi
20398 done
20399
20400 # Required to use basename.
20401 if expr a : '\(a\)' >/dev/null 2>&1; then
20402   as_expr=expr
20403 else
20404   as_expr=false
20405 fi
20406
20407 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20408   as_basename=basename
20409 else
20410   as_basename=false
20411 fi
20412
20413
20414 # Name of the executable.
20415 as_me=`$as_basename "$0" ||
20416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20417          X"$0" : 'X\(//\)$' \| \
20418          X"$0" : 'X\(/\)$' \| \
20419          .     : '\(.\)' 2>/dev/null ||
20420 echo X/"$0" |
20421     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20422           /^X\/\(\/\/\)$/{ s//\1/; q; }
20423           /^X\/\(\/\).*/{ s//\1/; q; }
20424           s/.*/./; q'`
20425
20426
20427 # PATH needs CR, and LINENO needs CR and PATH.
20428 # Avoid depending upon Character Ranges.
20429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20432 as_cr_digits='0123456789'
20433 as_cr_alnum=$as_cr_Letters$as_cr_digits
20434
20435 # The user is always right.
20436 if test "${PATH_SEPARATOR+set}" != set; then
20437   echo "#! /bin/sh" >conf$$.sh
20438   echo  "exit 0"   >>conf$$.sh
20439   chmod +x conf$$.sh
20440   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20441     PATH_SEPARATOR=';'
20442   else
20443     PATH_SEPARATOR=:
20444   fi
20445   rm -f conf$$.sh
20446 fi
20447
20448
20449   as_lineno_1=$LINENO
20450   as_lineno_2=$LINENO
20451   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20452   test "x$as_lineno_1" != "x$as_lineno_2" &&
20453   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20454   # Find who we are.  Look in the path if we contain no path at all
20455   # relative or not.
20456   case $0 in
20457     *[\\/]* ) as_myself=$0 ;;
20458     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20459 for as_dir in $PATH
20460 do
20461   IFS=$as_save_IFS
20462   test -z "$as_dir" && as_dir=.
20463   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20464 done
20465
20466        ;;
20467   esac
20468   # We did not find ourselves, most probably we were run as `sh COMMAND'
20469   # in which case we are not to be found in the path.
20470   if test "x$as_myself" = x; then
20471     as_myself=$0
20472   fi
20473   if test ! -f "$as_myself"; then
20474     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20475 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20476    { (exit 1); exit 1; }; }
20477   fi
20478   case $CONFIG_SHELL in
20479   '')
20480     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20481 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20482 do
20483   IFS=$as_save_IFS
20484   test -z "$as_dir" && as_dir=.
20485   for as_base in sh bash ksh sh5; do
20486          case $as_dir in
20487          /*)
20488            if ("$as_dir/$as_base" -c '
20489   as_lineno_1=$LINENO
20490   as_lineno_2=$LINENO
20491   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20492   test "x$as_lineno_1" != "x$as_lineno_2" &&
20493   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20494              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20495              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20496              CONFIG_SHELL=$as_dir/$as_base
20497              export CONFIG_SHELL
20498              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20499            fi;;
20500          esac
20501        done
20502 done
20503 ;;
20504   esac
20505
20506   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507   # uniformly replaced by the line number.  The first 'sed' inserts a
20508   # line-number line before each line; the second 'sed' does the real
20509   # work.  The second script uses 'N' to pair each line-number line
20510   # with the numbered line, and appends trailing '-' during
20511   # substitution so that $LINENO is not a special case at line end.
20512   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20513   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20514   sed '=' <$as_myself |
20515     sed '
20516       N
20517       s,$,-,
20518       : loop
20519       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20520       t loop
20521       s,-$,,
20522       s,^['$as_cr_digits']*\n,,
20523     ' >$as_me.lineno &&
20524   chmod +x $as_me.lineno ||
20525     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20526 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20527    { (exit 1); exit 1; }; }
20528
20529   # Don't try to exec as it changes $[0], causing all sort of problems
20530   # (the dirname of $[0] is not the place where we might find the
20531   # original and so on.  Autoconf is especially sensible to this).
20532   . ./$as_me.lineno
20533   # Exit status is that of the last command.
20534   exit
20535 }
20536
20537
20538 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20539   *c*,-n*) ECHO_N= ECHO_C='
20540 ' ECHO_T='      ' ;;
20541   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20542   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20543 esac
20544
20545 if expr a : '\(a\)' >/dev/null 2>&1; then
20546   as_expr=expr
20547 else
20548   as_expr=false
20549 fi
20550
20551 rm -f conf$$ conf$$.exe conf$$.file
20552 echo >conf$$.file
20553 if ln -s conf$$.file conf$$ 2>/dev/null; then
20554   # We could just check for DJGPP; but this test a) works b) is more generic
20555   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20556   if test -f conf$$.exe; then
20557     # Don't use ln at all; we don't have any links
20558     as_ln_s='cp -p'
20559   else
20560     as_ln_s='ln -s'
20561   fi
20562 elif ln conf$$.file conf$$ 2>/dev/null; then
20563   as_ln_s=ln
20564 else
20565   as_ln_s='cp -p'
20566 fi
20567 rm -f conf$$ conf$$.exe conf$$.file
20568
20569 if mkdir -p . 2>/dev/null; then
20570   as_mkdir_p=:
20571 else
20572   test -d ./-p && rmdir ./-p
20573   as_mkdir_p=false
20574 fi
20575
20576 as_executable_p="test -f"
20577
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20580
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20583
20584
20585 # IFS
20586 # We need space, tab and new line, in precisely that order.
20587 as_nl='
20588 '
20589 IFS="   $as_nl"
20590
20591 # CDPATH.
20592 $as_unset CDPATH
20593
20594 exec 6>&1
20595
20596 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20597 # report actual input values of CONFIG_FILES etc. instead of their
20598 # values after options handling.  Logging --version etc. is OK.
20599 exec 5>>config.log
20600 {
20601   echo
20602   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20603 ## Running $as_me. ##
20604 _ASBOX
20605 } >&5
20606 cat >&5 <<_CSEOF
20607
20608 This file was extended by TiMidity++ $as_me 2.13.2, which was
20609 generated by GNU Autoconf 2.59.  Invocation command line was
20610
20611   CONFIG_FILES    = $CONFIG_FILES
20612   CONFIG_HEADERS  = $CONFIG_HEADERS
20613   CONFIG_LINKS    = $CONFIG_LINKS
20614   CONFIG_COMMANDS = $CONFIG_COMMANDS
20615   $ $0 $@
20616
20617 _CSEOF
20618 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20619 echo >&5
20620 _ACEOF
20621
20622 # Files that config.status was made for.
20623 if test -n "$ac_config_files"; then
20624   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20625 fi
20626
20627 if test -n "$ac_config_headers"; then
20628   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20629 fi
20630
20631 if test -n "$ac_config_links"; then
20632   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20633 fi
20634
20635 if test -n "$ac_config_commands"; then
20636   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20637 fi
20638
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20640
20641 ac_cs_usage="\
20642 \`$as_me' instantiates files from templates according to the
20643 current configuration.
20644
20645 Usage: $0 [OPTIONS] [FILE]...
20646
20647   -h, --help       print this help, then exit
20648   -V, --version    print version number, then exit
20649   -q, --quiet      do not print progress messages
20650   -d, --debug      don't remove temporary files
20651       --recheck    update $as_me by reconfiguring in the same conditions
20652   --file=FILE[:TEMPLATE]
20653                    instantiate the configuration file FILE
20654   --header=FILE[:TEMPLATE]
20655                    instantiate the configuration header FILE
20656
20657 Configuration files:
20658 $config_files
20659
20660 Configuration headers:
20661 $config_headers
20662
20663 Configuration commands:
20664 $config_commands
20665
20666 Report bugs to <bug-autoconf@gnu.org>."
20667 _ACEOF
20668
20669 cat >>$CONFIG_STATUS <<_ACEOF
20670 ac_cs_version="\\
20671 TiMidity++ config.status 2.13.2
20672 configured by $0, generated by GNU Autoconf 2.59,
20673   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20674
20675 Copyright (C) 2003 Free Software Foundation, Inc.
20676 This config.status script is free software; the Free Software Foundation
20677 gives unlimited permission to copy, distribute and modify it."
20678 srcdir=$srcdir
20679 INSTALL="$INSTALL"
20680 _ACEOF
20681
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 # If no file are specified by the user, then we need to provide default
20684 # value.  By we need to know if files were specified by the user.
20685 ac_need_defaults=:
20686 while test $# != 0
20687 do
20688   case $1 in
20689   --*=*)
20690     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20691     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20692     ac_shift=:
20693     ;;
20694   -*)
20695     ac_option=$1
20696     ac_optarg=$2
20697     ac_shift=shift
20698     ;;
20699   *) # This is not an option, so the user has probably given explicit
20700      # arguments.
20701      ac_option=$1
20702      ac_need_defaults=false;;
20703   esac
20704
20705   case $ac_option in
20706   # Handling of the options.
20707 _ACEOF
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20709   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20710     ac_cs_recheck=: ;;
20711   --version | --vers* | -V )
20712     echo "$ac_cs_version"; exit 0 ;;
20713   --he | --h)
20714     # Conflict between --help and --header
20715     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&5
20717 echo "$as_me: error: ambiguous option: $1
20718 Try \`$0 --help' for more information." >&2;}
20719    { (exit 1); exit 1; }; };;
20720   --help | --hel | -h )
20721     echo "$ac_cs_usage"; exit 0 ;;
20722   --debug | --d* | -d )
20723     debug=: ;;
20724   --file | --fil | --fi | --f )
20725     $ac_shift
20726     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20727     ac_need_defaults=false;;
20728   --header | --heade | --head | --hea )
20729     $ac_shift
20730     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20731     ac_need_defaults=false;;
20732   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20733   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20734     ac_cs_silent=: ;;
20735
20736   # This is an error.
20737   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&5
20739 echo "$as_me: error: unrecognized option: $1
20740 Try \`$0 --help' for more information." >&2;}
20741    { (exit 1); exit 1; }; } ;;
20742
20743   *) ac_config_targets="$ac_config_targets $1" ;;
20744
20745   esac
20746   shift
20747 done
20748
20749 ac_configure_extra_args=
20750
20751 if $ac_cs_silent; then
20752   exec 6>/dev/null
20753   ac_configure_extra_args="$ac_configure_extra_args --silent"
20754 fi
20755
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758 if \$ac_cs_recheck; then
20759   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20760   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20761 fi
20762
20763 _ACEOF
20764
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 #
20767 # INIT-COMMANDS section.
20768 #
20769
20770 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20771
20772 _ACEOF
20773
20774
20775
20776 cat >>$CONFIG_STATUS <<\_ACEOF
20777 for ac_config_target in $ac_config_targets
20778 do
20779   case "$ac_config_target" in
20780   # Handling of arguments.
20781   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20782   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20783   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20784   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20785   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20786   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20787   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20788   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20789   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20790   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20791   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20792   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20793   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20794   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20795   "windrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20796   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20797   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20798   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20799   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20800   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20801   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20802   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20803   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20805    { (exit 1); exit 1; }; };;
20806   esac
20807 done
20808
20809 # If the user did not use the arguments to specify the items to instantiate,
20810 # then the envvar interface is used.  Set only those that are not.
20811 # We use the long form for the default assignment because of an extremely
20812 # bizarre bug on SunOS 4.1.3.
20813 if $ac_need_defaults; then
20814   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20815   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20816   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20817 fi
20818
20819 # Have a temporary directory for convenience.  Make it in the build tree
20820 # simply because there is no reason to put it here, and in addition,
20821 # creating and moving files from /tmp can sometimes cause problems.
20822 # Create a temporary directory, and hook for its removal unless debugging.
20823 $debug ||
20824 {
20825   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20826   trap '{ (exit 1); exit 1; }' 1 2 13 15
20827 }
20828
20829 # Create a (secure) tmp directory for tmp files.
20830
20831 {
20832   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20833   test -n "$tmp" && test -d "$tmp"
20834 }  ||
20835 {
20836   tmp=./confstat$$-$RANDOM
20837   (umask 077 && mkdir $tmp)
20838 } ||
20839 {
20840    echo "$me: cannot create a temporary directory in ." >&2
20841    { (exit 1); exit 1; }
20842 }
20843
20844 _ACEOF
20845
20846 cat >>$CONFIG_STATUS <<_ACEOF
20847
20848 #
20849 # CONFIG_FILES section.
20850 #
20851
20852 # No need to generate the scripts if there are no CONFIG_FILES.
20853 # This happens for instance when ./config.status config.h
20854 if test -n "\$CONFIG_FILES"; then
20855   # Protect against being on the right side of a sed subst in config.status.
20856   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20857    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20858 s,@SHELL@,$SHELL,;t t
20859 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20860 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20861 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20862 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20863 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20864 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20865 s,@exec_prefix@,$exec_prefix,;t t
20866 s,@prefix@,$prefix,;t t
20867 s,@program_transform_name@,$program_transform_name,;t t
20868 s,@bindir@,$bindir,;t t
20869 s,@sbindir@,$sbindir,;t t
20870 s,@libexecdir@,$libexecdir,;t t
20871 s,@datadir@,$datadir,;t t
20872 s,@sysconfdir@,$sysconfdir,;t t
20873 s,@sharedstatedir@,$sharedstatedir,;t t
20874 s,@localstatedir@,$localstatedir,;t t
20875 s,@libdir@,$libdir,;t t
20876 s,@includedir@,$includedir,;t t
20877 s,@oldincludedir@,$oldincludedir,;t t
20878 s,@infodir@,$infodir,;t t
20879 s,@mandir@,$mandir,;t t
20880 s,@build_alias@,$build_alias,;t t
20881 s,@host_alias@,$host_alias,;t t
20882 s,@target_alias@,$target_alias,;t t
20883 s,@DEFS@,$DEFS,;t t
20884 s,@ECHO_C@,$ECHO_C,;t t
20885 s,@ECHO_N@,$ECHO_N,;t t
20886 s,@ECHO_T@,$ECHO_T,;t t
20887 s,@LIBS@,$LIBS,;t t
20888 s,@build@,$build,;t t
20889 s,@build_cpu@,$build_cpu,;t t
20890 s,@build_vendor@,$build_vendor,;t t
20891 s,@build_os@,$build_os,;t t
20892 s,@host@,$host,;t t
20893 s,@host_cpu@,$host_cpu,;t t
20894 s,@host_vendor@,$host_vendor,;t t
20895 s,@host_os@,$host_os,;t t
20896 s,@target@,$target,;t t
20897 s,@target_cpu@,$target_cpu,;t t
20898 s,@target_vendor@,$target_vendor,;t t
20899 s,@target_os@,$target_os,;t t
20900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20903 s,@CYGPATH_W@,$CYGPATH_W,;t t
20904 s,@PACKAGE@,$PACKAGE,;t t
20905 s,@VERSION@,$VERSION,;t t
20906 s,@ACLOCAL@,$ACLOCAL,;t t
20907 s,@AUTOCONF@,$AUTOCONF,;t t
20908 s,@AUTOMAKE@,$AUTOMAKE,;t t
20909 s,@AUTOHEADER@,$AUTOHEADER,;t t
20910 s,@MAKEINFO@,$MAKEINFO,;t t
20911 s,@AMTAR@,$AMTAR,;t t
20912 s,@install_sh@,$install_sh,;t t
20913 s,@STRIP@,$STRIP,;t t
20914 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20915 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20916 s,@mkdir_p@,$mkdir_p,;t t
20917 s,@AWK@,$AWK,;t t
20918 s,@SET_MAKE@,$SET_MAKE,;t t
20919 s,@am__leading_dot@,$am__leading_dot,;t t
20920 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20921 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20922 s,@MAINT@,$MAINT,;t t
20923 s,@CXX@,$CXX,;t t
20924 s,@CXXFLAGS@,$CXXFLAGS,;t t
20925 s,@LDFLAGS@,$LDFLAGS,;t t
20926 s,@CPPFLAGS@,$CPPFLAGS,;t t
20927 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20928 s,@EXEEXT@,$EXEEXT,;t t
20929 s,@OBJEXT@,$OBJEXT,;t t
20930 s,@DEPDIR@,$DEPDIR,;t t
20931 s,@am__include@,$am__include,;t t
20932 s,@am__quote@,$am__quote,;t t
20933 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20934 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20935 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20936 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20937 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20938 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20939 s,@EMACS@,$EMACS,;t t
20940 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
20941 s,@lispdir@,$lispdir,;t t
20942 s,@CC@,$CC,;t t
20943 s,@CFLAGS@,$CFLAGS,;t t
20944 s,@ac_ct_CC@,$ac_ct_CC,;t t
20945 s,@CCDEPMODE@,$CCDEPMODE,;t t
20946 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20947 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20948 s,@CPP@,$CPP,;t t
20949 s,@EGREP@,$EGREP,;t t
20950 s,@RANLIB@,$RANLIB,;t t
20951 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20952 s,@LN_S@,$LN_S,;t t
20953 s,@X_CFLAGS@,$X_CFLAGS,;t t
20954 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20955 s,@X_LIBS@,$X_LIBS,;t t
20956 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20957 s,@LIBOBJS@,$LIBOBJS,;t t
20958 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20959 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20960 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20961 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20962 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20963 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20964 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20965 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20966 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20967 s,@ESD_LIBS@,$ESD_LIBS,;t t
20968 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20969 s,@AO_LIBS@,$AO_LIBS,;t t
20970 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20971 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20972 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20973 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20974 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20975 s,@OGG_LIBS@,$OGG_LIBS,;t t
20976 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20977 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20978 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20979 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20980 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20981 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20982 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20983 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20984 s,@n_so_libs@,$n_so_libs,;t t
20985 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20986 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20987 s,@s_so_libs@,$s_so_libs,;t t
20988 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20989 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20990 s,@m_so_libs@,$m_so_libs,;t t
20991 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20992 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20993 s,@k_so_libs@,$k_so_libs,;t t
20994 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20995 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20996 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20997 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20998 s,@e_so_libs@,$e_so_libs,;t t
20999 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
21000 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
21001 s,@T_so_libs@,$T_so_libs,;t t
21002 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
21003 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
21004 s,@a_so_libs@,$a_so_libs,;t t
21005 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
21006 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
21007 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
21008 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
21009 s,@i_so_libs@,$i_so_libs,;t t
21010 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
21011 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
21012 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21013 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
21014 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21015 s,@GTK_LIBS@,$GTK_LIBS,;t t
21016 s,@g_so_libs@,$g_so_libs,;t t
21017 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
21018 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
21019 s,@r_so_libs@,$r_so_libs,;t t
21020 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
21021 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
21022 s,@A_so_libs@,$A_so_libs,;t t
21023 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
21024 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
21025 s,@W_so_libs@,$W_so_libs,;t t
21026 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
21027 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
21028 s,@P_so_libs@,$P_so_libs,;t t
21029 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
21030 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
21031 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
21032 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
21033 s,@w_so_libs@,$w_so_libs,;t t
21034 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
21035 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
21036 s,@p_so_libs@,$p_so_libs,;t t
21037 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
21038 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
21039 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
21040 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
21041 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
21042 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
21043 s,@W32G_GUI_TRUE@,$W32G_GUI_TRUE,;t t
21044 s,@W32G_GUI_FALSE@,$W32G_GUI_FALSE,;t t
21045 s,@WINDRV_TRUE@,$WINDRV_TRUE,;t t
21046 s,@WINDRV_FALSE@,$WINDRV_FALSE,;t t
21047 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
21048 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
21049 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
21050 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
21051 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
21052 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
21053 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
21054 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
21055 s,@MINGWGCC_TRUE@,$MINGWGCC_TRUE,;t t
21056 s,@MINGWGCC_FALSE@,$MINGWGCC_FALSE,;t t
21057 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
21058 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
21059 s,@BORLANDC_START@,$BORLANDC_START,;t t
21060 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
21061 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
21062 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
21063 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
21064 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
21065 s,@EXTRALIBS@,$EXTRALIBS,;t t
21066 s,@NETSRCS@,$NETSRCS,;t t
21067 s,@ELFILES@,$ELFILES,;t t
21068 s,@SHLD@,$SHLD,;t t
21069 s,@SHCFLAGS@,$SHCFLAGS,;t t
21070 s,@dynamic_targets@,$dynamic_targets,;t t
21071 s,@so@,$so,;t t
21072 s,@WISH@,$WISH,;t t
21073 s,@tcltk_dep@,$tcltk_dep,;t t
21074 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
21075 s,@pkgdatadir@,$pkgdatadir,;t t
21076 s,@pkglibdir@,$pkglibdir,;t t
21077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21078 CEOF
21079
21080 _ACEOF
21081
21082   cat >>$CONFIG_STATUS <<\_ACEOF
21083   # Split the substitutions into bite-sized pieces for seds with
21084   # small command number limits, like on Digital OSF/1 and HP-UX.
21085   ac_max_sed_lines=48
21086   ac_sed_frag=1 # Number of current file.
21087   ac_beg=1 # First line for current file.
21088   ac_end=$ac_max_sed_lines # Line after last line for current file.
21089   ac_more_lines=:
21090   ac_sed_cmds=
21091   while $ac_more_lines; do
21092     if test $ac_beg -gt 1; then
21093       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21094     else
21095       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21096     fi
21097     if test ! -s $tmp/subs.frag; then
21098       ac_more_lines=false
21099     else
21100       # The purpose of the label and of the branching condition is to
21101       # speed up the sed processing (if there are no `@' at all, there
21102       # is no need to browse any of the substitutions).
21103       # These are the two extra sed commands mentioned above.
21104       (echo ':t
21105   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21106       if test -z "$ac_sed_cmds"; then
21107         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21108       else
21109         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21110       fi
21111       ac_sed_frag=`expr $ac_sed_frag + 1`
21112       ac_beg=$ac_end
21113       ac_end=`expr $ac_end + $ac_max_sed_lines`
21114     fi
21115   done
21116   if test -z "$ac_sed_cmds"; then
21117     ac_sed_cmds=cat
21118   fi
21119 fi # test -n "$CONFIG_FILES"
21120
21121 _ACEOF
21122 cat >>$CONFIG_STATUS <<\_ACEOF
21123 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21124   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21125   case $ac_file in
21126   - | *:- | *:-:* ) # input from stdin
21127         cat >$tmp/stdin
21128         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21129         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21130   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21131         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21132   * )   ac_file_in=$ac_file.in ;;
21133   esac
21134
21135   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21136   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138          X"$ac_file" : 'X\(//\)[^/]' \| \
21139          X"$ac_file" : 'X\(//\)$' \| \
21140          X"$ac_file" : 'X\(/\)' \| \
21141          .     : '\(.\)' 2>/dev/null ||
21142 echo X"$ac_file" |
21143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21144           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21145           /^X\(\/\/\)$/{ s//\1/; q; }
21146           /^X\(\/\).*/{ s//\1/; q; }
21147           s/.*/./; q'`
21148   { if $as_mkdir_p; then
21149     mkdir -p "$ac_dir"
21150   else
21151     as_dir="$ac_dir"
21152     as_dirs=
21153     while test ! -d "$as_dir"; do
21154       as_dirs="$as_dir $as_dirs"
21155       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157          X"$as_dir" : 'X\(//\)[^/]' \| \
21158          X"$as_dir" : 'X\(//\)$' \| \
21159          X"$as_dir" : 'X\(/\)' \| \
21160          .     : '\(.\)' 2>/dev/null ||
21161 echo X"$as_dir" |
21162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164           /^X\(\/\/\)$/{ s//\1/; q; }
21165           /^X\(\/\).*/{ s//\1/; q; }
21166           s/.*/./; q'`
21167     done
21168     test ! -n "$as_dirs" || mkdir $as_dirs
21169   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21171    { (exit 1); exit 1; }; }; }
21172
21173   ac_builddir=.
21174
21175 if test "$ac_dir" != .; then
21176   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21177   # A "../" for each directory in $ac_dir_suffix.
21178   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21179 else
21180   ac_dir_suffix= ac_top_builddir=
21181 fi
21182
21183 case $srcdir in
21184   .)  # No --srcdir option.  We are building in place.
21185     ac_srcdir=.
21186     if test -z "$ac_top_builddir"; then
21187        ac_top_srcdir=.
21188     else
21189        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21190     fi ;;
21191   [\\/]* | ?:[\\/]* )  # Absolute path.
21192     ac_srcdir=$srcdir$ac_dir_suffix;
21193     ac_top_srcdir=$srcdir ;;
21194   *) # Relative path.
21195     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21196     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21197 esac
21198
21199 # Do not use `cd foo && pwd` to compute absolute paths, because
21200 # the directories may not exist.
21201 case `pwd` in
21202 .) ac_abs_builddir="$ac_dir";;
21203 *)
21204   case "$ac_dir" in
21205   .) ac_abs_builddir=`pwd`;;
21206   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21207   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21208   esac;;
21209 esac
21210 case $ac_abs_builddir in
21211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21212 *)
21213   case ${ac_top_builddir}. in
21214   .) ac_abs_top_builddir=$ac_abs_builddir;;
21215   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21216   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21217   esac;;
21218 esac
21219 case $ac_abs_builddir in
21220 .) ac_abs_srcdir=$ac_srcdir;;
21221 *)
21222   case $ac_srcdir in
21223   .) ac_abs_srcdir=$ac_abs_builddir;;
21224   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21225   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21226   esac;;
21227 esac
21228 case $ac_abs_builddir in
21229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21230 *)
21231   case $ac_top_srcdir in
21232   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21233   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21234   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21235   esac;;
21236 esac
21237
21238
21239   case $INSTALL in
21240   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21241   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21242   esac
21243
21244   if test x"$ac_file" != x-; then
21245     { echo "$as_me:$LINENO: creating $ac_file" >&5
21246 echo "$as_me: creating $ac_file" >&6;}
21247     rm -f "$ac_file"
21248   fi
21249   # Let's still pretend it is `configure' which instantiates (i.e., don't
21250   # use $as_me), people would be surprised to read:
21251   #    /* config.h.  Generated by config.status.  */
21252   if test x"$ac_file" = x-; then
21253     configure_input=
21254   else
21255     configure_input="$ac_file.  "
21256   fi
21257   configure_input=$configure_input"Generated from `echo $ac_file_in |
21258                                      sed 's,.*/,,'` by configure."
21259
21260   # First look for the input files in the build tree, otherwise in the
21261   # src tree.
21262   ac_file_inputs=`IFS=:
21263     for f in $ac_file_in; do
21264       case $f in
21265       -) echo $tmp/stdin ;;
21266       [\\/$]*)
21267          # Absolute (can't be DOS-style, as IFS=:)
21268          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21269 echo "$as_me: error: cannot find input file: $f" >&2;}
21270    { (exit 1); exit 1; }; }
21271          echo "$f";;
21272       *) # Relative
21273          if test -f "$f"; then
21274            # Build tree
21275            echo "$f"
21276          elif test -f "$srcdir/$f"; then
21277            # Source tree
21278            echo "$srcdir/$f"
21279          else
21280            # /dev/null tree
21281            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21282 echo "$as_me: error: cannot find input file: $f" >&2;}
21283    { (exit 1); exit 1; }; }
21284          fi;;
21285       esac
21286     done` || { (exit 1); exit 1; }
21287 _ACEOF
21288 cat >>$CONFIG_STATUS <<_ACEOF
21289   sed "$ac_vpsub
21290 $extrasub
21291 _ACEOF
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 :t
21294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21295 s,@configure_input@,$configure_input,;t t
21296 s,@srcdir@,$ac_srcdir,;t t
21297 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21298 s,@top_srcdir@,$ac_top_srcdir,;t t
21299 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21300 s,@builddir@,$ac_builddir,;t t
21301 s,@abs_builddir@,$ac_abs_builddir,;t t
21302 s,@top_builddir@,$ac_top_builddir,;t t
21303 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21304 s,@INSTALL@,$ac_INSTALL,;t t
21305 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21306   rm -f $tmp/stdin
21307   if test x"$ac_file" != x-; then
21308     mv $tmp/out $ac_file
21309   else
21310     cat $tmp/out
21311     rm -f $tmp/out
21312   fi
21313
21314 done
21315 _ACEOF
21316 cat >>$CONFIG_STATUS <<\_ACEOF
21317
21318 #
21319 # CONFIG_HEADER section.
21320 #
21321
21322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21324 #
21325 # ac_d sets the value in "#define NAME VALUE" lines.
21326 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21327 ac_dB='[         ].*$,\1#\2'
21328 ac_dC=' '
21329 ac_dD=',;t'
21330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21331 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21332 ac_uB='$,\1#\2define\3'
21333 ac_uC=' '
21334 ac_uD=',;t'
21335
21336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21337   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21338   case $ac_file in
21339   - | *:- | *:-:* ) # input from stdin
21340         cat >$tmp/stdin
21341         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21342         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21343   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21345   * )   ac_file_in=$ac_file.in ;;
21346   esac
21347
21348   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21349 echo "$as_me: creating $ac_file" >&6;}
21350
21351   # First look for the input files in the build tree, otherwise in the
21352   # src tree.
21353   ac_file_inputs=`IFS=:
21354     for f in $ac_file_in; do
21355       case $f in
21356       -) echo $tmp/stdin ;;
21357       [\\/$]*)
21358          # Absolute (can't be DOS-style, as IFS=:)
21359          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21360 echo "$as_me: error: cannot find input file: $f" >&2;}
21361    { (exit 1); exit 1; }; }
21362          # Do quote $f, to prevent DOS paths from being IFS'd.
21363          echo "$f";;
21364       *) # Relative
21365          if test -f "$f"; then
21366            # Build tree
21367            echo "$f"
21368          elif test -f "$srcdir/$f"; then
21369            # Source tree
21370            echo "$srcdir/$f"
21371          else
21372            # /dev/null tree
21373            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21374 echo "$as_me: error: cannot find input file: $f" >&2;}
21375    { (exit 1); exit 1; }; }
21376          fi;;
21377       esac
21378     done` || { (exit 1); exit 1; }
21379   # Remove the trailing spaces.
21380   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21381
21382 _ACEOF
21383
21384 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21385 # `conftest.undefs', that substitutes the proper values into
21386 # config.h.in to produce config.h.  The first handles `#define'
21387 # templates, and the second `#undef' templates.
21388 # And first: Protect against being on the right side of a sed subst in
21389 # config.status.  Protect against being in an unquoted here document
21390 # in config.status.
21391 rm -f conftest.defines conftest.undefs
21392 # Using a here document instead of a string reduces the quoting nightmare.
21393 # Putting comments in sed scripts is not portable.
21394 #
21395 # `end' is used to avoid that the second main sed command (meant for
21396 # 0-ary CPP macros) applies to n-ary macro definitions.
21397 # See the Autoconf documentation for `clear'.
21398 cat >confdef2sed.sed <<\_ACEOF
21399 s/[\\&,]/\\&/g
21400 s,[\\$`],\\&,g
21401 t clear
21402 : clear
21403 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21404 t end
21405 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21406 : end
21407 _ACEOF
21408 # If some macros were called several times there might be several times
21409 # the same #defines, which is useless.  Nevertheless, we may not want to
21410 # sort them, since we want the *last* AC-DEFINE to be honored.
21411 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21412 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21413 rm -f confdef2sed.sed
21414
21415 # This sed command replaces #undef with comments.  This is necessary, for
21416 # example, in the case of _POSIX_SOURCE, which is predefined and required
21417 # on some systems where configure will not decide to define it.
21418 cat >>conftest.undefs <<\_ACEOF
21419 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21420 _ACEOF
21421
21422 # Break up conftest.defines because some shells have a limit on the size
21423 # of here documents, and old seds have small limits too (100 cmds).
21424 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21425 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21426 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21427 echo '  :' >>$CONFIG_STATUS
21428 rm -f conftest.tail
21429 while grep . conftest.defines >/dev/null
21430 do
21431   # Write a limited-size here document to $tmp/defines.sed.
21432   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21433   # Speed up: don't consider the non `#define' lines.
21434   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21435   # Work around the forget-to-reset-the-flag bug.
21436   echo 't clr' >>$CONFIG_STATUS
21437   echo ': clr' >>$CONFIG_STATUS
21438   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21439   echo 'CEOF
21440   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21441   rm -f $tmp/in
21442   mv $tmp/out $tmp/in
21443 ' >>$CONFIG_STATUS
21444   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21445   rm -f conftest.defines
21446   mv conftest.tail conftest.defines
21447 done
21448 rm -f conftest.defines
21449 echo '  fi # grep' >>$CONFIG_STATUS
21450 echo >>$CONFIG_STATUS
21451
21452 # Break up conftest.undefs because some shells have a limit on the size
21453 # of here documents, and old seds have small limits too (100 cmds).
21454 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21455 rm -f conftest.tail
21456 while grep . conftest.undefs >/dev/null
21457 do
21458   # Write a limited-size here document to $tmp/undefs.sed.
21459   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21460   # Speed up: don't consider the non `#undef'
21461   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21462   # Work around the forget-to-reset-the-flag bug.
21463   echo 't clr' >>$CONFIG_STATUS
21464   echo ': clr' >>$CONFIG_STATUS
21465   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21466   echo 'CEOF
21467   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21468   rm -f $tmp/in
21469   mv $tmp/out $tmp/in
21470 ' >>$CONFIG_STATUS
21471   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21472   rm -f conftest.undefs
21473   mv conftest.tail conftest.undefs
21474 done
21475 rm -f conftest.undefs
21476
21477 cat >>$CONFIG_STATUS <<\_ACEOF
21478   # Let's still pretend it is `configure' which instantiates (i.e., don't
21479   # use $as_me), people would be surprised to read:
21480   #    /* config.h.  Generated by config.status.  */
21481   if test x"$ac_file" = x-; then
21482     echo "/* Generated by configure.  */" >$tmp/config.h
21483   else
21484     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21485   fi
21486   cat $tmp/in >>$tmp/config.h
21487   rm -f $tmp/in
21488   if test x"$ac_file" != x-; then
21489     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21490       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21491 echo "$as_me: $ac_file is unchanged" >&6;}
21492     else
21493       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495          X"$ac_file" : 'X\(//\)[^/]' \| \
21496          X"$ac_file" : 'X\(//\)$' \| \
21497          X"$ac_file" : 'X\(/\)' \| \
21498          .     : '\(.\)' 2>/dev/null ||
21499 echo X"$ac_file" |
21500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21502           /^X\(\/\/\)$/{ s//\1/; q; }
21503           /^X\(\/\).*/{ s//\1/; q; }
21504           s/.*/./; q'`
21505       { if $as_mkdir_p; then
21506     mkdir -p "$ac_dir"
21507   else
21508     as_dir="$ac_dir"
21509     as_dirs=
21510     while test ! -d "$as_dir"; do
21511       as_dirs="$as_dir $as_dirs"
21512       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514          X"$as_dir" : 'X\(//\)[^/]' \| \
21515          X"$as_dir" : 'X\(//\)$' \| \
21516          X"$as_dir" : 'X\(/\)' \| \
21517          .     : '\(.\)' 2>/dev/null ||
21518 echo X"$as_dir" |
21519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21520           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21521           /^X\(\/\/\)$/{ s//\1/; q; }
21522           /^X\(\/\).*/{ s//\1/; q; }
21523           s/.*/./; q'`
21524     done
21525     test ! -n "$as_dirs" || mkdir $as_dirs
21526   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21528    { (exit 1); exit 1; }; }; }
21529
21530       rm -f $ac_file
21531       mv $tmp/config.h $ac_file
21532     fi
21533   else
21534     cat $tmp/config.h
21535     rm -f $tmp/config.h
21536   fi
21537 # Compute $ac_file's index in $config_headers.
21538 _am_stamp_count=1
21539 for _am_header in $config_headers :; do
21540   case $_am_header in
21541     $ac_file | $ac_file:* )
21542       break ;;
21543     * )
21544       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21545   esac
21546 done
21547 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21548 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21549          X$ac_file : 'X\(//\)[^/]' \| \
21550          X$ac_file : 'X\(//\)$' \| \
21551          X$ac_file : 'X\(/\)' \| \
21552          .     : '\(.\)' 2>/dev/null ||
21553 echo X$ac_file |
21554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21555           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21556           /^X\(\/\/\)$/{ s//\1/; q; }
21557           /^X\(\/\).*/{ s//\1/; q; }
21558           s/.*/./; q'`/stamp-h$_am_stamp_count
21559 done
21560 _ACEOF
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21562
21563 #
21564 # CONFIG_COMMANDS section.
21565 #
21566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21567   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21568   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21569   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21571          X"$ac_dest" : 'X\(//\)[^/]' \| \
21572          X"$ac_dest" : 'X\(//\)$' \| \
21573          X"$ac_dest" : 'X\(/\)' \| \
21574          .     : '\(.\)' 2>/dev/null ||
21575 echo X"$ac_dest" |
21576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21578           /^X\(\/\/\)$/{ s//\1/; q; }
21579           /^X\(\/\).*/{ s//\1/; q; }
21580           s/.*/./; q'`
21581   { if $as_mkdir_p; then
21582     mkdir -p "$ac_dir"
21583   else
21584     as_dir="$ac_dir"
21585     as_dirs=
21586     while test ! -d "$as_dir"; do
21587       as_dirs="$as_dir $as_dirs"
21588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21590          X"$as_dir" : 'X\(//\)[^/]' \| \
21591          X"$as_dir" : 'X\(//\)$' \| \
21592          X"$as_dir" : 'X\(/\)' \| \
21593          .     : '\(.\)' 2>/dev/null ||
21594 echo X"$as_dir" |
21595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21597           /^X\(\/\/\)$/{ s//\1/; q; }
21598           /^X\(\/\).*/{ s//\1/; q; }
21599           s/.*/./; q'`
21600     done
21601     test ! -n "$as_dirs" || mkdir $as_dirs
21602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21604    { (exit 1); exit 1; }; }; }
21605
21606   ac_builddir=.
21607
21608 if test "$ac_dir" != .; then
21609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21610   # A "../" for each directory in $ac_dir_suffix.
21611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21612 else
21613   ac_dir_suffix= ac_top_builddir=
21614 fi
21615
21616 case $srcdir in
21617   .)  # No --srcdir option.  We are building in place.
21618     ac_srcdir=.
21619     if test -z "$ac_top_builddir"; then
21620        ac_top_srcdir=.
21621     else
21622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21623     fi ;;
21624   [\\/]* | ?:[\\/]* )  # Absolute path.
21625     ac_srcdir=$srcdir$ac_dir_suffix;
21626     ac_top_srcdir=$srcdir ;;
21627   *) # Relative path.
21628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21630 esac
21631
21632 # Do not use `cd foo && pwd` to compute absolute paths, because
21633 # the directories may not exist.
21634 case `pwd` in
21635 .) ac_abs_builddir="$ac_dir";;
21636 *)
21637   case "$ac_dir" in
21638   .) ac_abs_builddir=`pwd`;;
21639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21640   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21641   esac;;
21642 esac
21643 case $ac_abs_builddir in
21644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21645 *)
21646   case ${ac_top_builddir}. in
21647   .) ac_abs_top_builddir=$ac_abs_builddir;;
21648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21650   esac;;
21651 esac
21652 case $ac_abs_builddir in
21653 .) ac_abs_srcdir=$ac_srcdir;;
21654 *)
21655   case $ac_srcdir in
21656   .) ac_abs_srcdir=$ac_abs_builddir;;
21657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21659   esac;;
21660 esac
21661 case $ac_abs_builddir in
21662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21663 *)
21664   case $ac_top_srcdir in
21665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21668   esac;;
21669 esac
21670
21671
21672   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21673 echo "$as_me: executing $ac_dest commands" >&6;}
21674   case $ac_dest in
21675     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21676   # Strip MF so we end up with the name of the file.
21677   mf=`echo "$mf" | sed -e 's/:.*$//'`
21678   # Check whether this is an Automake generated Makefile or not.
21679   # We used to match only the files named `Makefile.in', but
21680   # some people rename them; so instead we look at the file content.
21681   # Grep'ing the first line is not enough: some people post-process
21682   # each Makefile.in and add a new line on top of each file to say so.
21683   # So let's grep whole file.
21684   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21685     dirpart=`(dirname "$mf") 2>/dev/null ||
21686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687          X"$mf" : 'X\(//\)[^/]' \| \
21688          X"$mf" : 'X\(//\)$' \| \
21689          X"$mf" : 'X\(/\)' \| \
21690          .     : '\(.\)' 2>/dev/null ||
21691 echo X"$mf" |
21692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21694           /^X\(\/\/\)$/{ s//\1/; q; }
21695           /^X\(\/\).*/{ s//\1/; q; }
21696           s/.*/./; q'`
21697   else
21698     continue
21699   fi
21700   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21701   # Extract the definition of DEP_FILES from the Makefile without
21702   # running `make'.
21703   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21704   test -z "$DEPDIR" && continue
21705   # When using ansi2knr, U may be empty or an underscore; expand it
21706   U=`sed -n -e '/^U = / s///p' < "$mf"`
21707   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21708   # We invoke sed twice because it is the simplest approach to
21709   # changing $(DEPDIR) to its actual value in the expansion.
21710   for file in `sed -n -e '
21711     /^DEP_FILES = .*\\\\$/ {
21712       s/^DEP_FILES = //
21713       :loop
21714         s/\\\\$//
21715         p
21716         n
21717         /\\\\$/ b loop
21718       p
21719     }
21720     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21721        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21722     # Make sure the directory exists.
21723     test -f "$dirpart/$file" && continue
21724     fdir=`(dirname "$file") 2>/dev/null ||
21725 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21726          X"$file" : 'X\(//\)[^/]' \| \
21727          X"$file" : 'X\(//\)$' \| \
21728          X"$file" : 'X\(/\)' \| \
21729          .     : '\(.\)' 2>/dev/null ||
21730 echo X"$file" |
21731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21732           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21733           /^X\(\/\/\)$/{ s//\1/; q; }
21734           /^X\(\/\).*/{ s//\1/; q; }
21735           s/.*/./; q'`
21736     { if $as_mkdir_p; then
21737     mkdir -p $dirpart/$fdir
21738   else
21739     as_dir=$dirpart/$fdir
21740     as_dirs=
21741     while test ! -d "$as_dir"; do
21742       as_dirs="$as_dir $as_dirs"
21743       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21745          X"$as_dir" : 'X\(//\)[^/]' \| \
21746          X"$as_dir" : 'X\(//\)$' \| \
21747          X"$as_dir" : 'X\(/\)' \| \
21748          .     : '\(.\)' 2>/dev/null ||
21749 echo X"$as_dir" |
21750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21751           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21752           /^X\(\/\/\)$/{ s//\1/; q; }
21753           /^X\(\/\).*/{ s//\1/; q; }
21754           s/.*/./; q'`
21755     done
21756     test ! -n "$as_dirs" || mkdir $as_dirs
21757   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21758 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21759    { (exit 1); exit 1; }; }; }
21760
21761     # echo "creating $dirpart/$file"
21762     echo '# dummy' > "$dirpart/$file"
21763   done
21764 done
21765  ;;
21766   esac
21767 done
21768 _ACEOF
21769
21770 cat >>$CONFIG_STATUS <<\_ACEOF
21771
21772 { (exit 0); exit 0; }
21773 _ACEOF
21774 chmod +x $CONFIG_STATUS
21775 ac_clean_files=$ac_clean_files_save
21776
21777
21778 # configure is writing to config.log, and then calls config.status.
21779 # config.status does its own redirection, appending to config.log.
21780 # Unfortunately, on DOS this fails, as config.log is still kept open
21781 # by configure, so config.status won't be able to write to it; its
21782 # output is simply discarded.  So we exec the FD to /dev/null,
21783 # effectively closing config.log, so it can be properly (re)opened and
21784 # appended to by config.status.  When coming back to configure, we
21785 # need to make the FD available again.
21786 if test "$no_create" != yes; then
21787   ac_cs_success=:
21788   ac_config_status_args=
21789   test "$silent" = yes &&
21790     ac_config_status_args="$ac_config_status_args --quiet"
21791   exec 5>/dev/null
21792   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21793   exec 5>>config.log
21794   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21795   # would make configure fail if this is the last instruction.
21796   $ac_cs_success || { (exit 1); exit 1; }
21797 fi
21798