OSDN Git Service

Version to 2.13.0-rc2
[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.0-rc2.
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.0-rc2'
273 PACKAGE_STRING='TiMidity++ 2.13.0-rc2'
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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
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_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures TiMidity++ 2.13.0-rc2 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ 2.13.0-rc2:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               vorbis:    Ogg Vorbis
884                               gogo:      MP3 GOGO (Only Windows is supported)
885   --disable-alsatest      Do not try to compile and run a test Alsa program
886   --disable-artstest       Do not try to compile and run a test ARTS program
887   --disable-esdtest       Do not try to compile and run a test ESD program
888   --disable-oggtest       Do not try to compile and run a test Ogg program
889   --disable-vorbistest       Do not try to compile and run a test Vorbis program
890   --enable-interface=interface_list
891                           Comma separated interface list
892   --enable-dynamic        Enable dynamic link interface   (default is no)
893   --enable-dynamic=dynamic_list
894                           Comma separated dynamic interface list
895   --enable-ncurses        Enable ncurses interface        (default is no)
896   --enable-slang          Enable slang interface          (default is no)
897   --enable-motif          Enable motif interface          (default is no)
898   --enable-tcltk          Enable tcltk interface          (default is no)
899   --enable-emacs          Enable emacs interface          (default is no)
900   --enable-vt100          Enable VT100 interface          (default is no)
901   --enable-xaw            Enable athena interface         (default is no)
902   --enable-xskin          Enable X skin interface         (default is no)
903   --enable-gtk            Enable GTK+ interface           (default is no)
904   --disable-gtktest       Do not try to compile and run a test GTK program
905   --enable-server         Enable server interface         (default is no)
906   --enable-alsaseq        Enable ALSA sequencer server interface
907                                                           (default is no)
908   --enable-winsyn        Enable Windows Synthesizer interface
909                                                           (default is no)
910   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
911                                                           (default is no)
912   --enable-winsyng        Enable Windows GUI Synthesizer interface
913                                                           (default is no)
914   --enable-w32gui         Enable Windows GUI interface    (default is no)
915   --enable-ump            UMP configuration               (default is no)
916   --enable-offix          Enable offix support            (default is no)
917   --enable-network        Enable network support          (default is no)
918   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
919   --enable-spline=method  Specify spline method.
920                                   one of no,linear,cubic,lagrange,newton,gauss
921                                                           (default is linear)
922   --enable-wrd            Enable WRD interface for X      (default is no)
923
924 Optional Packages:
925   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
926   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
927   --with-includes=DIR     Specify include directories (colon separated)
928   --with-libraries=DIR    Specify library directories (colon separated)
929   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
930   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
931   --with-lispdir          Override the default lisp directory
932   --with-elf              create ELF shared object instead of AOUT
933   --with-simd             create SIMD friendly binary (default is no)
934   --with-x                use the X Window System
935   --with-tcl-includes=DIR Tcl include file path
936   --with-tcl-libs=DIR     Tcl library file path
937   --with-tk-includes=DIR  Tk include file path
938   --with-tk-libs=DIR      Tk library file path
939   --with-offix-includes=DIR Offix include file path
940   --with-offix-libs=DIR   Offix include file path
941   --with-nas-library=library NAS absolute library path(Don't use -laudio)
942   --with-nas-includes=DIR NAS include files are in dir
943   --with-default-output=<mode>  Specify default output mode (optional):
944                                 (default|alsa|alib|arts|nas|
945                                 esd|wav|au|aiff|list|vorbis|
946                                 gogo|portaudio|jack)
947   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
948   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
949   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
950   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
951   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
952   --with-ogg=PFX   Prefix where libogg is installed (optional)
953   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
954   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
955   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
956   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
957   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
958   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
959   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
960
961 Some influential environment variables:
962   CC          C compiler command
963   CFLAGS      C compiler flags
964   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
965               nonstandard directory <lib dir>
966   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
967               headers in a nonstandard directory <include dir>
968   CPP         C preprocessor
969
970 Use these variables to override the choices made by `configure' or to help
971 it to find libraries and programs with nonstandard names/locations.
972
973 Report bugs to <root@mput.dip.jp>.
974 _ACEOF
975 fi
976
977 if test "$ac_init_help" = "recursive"; then
978   # If there are subdirs, report their specific --help.
979   ac_popdir=`pwd`
980   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
981     test -d $ac_dir || continue
982     ac_builddir=.
983
984 if test "$ac_dir" != .; then
985   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
986   # A "../" for each directory in $ac_dir_suffix.
987   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
988 else
989   ac_dir_suffix= ac_top_builddir=
990 fi
991
992 case $srcdir in
993   .)  # No --srcdir option.  We are building in place.
994     ac_srcdir=.
995     if test -z "$ac_top_builddir"; then
996        ac_top_srcdir=.
997     else
998        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
999     fi ;;
1000   [\\/]* | ?:[\\/]* )  # Absolute path.
1001     ac_srcdir=$srcdir$ac_dir_suffix;
1002     ac_top_srcdir=$srcdir ;;
1003   *) # Relative path.
1004     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1005     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1006 esac
1007
1008 # Do not use `cd foo && pwd` to compute absolute paths, because
1009 # the directories may not exist.
1010 case `pwd` in
1011 .) ac_abs_builddir="$ac_dir";;
1012 *)
1013   case "$ac_dir" in
1014   .) ac_abs_builddir=`pwd`;;
1015   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1016   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1017   esac;;
1018 esac
1019 case $ac_abs_builddir in
1020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *)
1022   case ${ac_top_builddir}. in
1023   .) ac_abs_top_builddir=$ac_abs_builddir;;
1024   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1025   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1026   esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_srcdir=$ac_srcdir;;
1030 *)
1031   case $ac_srcdir in
1032   .) ac_abs_srcdir=$ac_abs_builddir;;
1033   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1034   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1035   esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *)
1040   case $ac_top_srcdir in
1041   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1042   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1043   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1044   esac;;
1045 esac
1046
1047     cd $ac_dir
1048     # Check for guested configure; otherwise get Cygnus style configure.
1049     if test -f $ac_srcdir/configure.gnu; then
1050       echo
1051       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1052     elif test -f $ac_srcdir/configure; then
1053       echo
1054       $SHELL $ac_srcdir/configure  --help=recursive
1055     elif test -f $ac_srcdir/configure.ac ||
1056            test -f $ac_srcdir/configure.in; then
1057       echo
1058       $ac_configure --help
1059     else
1060       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1061     fi
1062     cd $ac_popdir
1063   done
1064 fi
1065
1066 test -n "$ac_init_help" && exit 0
1067 if $ac_init_version; then
1068   cat <<\_ACEOF
1069 TiMidity++ configure 2.13.0-rc2
1070 generated by GNU Autoconf 2.59
1071
1072 Copyright (C) 2003 Free Software Foundation, Inc.
1073 This configure script is free software; the Free Software Foundation
1074 gives unlimited permission to copy, distribute and modify it.
1075 _ACEOF
1076   exit 0
1077 fi
1078 exec 5>config.log
1079 cat >&5 <<_ACEOF
1080 This file contains any messages produced by compilers while
1081 running configure, to aid debugging if configure makes a mistake.
1082
1083 It was created by TiMidity++ $as_me 2.13.0-rc2, which was
1084 generated by GNU Autoconf 2.59.  Invocation command line was
1085
1086   $ $0 $@
1087
1088 _ACEOF
1089 {
1090 cat <<_ASUNAME
1091 ## --------- ##
1092 ## Platform. ##
1093 ## --------- ##
1094
1095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1100
1101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1102 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1103
1104 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1105 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1107 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1108 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1109 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1110 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1111
1112 _ASUNAME
1113
1114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1115 for as_dir in $PATH
1116 do
1117   IFS=$as_save_IFS
1118   test -z "$as_dir" && as_dir=.
1119   echo "PATH: $as_dir"
1120 done
1121
1122 } >&5
1123
1124 cat >&5 <<_ACEOF
1125
1126
1127 ## ----------- ##
1128 ## Core tests. ##
1129 ## ----------- ##
1130
1131 _ACEOF
1132
1133
1134 # Keep a trace of the command line.
1135 # Strip out --no-create and --no-recursion so they do not pile up.
1136 # Strip out --silent because we don't want to record it for future runs.
1137 # Also quote any args containing shell meta-characters.
1138 # Make two passes to allow for proper duplicate-argument suppression.
1139 ac_configure_args=
1140 ac_configure_args0=
1141 ac_configure_args1=
1142 ac_sep=
1143 ac_must_keep_next=false
1144 for ac_pass in 1 2
1145 do
1146   for ac_arg
1147   do
1148     case $ac_arg in
1149     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1150     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151     | -silent | --silent | --silen | --sile | --sil)
1152       continue ;;
1153     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1154       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1155     esac
1156     case $ac_pass in
1157     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1158     2)
1159       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1160       if test $ac_must_keep_next = true; then
1161         ac_must_keep_next=false # Got value, back to normal.
1162       else
1163         case $ac_arg in
1164           *=* | --config-cache | -C | -disable-* | --disable-* \
1165           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1166           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1167           | -with-* | --with-* | -without-* | --without-* | --x)
1168             case "$ac_configure_args0 " in
1169               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1170             esac
1171             ;;
1172           -* ) ac_must_keep_next=true ;;
1173         esac
1174       fi
1175       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1176       # Get rid of the leading space.
1177       ac_sep=" "
1178       ;;
1179     esac
1180   done
1181 done
1182 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1183 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1184
1185 # When interrupted or exit'd, cleanup temporary files, and complete
1186 # config.log.  We remove comments because anyway the quotes in there
1187 # would cause problems or look ugly.
1188 # WARNING: Be sure not to use single quotes in there, as some shells,
1189 # such as our DU 5.0 friend, will then `close' the trap.
1190 trap 'exit_status=$?
1191   # Save into config.log some information that might help in debugging.
1192   {
1193     echo
1194
1195     cat <<\_ASBOX
1196 ## ---------------- ##
1197 ## Cache variables. ##
1198 ## ---------------- ##
1199 _ASBOX
1200     echo
1201     # The following way of writing the cache mishandles newlines in values,
1202 {
1203   (set) 2>&1 |
1204     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1205     *ac_space=\ *)
1206       sed -n \
1207         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1209       ;;
1210     *)
1211       sed -n \
1212         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1213       ;;
1214     esac;
1215 }
1216     echo
1217
1218     cat <<\_ASBOX
1219 ## ----------------- ##
1220 ## Output variables. ##
1221 ## ----------------- ##
1222 _ASBOX
1223     echo
1224     for ac_var in $ac_subst_vars
1225     do
1226       eval ac_val=$`echo $ac_var`
1227       echo "$ac_var='"'"'$ac_val'"'"'"
1228     done | sort
1229     echo
1230
1231     if test -n "$ac_subst_files"; then
1232       cat <<\_ASBOX
1233 ## ------------- ##
1234 ## Output files. ##
1235 ## ------------- ##
1236 _ASBOX
1237       echo
1238       for ac_var in $ac_subst_files
1239       do
1240         eval ac_val=$`echo $ac_var`
1241         echo "$ac_var='"'"'$ac_val'"'"'"
1242       done | sort
1243       echo
1244     fi
1245
1246     if test -s confdefs.h; then
1247       cat <<\_ASBOX
1248 ## ----------- ##
1249 ## confdefs.h. ##
1250 ## ----------- ##
1251 _ASBOX
1252       echo
1253       sed "/^$/d" confdefs.h | sort
1254       echo
1255     fi
1256     test "$ac_signal" != 0 &&
1257       echo "$as_me: caught signal $ac_signal"
1258     echo "$as_me: exit $exit_status"
1259   } >&5
1260   rm -f core *.core &&
1261   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1262     exit $exit_status
1263      ' 0
1264 for ac_signal in 1 2 13 15; do
1265   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1266 done
1267 ac_signal=0
1268
1269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1270 rm -rf conftest* confdefs.h
1271 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1272 echo >confdefs.h
1273
1274 # Predefined preprocessor variables.
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_NAME "$PACKAGE_NAME"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1283 _ACEOF
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1288 _ACEOF
1289
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_STRING "$PACKAGE_STRING"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1298 _ACEOF
1299
1300
1301 # Let the site file select an alternate cache file if it wants to.
1302 # Prefer explicitly selected file to automatically selected ones.
1303 if test -z "$CONFIG_SITE"; then
1304   if test "x$prefix" != xNONE; then
1305     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1306   else
1307     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1308   fi
1309 fi
1310 for ac_site_file in $CONFIG_SITE; do
1311   if test -r "$ac_site_file"; then
1312     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1313 echo "$as_me: loading site script $ac_site_file" >&6;}
1314     sed 's/^/| /' "$ac_site_file" >&5
1315     . "$ac_site_file"
1316   fi
1317 done
1318
1319 if test -r "$cache_file"; then
1320   # Some versions of bash will fail to source /dev/null (special
1321   # files actually), so we avoid doing that.
1322   if test -f "$cache_file"; then
1323     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1324 echo "$as_me: loading cache $cache_file" >&6;}
1325     case $cache_file in
1326       [\\/]* | ?:[\\/]* ) . $cache_file;;
1327       *)                      . ./$cache_file;;
1328     esac
1329   fi
1330 else
1331   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1332 echo "$as_me: creating cache $cache_file" >&6;}
1333   >$cache_file
1334 fi
1335
1336 # Check that the precious variables saved in the cache have kept the same
1337 # value.
1338 ac_cache_corrupted=false
1339 for ac_var in `(set) 2>&1 |
1340                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1341   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1342   eval ac_new_set=\$ac_env_${ac_var}_set
1343   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1344   eval ac_new_val="\$ac_env_${ac_var}_value"
1345   case $ac_old_set,$ac_new_set in
1346     set,)
1347       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1349       ac_cache_corrupted=: ;;
1350     ,set)
1351       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1352 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1353       ac_cache_corrupted=: ;;
1354     ,);;
1355     *)
1356       if test "x$ac_old_val" != "x$ac_new_val"; then
1357         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1358 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1359         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1360 echo "$as_me:   former value:  $ac_old_val" >&2;}
1361         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1362 echo "$as_me:   current value: $ac_new_val" >&2;}
1363         ac_cache_corrupted=:
1364       fi;;
1365   esac
1366   # Pass precious variables to config.status.
1367   if test "$ac_new_set" = set; then
1368     case $ac_new_val in
1369     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1370       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1371     *) ac_arg=$ac_var=$ac_new_val ;;
1372     esac
1373     case " $ac_configure_args " in
1374       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1375       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1376     esac
1377   fi
1378 done
1379 if $ac_cache_corrupted; then
1380   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1381 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1382   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1383 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386
1387 ac_ext=c
1388 ac_cpp='$CPP $CPPFLAGS'
1389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419 ac_aux_dir=
1420 for ac_dir in autoconf $srcdir/autoconf; do
1421   if test -f $ac_dir/install-sh; then
1422     ac_aux_dir=$ac_dir
1423     ac_install_sh="$ac_aux_dir/install-sh -c"
1424     break
1425   elif test -f $ac_dir/install.sh; then
1426     ac_aux_dir=$ac_dir
1427     ac_install_sh="$ac_aux_dir/install.sh -c"
1428     break
1429   elif test -f $ac_dir/shtool; then
1430     ac_aux_dir=$ac_dir
1431     ac_install_sh="$ac_aux_dir/shtool install -c"
1432     break
1433   fi
1434 done
1435 if test -z "$ac_aux_dir"; then
1436   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1438    { (exit 1); exit 1; }; }
1439 fi
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1443
1444 # Make sure we can run config.sub.
1445 $ac_config_sub sun4 >/dev/null 2>&1 ||
1446   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1447 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 echo "$as_me:$LINENO: checking build system type" >&5
1451 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1452 if test "${ac_cv_build+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_build_alias=$build_alias
1456 test -z "$ac_cv_build_alias" &&
1457   ac_cv_build_alias=`$ac_config_guess`
1458 test -z "$ac_cv_build_alias" &&
1459   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1460 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1461    { (exit 1); exit 1; }; }
1462 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1463   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1465    { (exit 1); exit 1; }; }
1466
1467 fi
1468 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1469 echo "${ECHO_T}$ac_cv_build" >&6
1470 build=$ac_cv_build
1471 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476 echo "$as_me:$LINENO: checking host system type" >&5
1477 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1478 if test "${ac_cv_host+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   ac_cv_host_alias=$host_alias
1482 test -z "$ac_cv_host_alias" &&
1483   ac_cv_host_alias=$ac_cv_build_alias
1484 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1485   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1487    { (exit 1); exit 1; }; }
1488
1489 fi
1490 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1491 echo "${ECHO_T}$ac_cv_host" >&6
1492 host=$ac_cv_host
1493 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496
1497
1498 echo "$as_me:$LINENO: checking target system type" >&5
1499 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1500 if test "${ac_cv_target+set}" = set; then
1501   echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503   ac_cv_target_alias=$target_alias
1504 test "x$ac_cv_target_alias" = "x" &&
1505   ac_cv_target_alias=$ac_cv_host_alias
1506 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1507   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1508 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1509    { (exit 1); exit 1; }; }
1510
1511 fi
1512 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1513 echo "${ECHO_T}$ac_cv_target" >&6
1514 target=$ac_cv_target
1515 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1516 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1517 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1518
1519
1520 # The aliases save the names the user supplied, while $host etc.
1521 # will get canonicalized.
1522 test -n "$target_alias" &&
1523   test "$program_prefix$program_suffix$program_transform_name" = \
1524     NONENONEs,x,x, &&
1525   program_prefix=${target_alias}-
1526 am__api_version="1.7"
1527 # Find a good install program.  We prefer a C program (faster),
1528 # so one script is as good as another.  But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1533 # AIX /bin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   # Account for people who put trailing slashes in PATH elements.
1552 case $as_dir/ in
1553   ./ | .// | /cC/* | \
1554   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1555   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1556   /usr/ucb/* ) ;;
1557   *)
1558     # OSF1 and SCO ODT 3.0 have their own names for install.
1559     # Don't use installbsd from OSF since it installs stuff as root
1560     # by default.
1561     for ac_prog in ginstall scoinst install; do
1562       for ac_exec_ext in '' $ac_executable_extensions; do
1563         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564           if test $ac_prog = install &&
1565             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566             # AIX install.  It has an incompatible calling convention.
1567             :
1568           elif test $ac_prog = install &&
1569             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570             # program-specific install script used by HP pwplus--don't use.
1571             :
1572           else
1573             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1574             break 3
1575           fi
1576         fi
1577       done
1578     done
1579     ;;
1580 esac
1581 done
1582
1583
1584 fi
1585   if test "${ac_cv_path_install+set}" = set; then
1586     INSTALL=$ac_cv_path_install
1587   else
1588     # As a last resort, use the slow shell script.  We don't cache a
1589     # path for INSTALL within a source directory, because that will
1590     # break other packages using the cache if that directory is
1591     # removed, or if the path is relative.
1592     INSTALL=$ac_install_sh
1593   fi
1594 fi
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1597
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608 # Just in case
1609 sleep 1
1610 echo timestamp > conftest.file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments.  Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1615 # directory).
1616 if (
1617    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618    if test "$*" = "X"; then
1619       # -L didn't work.
1620       set X `ls -t $srcdir/configure conftest.file`
1621    fi
1622    rm -f conftest.file
1623    if test "$*" != "X $srcdir/configure conftest.file" \
1624       && test "$*" != "X conftest.file $srcdir/configure"; then
1625
1626       # If neither matched, then we have a broken ls.  This can happen
1627       # if, for instance, CONFIG_SHELL is bash and it inherits a
1628       # broken ls alias from the environment.  This has actually
1629       # happened.  Such a system could not be considered "sane".
1630       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1633 alias in your environment" >&2;}
1634    { (exit 1); exit 1; }; }
1635    fi
1636
1637    test "$2" = conftest.file
1638    )
1639 then
1640    # Ok.
1641    :
1642 else
1643    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647    { (exit 1); exit 1; }; }
1648 fi
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE &&
1652   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE &&
1655   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $.  echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF >conftest.sed
1659 s/[\\$]/&&/g;s/;s,x,x,$//
1660 _ACEOF
1661 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662 rm conftest.sed
1663
1664
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1667
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671   am_missing_run="$MISSING --run "
1672 else
1673   am_missing_run=
1674   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 fi
1677
1678 for ac_prog in gawk mawk nawk awk
1679 do
1680   # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_AWK+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$AWK"; then
1688   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_AWK="$ac_prog"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704 fi
1705 fi
1706 AWK=$ac_cv_prog_AWK
1707 if test -n "$AWK"; then
1708   echo "$as_me:$LINENO: result: $AWK" >&5
1709 echo "${ECHO_T}$AWK" >&6
1710 else
1711   echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1713 fi
1714
1715   test -n "$AWK" && break
1716 done
1717
1718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   cat >conftest.make <<\_ACEOF
1725 all:
1726         @echo 'ac_maketemp="$(MAKE)"'
1727 _ACEOF
1728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1730 if test -n "$ac_maketemp"; then
1731   eval ac_cv_prog_make_${ac_make}_set=yes
1732 else
1733   eval ac_cv_prog_make_${ac_make}_set=no
1734 fi
1735 rm -f conftest.make
1736 fi
1737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1738   echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740   SET_MAKE=
1741 else
1742   echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744   SET_MAKE="MAKE=${MAKE-make}"
1745 fi
1746
1747 rm -rf .tst 2>/dev/null
1748 mkdir .tst 2>/dev/null
1749 if test -d .tst; then
1750   am__leading_dot=.
1751 else
1752   am__leading_dot=_
1753 fi
1754 rmdir .tst 2>/dev/null
1755
1756  # test to see if srcdir already configured
1757 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758    test -f $srcdir/config.status; then
1759   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1760 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1761    { (exit 1); exit 1; }; }
1762 fi
1763
1764 # test whether we have cygpath
1765 if test -z "$CYGPATH_W"; then
1766   if (cygpath --version) >/dev/null 2>/dev/null; then
1767     CYGPATH_W='cygpath -w'
1768   else
1769     CYGPATH_W=echo
1770   fi
1771 fi
1772
1773
1774 # Define the identity of the package.
1775  PACKAGE='TiMidity++'
1776  VERSION='2.13.0-rc2'
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE "$PACKAGE"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define VERSION "$VERSION"
1786 _ACEOF
1787
1788 # Some tools Automake needs.
1789
1790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1791
1792
1793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1794
1795
1796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1797
1798
1799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1800
1801
1802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1803
1804
1805 AMTAR=${AMTAR-"${am_missing_run}tar"}
1806
1807 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1808
1809 # Installed binaries are usually stripped using `strip' when the user
1810 # run `make install-strip'.  However `strip' might not be the right
1811 # tool to use in cross-compilation environments, therefore Automake
1812 # will honor the `STRIP' environment variable to overrule this program.
1813 if test "$cross_compiling" != no; then
1814   if test -n "$ac_tool_prefix"; then
1815   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}strip; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_STRIP+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$STRIP"; then
1823   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 STRIP=$ac_cv_prog_STRIP
1842 if test -n "$STRIP"; then
1843   echo "$as_me:$LINENO: result: $STRIP" >&5
1844 echo "${ECHO_T}$STRIP" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850 fi
1851 if test -z "$ac_cv_prog_STRIP"; then
1852   ac_ct_STRIP=$STRIP
1853   # Extract the first word of "strip", so it can be a program name with args.
1854 set dummy strip; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$ac_ct_STRIP"; then
1861   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_ac_ct_STRIP="strip"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1878 fi
1879 fi
1880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1881 if test -n "$ac_ct_STRIP"; then
1882   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1883 echo "${ECHO_T}$ac_ct_STRIP" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   STRIP=$ac_ct_STRIP
1890 else
1891   STRIP="$ac_cv_prog_STRIP"
1892 fi
1893
1894 fi
1895 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1896
1897 # We need awk for the "check" target.  The system "awk" is bad on
1898 # some platforms.
1899
1900
1901
1902
1903                     ac_config_headers="$ac_config_headers config.h interface.h"
1904
1905 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1906 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1907     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1908 if test "${enable_maintainer_mode+set}" = set; then
1909   enableval="$enable_maintainer_mode"
1910   USE_MAINTAINER_MODE=$enableval
1911 else
1912   USE_MAINTAINER_MODE=no
1913 fi;
1914   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1915 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1916
1917
1918 if test $USE_MAINTAINER_MODE = yes; then
1919   MAINTAINER_MODE_TRUE=
1920   MAINTAINER_MODE_FALSE='#'
1921 else
1922   MAINTAINER_MODE_TRUE='#'
1923   MAINTAINER_MODE_FALSE=
1924 fi
1925
1926   MAINT=$MAINTAINER_MODE_TRUE
1927
1928
1929
1930 SHELL=${CONFIG_SHELL-"/bin/sh"}
1931 WISH=${WISH-"wish"}
1932
1933 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1934 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1935 echo "grimblepritz" >grimble
1936 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1937         contains="./contains"
1938 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1939         contains=grep
1940 else
1941         contains="./contains"
1942 fi
1943 rm -f grimble
1944 case "$contains" in
1945 grep)   echo "$as_me:$LINENO: result: yes" >&5
1946 echo "${ECHO_T}yes" >&6
1947         ;;
1948 ./contains)
1949         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1950 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1951         cat >./contains <<'EOSS'
1952 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1953 EOSS
1954         chmod +x "./contains"
1955         ;;
1956 esac
1957
1958
1959 # Check for compiler options -- such as debug flags.
1960
1961 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1962 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1963 # Check whether --enable-debug or --disable-debug was given.
1964 if test "${enable_debug+set}" = set; then
1965   enableval="$enable_debug"
1966   timidity_cv_debug="yes"
1967 else
1968   timidity_cv_debug="no"
1969 fi;
1970 if test "x$timidity_cv_debug" = "xyes"; then
1971
1972 cat >>confdefs.h <<\_ACEOF
1973 #define DEBUG 1
1974 _ACEOF
1975
1976   CFLAGS=${CFLAGS-"-g"}
1977 fi
1978 if test "x$timidity_cv_debug" = "xno"; then
1979
1980 cat >>confdefs.h <<\_ACEOF
1981 #define NDEBUG 1
1982 _ACEOF
1983
1984 fi
1985 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1986 echo "${ECHO_T}$timidity_cv_debug" >&6
1987
1988 CFLAGS=${CFLAGS-"-O2"}
1989
1990 if test "x$with_x" = x; then
1991   with_x=yes
1992 else
1993   x_config_flag=yes
1994 fi
1995
1996 # Checking gcc environment
1997 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1998   LDFLAGS="$LDFLAGS -L${i}"
1999 done
2000 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2001   CPPFLAGS="$CPPFLAGS -I${i}"
2002 done
2003
2004 # add $prefix if specified.
2005 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2006   LDFLAGS="-L$prefix/lib $LDFLAGS"
2007   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2008   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2009 fi
2010
2011
2012 # Check whether --with-includes or --without-includes was given.
2013 if test "${with_includes+set}" = set; then
2014   withval="$with_includes"
2015    j=' '
2016     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2017       j="${j}-I${i} "
2018     done
2019     CPPFLAGS="$j$CPPFLAGS"
2020
2021 fi;
2022
2023
2024 # Check whether --with-libraries or --without-libraries was given.
2025 if test "${with_libraries+set}" = set; then
2026   withval="$with_libraries"
2027    j=' '
2028     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2029       j="${j}-L${i} "
2030     done
2031     LDFLAGS="$j$LDFLAGS"
2032
2033 fi;
2034
2035
2036
2037 # Check whether --with-default-path or --without-default-path was given.
2038 if test "${with_default_path+set}" = set; then
2039   withval="$with_default_path"
2040   pkgdatadir=$withval
2041 else
2042
2043    if test "x$prefix" != "xNONE"; then
2044       pkgdatadir='${prefix}/share/timidity'
2045    else
2046       pkgdatadir='/usr/local/share/timidity'
2047    fi
2048
2049 fi;
2050 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define DEFAULT_PATH "$tmpdefpath"
2054 _ACEOF
2055
2056
2057 cat >>confdefs.h <<\_ACEOF
2058 #define PKGDATADIR DEFAULT_PATH
2059 _ACEOF
2060
2061
2062
2063 # Check whether --with-module-dir or --without-module-dir was given.
2064 if test "${with_module_dir+set}" = set; then
2065   withval="$with_module_dir"
2066   pkglibdir=$withval
2067 else
2068
2069    if test "x$prefix" != "xNONE"; then
2070       pkglibdir='${prefix}/lib/timidity'
2071    else
2072       pkglibdir='/usr/local/lib/timidity'
2073    fi
2074
2075 fi;
2076 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PKGLIBDIR "$tmplibdir"
2080 _ACEOF
2081
2082
2083
2084 # Checks for programs.
2085
2086 # Check whether --with-lispdir or --without-lispdir was given.
2087 if test "${with_lispdir+set}" = set; then
2088   withval="$with_lispdir"
2089    lispdir="$withval"
2090    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2091 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2092    echo "$as_me:$LINENO: result: $lispdir" >&5
2093 echo "${ECHO_T}$lispdir" >&6
2094 else
2095
2096  # If set to t, that means we are running in a shell under Emacs.
2097  # If you have an Emacs named "t", then use the full path.
2098  test x"$EMACS" = xt && EMACS=
2099  for ac_prog in emacs xemacs
2100 do
2101   # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_EMACS+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test -n "$EMACS"; then
2109   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116   for ac_exec_ext in '' $ac_executable_extensions; do
2117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118     ac_cv_prog_EMACS="$ac_prog"
2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124
2125 fi
2126 fi
2127 EMACS=$ac_cv_prog_EMACS
2128 if test -n "$EMACS"; then
2129   echo "$as_me:$LINENO: result: $EMACS" >&5
2130 echo "${ECHO_T}$EMACS" >&6
2131 else
2132   echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2134 fi
2135
2136   test -n "$EMACS" && break
2137 done
2138 test -n "$EMACS" || EMACS="no"
2139
2140  if test $EMACS != "no"; then
2141    if test x${lispdir+set} != xset; then
2142      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2143 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2144 if test "${am_cv_lispdir+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2148   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2149   #  which is non-obvious for non-emacs users.
2150   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2151   #  emacsen earlier and avoid running this altogether.
2152   { (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
2153   ($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
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }
2157         am_cv_lispdir=`sed -n \
2158        -e 's,/$,,' \
2159        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2160        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2161        conftest.out`
2162        rm conftest.out
2163        if test -z "$am_cv_lispdir"; then
2164          am_cv_lispdir='${datadir}/emacs/site-lisp'
2165        fi
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2169 echo "${ECHO_T}$am_cv_lispdir" >&6
2170      lispdir="$am_cv_lispdir"
2171    fi
2172  fi
2173
2174 fi;
2175
2176
2177 ac_ext=c
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182 if test -n "$ac_tool_prefix"; then
2183   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test -n "$CC"; then
2191   ac_cv_prog_CC="$CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202     break 2
2203   fi
2204 done
2205 done
2206
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211   echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214   echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2216 fi
2217
2218 fi
2219 if test -z "$ac_cv_prog_CC"; then
2220   ac_ct_CC=$CC
2221   # Extract the first word of "gcc", so it can be a program name with args.
2222 set dummy gcc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$ac_ct_CC"; then
2229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238     ac_cv_prog_ac_ct_CC="gcc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 fi
2246 fi
2247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248 if test -n "$ac_ct_CC"; then
2249   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250 echo "${ECHO_T}$ac_ct_CC" >&6
2251 else
2252   echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2254 fi
2255
2256   CC=$ac_ct_CC
2257 else
2258   CC="$ac_cv_prog_CC"
2259 fi
2260
2261 if test -z "$CC"; then
2262   if test -n "$ac_tool_prefix"; then
2263   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2264 set dummy ${ac_tool_prefix}cc; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   if test -n "$CC"; then
2271   ac_cv_prog_CC="$CC" # Let the user override the test.
2272 else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280     ac_cv_prog_CC="${ac_tool_prefix}cc"
2281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282     break 2
2283   fi
2284 done
2285 done
2286
2287 fi
2288 fi
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291   echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6
2293 else
2294   echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2296 fi
2297
2298 fi
2299 if test -z "$ac_cv_prog_CC"; then
2300   ac_ct_CC=$CC
2301   # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$ac_ct_CC"; then
2309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318     ac_cv_prog_ac_ct_CC="cc"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324
2325 fi
2326 fi
2327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2328 if test -n "$ac_ct_CC"; then
2329   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2330 echo "${ECHO_T}$ac_ct_CC" >&6
2331 else
2332   echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336   CC=$ac_ct_CC
2337 else
2338   CC="$ac_cv_prog_CC"
2339 fi
2340
2341 fi
2342 if test -z "$CC"; then
2343   # Extract the first word of "cc", so it can be a program name with args.
2344 set dummy cc; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_prog_CC+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$CC"; then
2351   ac_cv_prog_CC="$CC" # Let the user override the test.
2352 else
2353   ac_prog_rejected=no
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2362        ac_prog_rejected=yes
2363        continue
2364      fi
2365     ac_cv_prog_CC="cc"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 if test $ac_prog_rejected = yes; then
2373   # We found a bogon in the path, so make sure we never use it.
2374   set dummy $ac_cv_prog_CC
2375   shift
2376   if test $# != 0; then
2377     # We chose a different compiler from the bogus one.
2378     # However, it has the same basename, so the bogon will be chosen
2379     # first if we set CC to just the basename; use the full file name.
2380     shift
2381     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382   fi
2383 fi
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388   echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6
2390 else
2391   echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2393 fi
2394
2395 fi
2396 if test -z "$CC"; then
2397   if test -n "$ac_tool_prefix"; then
2398   for ac_prog in cl
2399   do
2400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$CC"; then
2408   ac_cv_prog_CC="$CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428   echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435     test -n "$CC" && break
2436   done
2437 fi
2438 if test -z "$CC"; then
2439   ac_ct_CC=$CC
2440   for ac_prog in cl
2441 do
2442   # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$ac_ct_CC"; then
2450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_ac_ct_CC="$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 echo "${ECHO_T}$ac_ct_CC" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477   test -n "$ac_ct_CC" && break
2478 done
2479
2480   CC=$ac_ct_CC
2481 fi
2482
2483 fi
2484
2485
2486 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2487 See \`config.log' for more details." >&5
2488 echo "$as_me: error: no acceptable C compiler found in \$PATH
2489 See \`config.log' for more details." >&2;}
2490    { (exit 1); exit 1; }; }
2491
2492 # Provide some information about the compiler.
2493 echo "$as_me:$LINENO:" \
2494      "checking for C compiler version" >&5
2495 ac_compiler=`set X $ac_compile; echo $2`
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2497   (eval $ac_compiler --version </dev/null >&5) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }
2501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2502   (eval $ac_compiler -v </dev/null >&5) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }
2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2507   (eval $ac_compiler -V </dev/null >&5) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }
2511
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 ac_clean_files_save=$ac_clean_files
2528 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2529 # Try to create an executable without -o first, disregard a.out.
2530 # It will help us diagnose broken compilers, and finding out an intuition
2531 # of exeext.
2532 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2533 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2534 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2536   (eval $ac_link_default) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; then
2540   # Find the output, starting from the most likely.  This scheme is
2541 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2542 # resort.
2543
2544 # Be careful to initialize this variable, since it used to be cached.
2545 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2546 ac_cv_exeext=
2547 # b.out is created by i960 compilers.
2548 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2549 do
2550   test -f "$ac_file" || continue
2551   case $ac_file in
2552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2553         ;;
2554     conftest.$ac_ext )
2555         # This is the source file.
2556         ;;
2557     [ab].out )
2558         # We found the default executable, but exeext='' is most
2559         # certainly right.
2560         break;;
2561     *.* )
2562         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563         # FIXME: I believe we export ac_cv_exeext for Libtool,
2564         # but it would be cool to find out if it's true.  Does anybody
2565         # maintain Libtool? --akim.
2566         export ac_cv_exeext
2567         break;;
2568     * )
2569         break;;
2570   esac
2571 done
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&2;}
2580    { (exit 77); exit 77; }; }
2581 fi
2582
2583 ac_exeext=$ac_cv_exeext
2584 echo "$as_me:$LINENO: result: $ac_file" >&5
2585 echo "${ECHO_T}$ac_file" >&6
2586
2587 # Check the compiler produces executables we can run.  If not, either
2588 # the compiler is broken, or we cross compile.
2589 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2592 # If not cross compiling, check that we can run a simple program.
2593 if test "$cross_compiling" != yes; then
2594   if { ac_try='./$ac_file'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600     cross_compiling=no
2601   else
2602     if test "$cross_compiling" = maybe; then
2603         cross_compiling=yes
2604     else
2605         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611    { (exit 1); exit 1; }; }
2612     fi
2613   fi
2614 fi
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2617
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check the compiler produces executables we can run.  If not, either
2621 # the compiler is broken, or we cross compile.
2622 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2624 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6
2626
2627 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2630   (eval $ac_link) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; then
2634   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2637 # `rm'.
2638 for ac_file in conftest.exe conftest conftest.*; do
2639   test -f "$ac_file" || continue
2640   case $ac_file in
2641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2642     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643           export ac_cv_exeext
2644           break;;
2645     * ) break;;
2646   esac
2647 done
2648 else
2649   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&2;}
2653    { (exit 1); exit 1; }; }
2654 fi
2655
2656 rm -f conftest$ac_cv_exeext
2657 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2658 echo "${ECHO_T}$ac_cv_exeext" >&6
2659
2660 rm -f conftest.$ac_ext
2661 EXEEXT=$ac_cv_exeext
2662 ac_exeext=$EXEEXT
2663 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2665 if test "${ac_cv_objext+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.o conftest.obj
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685   (eval $ac_compile) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; then
2689   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2690   case $ac_file in
2691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2692     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2693        break;;
2694   esac
2695 done
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&2;}
2704    { (exit 1); exit 1; }; }
2705 fi
2706
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 fi
2709 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2710 echo "${ECHO_T}$ac_cv_objext" >&6
2711 OBJEXT=$ac_cv_objext
2712 ac_objext=$OBJEXT
2713 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h.  */
2724
2725 int
2726 main ()
2727 {
2728 #ifndef __GNUC__
2729        choke me
2730 #endif
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag"
2746                          || test ! -s conftest.err'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   ac_compiler_gnu=yes
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 ac_compiler_gnu=no
2764 fi
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2767
2768 fi
2769 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2770 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2771 GCC=`test $ac_compiler_gnu = yes && echo yes`
2772 ac_test_CFLAGS=${CFLAGS+set}
2773 ac_save_CFLAGS=$CFLAGS
2774 CFLAGS="-g"
2775 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2777 if test "${ac_cv_prog_cc_g+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797   (eval $ac_compile) 2>conftest.er1
2798   ac_status=$?
2799   grep -v '^ *+' conftest.er1 >conftest.err
2800   rm -f conftest.er1
2801   cat conftest.err >&5
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } &&
2804          { ac_try='test -z "$ac_c_werror_flag"
2805                          || test ! -s conftest.err'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; } &&
2811          { ac_try='test -s conftest.$ac_objext'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   ac_cv_prog_cc_g=yes
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 ac_cv_prog_cc_g=no
2823 fi
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825 fi
2826 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2827 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2828 if test "$ac_test_CFLAGS" = set; then
2829   CFLAGS=$ac_save_CFLAGS
2830 elif test $ac_cv_prog_cc_g = yes; then
2831   if test "$GCC" = yes; then
2832     CFLAGS="-g -O2"
2833   else
2834     CFLAGS="-g"
2835   fi
2836 else
2837   if test "$GCC" = yes; then
2838     CFLAGS="-O2"
2839   else
2840     CFLAGS=
2841   fi
2842 fi
2843 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   ac_cv_prog_cc_stdc=no
2849 ac_save_CC=$CC
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h.  */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h.  */
2856 #include <stdarg.h>
2857 #include <stdio.h>
2858 #include <sys/types.h>
2859 #include <sys/stat.h>
2860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2861 struct buf { int x; };
2862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863 static char *e (p, i)
2864      char **p;
2865      int i;
2866 {
2867   return p[i];
2868 }
2869 static char *f (char * (*g) (char **, int), char **p, ...)
2870 {
2871   char *s;
2872   va_list v;
2873   va_start (v,p);
2874   s = g (p, va_arg (v,int));
2875   va_end (v);
2876   return s;
2877 }
2878
2879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2880    function prototypes and stuff, but not '\xHH' hex character constants.
2881    These don't provoke an error unfortunately, instead are silently treated
2882    as 'x'.  The following induces an error, until -std1 is added to get
2883    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2884    array size at least.  It's necessary to write '\x00'==0 to get something
2885    that's true only with -std1.  */
2886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
2888 int test (int i, double x);
2889 struct s1 {int (*f) (int a);};
2890 struct s2 {int (*f) (double a);};
2891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2892 int argc;
2893 char **argv;
2894 int
2895 main ()
2896 {
2897 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2898   ;
2899   return 0;
2900 }
2901 _ACEOF
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX                   -qlanglvl=ansi
2905 # Ultrix and OSF/1      -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2908 # SVR4                  -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910 do
2911   CC="$ac_save_CC $ac_arg"
2912   rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914   (eval $ac_compile) 2>conftest.er1
2915   ac_status=$?
2916   grep -v '^ *+' conftest.er1 >conftest.err
2917   rm -f conftest.er1
2918   cat conftest.err >&5
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); } &&
2921          { ac_try='test -z "$ac_c_werror_flag"
2922                          || test ! -s conftest.err'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; } &&
2928          { ac_try='test -s conftest.$ac_objext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   ac_cv_prog_cc_stdc=$ac_arg
2935 break
2936 else
2937   echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 fi
2941 rm -f conftest.err conftest.$ac_objext
2942 done
2943 rm -f conftest.$ac_ext conftest.$ac_objext
2944 CC=$ac_save_CC
2945
2946 fi
2947
2948 case "x$ac_cv_prog_cc_stdc" in
2949   x|xno)
2950     echo "$as_me:$LINENO: result: none needed" >&5
2951 echo "${ECHO_T}none needed" >&6 ;;
2952   *)
2953     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2954 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2955     CC="$CC $ac_cv_prog_cc_stdc" ;;
2956 esac
2957
2958 # Some people use a C++ compiler to compile C.  Since we use `exit',
2959 # in C++ we need to declare it.  In case someone uses the same compiler
2960 # for both compiling C and C++ we need to have the C++ compiler decide
2961 # the declaration of exit, since it's the most demanding environment.
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #ifndef __cplusplus
2964   choke me
2965 #endif
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969   (eval $ac_compile) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_c_werror_flag"
2977                          || test ! -s conftest.err'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; } &&
2983          { ac_try='test -s conftest.$ac_objext'
2984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; }; then
2989   for ac_declaration in \
2990    '' \
2991    'extern "C" void std::exit (int) throw (); using std::exit;' \
2992    'extern "C" void std::exit (int); using std::exit;' \
2993    'extern "C" void exit (int) throw ();' \
2994    'extern "C" void exit (int);' \
2995    'void exit (int);'
2996 do
2997   cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003 $ac_declaration
3004 #include <stdlib.h>
3005 int
3006 main ()
3007 {
3008 exit (42);
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015   (eval $ac_compile) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_c_werror_flag"
3023                          || test ! -s conftest.err'
3024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025   (eval $ac_try) 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; }; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 continue
3041 fi
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 $ac_declaration
3050 int
3051 main ()
3052 {
3053 exit (42);
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060   (eval $ac_compile) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"
3068                          || test ! -s conftest.err'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest.$ac_objext'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   break
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 fi
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3087 done
3088 rm -f conftest*
3089 if test -n "$ac_declaration"; then
3090   echo '#ifdef __cplusplus' >>confdefs.h
3091   echo $ac_declaration      >>confdefs.h
3092   echo '#endif'             >>confdefs.h
3093 fi
3094
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 DEPDIR="${am__leading_dot}deps"
3107
3108           ac_config_commands="$ac_config_commands depfiles"
3109
3110
3111 am_make=${MAKE-make}
3112 cat > confinc << 'END'
3113 am__doit:
3114         @echo done
3115 .PHONY: am__doit
3116 END
3117 # If we don't find an include directive, just comment out the code.
3118 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3119 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3120 am__include="#"
3121 am__quote=
3122 _am_result=none
3123 # First try GNU make style include.
3124 echo "include confinc" > confmf
3125 # We grep out `Entering directory' and `Leaving directory'
3126 # messages which can occur if `w' ends up in MAKEFLAGS.
3127 # In particular we don't look at `^make:' because GNU make might
3128 # be invoked under some other name (usually "gmake"), in which
3129 # case it prints its new name instead of `make'.
3130 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3131    am__include=include
3132    am__quote=
3133    _am_result=GNU
3134 fi
3135 # Now try BSD make style include.
3136 if test "$am__include" = "#"; then
3137    echo '.include "confinc"' > confmf
3138    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3139       am__include=.include
3140       am__quote="\""
3141       _am_result=BSD
3142    fi
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: result: $_am_result" >&5
3147 echo "${ECHO_T}$_am_result" >&6
3148 rm -f confinc confmf
3149
3150 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3151 if test "${enable_dependency_tracking+set}" = set; then
3152   enableval="$enable_dependency_tracking"
3153
3154 fi;
3155 if test "x$enable_dependency_tracking" != xno; then
3156   am_depcomp="$ac_aux_dir/depcomp"
3157   AMDEPBACKSLASH='\'
3158 fi
3159
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162   AMDEP_TRUE=
3163   AMDEP_FALSE='#'
3164 else
3165   AMDEP_TRUE='#'
3166   AMDEP_FALSE=
3167 fi
3168
3169
3170
3171
3172 depcc="$CC"   am_compiler_list=
3173
3174 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3175 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3176 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3180   # We make a subdir and do the tests there.  Otherwise we can end up
3181   # making bogus files that we don't know about and never remove.  For
3182   # instance it was reported that on HP-UX the gcc test will end up
3183   # making a dummy file named `D' -- because `-MD' means `put the output
3184   # in D'.
3185   mkdir conftest.dir
3186   # Copy depcomp to subdir because otherwise we won't find it if we're
3187   # using a relative directory.
3188   cp "$am_depcomp" conftest.dir
3189   cd conftest.dir
3190   # We will build objects and dependencies in a subdirectory because
3191   # it helps to detect inapplicable dependency modes.  For instance
3192   # both Tru64's cc and ICC support -MD to output dependencies as a
3193   # side effect of compilation, but ICC will put the dependencies in
3194   # the current directory while Tru64 will put them in the object
3195   # directory.
3196   mkdir sub
3197
3198   am_cv_CC_dependencies_compiler_type=none
3199   if test "$am_compiler_list" = ""; then
3200      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3201   fi
3202   for depmode in $am_compiler_list; do
3203     # Setup a source with many dependencies, because some compilers
3204     # like to wrap large dependency lists on column 80 (with \), and
3205     # we should not choose a depcomp mode which is confused by this.
3206     #
3207     # We need to recreate these files for each test, as the compiler may
3208     # overwrite some of them when testing with obscure command lines.
3209     # This happens at least with the AIX C compiler.
3210     : > sub/conftest.c
3211     for i in 1 2 3 4 5 6; do
3212       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3213       : > sub/conftst$i.h
3214     done
3215     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3216
3217     case $depmode in
3218     nosideeffect)
3219       # after this tag, mechanisms are not by side-effect, so they'll
3220       # only be used when explicitly requested
3221       if test "x$enable_dependency_tracking" = xyes; then
3222         continue
3223       else
3224         break
3225       fi
3226       ;;
3227     none) break ;;
3228     esac
3229     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230     # mode.  It turns out that the SunPro C++ compiler does not properly
3231     # handle `-M -o', and we need to detect this.
3232     if depmode=$depmode \
3233        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236          >/dev/null 2>conftest.err &&
3237        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240       # icc doesn't choke on unknown options, it will just issue warnings
3241       # (even with -Werror).  So we grep stderr for any message
3242       # that says an option was ignored.
3243       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3244         am_cv_CC_dependencies_compiler_type=$depmode
3245         break
3246       fi
3247     fi
3248   done
3249
3250   cd ..
3251   rm -rf conftest.dir
3252 else
3253   am_cv_CC_dependencies_compiler_type=none
3254 fi
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3260
3261
3262
3263 if
3264   test "x$enable_dependency_tracking" != xno \
3265   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266   am__fastdepCC_TRUE=
3267   am__fastdepCC_FALSE='#'
3268 else
3269   am__fastdepCC_TRUE='#'
3270   am__fastdepCC_FALSE=
3271 fi
3272
3273
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3281 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3282 # On Suns, sometimes $CPP names a directory.
3283 if test -n "$CPP" && test -d "$CPP"; then
3284   CPP=
3285 fi
3286 if test -z "$CPP"; then
3287   if test "${ac_cv_prog_CPP+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290       # Double quotes because CPP needs to be expanded
3291     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3292     do
3293       ac_preproc_ok=false
3294 for ac_c_preproc_warn_flag in '' yes
3295 do
3296   # Use a header file that comes with gcc, so configuring glibc
3297   # with a fresh cross-compiler works.
3298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3299   # <limits.h> exists even on freestanding compilers.
3300   # On the NeXT, cc -E runs the code through the compiler's parser,
3301   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3309 # include <limits.h>
3310 #else
3311 # include <assert.h>
3312 #endif
3313                      Syntax error
3314 _ACEOF
3315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null; then
3323   if test -s conftest.err; then
3324     ac_cpp_err=$ac_c_preproc_warn_flag
3325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326   else
3327     ac_cpp_err=
3328   fi
3329 else
3330   ac_cpp_err=yes
3331 fi
3332 if test -z "$ac_cpp_err"; then
3333   :
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338   # Broken: fails on valid input.
3339 continue
3340 fi
3341 rm -f conftest.err conftest.$ac_ext
3342
3343   # OK, works on sane cases.  Now check whether non-existent headers
3344   # can be detected and how.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #include <ac_nonexistent.h>
3352 _ACEOF
3353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } >/dev/null; then
3361   if test -s conftest.err; then
3362     ac_cpp_err=$ac_c_preproc_warn_flag
3363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3364   else
3365     ac_cpp_err=
3366   fi
3367 else
3368   ac_cpp_err=yes
3369 fi
3370 if test -z "$ac_cpp_err"; then
3371   # Broken: success on invalid input.
3372 continue
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Passes both tests.
3378 ac_preproc_ok=:
3379 break
3380 fi
3381 rm -f conftest.err conftest.$ac_ext
3382
3383 done
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then
3387   break
3388 fi
3389
3390     done
3391     ac_cv_prog_CPP=$CPP
3392
3393 fi
3394   CPP=$ac_cv_prog_CPP
3395 else
3396   ac_cv_prog_CPP=$CPP
3397 fi
3398 echo "$as_me:$LINENO: result: $CPP" >&5
3399 echo "${ECHO_T}$CPP" >&6
3400 ac_preproc_ok=false
3401 for ac_c_preproc_warn_flag in '' yes
3402 do
3403   # Use a header file that comes with gcc, so configuring glibc
3404   # with a fresh cross-compiler works.
3405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406   # <limits.h> exists even on freestanding compilers.
3407   # On the NeXT, cc -E runs the code through the compiler's parser,
3408   # not just through cpp. "Syntax error" is here to catch this case.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #ifdef __STDC__
3416 # include <limits.h>
3417 #else
3418 # include <assert.h>
3419 #endif
3420                      Syntax error
3421 _ACEOF
3422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } >/dev/null; then
3430   if test -s conftest.err; then
3431     ac_cpp_err=$ac_c_preproc_warn_flag
3432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433   else
3434     ac_cpp_err=
3435   fi
3436 else
3437   ac_cpp_err=yes
3438 fi
3439 if test -z "$ac_cpp_err"; then
3440   :
3441 else
3442   echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445   # Broken: fails on valid input.
3446 continue
3447 fi
3448 rm -f conftest.err conftest.$ac_ext
3449
3450   # OK, works on sane cases.  Now check whether non-existent headers
3451   # can be detected and how.
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 #include <ac_nonexistent.h>
3459 _ACEOF
3460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3462   ac_status=$?
3463   grep -v '^ *+' conftest.er1 >conftest.err
3464   rm -f conftest.er1
3465   cat conftest.err >&5
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } >/dev/null; then
3468   if test -s conftest.err; then
3469     ac_cpp_err=$ac_c_preproc_warn_flag
3470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471   else
3472     ac_cpp_err=
3473   fi
3474 else
3475   ac_cpp_err=yes
3476 fi
3477 if test -z "$ac_cpp_err"; then
3478   # Broken: success on invalid input.
3479 continue
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484   # Passes both tests.
3485 ac_preproc_ok=:
3486 break
3487 fi
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494   :
3495 else
3496   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 echo "$as_me:$LINENO: checking for egrep" >&5
3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3512 if test "${ac_cv_prog_egrep+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3516     then ac_cv_prog_egrep='grep -E'
3517     else ac_cv_prog_egrep='egrep'
3518     fi
3519 fi
3520 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3521 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3522  EGREP=$ac_cv_prog_egrep
3523
3524
3525 if test $ac_cv_c_compiler_gnu = yes; then
3526     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3527 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3528 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531     ac_pattern="Autoconf.*'x'"
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538 #include <sgtty.h>
3539 Autoconf TIOCGETP
3540 _ACEOF
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3543   ac_cv_prog_gcc_traditional=yes
3544 else
3545   ac_cv_prog_gcc_traditional=no
3546 fi
3547 rm -f conftest*
3548
3549
3550   if test $ac_cv_prog_gcc_traditional = no; then
3551     cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 #include <termio.h>
3558 Autoconf TCGETA
3559 _ACEOF
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3562   ac_cv_prog_gcc_traditional=yes
3563 fi
3564 rm -f conftest*
3565
3566   fi
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3569 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3570   if test $ac_cv_prog_gcc_traditional = yes; then
3571     CC="$CC -traditional"
3572   fi
3573 fi
3574
3575 # Find a good install program.  We prefer a C program (faster),
3576 # so one script is as good as another.  But avoid the broken or
3577 # incompatible versions:
3578 # SysV /etc/install, /usr/sbin/install
3579 # SunOS /usr/etc/install
3580 # IRIX /sbin/install
3581 # AIX /bin/install
3582 # AmigaOS /C/install, which installs bootblocks on floppy discs
3583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3586 # OS/2's system install, which has a completely different semantic
3587 # ./install, which can be erroneously created by make from ./install.sh.
3588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3590 if test -z "$INSTALL"; then
3591 if test "${ac_cv_path_install+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599   # Account for people who put trailing slashes in PATH elements.
3600 case $as_dir/ in
3601   ./ | .// | /cC/* | \
3602   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3603   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3604   /usr/ucb/* ) ;;
3605   *)
3606     # OSF1 and SCO ODT 3.0 have their own names for install.
3607     # Don't use installbsd from OSF since it installs stuff as root
3608     # by default.
3609     for ac_prog in ginstall scoinst install; do
3610       for ac_exec_ext in '' $ac_executable_extensions; do
3611         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3612           if test $ac_prog = install &&
3613             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3614             # AIX install.  It has an incompatible calling convention.
3615             :
3616           elif test $ac_prog = install &&
3617             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618             # program-specific install script used by HP pwplus--don't use.
3619             :
3620           else
3621             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3622             break 3
3623           fi
3624         fi
3625       done
3626     done
3627     ;;
3628 esac
3629 done
3630
3631
3632 fi
3633   if test "${ac_cv_path_install+set}" = set; then
3634     INSTALL=$ac_cv_path_install
3635   else
3636     # As a last resort, use the slow shell script.  We don't cache a
3637     # path for INSTALL within a source directory, because that will
3638     # break other packages using the cache if that directory is
3639     # removed, or if the path is relative.
3640     INSTALL=$ac_install_sh
3641   fi
3642 fi
3643 echo "$as_me:$LINENO: result: $INSTALL" >&5
3644 echo "${ECHO_T}$INSTALL" >&6
3645
3646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3647 # It thinks the first close brace ends the variable substitution.
3648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3649
3650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3651
3652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3653
3654 for ac_prog in gawk mawk nawk awk
3655 do
3656   # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 set dummy $ac_prog; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_prog_AWK+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   if test -n "$AWK"; then
3664   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_prog_AWK="$ac_prog"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680 fi
3681 fi
3682 AWK=$ac_cv_prog_AWK
3683 if test -n "$AWK"; then
3684   echo "$as_me:$LINENO: result: $AWK" >&5
3685 echo "${ECHO_T}$AWK" >&6
3686 else
3687   echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6
3689 fi
3690
3691   test -n "$AWK" && break
3692 done
3693
3694 if test -n "$ac_tool_prefix"; then
3695   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_RANLIB+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   if test -n "$RANLIB"; then
3703   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_exec_ext in '' $ac_executable_extensions; do
3711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717 done
3718
3719 fi
3720 fi
3721 RANLIB=$ac_cv_prog_RANLIB
3722 if test -n "$RANLIB"; then
3723   echo "$as_me:$LINENO: result: $RANLIB" >&5
3724 echo "${ECHO_T}$RANLIB" >&6
3725 else
3726   echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3728 fi
3729
3730 fi
3731 if test -z "$ac_cv_prog_RANLIB"; then
3732   ac_ct_RANLIB=$RANLIB
3733   # Extract the first word of "ranlib", so it can be a program name with args.
3734 set dummy ranlib; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if test -n "$ac_ct_RANLIB"; then
3741   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750     ac_cv_prog_ac_ct_RANLIB="ranlib"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755 done
3756
3757   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3758 fi
3759 fi
3760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3761 if test -n "$ac_ct_RANLIB"; then
3762   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3763 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3764 else
3765   echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769   RANLIB=$ac_ct_RANLIB
3770 else
3771   RANLIB="$ac_cv_prog_RANLIB"
3772 fi
3773
3774 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3776 LN_S=$as_ln_s
3777 if test "$LN_S" = "ln -s"; then
3778   echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6
3780 else
3781   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3782 echo "${ECHO_T}no, using $LN_S" >&6
3783 fi
3784
3785 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3786 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3787 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3788 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   cat > conftest.$ac_ext <<EOF
3792 int main() {return 0;}
3793 EOF
3794 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3795     if test -s conftest.out; then
3796         eval "timidity_cv_ccoption_$ac_ccoption=no"
3797     else
3798         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3799     fi
3800 else
3801     eval "timidity_cv_ccoption_$ac_ccoption=no"
3802 fi
3803
3804 fi
3805
3806 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3807   echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6
3809
3810 else
3811   echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813
3814 fi
3815
3816
3817 # Checks for target dependencies
3818
3819
3820 # Check whether --with-elf or --without-elf was given.
3821 if test "${with_elf+set}" = set; then
3822   withval="$with_elf"
3823    ELFFORMAT=$withval
3824 else
3825    ELFFORMAT="yes"
3826 fi;
3827
3828
3829 # Check whether --with-simd or --without-simd was given.
3830 if test "${with_simd+set}" = set; then
3831   withval="$with_simd"
3832    SIMD=$withval
3833 else
3834    SIMD="no"
3835 fi;
3836
3837 case "$target" in
3838   *-*-hpux*)
3839     EXTRADEFS="-DHPUX"
3840     test -n "$SHLD" || SHLD="ld -b"
3841     so="sl"
3842     ;;
3843   *-sgi-irix*)
3844         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3845     test -n "$SHLD" || SHLD="cc -shared -all"
3846     so="so"
3847     ;;
3848   *-*-netbsd*)
3849     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3850     so="so"
3851     ;;
3852
3853   *-*-freebsd2*)
3854         test -n "$SHLD" || SHLD="ld -Bshareable"
3855     so="so"
3856     ;;
3857   *-*-freebsd*)
3858     if test "$ELFFORMAT" = yes; then
3859         test -n "$SHLD" || SHLD="ld -Bshareable"
3860     else
3861         SHCFLAGS=-aou
3862         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3863         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3864     fi
3865         so="so"
3866     ;;
3867
3868 #  *-*-freebsd*)
3869 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3870 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3871 #    so="so"
3872 #  ;;
3873
3874   *-*-cygwin*)
3875     EXTRADEFS="-D__W32__"
3876     # ??
3877     case "x${CC} " in
3878       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3879       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3880       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3881       *) test -n "$SHLD" || SHLD="unknown" ;;
3882     esac
3883     so="dll"
3884     CYGNUS=yes
3885     lib_user32_test=-luser32
3886     ;;
3887   *-*-mingw*)
3888     EXTRADEFS="-D__W32__"
3889     # ??
3890     case "x${CC} " in
3891       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3892       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3893       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3894       *) test -n "$SHLD" || SHLD="unknown" ;;
3895     esac
3896     so="dll"
3897     MINGW=yes
3898     lib_user32_test=-luser32
3899     ;;
3900   *-dec-*)
3901     EXTRADEFS="-DDEC"
3902     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3903     so="so"
3904     ;;
3905   *-*-solaris*)
3906     EXTRADEFS="-DSOLARIS"
3907     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3908     so="so"
3909     ;;
3910   *-*-nextstep*)
3911     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3912     so="so"
3913     ;;
3914   *-*-darwin*)
3915     if test "x$SIMD" = "xyes"; then
3916
3917 cat >>confdefs.h <<\_ACEOF
3918 #define USE_ALTIVEC 1
3919 _ACEOF
3920
3921        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3922        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3923     else
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define USE_ALTIVEC 0
3927 _ACEOF
3928
3929     fi
3930     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3931     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3932     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3933     so="bundle"
3934     ;;
3935   *)
3936     test -n "$SHLD" || \
3937       if test "x$GCC" = xyes; then
3938         SHLD="$CC -shared"
3939       else
3940         SHLD="ld -Bdynamic -G"
3941       fi
3942     so="so"
3943     ;;
3944 esac
3945
3946
3947 # Checks for libraries.
3948
3949 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3950 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3951 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-lm  $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962
3963 /* Override any gcc2 internal prototype to avoid an error.  */
3964 #ifdef __cplusplus
3965 extern "C"
3966 #endif
3967 /* We use char because int might match the return type of a gcc2
3968    builtin and then its argument prototype would still apply.  */
3969 char sqrt ();
3970 int
3971 main ()
3972 {
3973 sqrt ();
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980   (eval $ac_link) 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); } &&
3987          { ac_try='test -z "$ac_c_werror_flag"
3988                          || test ! -s conftest.err'
3989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990   (eval $ac_try) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; } &&
3994          { ac_try='test -s conftest$ac_exeext'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; }; then
4000   ac_cv_lib_m_sqrt=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ac_cv_lib_m_sqrt=no
4006 fi
4007 rm -f conftest.err conftest.$ac_objext \
4008       conftest$ac_exeext conftest.$ac_ext
4009 LIBS=$ac_check_lib_save_LIBS
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4012 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4013 if test $ac_cv_lib_m_sqrt = yes; then
4014   cat >>confdefs.h <<_ACEOF
4015 #define HAVE_LIBM 1
4016 _ACEOF
4017
4018   LIBS="-lm $LIBS"
4019
4020 fi
4021
4022
4023 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4024 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4025 if test "${ac_cv_lib_socket_socket+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   ac_check_lib_save_LIBS=$LIBS
4029 LIBS="-lsocket  $LIBS"
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 /* Override any gcc2 internal prototype to avoid an error.  */
4038 #ifdef __cplusplus
4039 extern "C"
4040 #endif
4041 /* We use char because int might match the return type of a gcc2
4042    builtin and then its argument prototype would still apply.  */
4043 char socket ();
4044 int
4045 main ()
4046 {
4047 socket ();
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054   (eval $ac_link) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag"
4062                          || test ! -s conftest.err'
4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; } &&
4068          { ac_try='test -s conftest$ac_exeext'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   ac_cv_lib_socket_socket=yes
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 ac_cv_lib_socket_socket=no
4080 fi
4081 rm -f conftest.err conftest.$ac_objext \
4082       conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4086 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4087 if test $ac_cv_lib_socket_socket = yes; then
4088   cat >>confdefs.h <<_ACEOF
4089 #define HAVE_LIBSOCKET 1
4090 _ACEOF
4091
4092   LIBS="-lsocket $LIBS"
4093
4094 fi
4095
4096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_check_lib_save_LIBS=$LIBS
4102 LIBS="-ldl  $LIBS"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109
4110 /* Override any gcc2 internal prototype to avoid an error.  */
4111 #ifdef __cplusplus
4112 extern "C"
4113 #endif
4114 /* We use char because int might match the return type of a gcc2
4115    builtin and then its argument prototype would still apply.  */
4116 char dlopen ();
4117 int
4118 main ()
4119 {
4120 dlopen ();
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127   (eval $ac_link) 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_c_werror_flag"
4135                          || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest$ac_exeext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ac_cv_lib_dl_dlopen=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_cv_lib_dl_dlopen=no
4153 fi
4154 rm -f conftest.err conftest.$ac_objext \
4155       conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4157 fi
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4160 if test $ac_cv_lib_dl_dlopen = yes; then
4161   lib_dl_opt=-ldl
4162 fi
4163
4164 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4165 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4166 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   ac_check_lib_save_LIBS=$LIBS
4170 LIBS="-lobjc  $LIBS"
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177
4178 /* Override any gcc2 internal prototype to avoid an error.  */
4179 #ifdef __cplusplus
4180 extern "C"
4181 #endif
4182 /* We use char because int might match the return type of a gcc2
4183    builtin and then its argument prototype would still apply.  */
4184 char NSLinkModule ();
4185 int
4186 main ()
4187 {
4188 NSLinkModule ();
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -z "$ac_c_werror_flag"
4203                          || test ! -s conftest.err'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest$ac_exeext'
4210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_cv_lib_objc_NSLinkModule=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ac_cv_lib_objc_NSLinkModule=no
4221 fi
4222 rm -f conftest.err conftest.$ac_objext \
4223       conftest$ac_exeext conftest.$ac_ext
4224 LIBS=$ac_check_lib_save_LIBS
4225 fi
4226 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4227 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4228 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4229   lib_dl_opt=-lobjc
4230 fi
4231  # Mac OS X need this.
4232
4233 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4234 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4235 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   ac_check_lib_save_LIBS=$LIBS
4239 LIBS="-lxpg4  $LIBS"
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246
4247 /* Override any gcc2 internal prototype to avoid an error.  */
4248 #ifdef __cplusplus
4249 extern "C"
4250 #endif
4251 /* We use char because int might match the return type of a gcc2
4252    builtin and then its argument prototype would still apply.  */
4253 char setlocale ();
4254 int
4255 main ()
4256 {
4257 setlocale ();
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264   (eval $ac_link) 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -z "$ac_c_werror_flag"
4272                          || test ! -s conftest.err'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest$ac_exeext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_cv_lib_xpg4_setlocale=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 ac_cv_lib_xpg4_setlocale=no
4290 fi
4291 rm -f conftest.err conftest.$ac_objext \
4292       conftest$ac_exeext conftest.$ac_ext
4293 LIBS=$ac_check_lib_save_LIBS
4294 fi
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4296 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4297 if test $ac_cv_lib_xpg4_setlocale = yes; then
4298   cat >>confdefs.h <<_ACEOF
4299 #define HAVE_LIBXPG4 1
4300 _ACEOF
4301
4302   LIBS="-lxpg4 $LIBS"
4303
4304 fi
4305  # Mac OS X (and maybe NetBSD) need this.
4306
4307 for ac_func in gethostbyname
4308 do
4309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4310 echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4312 if eval "test \"\${$as_ac_var+set}\" = set"; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4323 #define $ac_func innocuous_$ac_func
4324
4325 /* System header to define __stub macros and hopefully few prototypes,
4326     which can conflict with char $ac_func (); below.
4327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328     <limits.h> exists even on freestanding compilers.  */
4329
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335
4336 #undef $ac_func
4337
4338 /* Override any gcc2 internal prototype to avoid an error.  */
4339 #ifdef __cplusplus
4340 extern "C"
4341 {
4342 #endif
4343 /* We use char because int might match the return type of a gcc2
4344    builtin and then its argument prototype would still apply.  */
4345 char $ac_func ();
4346 /* The GNU C library defines this for functions which it implements
4347     to always fail with ENOSYS.  Some functions are actually named
4348     something starting with __ and the normal name is an alias.  */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4350 choke me
4351 #else
4352 char (*f) () = $ac_func;
4353 #endif
4354 #ifdef __cplusplus
4355 }
4356 #endif
4357
4358 int
4359 main ()
4360 {
4361 return f != $ac_func;
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368   (eval $ac_link) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"
4376                          || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest$ac_exeext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   eval "$as_ac_var=yes"
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 eval "$as_ac_var=no"
4394 fi
4395 rm -f conftest.err conftest.$ac_objext \
4396       conftest$ac_exeext conftest.$ac_ext
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401   cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 else
4406
4407 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4408 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4409 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   ac_check_lib_save_LIBS=$LIBS
4413 LIBS="-lnsl  $LIBS"
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420
4421 /* Override any gcc2 internal prototype to avoid an error.  */
4422 #ifdef __cplusplus
4423 extern "C"
4424 #endif
4425 /* We use char because int might match the return type of a gcc2
4426    builtin and then its argument prototype would still apply.  */
4427 char gethostbyname ();
4428 int
4429 main ()
4430 {
4431 gethostbyname ();
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438   (eval $ac_link) 2>conftest.er1
4439   ac_status=$?
4440   grep -v '^ *+' conftest.er1 >conftest.err
4441   rm -f conftest.er1
4442   cat conftest.err >&5
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } &&
4445          { ac_try='test -z "$ac_c_werror_flag"
4446                          || test ! -s conftest.err'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest$ac_exeext'
4453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454   (eval $ac_try) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   ac_cv_lib_nsl_gethostbyname=yes
4459 else
4460   echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 ac_cv_lib_nsl_gethostbyname=no
4464 fi
4465 rm -f conftest.err conftest.$ac_objext \
4466       conftest$ac_exeext conftest.$ac_ext
4467 LIBS=$ac_check_lib_save_LIBS
4468 fi
4469 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4472   cat >>confdefs.h <<_ACEOF
4473 #define HAVE_LIBNSL 1
4474 _ACEOF
4475
4476   LIBS="-lnsl $LIBS"
4477
4478 fi
4479
4480 fi
4481 done
4482
4483 echo "$as_me:$LINENO: checking for X" >&5
4484 echo $ECHO_N "checking for X... $ECHO_C" >&6
4485
4486
4487 # Check whether --with-x or --without-x was given.
4488 if test "${with_x+set}" = set; then
4489   withval="$with_x"
4490
4491 fi;
4492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4493 if test "x$with_x" = xno; then
4494   # The user explicitly disabled X.
4495   have_x=disabled
4496 else
4497   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4498     # Both variables are already set.
4499     have_x=yes
4500   else
4501     if test "${ac_cv_have_x+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   # One or both of the vars are not set, and there is no cached value.
4505 ac_x_includes=no ac_x_libraries=no
4506 rm -fr conftest.dir
4507 if mkdir conftest.dir; then
4508   cd conftest.dir
4509   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4510   cat >Imakefile <<'_ACEOF'
4511 acfindx:
4512         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4513 _ACEOF
4514   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4515     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4516     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4517     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4518     for ac_extension in a so sl; do
4519       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4520          test -f $ac_im_libdir/libX11.$ac_extension; then
4521         ac_im_usrlibdir=$ac_im_libdir; break
4522       fi
4523     done
4524     # Screen out bogus values from the imake configuration.  They are
4525     # bogus both because they are the default anyway, and because
4526     # using them would break gcc on systems where it needs fixed includes.
4527     case $ac_im_incroot in
4528         /usr/include) ;;
4529         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4530     esac
4531     case $ac_im_usrlibdir in
4532         /usr/lib | /lib) ;;
4533         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4534     esac
4535   fi
4536   cd ..
4537   rm -fr conftest.dir
4538 fi
4539
4540 # Standard set of common directories for X headers.
4541 # Check X11 before X11Rn because it is often a symlink to the current release.
4542 ac_x_header_dirs='
4543 /usr/X11/include
4544 /usr/X11R6/include
4545 /usr/X11R5/include
4546 /usr/X11R4/include
4547
4548 /usr/include/X11
4549 /usr/include/X11R6
4550 /usr/include/X11R5
4551 /usr/include/X11R4
4552
4553 /usr/local/X11/include
4554 /usr/local/X11R6/include
4555 /usr/local/X11R5/include
4556 /usr/local/X11R4/include
4557
4558 /usr/local/include/X11
4559 /usr/local/include/X11R6
4560 /usr/local/include/X11R5
4561 /usr/local/include/X11R4
4562
4563 /usr/X386/include
4564 /usr/x386/include
4565 /usr/XFree86/include/X11
4566
4567 /usr/include
4568 /usr/local/include
4569 /usr/unsupported/include
4570 /usr/athena/include
4571 /usr/local/x11r5/include
4572 /usr/lpp/Xamples/include
4573
4574 /usr/openwin/include
4575 /usr/openwin/share/include'
4576
4577 if test "$ac_x_includes" = no; then
4578   # Guess where to find include files, by looking for Intrinsic.h.
4579   # First, try using that file with no special directory specified.
4580   cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 #include <X11/Intrinsic.h>
4587 _ACEOF
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } >/dev/null; then
4596   if test -s conftest.err; then
4597     ac_cpp_err=$ac_c_preproc_warn_flag
4598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4599   else
4600     ac_cpp_err=
4601   fi
4602 else
4603   ac_cpp_err=yes
4604 fi
4605 if test -z "$ac_cpp_err"; then
4606   # We can compile using X headers with no special include directory.
4607 ac_x_includes=
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612   for ac_dir in $ac_x_header_dirs; do
4613   if test -r "$ac_dir/X11/Intrinsic.h"; then
4614     ac_x_includes=$ac_dir
4615     break
4616   fi
4617 done
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620 fi # $ac_x_includes = no
4621
4622 if test "$ac_x_libraries" = no; then
4623   # Check for the libraries.
4624   # See if we find them without any special options.
4625   # Don't add to $LIBS permanently.
4626   ac_save_LIBS=$LIBS
4627   LIBS="-lXt $LIBS"
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <X11/Intrinsic.h>
4635 int
4636 main ()
4637 {
4638 XtMalloc (0)
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext conftest$ac_exeext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645   (eval $ac_link) 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_c_werror_flag"
4653                          || test ! -s conftest.err'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; } &&
4659          { ac_try='test -s conftest$ac_exeext'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; }; then
4665   LIBS=$ac_save_LIBS
4666 # We can link X programs with no special library path.
4667 ac_x_libraries=
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 LIBS=$ac_save_LIBS
4673 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4674 do
4675   # Don't even attempt the hair of trying to link an X program!
4676   for ac_extension in a so sl; do
4677     if test -r $ac_dir/libXt.$ac_extension; then
4678       ac_x_libraries=$ac_dir
4679       break 2
4680     fi
4681   done
4682 done
4683 fi
4684 rm -f conftest.err conftest.$ac_objext \
4685       conftest$ac_exeext conftest.$ac_ext
4686 fi # $ac_x_libraries = no
4687
4688 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4689   # Didn't find X anywhere.  Cache the known absence of X.
4690   ac_cv_have_x="have_x=no"
4691 else
4692   # Record where we found X for the cache.
4693   ac_cv_have_x="have_x=yes \
4694                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4695 fi
4696 fi
4697
4698   fi
4699   eval "$ac_cv_have_x"
4700 fi # $with_x != no
4701
4702 if test "$have_x" != yes; then
4703   echo "$as_me:$LINENO: result: $have_x" >&5
4704 echo "${ECHO_T}$have_x" >&6
4705   no_x=yes
4706 else
4707   # If each of the values was on the command line, it overrides each guess.
4708   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4709   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4710   # Update the cache value to reflect the command line values.
4711   ac_cv_have_x="have_x=yes \
4712                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4713   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4714 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4715 fi
4716
4717 if test "$no_x" = yes; then
4718   # Not all programs may use this symbol, but it does not hurt to define it.
4719
4720 cat >>confdefs.h <<\_ACEOF
4721 #define X_DISPLAY_MISSING 1
4722 _ACEOF
4723
4724   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4725 else
4726   if test -n "$x_includes"; then
4727     X_CFLAGS="$X_CFLAGS -I$x_includes"
4728   fi
4729
4730   # It would also be nice to do this for all -L options, not just this one.
4731   if test -n "$x_libraries"; then
4732     X_LIBS="$X_LIBS -L$x_libraries"
4733     # For Solaris; some versions of Sun CC require a space after -R and
4734     # others require no space.  Words are not sufficient . . . .
4735     case `(uname -sr) 2>/dev/null` in
4736     "SunOS 5"*)
4737       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4738 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4739       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4740       cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746
4747 int
4748 main ()
4749 {
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757   (eval $ac_link) 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } &&
4764          { ac_try='test -z "$ac_c_werror_flag"
4765                          || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest$ac_exeext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   ac_R_nospace=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_R_nospace=no
4783 fi
4784 rm -f conftest.err conftest.$ac_objext \
4785       conftest$ac_exeext conftest.$ac_ext
4786       if test $ac_R_nospace = yes; then
4787         echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789         X_LIBS="$X_LIBS -R$x_libraries"
4790       else
4791         LIBS="$ac_xsave_LIBS -R $x_libraries"
4792         cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809   (eval $ac_link) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_c_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest$ac_exeext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   ac_R_space=yes
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_R_space=no
4835 fi
4836 rm -f conftest.err conftest.$ac_objext \
4837       conftest$ac_exeext conftest.$ac_ext
4838         if test $ac_R_space = yes; then
4839           echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4841           X_LIBS="$X_LIBS -R $x_libraries"
4842         else
4843           echo "$as_me:$LINENO: result: neither works" >&5
4844 echo "${ECHO_T}neither works" >&6
4845         fi
4846       fi
4847       LIBS=$ac_xsave_LIBS
4848     esac
4849   fi
4850
4851   # Check for system-dependent libraries X programs must link with.
4852   # Do this before checking for the system-independent R6 libraries
4853   # (-lICE), since we may need -lsocket or whatever for X linking.
4854
4855   if test "$ISC" = yes; then
4856     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4857   else
4858     # Martyn Johnson says this is needed for Ultrix, if the X
4859     # libraries were built with DECnet support.  And Karl Berry says
4860     # the Alpha needs dnet_stub (dnet does not exist).
4861     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4862     cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 /* Override any gcc2 internal prototype to avoid an error.  */
4870 #ifdef __cplusplus
4871 extern "C"
4872 #endif
4873 /* We use char because int might match the return type of a gcc2
4874    builtin and then its argument prototype would still apply.  */
4875 char XOpenDisplay ();
4876 int
4877 main ()
4878 {
4879 XOpenDisplay ();
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   :
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4912 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   ac_check_lib_save_LIBS=$LIBS
4917 LIBS="-ldnet  $LIBS"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924
4925 /* Override any gcc2 internal prototype to avoid an error.  */
4926 #ifdef __cplusplus
4927 extern "C"
4928 #endif
4929 /* We use char because int might match the return type of a gcc2
4930    builtin and then its argument prototype would still apply.  */
4931 char dnet_ntoa ();
4932 int
4933 main ()
4934 {
4935 dnet_ntoa ();
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942   (eval $ac_link) 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -z "$ac_c_werror_flag"
4950                          || test ! -s conftest.err'
4951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952   (eval $ac_try) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); }; } &&
4956          { ac_try='test -s conftest$ac_exeext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_lib_dnet_dnet_ntoa=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_lib_dnet_dnet_ntoa=no
4968 fi
4969 rm -f conftest.err conftest.$ac_objext \
4970       conftest$ac_exeext conftest.$ac_ext
4971 LIBS=$ac_check_lib_save_LIBS
4972 fi
4973 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4974 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4975 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4976   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4977 fi
4978
4979     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4980       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4981 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4982 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   ac_check_lib_save_LIBS=$LIBS
4986 LIBS="-ldnet_stub  $LIBS"
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993
4994 /* Override any gcc2 internal prototype to avoid an error.  */
4995 #ifdef __cplusplus
4996 extern "C"
4997 #endif
4998 /* We use char because int might match the return type of a gcc2
4999    builtin and then its argument prototype would still apply.  */
5000 char dnet_ntoa ();
5001 int
5002 main ()
5003 {
5004 dnet_ntoa ();
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -z "$ac_c_werror_flag"
5019                          || test ! -s conftest.err'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; } &&
5025          { ac_try='test -s conftest$ac_exeext'
5026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027   (eval $ac_try) 2>&5
5028   ac_status=$?
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); }; }; then
5031   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ac_cv_lib_dnet_stub_dnet_ntoa=no
5037 fi
5038 rm -f conftest.err conftest.$ac_objext \
5039       conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5041 fi
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5043 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5044 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5045   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5046 fi
5047
5048     fi
5049 fi
5050 rm -f conftest.err conftest.$ac_objext \
5051       conftest$ac_exeext conftest.$ac_ext
5052     LIBS="$ac_xsave_LIBS"
5053
5054     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5055     # to get the SysV transport functions.
5056     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5057     # needs -lnsl.
5058     # The nsl library prevents programs from opening the X display
5059     # on Irix 5.2, according to T.E. Dickey.
5060     # The functions gethostbyname, getservbyname, and inet_addr are
5061     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5062     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5063 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5064 if test "${ac_cv_func_gethostbyname+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5075 #define gethostbyname innocuous_gethostbyname
5076
5077 /* System header to define __stub macros and hopefully few prototypes,
5078     which can conflict with char gethostbyname (); below.
5079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080     <limits.h> exists even on freestanding compilers.  */
5081
5082 #ifdef __STDC__
5083 # include <limits.h>
5084 #else
5085 # include <assert.h>
5086 #endif
5087
5088 #undef gethostbyname
5089
5090 /* Override any gcc2 internal prototype to avoid an error.  */
5091 #ifdef __cplusplus
5092 extern "C"
5093 {
5094 #endif
5095 /* We use char because int might match the return type of a gcc2
5096    builtin and then its argument prototype would still apply.  */
5097 char gethostbyname ();
5098 /* The GNU C library defines this for functions which it implements
5099     to always fail with ENOSYS.  Some functions are actually named
5100     something starting with __ and the normal name is an alias.  */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5102 choke me
5103 #else
5104 char (*f) () = gethostbyname;
5105 #endif
5106 #ifdef __cplusplus
5107 }
5108 #endif
5109
5110 int
5111 main ()
5112 {
5113 return f != gethostbyname;
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120   (eval $ac_link) 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); } &&
5127          { ac_try='test -z "$ac_c_werror_flag"
5128                          || test ! -s conftest.err'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; } &&
5134          { ac_try='test -s conftest$ac_exeext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_cv_func_gethostbyname=yes
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_cv_func_gethostbyname=no
5146 fi
5147 rm -f conftest.err conftest.$ac_objext \
5148       conftest$ac_exeext conftest.$ac_ext
5149 fi
5150 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5151 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5152
5153     if test $ac_cv_func_gethostbyname = no; then
5154       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5155 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5156 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   ac_check_lib_save_LIBS=$LIBS
5160 LIBS="-lnsl  $LIBS"
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167
5168 /* Override any gcc2 internal prototype to avoid an error.  */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173    builtin and then its argument prototype would still apply.  */
5174 char gethostbyname ();
5175 int
5176 main ()
5177 {
5178 gethostbyname ();
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185   (eval $ac_link) 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } &&
5192          { ac_try='test -z "$ac_c_werror_flag"
5193                          || test ! -s conftest.err'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; } &&
5199          { ac_try='test -s conftest$ac_exeext'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; }; then
5205   ac_cv_lib_nsl_gethostbyname=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_lib_nsl_gethostbyname=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext \
5213       conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5218 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5219   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5220 fi
5221
5222       if test $ac_cv_lib_nsl_gethostbyname = no; then
5223         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5224 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lbsd  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236
5237 /* Override any gcc2 internal prototype to avoid an error.  */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 /* We use char because int might match the return type of a gcc2
5242    builtin and then its argument prototype would still apply.  */
5243 char gethostbyname ();
5244 int
5245 main ()
5246 {
5247 gethostbyname ();
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254   (eval $ac_link) 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -z "$ac_c_werror_flag"
5262                          || test ! -s conftest.err'
5263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264   (eval $ac_try) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; } &&
5268          { ac_try='test -s conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   ac_cv_lib_bsd_gethostbyname=yes
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 ac_cv_lib_bsd_gethostbyname=no
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282       conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5284 fi
5285 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5286 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5287 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5288   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5289 fi
5290
5291       fi
5292     fi
5293
5294     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5295     # socket/setsockopt and other routines are undefined under SCO ODT
5296     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5297     # on later versions), says Simon Leinen: it contains gethostby*
5298     # variants that don't use the name server (or something).  -lsocket
5299     # must be given before -lnsl if both are needed.  We assume that
5300     # if connect needs -lnsl, so does gethostbyname.
5301     echo "$as_me:$LINENO: checking for connect" >&5
5302 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5303 if test "${ac_cv_func_connect+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5314 #define connect innocuous_connect
5315
5316 /* System header to define __stub macros and hopefully few prototypes,
5317     which can conflict with char connect (); below.
5318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319     <limits.h> exists even on freestanding compilers.  */
5320
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326
5327 #undef connect
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 {
5333 #endif
5334 /* We use char because int might match the return type of a gcc2
5335    builtin and then its argument prototype would still apply.  */
5336 char connect ();
5337 /* The GNU C library defines this for functions which it implements
5338     to always fail with ENOSYS.  Some functions are actually named
5339     something starting with __ and the normal name is an alias.  */
5340 #if defined (__stub_connect) || defined (__stub___connect)
5341 choke me
5342 #else
5343 char (*f) () = connect;
5344 #endif
5345 #ifdef __cplusplus
5346 }
5347 #endif
5348
5349 int
5350 main ()
5351 {
5352 return f != connect;
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359   (eval $ac_link) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"
5367                          || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_func_connect=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_cv_func_connect=no
5385 fi
5386 rm -f conftest.err conftest.$ac_objext \
5387       conftest$ac_exeext conftest.$ac_ext
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5390 echo "${ECHO_T}$ac_cv_func_connect" >&6
5391
5392     if test $ac_cv_func_connect = no; then
5393       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5395 if test "${ac_cv_lib_socket_connect+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char connect ();
5414 int
5415 main ()
5416 {
5417 connect ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag"
5432                          || test ! -s conftest.err'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_lib_socket_connect=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_cv_lib_socket_connect=no
5450 fi
5451 rm -f conftest.err conftest.$ac_objext \
5452       conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5454 fi
5455 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5456 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5457 if test $ac_cv_lib_socket_connect = yes; then
5458   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5459 fi
5460
5461     fi
5462
5463     # Guillermo Gomez says -lposix is necessary on A/UX.
5464     echo "$as_me:$LINENO: checking for remove" >&5
5465 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5466 if test "${ac_cv_func_remove+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5477 #define remove innocuous_remove
5478
5479 /* System header to define __stub macros and hopefully few prototypes,
5480     which can conflict with char remove (); below.
5481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482     <limits.h> exists even on freestanding compilers.  */
5483
5484 #ifdef __STDC__
5485 # include <limits.h>
5486 #else
5487 # include <assert.h>
5488 #endif
5489
5490 #undef remove
5491
5492 /* Override any gcc2 internal prototype to avoid an error.  */
5493 #ifdef __cplusplus
5494 extern "C"
5495 {
5496 #endif
5497 /* We use char because int might match the return type of a gcc2
5498    builtin and then its argument prototype would still apply.  */
5499 char remove ();
5500 /* The GNU C library defines this for functions which it implements
5501     to always fail with ENOSYS.  Some functions are actually named
5502     something starting with __ and the normal name is an alias.  */
5503 #if defined (__stub_remove) || defined (__stub___remove)
5504 choke me
5505 #else
5506 char (*f) () = remove;
5507 #endif
5508 #ifdef __cplusplus
5509 }
5510 #endif
5511
5512 int
5513 main ()
5514 {
5515 return f != remove;
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522   (eval $ac_link) 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } &&
5529          { ac_try='test -z "$ac_c_werror_flag"
5530                          || test ! -s conftest.err'
5531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; } &&
5536          { ac_try='test -s conftest$ac_exeext'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; }; then
5542   ac_cv_func_remove=yes
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ac_cv_func_remove=no
5548 fi
5549 rm -f conftest.err conftest.$ac_objext \
5550       conftest$ac_exeext conftest.$ac_ext
5551 fi
5552 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5553 echo "${ECHO_T}$ac_cv_func_remove" >&6
5554
5555     if test $ac_cv_func_remove = no; then
5556       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5557 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5558 if test "${ac_cv_lib_posix_remove+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lposix  $LIBS"
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575    builtin and then its argument prototype would still apply.  */
5576 char remove ();
5577 int
5578 main ()
5579 {
5580 remove ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag"
5595                          || test ! -s conftest.err'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; } &&
5601          { ac_try='test -s conftest$ac_exeext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_lib_posix_remove=yes
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 ac_cv_lib_posix_remove=no
5613 fi
5614 rm -f conftest.err conftest.$ac_objext \
5615       conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5619 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5620 if test $ac_cv_lib_posix_remove = yes; then
5621   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5622 fi
5623
5624     fi
5625
5626     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5627     echo "$as_me:$LINENO: checking for shmat" >&5
5628 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5629 if test "${ac_cv_func_shmat+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5640 #define shmat innocuous_shmat
5641
5642 /* System header to define __stub macros and hopefully few prototypes,
5643     which can conflict with char shmat (); below.
5644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645     <limits.h> exists even on freestanding compilers.  */
5646
5647 #ifdef __STDC__
5648 # include <limits.h>
5649 #else
5650 # include <assert.h>
5651 #endif
5652
5653 #undef shmat
5654
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 {
5659 #endif
5660 /* We use char because int might match the return type of a gcc2
5661    builtin and then its argument prototype would still apply.  */
5662 char shmat ();
5663 /* The GNU C library defines this for functions which it implements
5664     to always fail with ENOSYS.  Some functions are actually named
5665     something starting with __ and the normal name is an alias.  */
5666 #if defined (__stub_shmat) || defined (__stub___shmat)
5667 choke me
5668 #else
5669 char (*f) () = shmat;
5670 #endif
5671 #ifdef __cplusplus
5672 }
5673 #endif
5674
5675 int
5676 main ()
5677 {
5678 return f != shmat;
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"
5693                          || test ! -s conftest.err'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   ac_cv_func_shmat=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 ac_cv_func_shmat=no
5711 fi
5712 rm -f conftest.err conftest.$ac_objext \
5713       conftest$ac_exeext conftest.$ac_ext
5714 fi
5715 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5716 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5717
5718     if test $ac_cv_func_shmat = no; then
5719       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5720 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5721 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   ac_check_lib_save_LIBS=$LIBS
5725 LIBS="-lipc  $LIBS"
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732
5733 /* Override any gcc2 internal prototype to avoid an error.  */
5734 #ifdef __cplusplus
5735 extern "C"
5736 #endif
5737 /* We use char because int might match the return type of a gcc2
5738    builtin and then its argument prototype would still apply.  */
5739 char shmat ();
5740 int
5741 main ()
5742 {
5743 shmat ();
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750   (eval $ac_link) 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } &&
5757          { ac_try='test -z "$ac_c_werror_flag"
5758                          || test ! -s conftest.err'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; } &&
5764          { ac_try='test -s conftest$ac_exeext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   ac_cv_lib_ipc_shmat=yes
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 ac_cv_lib_ipc_shmat=no
5776 fi
5777 rm -f conftest.err conftest.$ac_objext \
5778       conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5780 fi
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5782 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5783 if test $ac_cv_lib_ipc_shmat = yes; then
5784   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5785 fi
5786
5787     fi
5788   fi
5789
5790   # Check for libraries that X11R6 Xt/Xaw programs need.
5791   ac_save_LDFLAGS=$LDFLAGS
5792   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5793   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5794   # check for ICE first), but we must link in the order -lSM -lICE or
5795   # we get undefined symbols.  So assume we have SM if we have ICE.
5796   # These have to be linked with before -lX11, unlike the other
5797   # libraries we check for below, so use a different variable.
5798   # John Interrante, Karl Berry
5799   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5800 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5801 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_check_lib_save_LIBS=$LIBS
5805 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812
5813 /* Override any gcc2 internal prototype to avoid an error.  */
5814 #ifdef __cplusplus
5815 extern "C"
5816 #endif
5817 /* We use char because int might match the return type of a gcc2
5818    builtin and then its argument prototype would still apply.  */
5819 char IceConnectionNumber ();
5820 int
5821 main ()
5822 {
5823 IceConnectionNumber ();
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830   (eval $ac_link) 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag"
5838                          || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest$ac_exeext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_lib_ICE_IceConnectionNumber=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_lib_ICE_IceConnectionNumber=no
5856 fi
5857 rm -f conftest.err conftest.$ac_objext \
5858       conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5862 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5863 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5864   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5865 fi
5866
5867   LDFLAGS=$ac_save_LDFLAGS
5868
5869 fi
5870
5871
5872 # Checks for X
5873 if test "x$with_x" = xyes; then
5874   if test "x$have_x" = xno; then
5875     if test "x$x_config_flag" = xyes; then
5876       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5877 echo "$as_me: error: Could not configure X" >&2;}
5878    { (exit 1); exit 1; }; }
5879     else
5880       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5881 echo "$as_me: WARNING: Could not configure X" >&2;}
5882     fi
5883   fi
5884 fi
5885 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5886   if test "x$x_libraries" != x; then
5887     ldflags_x_opt="-L$x_libraries"
5888     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5889     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5890   else
5891     ldflags_x_opt=
5892   fi
5893   if test "x$x_includes" != x; then
5894     CPPFLAGS="$CPPFLAGS -I$x_includes"
5895   fi
5896
5897
5898 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5899 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5900 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   ac_check_lib_save_LIBS=$LIBS
5904 LIBS="-lX11  $LIBS"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911
5912 /* Override any gcc2 internal prototype to avoid an error.  */
5913 #ifdef __cplusplus
5914 extern "C"
5915 #endif
5916 /* We use char because int might match the return type of a gcc2
5917    builtin and then its argument prototype would still apply.  */
5918 char XOpenDisplay ();
5919 int
5920 main ()
5921 {
5922 XOpenDisplay ();
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929   (eval $ac_link) 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -z "$ac_c_werror_flag"
5937                          || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest$ac_exeext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_cv_lib_X11_XOpenDisplay=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_cv_lib_X11_XOpenDisplay=no
5955 fi
5956 rm -f conftest.err conftest.$ac_objext \
5957       conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5961 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5962 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5963   cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBX11 1
5965 _ACEOF
5966
5967   LIBS="-lX11 $LIBS"
5968
5969 fi
5970
5971   echo "$as_me:$LINENO: checking X11 version 6" >&5
5972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5973   if test "${timidity_cv_x11_version_6+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <X11/Xlib.h>
5983 int
5984 main ()
5985 {
5986
5987 #if XlibSpecificationRelease < 6
5988 fail;
5989 #endif
5990
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997   (eval $ac_link) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"
6005                          || test ! -s conftest.err'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest$ac_exeext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   timidity_cv_x11_version_6=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 timidity_cv_x11_version_6=no
6023 fi
6024 rm -f conftest.err conftest.$ac_objext \
6025       conftest$ac_exeext conftest.$ac_ext
6026 fi
6027
6028   if test "$timidity_cv_x11_version_6" = "yes"; then
6029     echo "$as_me:$LINENO: result: 6 or newer" >&5
6030 echo "${ECHO_T}6 or newer" >&6
6031       else
6032     echo "$as_me:$LINENO: result: before 6" >&5
6033 echo "${ECHO_T}before 6" >&6
6034   fi
6035
6036     KEEPLIBS=$LIBS
6037   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6038 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6039 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lXext  $LIBS"
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050
6051 /* Override any gcc2 internal prototype to avoid an error.  */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 /* We use char because int might match the return type of a gcc2
6056    builtin and then its argument prototype would still apply.  */
6057 char XShapeCombineMask ();
6058 int
6059 main ()
6060 {
6061 XShapeCombineMask ();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068   (eval $ac_link) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"
6076                          || test ! -s conftest.err'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; } &&
6082          { ac_try='test -s conftest$ac_exeext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_lib_Xext_XShapeCombineMask=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_cv_lib_Xext_XShapeCombineMask=no
6094 fi
6095 rm -f conftest.err conftest.$ac_objext \
6096       conftest$ac_exeext conftest.$ac_ext
6097 LIBS=$ac_check_lib_save_LIBS
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6100 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6101 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6102   have_xext=yes; LIBS="-lXext $LIBS"
6103 else
6104   have_xext=no
6105 fi
6106
6107
6108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   ac_check_lib_save_LIBS=$LIBS
6114 LIBS="-lICE  $LIBS"
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121
6122 /* Override any gcc2 internal prototype to avoid an error.  */
6123 #ifdef __cplusplus
6124 extern "C"
6125 #endif
6126 /* We use char because int might match the return type of a gcc2
6127    builtin and then its argument prototype would still apply.  */
6128 char IceConnectionNumber ();
6129 int
6130 main ()
6131 {
6132 IceConnectionNumber ();
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139   (eval $ac_link) 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } &&
6146          { ac_try='test -z "$ac_c_werror_flag"
6147                          || test ! -s conftest.err'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest$ac_exeext'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159   ac_cv_lib_ICE_IceConnectionNumber=yes
6160 else
6161   echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 ac_cv_lib_ICE_IceConnectionNumber=no
6165 fi
6166 rm -f conftest.err conftest.$ac_objext \
6167       conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6169 fi
6170 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6171 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6172 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6173   cat >>confdefs.h <<_ACEOF
6174 #define HAVE_LIBICE 1
6175 _ACEOF
6176
6177   LIBS="-lICE $LIBS"
6178
6179 fi
6180
6181   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6182 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6183 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   ac_check_lib_save_LIBS=$LIBS
6187 LIBS="-lSM  $LIBS"
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 /* We use char because int might match the return type of a gcc2
6200    builtin and then its argument prototype would still apply.  */
6201 char SmcOpenConnection ();
6202 int
6203 main ()
6204 {
6205 SmcOpenConnection ();
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212   (eval $ac_link) 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } &&
6219          { ac_try='test -z "$ac_c_werror_flag"
6220                          || test ! -s conftest.err'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; } &&
6226          { ac_try='test -s conftest$ac_exeext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   ac_cv_lib_SM_SmcOpenConnection=yes
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ac_cv_lib_SM_SmcOpenConnection=no
6238 fi
6239 rm -f conftest.err conftest.$ac_objext \
6240       conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6242 fi
6243 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6244 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6245 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6246   have_xprelibs=yes; LIBS="-lSM $LIBS"
6247 else
6248   have_xprelibs=no
6249 fi
6250
6251   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6252 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6253 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   ac_check_lib_save_LIBS=$LIBS
6257 LIBS="-lXt  $LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264
6265 /* Override any gcc2 internal prototype to avoid an error.  */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 /* We use char because int might match the return type of a gcc2
6270    builtin and then its argument prototype would still apply.  */
6271 char XtVaAppInitialize ();
6272 int
6273 main ()
6274 {
6275 XtVaAppInitialize ();
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282   (eval $ac_link) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -z "$ac_c_werror_flag"
6290                          || test ! -s conftest.err'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; } &&
6296          { ac_try='test -s conftest$ac_exeext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_cv_lib_Xt_XtVaAppInitialize=yes
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_cv_lib_Xt_XtVaAppInitialize=no
6308 fi
6309 rm -f conftest.err conftest.$ac_objext \
6310       conftest$ac_exeext conftest.$ac_ext
6311 LIBS=$ac_check_lib_save_LIBS
6312 fi
6313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6314 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6315 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6316   have_xt=yes; LIBS="-lXt $LIBS"
6317 else
6318   have_xt=no
6319 fi
6320
6321   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6322 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lXmu  $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334
6335 /* Override any gcc2 internal prototype to avoid an error.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340    builtin and then its argument prototype would still apply.  */
6341 char XmuInternAtom ();
6342 int
6343 main ()
6344 {
6345 XmuInternAtom ();
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352   (eval $ac_link) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_cv_lib_Xmu_XmuInternAtom=yes
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_cv_lib_Xmu_XmuInternAtom=no
6378 fi
6379 rm -f conftest.err conftest.$ac_objext \
6380       conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6382 fi
6383 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6384 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6385 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6386   LIBS="-lXmu $LIBS"
6387 fi
6388
6389
6390 for ac_func in XmuRegisterExternalAgent
6391 do
6392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_func" >&5
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_var+set}\" = set"; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6406 #define $ac_func innocuous_$ac_func
6407
6408 /* System header to define __stub macros and hopefully few prototypes,
6409     which can conflict with char $ac_func (); below.
6410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411     <limits.h> exists even on freestanding compilers.  */
6412
6413 #ifdef __STDC__
6414 # include <limits.h>
6415 #else
6416 # include <assert.h>
6417 #endif
6418
6419 #undef $ac_func
6420
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 #ifdef __cplusplus
6423 extern "C"
6424 {
6425 #endif
6426 /* We use char because int might match the return type of a gcc2
6427    builtin and then its argument prototype would still apply.  */
6428 char $ac_func ();
6429 /* The GNU C library defines this for functions which it implements
6430     to always fail with ENOSYS.  Some functions are actually named
6431     something starting with __ and the normal name is an alias.  */
6432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6433 choke me
6434 #else
6435 char (*f) () = $ac_func;
6436 #endif
6437 #ifdef __cplusplus
6438 }
6439 #endif
6440
6441 int
6442 main ()
6443 {
6444 return f != $ac_func;
6445   ;
6446   return 0;
6447 }
6448 _ACEOF
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451   (eval $ac_link) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } &&
6458          { ac_try='test -z "$ac_c_werror_flag"
6459                          || test ! -s conftest.err'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; } &&
6465          { ac_try='test -s conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   eval "$as_ac_var=yes"
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 eval "$as_ac_var=no"
6477 fi
6478 rm -f conftest.err conftest.$ac_objext \
6479       conftest$ac_exeext conftest.$ac_ext
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6483 if test `eval echo '${'$as_ac_var'}'` = yes; then
6484   cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6486 _ACEOF
6487
6488 fi
6489 done
6490
6491   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6492 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6493 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lXaw3d  $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504
6505 /* Override any gcc2 internal prototype to avoid an error.  */
6506 #ifdef __cplusplus
6507 extern "C"
6508 #endif
6509 /* We use char because int might match the return type of a gcc2
6510    builtin and then its argument prototype would still apply.  */
6511 char XawInitializeWidgetSet ();
6512 int
6513 main ()
6514 {
6515 XawInitializeWidgetSet ();
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522   (eval $ac_link) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -z "$ac_c_werror_flag"
6530                          || test ! -s conftest.err'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6542   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_check_lib_save_LIBS
6552 fi
6553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6554 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6555 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6556   have_xaw=3d
6557 else
6558    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6559 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6560 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   ac_check_lib_save_LIBS=$LIBS
6564 LIBS="-lXaw  $LIBS"
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571
6572 /* Override any gcc2 internal prototype to avoid an error.  */
6573 #ifdef __cplusplus
6574 extern "C"
6575 #endif
6576 /* We use char because int might match the return type of a gcc2
6577    builtin and then its argument prototype would still apply.  */
6578 char XawInitializeWidgetSet ();
6579 int
6580 main ()
6581 {
6582 XawInitializeWidgetSet ();
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589   (eval $ac_link) 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_c_werror_flag"
6597                          || test ! -s conftest.err'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6615 fi
6616 rm -f conftest.err conftest.$ac_objext \
6617       conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6619 fi
6620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6621 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6622 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6623   have_xaw=yes
6624 else
6625   have_xaw=no
6626 fi
6627
6628 fi
6629
6630   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6631 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6632 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   ac_check_lib_save_LIBS=$LIBS
6636 LIBS="-lXm  $LIBS"
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643
6644 /* Override any gcc2 internal prototype to avoid an error.  */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 /* We use char because int might match the return type of a gcc2
6649    builtin and then its argument prototype would still apply.  */
6650 char XmCreateForm ();
6651 int
6652 main ()
6653 {
6654 XmCreateForm ();
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661   (eval $ac_link) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_c_werror_flag"
6669                          || test ! -s conftest.err'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; } &&
6675          { ac_try='test -s conftest$ac_exeext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_cv_lib_Xm_XmCreateForm=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_cv_lib_Xm_XmCreateForm=no
6687 fi
6688 rm -f conftest.err conftest.$ac_objext \
6689       conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6691 fi
6692 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6693 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6694 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6695   have_xm=yes
6696 else
6697   have_xm=no
6698 fi
6699
6700
6701 for ac_func in XShmCreatePixmap
6702 do
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h.  */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h.  */
6715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6717 #define $ac_func innocuous_$ac_func
6718
6719 /* System header to define __stub macros and hopefully few prototypes,
6720     which can conflict with char $ac_func (); below.
6721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722     <limits.h> exists even on freestanding compilers.  */
6723
6724 #ifdef __STDC__
6725 # include <limits.h>
6726 #else
6727 # include <assert.h>
6728 #endif
6729
6730 #undef $ac_func
6731
6732 /* Override any gcc2 internal prototype to avoid an error.  */
6733 #ifdef __cplusplus
6734 extern "C"
6735 {
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738    builtin and then its argument prototype would still apply.  */
6739 char $ac_func ();
6740 /* The GNU C library defines this for functions which it implements
6741     to always fail with ENOSYS.  Some functions are actually named
6742     something starting with __ and the normal name is an alias.  */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 char (*f) () = $ac_func;
6747 #endif
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751
6752 int
6753 main ()
6754 {
6755 return f != $ac_func;
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762   (eval $ac_link) 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } &&
6769          { ac_try='test -z "$ac_c_werror_flag"
6770                          || test ! -s conftest.err'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; } &&
6776          { ac_try='test -s conftest$ac_exeext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   eval "$as_ac_var=yes"
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 eval "$as_ac_var=no"
6788 fi
6789 rm -f conftest.err conftest.$ac_objext \
6790       conftest$ac_exeext conftest.$ac_ext
6791 fi
6792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6794 if test `eval echo '${'$as_ac_var'}'` = yes; then
6795   cat >>confdefs.h <<_ACEOF
6796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6797 _ACEOF
6798
6799 fi
6800 done
6801
6802   LIBS=$KEEPLIBS
6803 fi
6804
6805 # Checks for header files.
6806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 #include <stdlib.h>
6818 #include <stdarg.h>
6819 #include <string.h>
6820 #include <float.h>
6821
6822 int
6823 main ()
6824 {
6825
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832   (eval $ac_compile) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } &&
6839          { ac_try='test -z "$ac_c_werror_flag"
6840                          || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_header_stdc=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_cv_header_stdc=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860
6861 if test $ac_cv_header_stdc = yes; then
6862   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 #include <string.h>
6870
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873   $EGREP "memchr" >/dev/null 2>&1; then
6874   :
6875 else
6876   ac_cv_header_stdc=no
6877 fi
6878 rm -f conftest*
6879
6880 fi
6881
6882 if test $ac_cv_header_stdc = yes; then
6883   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 #include <stdlib.h>
6891
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894   $EGREP "free" >/dev/null 2>&1; then
6895   :
6896 else
6897   ac_cv_header_stdc=no
6898 fi
6899 rm -f conftest*
6900
6901 fi
6902
6903 if test $ac_cv_header_stdc = yes; then
6904   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905   if test "$cross_compiling" = yes; then
6906   :
6907 else
6908   cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914 #include <ctype.h>
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 #else
6919 # define ISLOWER(c) \
6920                    (('a' <= (c) && (c) <= 'i') \
6921                      || ('j' <= (c) && (c) <= 'r') \
6922                      || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924 #endif
6925
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927 int
6928 main ()
6929 {
6930   int i;
6931   for (i = 0; i < 256; i++)
6932     if (XOR (islower (i), ISLOWER (i))
6933         || toupper (i) != TOUPPER (i))
6934       exit(2);
6935   exit (0);
6936 }
6937 _ACEOF
6938 rm -f conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940   (eval $ac_link) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   :
6950 else
6951   echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 ( exit $ac_status )
6956 ac_cv_header_stdc=no
6957 fi
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 fi
6961 fi
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6965
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6968 _ACEOF
6969
6970 fi
6971
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983                   inttypes.h stdint.h unistd.h
6984 do
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 $ac_includes_default
6998
6999 #include <$ac_header>
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003   (eval $ac_compile) 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -z "$ac_c_werror_flag"
7011                          || test ! -s conftest.err'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; } &&
7017          { ac_try='test -s conftest.$ac_objext'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; }; then
7023   eval "$as_ac_Header=yes"
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 eval "$as_ac_Header=no"
7029 fi
7030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7035   cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7037 _ACEOF
7038
7039 fi
7040
7041 done
7042
7043
7044 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7045 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7046 if test "${ac_cv_header_stdbool_h+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055
7056 #include <stdbool.h>
7057 #ifndef bool
7058 # error bool is not defined
7059 #endif
7060 #ifndef false
7061 # error false is not defined
7062 #endif
7063 #if false
7064 # error false is not 0
7065 #endif
7066 #ifndef true
7067 # error true is not defined
7068 #endif
7069 #if true != 1
7070 # error true is not 1
7071 #endif
7072 #ifndef __bool_true_false_are_defined
7073 # error __bool_true_false_are_defined is not defined
7074 #endif
7075
7076         struct s { _Bool s: 1; _Bool t; } s;
7077
7078         char a[true == 1 ? 1 : -1];
7079         char b[false == 0 ? 1 : -1];
7080         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7081         char d[(bool) -0.5 == true ? 1 : -1];
7082         bool e = &s;
7083         char f[(_Bool) -0.0 == false ? 1 : -1];
7084         char g[true];
7085         char h[sizeof (_Bool)];
7086         char i[sizeof s.t];
7087
7088 int
7089 main ()
7090 {
7091  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098   (eval $ac_compile) 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } &&
7105          { ac_try='test -z "$ac_c_werror_flag"
7106                          || test ! -s conftest.err'
7107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108   (eval $ac_try) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; } &&
7112          { ac_try='test -s conftest.$ac_objext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   ac_cv_header_stdbool_h=yes
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_header_stdbool_h=no
7124 fi
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7128 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7129 echo "$as_me:$LINENO: checking for _Bool" >&5
7130 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7131 if test "${ac_cv_type__Bool+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140 $ac_includes_default
7141 int
7142 main ()
7143 {
7144 if ((_Bool *) 0)
7145   return 0;
7146 if (sizeof (_Bool))
7147   return 0;
7148   ;
7149   return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154   (eval $ac_compile) 2>conftest.er1
7155   ac_status=$?
7156   grep -v '^ *+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } &&
7161          { ac_try='test -z "$ac_c_werror_flag"
7162                          || test ! -s conftest.err'
7163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164   (eval $ac_try) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); }; } &&
7168          { ac_try='test -s conftest.$ac_objext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   ac_cv_type__Bool=yes
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_type__Bool=no
7180 fi
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7184 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7185 if test $ac_cv_type__Bool = yes; then
7186
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE__BOOL 1
7189 _ACEOF
7190
7191
7192 fi
7193
7194 if test $ac_cv_header_stdbool_h = yes; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_STDBOOL_H 1
7198 _ACEOF
7199
7200 fi
7201
7202 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7203 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7204 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213 #include <sys/types.h>
7214 #include <sys/wait.h>
7215 #ifndef WEXITSTATUS
7216 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7217 #endif
7218 #ifndef WIFEXITED
7219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7220 #endif
7221
7222 int
7223 main ()
7224 {
7225   int s;
7226   wait (&s);
7227   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7228   ;
7229   return 0;
7230 }
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -z "$ac_c_werror_flag"
7242                          || test ! -s conftest.err'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; } &&
7248          { ac_try='test -s conftest.$ac_objext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_cv_header_sys_wait_h=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_cv_header_sys_wait_h=no
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7264 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7265 if test $ac_cv_header_sys_wait_h = yes; then
7266
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_SYS_WAIT_H 1
7269 _ACEOF
7270
7271 fi
7272
7273 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7275 if test "${ac_cv_header_time+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/types.h>
7285 #include <sys/time.h>
7286 #include <time.h>
7287
7288 int
7289 main ()
7290 {
7291 if ((struct tm *) 0)
7292 return 0;
7293   ;
7294   return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299   (eval $ac_compile) 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -z "$ac_c_werror_flag"
7307                          || test ! -s conftest.err'
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); }; } &&
7313          { ac_try='test -s conftest.$ac_objext'
7314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315   (eval $ac_try) 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); }; }; then
7319   ac_cv_header_time=yes
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_cv_header_time=no
7325 fi
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7329 echo "${ECHO_T}$ac_cv_header_time" >&6
7330 if test $ac_cv_header_time = yes; then
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define TIME_WITH_SYS_TIME 1
7334 _ACEOF
7335
7336 fi
7337
7338
7339
7340
7341
7342
7343 ac_header_dirent=no
7344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7345   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7346 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <sys/types.h>
7358 #include <$ac_hdr>
7359
7360 int
7361 main ()
7362 {
7363 if ((DIR *) 0)
7364 return 0;
7365   ;
7366   return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"
7379                          || test ! -s conftest.err'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest.$ac_objext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_Header=no"
7397 fi
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 ac_header_dirent=$ac_hdr; break
7408 fi
7409
7410 done
7411 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7412 if test $ac_header_dirent = dirent.h; then
7413   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7415 if test "${ac_cv_search_opendir+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   ac_func_search_save_LIBS=$LIBS
7419 ac_cv_search_opendir=no
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any gcc2 internal prototype to avoid an error.  */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 /* We use char because int might match the return type of a gcc2
7432    builtin and then its argument prototype would still apply.  */
7433 char opendir ();
7434 int
7435 main ()
7436 {
7437 opendir ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest$ac_exeext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_cv_search_opendir="none required"
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 fi
7470 rm -f conftest.err conftest.$ac_objext \
7471       conftest$ac_exeext conftest.$ac_ext
7472 if test "$ac_cv_search_opendir" = no; then
7473   for ac_lib in dir; do
7474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7475     cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h.  */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h.  */
7481
7482 /* Override any gcc2 internal prototype to avoid an error.  */
7483 #ifdef __cplusplus
7484 extern "C"
7485 #endif
7486 /* We use char because int might match the return type of a gcc2
7487    builtin and then its argument prototype would still apply.  */
7488 char opendir ();
7489 int
7490 main ()
7491 {
7492 opendir ();
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499   (eval $ac_link) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"
7507                          || test ! -s conftest.err'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest$ac_exeext'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; }; then
7519   ac_cv_search_opendir="-l$ac_lib"
7520 break
7521 else
7522   echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 fi
7526 rm -f conftest.err conftest.$ac_objext \
7527       conftest$ac_exeext conftest.$ac_ext
7528   done
7529 fi
7530 LIBS=$ac_func_search_save_LIBS
7531 fi
7532 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7533 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7534 if test "$ac_cv_search_opendir" != no; then
7535   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7536
7537 fi
7538
7539 else
7540   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7542 if test "${ac_cv_search_opendir+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   ac_func_search_save_LIBS=$LIBS
7546 ac_cv_search_opendir=no
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553
7554 /* Override any gcc2 internal prototype to avoid an error.  */
7555 #ifdef __cplusplus
7556 extern "C"
7557 #endif
7558 /* We use char because int might match the return type of a gcc2
7559    builtin and then its argument prototype would still apply.  */
7560 char opendir ();
7561 int
7562 main ()
7563 {
7564 opendir ();
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571   (eval $ac_link) 2>conftest.er1
7572   ac_status=$?
7573   grep -v '^ *+' conftest.er1 >conftest.err
7574   rm -f conftest.er1
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } &&
7578          { ac_try='test -z "$ac_c_werror_flag"
7579                          || test ! -s conftest.err'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; } &&
7585          { ac_try='test -s conftest$ac_exeext'
7586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587   (eval $ac_try) 2>&5
7588   ac_status=$?
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); }; }; then
7591   ac_cv_search_opendir="none required"
7592 else
7593   echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 fi
7597 rm -f conftest.err conftest.$ac_objext \
7598       conftest$ac_exeext conftest.$ac_ext
7599 if test "$ac_cv_search_opendir" = no; then
7600   for ac_lib in x; do
7601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7602     cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608
7609 /* Override any gcc2 internal prototype to avoid an error.  */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 /* We use char because int might match the return type of a gcc2
7614    builtin and then its argument prototype would still apply.  */
7615 char opendir ();
7616 int
7617 main ()
7618 {
7619 opendir ();
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } &&
7633          { ac_try='test -z "$ac_c_werror_flag"
7634                          || test ! -s conftest.err'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest$ac_exeext'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   ac_cv_search_opendir="-l$ac_lib"
7647 break
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 fi
7653 rm -f conftest.err conftest.$ac_objext \
7654       conftest$ac_exeext conftest.$ac_ext
7655   done
7656 fi
7657 LIBS=$ac_func_search_save_LIBS
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7661 if test "$ac_cv_search_opendir" != no; then
7662   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7663
7664 fi
7665
7666 fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 for ac_header in \
7707   arpa/inet.h \
7708   errno.h \
7709   getopt.h \
7710   glob.h \
7711   dlfcn.h \
7712   fcntl.h \
7713   inttypes.h \
7714   limits.h \
7715   machine/endian.h \
7716   malloc.h \
7717   memory.h \
7718   netdb.h \
7719   netinet/in.h \
7720   nlist.h \
7721   stddef.h \
7722   stdlib.h \
7723   stdint.h \
7724   string.h \
7725   strings.h \
7726   stropts.h \
7727   soundcard.h \
7728   alsa/asoundlib.h \
7729   sys/asoundlib.h \
7730   sys/audioio.h \
7731   sys/awe_voice.h\
7732   sys/ioctl.h \
7733   sys/ipc.h \
7734   sys/param.h \
7735   sys/shm.h \
7736   sys/socket.h \
7737   sys/soundcard.h \
7738   sys/param.h \
7739   sys/time.h \
7740   sys/types.h \
7741   sys/sysctl.h \
7742   termios.h \
7743   unistd.h \
7744   X11/Xlib.h
7745 do
7746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748   echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 fi
7753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755 else
7756   # Is the header compilable?
7757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765 $ac_includes_default
7766 #include <$ac_header>
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770   (eval $ac_compile) 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -z "$ac_c_werror_flag"
7778                          || test ! -s conftest.err'
7779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780   (eval $ac_try) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); }; } &&
7784          { ac_try='test -s conftest.$ac_objext'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790   ac_header_compiler=yes
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_header_compiler=no
7796 fi
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810 #include <$ac_header>
7811 _ACEOF
7812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } >/dev/null; then
7820   if test -s conftest.err; then
7821     ac_cpp_err=$ac_c_preproc_warn_flag
7822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7823   else
7824     ac_cpp_err=
7825   fi
7826 else
7827   ac_cpp_err=yes
7828 fi
7829 if test -z "$ac_cpp_err"; then
7830   ac_header_preproc=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835   ac_header_preproc=no
7836 fi
7837 rm -f conftest.err conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839 echo "${ECHO_T}$ac_header_preproc" >&6
7840
7841 # So?  What about this header?
7842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843   yes:no: )
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848     ac_header_preproc=yes
7849     ;;
7850   no:yes:* )
7851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863     (
7864       cat <<\_ASBOX
7865 ## ------------------------------- ##
7866 ## Report this to root@mput.dip.jp ##
7867 ## ------------------------------- ##
7868 _ASBOX
7869     ) |
7870       sed "s/^/$as_me: WARNING:     /" >&2
7871     ;;
7872 esac
7873 echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   eval "$as_ac_Header=\$ac_header_preproc"
7879 fi
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882
7883 fi
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885   cat >>confdefs.h <<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 _ACEOF
7888
7889 fi
7890
7891 done
7892
7893
7894
7895 for ac_header in \
7896   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7897 do
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 #ifdef HAVE_X11_XLIB_H
7912 #include <X11/Xlib.h>
7913 #endif
7914
7915
7916 #include <$ac_header>
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920   (eval $ac_compile) 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_c_werror_flag"
7928                          || test ! -s conftest.err'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; } &&
7934          { ac_try='test -s conftest.$ac_objext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940   eval "$as_ac_Header=yes"
7941 else
7942   echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 eval "$as_ac_Header=no"
7946 fi
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 fi
7949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7952   cat >>confdefs.h <<_ACEOF
7953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7954 _ACEOF
7955
7956 fi
7957
7958 done
7959
7960 if test "${ac_cv_header_string_h+set}" = set; then
7961   echo "$as_me:$LINENO: checking for string.h" >&5
7962 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7963 if test "${ac_cv_header_string_h+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7967 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7968 else
7969   # Is the header compilable?
7970 echo "$as_me:$LINENO: checking string.h usability" >&5
7971 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 $ac_includes_default
7979 #include <string.h>
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983   (eval $ac_compile) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   ac_header_compiler=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 ac_header_compiler=no
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 echo "${ECHO_T}$ac_header_compiler" >&6
8013
8014 # Is the header present?
8015 echo "$as_me:$LINENO: checking string.h presence" >&5
8016 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023 #include <string.h>
8024 _ACEOF
8025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } >/dev/null; then
8033   if test -s conftest.err; then
8034     ac_cpp_err=$ac_c_preproc_warn_flag
8035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8036   else
8037     ac_cpp_err=
8038   fi
8039 else
8040   ac_cpp_err=yes
8041 fi
8042 if test -z "$ac_cpp_err"; then
8043   ac_header_preproc=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048   ac_header_preproc=no
8049 fi
8050 rm -f conftest.err conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 echo "${ECHO_T}$ac_header_preproc" >&6
8053
8054 # So?  What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056   yes:no: )
8057     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8058 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8060 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8061     ac_header_preproc=yes
8062     ;;
8063   no:yes:* )
8064     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8065 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8067 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8069 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8071 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8072     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8073 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8074     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8075 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8076     (
8077       cat <<\_ASBOX
8078 ## ------------------------------- ##
8079 ## Report this to root@mput.dip.jp ##
8080 ## ------------------------------- ##
8081 _ASBOX
8082     ) |
8083       sed "s/^/$as_me: WARNING:     /" >&2
8084     ;;
8085 esac
8086 echo "$as_me:$LINENO: checking for string.h" >&5
8087 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8088 if test "${ac_cv_header_string_h+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_cv_header_string_h=$ac_header_preproc
8092 fi
8093 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8094 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8095
8096 fi
8097 if test $ac_cv_header_string_h = yes; then
8098   :
8099 else
8100
8101 cat >>confdefs.h <<\_ACEOF
8102 #define NO_STRING_H 1
8103 _ACEOF
8104
8105 fi
8106
8107
8108
8109 # Checks for typedefs, structures, and compiler characteristics.
8110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8112 if test "${ac_cv_c_bigendian+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   # See if sys/param.h defines the BYTE_ORDER macro.
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <sys/types.h>
8123 #include <sys/param.h>
8124
8125 int
8126 main ()
8127 {
8128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8129  bogus endian macros
8130 #endif
8131
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138   (eval $ac_compile) 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } &&
8145          { ac_try='test -z "$ac_c_werror_flag"
8146                          || test ! -s conftest.err'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest.$ac_objext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   # It does; now see whether it defined to BIG_ENDIAN or not.
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 #include <sys/types.h>
8166 #include <sys/param.h>
8167
8168 int
8169 main ()
8170 {
8171 #if BYTE_ORDER != BIG_ENDIAN
8172  not big endian
8173 #endif
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181   (eval $ac_compile) 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -z "$ac_c_werror_flag"
8189                          || test ! -s conftest.err'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; } &&
8195          { ac_try='test -s conftest.$ac_objext'
8196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197   (eval $ac_try) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; }; then
8201   ac_cv_c_bigendian=yes
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 ac_cv_c_bigendian=no
8207 fi
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 # It does not; compile a test program.
8214 if test "$cross_compiling" = yes; then
8215   # try to guess the endianness by grepping values into an object file
8216   ac_cv_c_bigendian=unknown
8217   cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8229 int
8230 main ()
8231 {
8232  _ascii (); _ebcdic ();
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>conftest.er1
8240   ac_status=$?
8241   grep -v '^ *+' conftest.er1 >conftest.err
8242   rm -f conftest.er1
8243   cat conftest.err >&5
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -z "$ac_c_werror_flag"
8247                          || test ! -s conftest.err'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; } &&
8253          { ac_try='test -s conftest.$ac_objext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8260   ac_cv_c_bigendian=yes
8261 fi
8262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8263   if test "$ac_cv_c_bigendian" = unknown; then
8264     ac_cv_c_bigendian=no
8265   else
8266     # finding both strings is unlikely to happen, but who knows?
8267     ac_cv_c_bigendian=unknown
8268   fi
8269 fi
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 fi
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 int
8284 main ()
8285 {
8286   /* Are we little or big endian?  From Harbison&Steele.  */
8287   union
8288   {
8289     long l;
8290     char c[sizeof (long)];
8291   } u;
8292   u.l = 1;
8293   exit (u.c[sizeof (long) - 1] == 1);
8294 }
8295 _ACEOF
8296 rm -f conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303   (eval $ac_try) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; }; then
8307   ac_cv_c_bigendian=no
8308 else
8309   echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 ( exit $ac_status )
8314 ac_cv_c_bigendian=yes
8315 fi
8316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 fi
8319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8323 case $ac_cv_c_bigendian in
8324   yes)
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define WORDS_BIGENDIAN 1
8328 _ACEOF
8329  ;;
8330   no)
8331      ;;
8332   *)
8333     { { echo "$as_me:$LINENO: error: unknown endianness
8334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8335 echo "$as_me: error: unknown endianness
8336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8337    { (exit 1); exit 1; }; } ;;
8338 esac
8339
8340
8341 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8342 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8343 if test "${ac_cv_c_char_unsigned+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 $ac_includes_default
8353 int
8354 main ()
8355 {
8356 static int test_array [1 - 2 * !(((char) -1) < 0)];
8357 test_array [0] = 0
8358
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365   (eval $ac_compile) 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -z "$ac_c_werror_flag"
8373                          || test ! -s conftest.err'
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); }; } &&
8379          { ac_try='test -s conftest.$ac_objext'
8380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381   (eval $ac_try) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   ac_cv_c_char_unsigned=no
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_cv_c_char_unsigned=yes
8391 fi
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8395 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8396 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8397   cat >>confdefs.h <<\_ACEOF
8398 #define __CHAR_UNSIGNED__ 1
8399 _ACEOF
8400
8401 fi
8402
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414
8415 int
8416 main ()
8417 {
8418 /* FIXME: Include the comments suggested by Paul. */
8419 #ifndef __cplusplus
8420   /* Ultrix mips cc rejects this.  */
8421   typedef int charset[2];
8422   const charset x;
8423   /* SunOS 4.1.1 cc rejects this.  */
8424   char const *const *ccp;
8425   char **p;
8426   /* NEC SVR4.0.2 mips cc rejects this.  */
8427   struct point {int x, y;};
8428   static struct point const zero = {0,0};
8429   /* AIX XL C 1.02.0.0 rejects this.
8430      It does not let you subtract one const X* pointer from another in
8431      an arm of an if-expression whose if-part is not a constant
8432      expression */
8433   const char *g = "string";
8434   ccp = &g + (g ? g-g : 0);
8435   /* HPUX 7.0 cc rejects these. */
8436   ++ccp;
8437   p = (char**) ccp;
8438   ccp = (char const *const *) p;
8439   { /* SCO 3.2v4 cc rejects this.  */
8440     char *t;
8441     char const *s = 0 ? (char *) 0 : (char const *) 0;
8442
8443     *t++ = 0;
8444   }
8445   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8446     int x[] = {25, 17};
8447     const int *foo = &x[0];
8448     ++foo;
8449   }
8450   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8451     typedef const int *iptr;
8452     iptr p = 0;
8453     ++p;
8454   }
8455   { /* AIX XL C 1.02.0.0 rejects this saying
8456        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8457     struct s { int j; const int *ap[3]; };
8458     struct s *b; b->j = 5;
8459   }
8460   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8461     const int foo = 10;
8462   }
8463 #endif
8464
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471   (eval $ac_compile) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"
8479                          || test ! -s conftest.err'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest.$ac_objext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_c_const=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_c_const=no
8497 fi
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8501 echo "${ECHO_T}$ac_cv_c_const" >&6
8502 if test $ac_cv_c_const = no; then
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define const
8506 _ACEOF
8507
8508 fi
8509
8510 echo "$as_me:$LINENO: checking for inline" >&5
8511 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8512 if test "${ac_cv_c_inline+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   ac_cv_c_inline=no
8516 for ac_kw in inline __inline__ __inline; do
8517   cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #ifndef __cplusplus
8524 typedef int foo_t;
8525 static $ac_kw foo_t static_foo () {return 0; }
8526 $ac_kw foo_t foo () {return 0; }
8527 #endif
8528
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532   (eval $ac_compile) 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag"
8540                          || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_c_inline=$ac_kw; break
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 fi
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559 done
8560
8561 fi
8562 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8563 echo "${ECHO_T}$ac_cv_c_inline" >&6
8564
8565
8566 case $ac_cv_c_inline in
8567   inline | yes) ;;
8568   *)
8569     case $ac_cv_c_inline in
8570       no) ac_val=;;
8571       *) ac_val=$ac_cv_c_inline;;
8572     esac
8573     cat >>confdefs.h <<_ACEOF
8574 #ifndef __cplusplus
8575 #define inline $ac_val
8576 #endif
8577 _ACEOF
8578     ;;
8579 esac
8580
8581 echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592
8593 int
8594 main ()
8595 {
8596
8597 volatile int x;
8598 int * volatile y;
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605   (eval $ac_compile) 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -z "$ac_c_werror_flag"
8613                          || test ! -s conftest.err'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest.$ac_objext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_c_volatile=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_cv_c_volatile=no
8631 fi
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8636 if test $ac_cv_c_volatile = no; then
8637
8638 cat >>confdefs.h <<\_ACEOF
8639 #define volatile
8640 _ACEOF
8641
8642 fi
8643
8644 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8645 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8646 if test "${ac_cv_c_stringize+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655 #define x(y) #y
8656
8657 char *s = x(teststring);
8658 _ACEOF
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660   $EGREP "#teststring" >/dev/null 2>&1; then
8661   ac_cv_c_stringize=no
8662 else
8663   ac_cv_c_stringize=yes
8664 fi
8665 rm -f conftest*
8666
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8669 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8670 if test $ac_cv_c_stringize = yes; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_STRINGIZE 1
8674 _ACEOF
8675
8676 fi
8677
8678 echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8680 if test "$ac_cv_prog_cc_stdc" != no; then
8681   echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6
8683
8684 cat >>confdefs.h <<\_ACEOF
8685 #define PROTOTYPES 1
8686 _ACEOF
8687
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define __PROTOTYPES 1
8691 _ACEOF
8692
8693 else
8694   echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8696 fi
8697
8698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8700 if test "${ac_cv_struct_tm+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 #include <sys/types.h>
8710 #include <time.h>
8711
8712 int
8713 main ()
8714 {
8715 struct tm *tp; tp->tm_sec;
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722   (eval $ac_compile) 2>conftest.er1
8723   ac_status=$?
8724   grep -v '^ *+' conftest.er1 >conftest.err
8725   rm -f conftest.er1
8726   cat conftest.err >&5
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } &&
8729          { ac_try='test -z "$ac_c_werror_flag"
8730                          || test ! -s conftest.err'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; } &&
8736          { ac_try='test -s conftest.$ac_objext'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; }; then
8742   ac_cv_struct_tm=time.h
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_cv_struct_tm=sys/time.h
8748 fi
8749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8752 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8753 if test $ac_cv_struct_tm = sys/time.h; then
8754
8755 cat >>confdefs.h <<\_ACEOF
8756 #define TM_IN_SYS_TIME 1
8757 _ACEOF
8758
8759 fi
8760
8761 echo "$as_me:$LINENO: checking for size_t" >&5
8762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_size_t+set}" = set; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766   cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h.  */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h.  */
8772 $ac_includes_default
8773 int
8774 main ()
8775 {
8776 if ((size_t *) 0)
8777   return 0;
8778 if (sizeof (size_t))
8779   return 0;
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786   (eval $ac_compile) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -z "$ac_c_werror_flag"
8794                          || test ! -s conftest.err'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; } &&
8800          { ac_try='test -s conftest.$ac_objext'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; }; then
8806   ac_cv_type_size_t=yes
8807 else
8808   echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_cv_type_size_t=no
8812 fi
8813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814 fi
8815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8817 if test $ac_cv_type_size_t = yes; then
8818   :
8819 else
8820
8821 cat >>confdefs.h <<_ACEOF
8822 #define size_t unsigned
8823 _ACEOF
8824
8825 fi
8826
8827 echo "$as_me:$LINENO: checking for off_t" >&5
8828 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8829 if test "${ac_cv_type_off_t+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   cat >conftest.$ac_ext <<_ACEOF
8833 /* confdefs.h.  */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h.  */
8838 $ac_includes_default
8839 int
8840 main ()
8841 {
8842 if ((off_t *) 0)
8843   return 0;
8844 if (sizeof (off_t))
8845   return 0;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"
8860                          || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_type_off_t=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_type_off_t=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8882 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8883 if test $ac_cv_type_off_t = yes; then
8884   :
8885 else
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define off_t long
8889 _ACEOF
8890
8891 fi
8892
8893 echo "$as_me:$LINENO: checking for pid_t" >&5
8894 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8895 if test "${ac_cv_type_pid_t+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 $ac_includes_default
8905 int
8906 main ()
8907 {
8908 if ((pid_t *) 0)
8909   return 0;
8910 if (sizeof (pid_t))
8911   return 0;
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918   (eval $ac_compile) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest.$ac_objext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_type_pid_t=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_cv_type_pid_t=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8949 if test $ac_cv_type_pid_t = yes; then
8950   :
8951 else
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define pid_t int
8955 _ACEOF
8956
8957 fi
8958
8959
8960 echo "$as_me:$LINENO: checking volatile declaration" >&5
8961 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8962 if test "${timidity_cv_type_volatile+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971
8972 int
8973 main ()
8974 {
8975 volatile int x
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } &&
8989          { ac_try='test -z "$ac_c_werror_flag"
8990                          || test ! -s conftest.err'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; } &&
8996          { ac_try='test -s conftest.$ac_objext'
8997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998   (eval $ac_try) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); }; }; then
9002   timidity_cv_type_volatile=yes
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007 timidity_cv_type_volatile=no
9008 fi
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9012 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9013 if test $timidity_cv_type_volatile = no; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define NO_VOLATILE 1
9017 _ACEOF
9018
9019 fi
9020
9021 echo "$as_me:$LINENO: checking union semun declaration" >&5
9022 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9023 if test "${timidity_cv_type_union_semun+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 #include <sys/types.h>
9034 #include <sys/ipc.h>
9035 #include <sys/sem.h>
9036
9037 int
9038 main ()
9039 {
9040 union semun x
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag"
9055                          || test ! -s conftest.err'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; } &&
9061          { ac_try='test -s conftest.$ac_objext'
9062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; }; then
9067   timidity_cv_type_union_semun=yes
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 timidity_cv_type_union_semun=no
9073 fi
9074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9077 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9078 if test $timidity_cv_type_union_semun = yes; then
9079
9080 cat >>confdefs.h <<\_ACEOF
9081 #define HAVE_UNION_SEMUN 1
9082 _ACEOF
9083
9084 fi
9085
9086 if test "x$CYGNUS" = xyes; then
9087   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9088 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9089 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 #include <windows.h>
9100 #include <mmsystem.h>
9101
9102 int
9103 main ()
9104 {
9105 return WOM_OPEN != 0x3BB
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112   (eval $ac_compile) 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -z "$ac_c_werror_flag"
9120                          || test ! -s conftest.err'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; } &&
9126          { ac_try='test -s conftest.$ac_objext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   timidity_cv_header_new_mmsystem=yes
9133 else
9134   echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 timidity_cv_header_new_mmsystem=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 fi
9141 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9142 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9143   if test $timidity_cv_header_new_mmsystem = yes; then
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_NEW_MMSYSTEM 1
9147 _ACEOF
9148
9149   fi
9150 fi
9151
9152 if test "x$MINGW" = xyes; then
9153   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9154 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9155 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164
9165 #include <windows.h>
9166 #include <mmsystem.h>
9167
9168 int
9169 main ()
9170 {
9171 return WOM_OPEN != 0x3BB
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178   (eval $ac_compile) 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } &&
9185          { ac_try='test -z "$ac_c_werror_flag"
9186                          || test ! -s conftest.err'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; } &&
9192          { ac_try='test -s conftest.$ac_objext'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   timidity_cv_header_new_mmsystem=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 timidity_cv_header_new_mmsystem=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9208 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9209   if test $timidity_cv_header_new_mmsystem = yes; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_NEW_MMSYSTEM 1
9213 _ACEOF
9214
9215   fi
9216 fi
9217
9218 # Checks for library functions.
9219 echo "$as_me:$LINENO: checking for error_at_line" >&5
9220 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9221 if test "${ac_cv_lib_error_at_line+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 $ac_includes_default
9231 int
9232 main ()
9233 {
9234 error_at_line (0, 0, "", 0, "");
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_lib_error_at_line=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_error_at_line=no
9267 fi
9268 rm -f conftest.err conftest.$ac_objext \
9269       conftest$ac_exeext conftest.$ac_ext
9270 fi
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9272 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9273 if test $ac_cv_lib_error_at_line = no; then
9274   case $LIBOBJS in
9275     "error.$ac_objext"   | \
9276   *" error.$ac_objext"   | \
9277     "error.$ac_objext "* | \
9278   *" error.$ac_objext "* ) ;;
9279   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9280 esac
9281
9282 fi
9283
9284
9285
9286 for ac_header in unistd.h vfork.h
9287 do
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290   echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 fi
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 else
9298   # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -z "$ac_c_werror_flag"
9320                          || test ! -s conftest.err'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; } &&
9326          { ac_try='test -s conftest.$ac_objext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_header_compiler=yes
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 ac_header_compiler=no
9338 fi
9339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6
9342
9343 # Is the header present?
9344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 #include <$ac_header>
9353 _ACEOF
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } >/dev/null; then
9362   if test -s conftest.err; then
9363     ac_cpp_err=$ac_c_preproc_warn_flag
9364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9365   else
9366     ac_cpp_err=
9367   fi
9368 else
9369   ac_cpp_err=yes
9370 fi
9371 if test -z "$ac_cpp_err"; then
9372   ac_header_preproc=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377   ac_header_preproc=no
9378 fi
9379 rm -f conftest.err conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9381 echo "${ECHO_T}$ac_header_preproc" >&6
9382
9383 # So?  What about this header?
9384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385   yes:no: )
9386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9390     ac_header_preproc=yes
9391     ;;
9392   no:yes:* )
9393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9405     (
9406       cat <<\_ASBOX
9407 ## ------------------------------- ##
9408 ## Report this to root@mput.dip.jp ##
9409 ## ------------------------------- ##
9410 _ASBOX
9411     ) |
9412       sed "s/^/$as_me: WARNING:     /" >&2
9413     ;;
9414 esac
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   eval "$as_ac_Header=\$ac_header_preproc"
9421 fi
9422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9424
9425 fi
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427   cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9429 _ACEOF
9430
9431 fi
9432
9433 done
9434
9435
9436
9437 for ac_func in fork vfork
9438 do
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9453 #define $ac_func innocuous_$ac_func
9454
9455 /* System header to define __stub macros and hopefully few prototypes,
9456     which can conflict with char $ac_func (); below.
9457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458     <limits.h> exists even on freestanding compilers.  */
9459
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9465
9466 #undef $ac_func
9467
9468 /* Override any gcc2 internal prototype to avoid an error.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 {
9472 #endif
9473 /* We use char because int might match the return type of a gcc2
9474    builtin and then its argument prototype would still apply.  */
9475 char $ac_func ();
9476 /* The GNU C library defines this for functions which it implements
9477     to always fail with ENOSYS.  Some functions are actually named
9478     something starting with __ and the normal name is an alias.  */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480 choke me
9481 #else
9482 char (*f) () = $ac_func;
9483 #endif
9484 #ifdef __cplusplus
9485 }
9486 #endif
9487
9488 int
9489 main ()
9490 {
9491 return f != $ac_func;
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498   (eval $ac_link) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"
9506                          || test ! -s conftest.err'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest$ac_exeext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   eval "$as_ac_var=yes"
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 eval "$as_ac_var=no"
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526       conftest$ac_exeext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531   cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534
9535 fi
9536 done
9537
9538 if test "x$ac_cv_func_fork" = xyes; then
9539   echo "$as_me:$LINENO: checking for working fork" >&5
9540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9541 if test "${ac_cv_func_fork_works+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   if test "$cross_compiling" = yes; then
9545   ac_cv_func_fork_works=cross
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* By Ruediger Kuhlmann. */
9549       #include <sys/types.h>
9550       #if HAVE_UNISTD_H
9551       # include <unistd.h>
9552       #endif
9553       /* Some systems only have a dummy stub for fork() */
9554       int main ()
9555       {
9556         if (fork() < 0)
9557           exit (1);
9558         exit (0);
9559       }
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563   (eval $ac_link) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_func_fork_works=yes
9573 else
9574   echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ( exit $ac_status )
9579 ac_cv_func_fork_works=no
9580 fi
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 fi
9584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9586
9587 else
9588   ac_cv_func_fork_works=$ac_cv_func_fork
9589 fi
9590 if test "x$ac_cv_func_fork_works" = xcross; then
9591   case $host in
9592     *-*-amigaos* | *-*-msdosdjgpp*)
9593       # Override, as these systems have only a dummy fork() stub
9594       ac_cv_func_fork_works=no
9595       ;;
9596     *)
9597       ac_cv_func_fork_works=yes
9598       ;;
9599   esac
9600   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9602 fi
9603 ac_cv_func_vfork_works=$ac_cv_func_vfork
9604 if test "x$ac_cv_func_vfork" = xyes; then
9605   echo "$as_me:$LINENO: checking for working vfork" >&5
9606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9607 if test "${ac_cv_func_vfork_works+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   if test "$cross_compiling" = yes; then
9611   ac_cv_func_vfork_works=cross
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Thanks to Paul Eggert for this test.  */
9620 #include <stdio.h>
9621 #include <stdlib.h>
9622 #include <sys/types.h>
9623 #include <sys/stat.h>
9624 #include <sys/wait.h>
9625 #if HAVE_UNISTD_H
9626 # include <unistd.h>
9627 #endif
9628 #if HAVE_VFORK_H
9629 # include <vfork.h>
9630 #endif
9631 /* On some sparc systems, changes by the child to local and incoming
9632    argument registers are propagated back to the parent.  The compiler
9633    is told about this with #include <vfork.h>, but some compilers
9634    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9635    static variable whose address is put into a register that is
9636    clobbered by the vfork.  */
9637 static void
9638 #ifdef __cplusplus
9639 sparc_address_test (int arg)
9640 # else
9641 sparc_address_test (arg) int arg;
9642 #endif
9643 {
9644   static pid_t child;
9645   if (!child) {
9646     child = vfork ();
9647     if (child < 0) {
9648       perror ("vfork");
9649       _exit(2);
9650     }
9651     if (!child) {
9652       arg = getpid();
9653       write(-1, "", 0);
9654       _exit (arg);
9655     }
9656   }
9657 }
9658
9659 int
9660 main ()
9661 {
9662   pid_t parent = getpid ();
9663   pid_t child;
9664
9665   sparc_address_test (0);
9666
9667   child = vfork ();
9668
9669   if (child == 0) {
9670     /* Here is another test for sparc vfork register problems.  This
9671        test uses lots of local variables, at least as many local
9672        variables as main has allocated so far including compiler
9673        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9674        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9675        reuse the register of parent for one of the local variables,
9676        since it will think that parent can't possibly be used any more
9677        in this routine.  Assigning to the local variable will thus
9678        munge parent in the parent process.  */
9679     pid_t
9680       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9681       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9682     /* Convince the compiler that p..p7 are live; otherwise, it might
9683        use the same hardware register for all 8 local variables.  */
9684     if (p != p1 || p != p2 || p != p3 || p != p4
9685         || p != p5 || p != p6 || p != p7)
9686       _exit(1);
9687
9688     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9689        from child file descriptors.  If the child closes a descriptor
9690        before it execs or exits, this munges the parent's descriptor
9691        as well.  Test for this by closing stdout in the child.  */
9692     _exit(close(fileno(stdout)) != 0);
9693   } else {
9694     int status;
9695     struct stat st;
9696
9697     while (wait(&status) != child)
9698       ;
9699     exit(
9700          /* Was there some problem with vforking?  */
9701          child < 0
9702
9703          /* Did the child fail?  (This shouldn't happen.)  */
9704          || status
9705
9706          /* Did the vfork/compiler bug occur?  */
9707          || parent != getpid()
9708
9709          /* Did the file descriptor bug occur?  */
9710          || fstat(fileno(stdout), &st) != 0
9711          );
9712   }
9713 }
9714 _ACEOF
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717   (eval $ac_link) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_func_vfork_works=yes
9727 else
9728   echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ( exit $ac_status )
9733 ac_cv_func_vfork_works=no
9734 fi
9735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9736 fi
9737 fi
9738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9740
9741 fi;
9742 if test "x$ac_cv_func_fork_works" = xcross; then
9743   ac_cv_func_vfork_works=$ac_cv_func_vfork
9744   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9746 fi
9747
9748 if test "x$ac_cv_func_vfork_works" = xyes; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_WORKING_VFORK 1
9752 _ACEOF
9753
9754 else
9755
9756 cat >>confdefs.h <<\_ACEOF
9757 #define vfork fork
9758 _ACEOF
9759
9760 fi
9761 if test "x$ac_cv_func_fork_works" = xyes; then
9762
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_WORKING_FORK 1
9765 _ACEOF
9766
9767 fi
9768
9769 echo "$as_me:$LINENO: checking for working memcmp" >&5
9770 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9771 if test "${ac_cv_func_memcmp_working+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   if test "$cross_compiling" = yes; then
9775   ac_cv_func_memcmp_working=no
9776 else
9777   cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h.  */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h.  */
9783 $ac_includes_default
9784 int
9785 main ()
9786 {
9787
9788   /* Some versions of memcmp are not 8-bit clean.  */
9789   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9790   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9791     exit (1);
9792
9793   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9794      or more and with at least one buffer not starting on a 4-byte boundary.
9795      William Lewis provided this test program.   */
9796   {
9797     char foo[21];
9798     char bar[21];
9799     int i;
9800     for (i = 0; i < 4; i++)
9801       {
9802         char *a = foo + i;
9803         char *b = bar + i;
9804         strcpy (a, "--------01111111");
9805         strcpy (b, "--------10000000");
9806         if (memcmp (a, b, 16) >= 0)
9807           exit (1);
9808       }
9809     exit (0);
9810   }
9811
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818   (eval $ac_link) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_cv_func_memcmp_working=yes
9828 else
9829   echo "$as_me: program exited with status $ac_status" >&5
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 ( exit $ac_status )
9834 ac_cv_func_memcmp_working=no
9835 fi
9836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9837 fi
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9840 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9841 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9842     "memcmp.$ac_objext"   | \
9843   *" memcmp.$ac_objext"   | \
9844     "memcmp.$ac_objext "* | \
9845   *" memcmp.$ac_objext "* ) ;;
9846   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9847 esac
9848
9849
9850
9851
9852 for ac_header in stdlib.h unistd.h
9853 do
9854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856   echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 fi
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9863 else
9864   # Is the header compilable?
9865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 $ac_includes_default
9874 #include <$ac_header>
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -z "$ac_c_werror_flag"
9886                          || test ! -s conftest.err'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest.$ac_objext'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_header_compiler=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_header_compiler=no
9904 fi
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9907 echo "${ECHO_T}$ac_header_compiler" >&6
9908
9909 # Is the header present?
9910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 #include <$ac_header>
9919 _ACEOF
9920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } >/dev/null; then
9928   if test -s conftest.err; then
9929     ac_cpp_err=$ac_c_preproc_warn_flag
9930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9931   else
9932     ac_cpp_err=
9933   fi
9934 else
9935   ac_cpp_err=yes
9936 fi
9937 if test -z "$ac_cpp_err"; then
9938   ac_header_preproc=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943   ac_header_preproc=no
9944 fi
9945 rm -f conftest.err conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9947 echo "${ECHO_T}$ac_header_preproc" >&6
9948
9949 # So?  What about this header?
9950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9951   yes:no: )
9952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9956     ac_header_preproc=yes
9957     ;;
9958   no:yes:* )
9959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9971     (
9972       cat <<\_ASBOX
9973 ## ------------------------------- ##
9974 ## Report this to root@mput.dip.jp ##
9975 ## ------------------------------- ##
9976 _ASBOX
9977     ) |
9978       sed "s/^/$as_me: WARNING:     /" >&2
9979     ;;
9980 esac
9981 echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   eval "$as_ac_Header=\$ac_header_preproc"
9987 fi
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990
9991 fi
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993   cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9996
9997 fi
9998
9999 done
10000
10001
10002 for ac_func in getpagesize
10003 do
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10018 #define $ac_func innocuous_$ac_func
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char $ac_func (); below.
10022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023     <limits.h> exists even on freestanding compilers.  */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef $ac_func
10032
10033 /* Override any gcc2 internal prototype to avoid an error.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 {
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char $ac_func ();
10041 /* The GNU C library defines this for functions which it implements
10042     to always fail with ENOSYS.  Some functions are actually named
10043     something starting with __ and the normal name is an alias.  */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10045 choke me
10046 #else
10047 char (*f) () = $ac_func;
10048 #endif
10049 #ifdef __cplusplus
10050 }
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return f != $ac_func;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"
10071                          || test ! -s conftest.err'
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); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   eval "$as_ac_var=yes"
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 eval "$as_ac_var=no"
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096   cat >>confdefs.h <<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098 _ACEOF
10099
10100 fi
10101 done
10102
10103 echo "$as_me:$LINENO: checking for working mmap" >&5
10104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   if test "$cross_compiling" = yes; then
10109   ac_cv_func_mmap_fixed_mapped=no
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117 $ac_includes_default
10118 /* malloc might have been renamed as rpl_malloc. */
10119 #undef malloc
10120
10121 /* Thanks to Mike Haertel and Jim Avera for this test.
10122    Here is a matrix of mmap possibilities:
10123         mmap private not fixed
10124         mmap private fixed at somewhere currently unmapped
10125         mmap private fixed at somewhere already mapped
10126         mmap shared not fixed
10127         mmap shared fixed at somewhere currently unmapped
10128         mmap shared fixed at somewhere already mapped
10129    For private mappings, we should verify that changes cannot be read()
10130    back from the file, nor mmap's back from the file at a different
10131    address.  (There have been systems where private was not correctly
10132    implemented like the infamous i386 svr4.0, and systems where the
10133    VM page cache was not coherent with the file system buffer cache
10134    like early versions of FreeBSD and possibly contemporary NetBSD.)
10135    For shared mappings, we should conversely verify that changes get
10136    propagated back to all the places they're supposed to be.
10137
10138    Grep wants private fixed already mapped.
10139    The main things grep needs to know about mmap are:
10140    * does it exist and is it safe to write into the mmap'd area
10141    * how to use it (BSD variants)  */
10142
10143 #include <fcntl.h>
10144 #include <sys/mman.h>
10145
10146 #if !STDC_HEADERS && !HAVE_STDLIB_H
10147 char *malloc ();
10148 #endif
10149
10150 /* This mess was copied from the GNU getpagesize.h.  */
10151 #if !HAVE_GETPAGESIZE
10152 /* Assume that all systems that can run configure have sys/param.h.  */
10153 # if !HAVE_SYS_PARAM_H
10154 #  define HAVE_SYS_PARAM_H 1
10155 # endif
10156
10157 # ifdef _SC_PAGESIZE
10158 #  define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 #  if HAVE_SYS_PARAM_H
10161 #   include <sys/param.h>
10162 #   ifdef EXEC_PAGESIZE
10163 #    define getpagesize() EXEC_PAGESIZE
10164 #   else /* no EXEC_PAGESIZE */
10165 #    ifdef NBPG
10166 #     define getpagesize() NBPG * CLSIZE
10167 #     ifndef CLSIZE
10168 #      define CLSIZE 1
10169 #     endif /* no CLSIZE */
10170 #    else /* no NBPG */
10171 #     ifdef NBPC
10172 #      define getpagesize() NBPC
10173 #     else /* no NBPC */
10174 #      ifdef PAGESIZE
10175 #       define getpagesize() PAGESIZE
10176 #      endif /* PAGESIZE */
10177 #     endif /* no NBPC */
10178 #    endif /* no NBPG */
10179 #   endif /* no EXEC_PAGESIZE */
10180 #  else /* no HAVE_SYS_PARAM_H */
10181 #   define getpagesize() 8192   /* punt totally */
10182 #  endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10184
10185 #endif /* no HAVE_GETPAGESIZE */
10186
10187 int
10188 main ()
10189 {
10190   char *data, *data2, *data3;
10191   int i, pagesize;
10192   int fd;
10193
10194   pagesize = getpagesize ();
10195
10196   /* First, make a file with some known garbage in it. */
10197   data = (char *) malloc (pagesize);
10198   if (!data)
10199     exit (1);
10200   for (i = 0; i < pagesize; ++i)
10201     *(data + i) = rand ();
10202   umask (0);
10203   fd = creat ("conftest.mmap", 0600);
10204   if (fd < 0)
10205     exit (1);
10206   if (write (fd, data, pagesize) != pagesize)
10207     exit (1);
10208   close (fd);
10209
10210   /* Next, try to mmap the file at a fixed address which already has
10211      something else allocated at it.  If we can, also make sure that
10212      we see the same garbage.  */
10213   fd = open ("conftest.mmap", O_RDWR);
10214   if (fd < 0)
10215     exit (1);
10216   data2 = (char *) malloc (2 * pagesize);
10217   if (!data2)
10218     exit (1);
10219   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10220   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10221                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10222     exit (1);
10223   for (i = 0; i < pagesize; ++i)
10224     if (*(data + i) != *(data2 + i))
10225       exit (1);
10226
10227   /* Finally, make sure that changes to the mapped area do not
10228      percolate back to the file as seen by read().  (This is a bug on
10229      some variants of i386 svr4.0.)  */
10230   for (i = 0; i < pagesize; ++i)
10231     *(data2 + i) = *(data2 + i) + 1;
10232   data3 = (char *) malloc (pagesize);
10233   if (!data3)
10234     exit (1);
10235   if (read (fd, data3, pagesize) != pagesize)
10236     exit (1);
10237   for (i = 0; i < pagesize; ++i)
10238     if (*(data + i) != *(data3 + i))
10239       exit (1);
10240   close (fd);
10241   exit (0);
10242 }
10243 _ACEOF
10244 rm -f conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246   (eval $ac_link) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_func_mmap_fixed_mapped=yes
10256 else
10257   echo "$as_me: program exited with status $ac_status" >&5
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261 ( exit $ac_status )
10262 ac_cv_func_mmap_fixed_mapped=no
10263 fi
10264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10265 fi
10266 fi
10267 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10268 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10269 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10270
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_MMAP 1
10273 _ACEOF
10274
10275 fi
10276 rm -f conftest.mmap
10277
10278 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10279 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10280 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   ac_cv_func_setvbuf_reversed=no
10284    cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <stdio.h>
10291 #         if PROTOTYPES
10292            int (setvbuf) (FILE *, int, char *, size_t);
10293 #         endif
10294 int
10295 main ()
10296 {
10297 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag"
10312                          || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 #include <stdio.h>
10331 #            if PROTOTYPES
10332               int (setvbuf) (FILE *, int, char *, size_t);
10333 #            endif
10334 int
10335 main ()
10336 {
10337 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest$ac_exeext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   # It compiles and links either way, so it must not be declared
10365          # with a prototype and most likely this is a K&R C compiler.
10366          # Try running it.
10367          if test "$cross_compiling" = yes; then
10368   : # Assume setvbuf is not reversed when cross-compiling.
10369 else
10370   cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h.  */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h.  */
10376 #include <stdio.h>
10377 int
10378 main ()
10379 {
10380 /* This call has the arguments reversed.
10381                    A reversed system may check and see that the address of buf
10382                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10383                 char buf;
10384                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10385                   exit (1);
10386                 putchar ('\r');
10387                 exit (0); /* Non-reversed systems SEGV here.  */
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394   (eval $ac_link) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   ac_cv_func_setvbuf_reversed=yes
10404 else
10405   echo "$as_me: program exited with status $ac_status" >&5
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ( exit $ac_status )
10410 rm -f core *.core
10411 fi
10412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10413 fi
10414         ac_cv_func_setvbuf_reversed=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 fi
10420 rm -f conftest.err conftest.$ac_objext \
10421       conftest$ac_exeext conftest.$ac_ext
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 fi
10427 rm -f conftest.err conftest.$ac_objext \
10428       conftest$ac_exeext conftest.$ac_ext
10429 fi
10430 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10431 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10432 if test $ac_cv_func_setvbuf_reversed = yes; then
10433
10434 cat >>confdefs.h <<\_ACEOF
10435 #define SETVBUF_REVERSED 1
10436 _ACEOF
10437
10438 fi
10439
10440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10442 if test "${ac_cv_type_signal+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451 #include <sys/types.h>
10452 #include <signal.h>
10453 #ifdef signal
10454 # undef signal
10455 #endif
10456 #ifdef __cplusplus
10457 extern "C" void (*signal (int, void (*)(int)))(int);
10458 #else
10459 void (*signal ()) ();
10460 #endif
10461
10462 int
10463 main ()
10464 {
10465 int i;
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } &&
10479          { ac_try='test -z "$ac_c_werror_flag"
10480                          || test ! -s conftest.err'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   ac_cv_type_signal=void
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_cv_type_signal=int
10498 fi
10499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10502 echo "${ECHO_T}$ac_cv_type_signal" >&6
10503
10504 cat >>confdefs.h <<_ACEOF
10505 #define RETSIGTYPE $ac_cv_type_signal
10506 _ACEOF
10507
10508
10509
10510 for ac_func in vprintf
10511 do
10512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_var+set}\" = set"; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10526 #define $ac_func innocuous_$ac_func
10527
10528 /* System header to define __stub macros and hopefully few prototypes,
10529     which can conflict with char $ac_func (); below.
10530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531     <limits.h> exists even on freestanding compilers.  */
10532
10533 #ifdef __STDC__
10534 # include <limits.h>
10535 #else
10536 # include <assert.h>
10537 #endif
10538
10539 #undef $ac_func
10540
10541 /* Override any gcc2 internal prototype to avoid an error.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 {
10545 #endif
10546 /* We use char because int might match the return type of a gcc2
10547    builtin and then its argument prototype would still apply.  */
10548 char $ac_func ();
10549 /* The GNU C library defines this for functions which it implements
10550     to always fail with ENOSYS.  Some functions are actually named
10551     something starting with __ and the normal name is an alias.  */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553 choke me
10554 #else
10555 char (*f) () = $ac_func;
10556 #endif
10557 #ifdef __cplusplus
10558 }
10559 #endif
10560
10561 int
10562 main ()
10563 {
10564 return f != $ac_func;
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571   (eval $ac_link) 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -z "$ac_c_werror_flag"
10579                          || test ! -s conftest.err'
10580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581   (eval $ac_try) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); }; } &&
10585          { ac_try='test -s conftest$ac_exeext'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; }; then
10591   eval "$as_ac_var=yes"
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 eval "$as_ac_var=no"
10597 fi
10598 rm -f conftest.err conftest.$ac_objext \
10599       conftest$ac_exeext conftest.$ac_ext
10600 fi
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604   cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606 _ACEOF
10607
10608 echo "$as_me:$LINENO: checking for _doprnt" >&5
10609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10610 if test "${ac_cv_func__doprnt+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10621 #define _doprnt innocuous__doprnt
10622
10623 /* System header to define __stub macros and hopefully few prototypes,
10624     which can conflict with char _doprnt (); below.
10625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626     <limits.h> exists even on freestanding compilers.  */
10627
10628 #ifdef __STDC__
10629 # include <limits.h>
10630 #else
10631 # include <assert.h>
10632 #endif
10633
10634 #undef _doprnt
10635
10636 /* Override any gcc2 internal prototype to avoid an error.  */
10637 #ifdef __cplusplus
10638 extern "C"
10639 {
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642    builtin and then its argument prototype would still apply.  */
10643 char _doprnt ();
10644 /* The GNU C library defines this for functions which it implements
10645     to always fail with ENOSYS.  Some functions are actually named
10646     something starting with __ and the normal name is an alias.  */
10647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10648 choke me
10649 #else
10650 char (*f) () = _doprnt;
10651 #endif
10652 #ifdef __cplusplus
10653 }
10654 #endif
10655
10656 int
10657 main ()
10658 {
10659 return f != _doprnt;
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag"
10674                          || test ! -s conftest.err'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest$ac_exeext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   ac_cv_func__doprnt=yes
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_func__doprnt=no
10692 fi
10693 rm -f conftest.err conftest.$ac_objext \
10694       conftest$ac_exeext conftest.$ac_ext
10695 fi
10696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10698 if test $ac_cv_func__doprnt = yes; then
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_DOPRNT 1
10702 _ACEOF
10703
10704 fi
10705
10706 fi
10707 done
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 for ac_func in \
10744   alarm \
10745   dup2 \
10746   floor \
10747   getcwd \
10748   getopt \
10749   gethostbyname \
10750   gettimeofday \
10751   getwd \
10752   isatty \
10753   memchr \
10754   memmove \
10755   memset \
10756   modf \
10757   munmap \
10758   popen \
10759   pow \
10760   select \
10761   signal \
10762   socket \
10763   sleep \
10764   vsnprintf \
10765   snprintf \
10766   sqrt \
10767   strchr \
10768   strdup \
10769   strstr \
10770   strerror \
10771   strcasecmp \
10772   strncasecmp \
10773   strrchr \
10774   strstr \
10775   strtol \
10776   usleep
10777 do
10778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10779 echo "$as_me:$LINENO: checking for $ac_func" >&5
10780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_var+set}\" = set"; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10792 #define $ac_func innocuous_$ac_func
10793
10794 /* System header to define __stub macros and hopefully few prototypes,
10795     which can conflict with char $ac_func (); below.
10796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797     <limits.h> exists even on freestanding compilers.  */
10798
10799 #ifdef __STDC__
10800 # include <limits.h>
10801 #else
10802 # include <assert.h>
10803 #endif
10804
10805 #undef $ac_func
10806
10807 /* Override any gcc2 internal prototype to avoid an error.  */
10808 #ifdef __cplusplus
10809 extern "C"
10810 {
10811 #endif
10812 /* We use char because int might match the return type of a gcc2
10813    builtin and then its argument prototype would still apply.  */
10814 char $ac_func ();
10815 /* The GNU C library defines this for functions which it implements
10816     to always fail with ENOSYS.  Some functions are actually named
10817     something starting with __ and the normal name is an alias.  */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10819 choke me
10820 #else
10821 char (*f) () = $ac_func;
10822 #endif
10823 #ifdef __cplusplus
10824 }
10825 #endif
10826
10827 int
10828 main ()
10829 {
10830 return f != $ac_func;
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837   (eval $ac_link) 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -z "$ac_c_werror_flag"
10845                          || test ! -s conftest.err'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; } &&
10851          { ac_try='test -s conftest$ac_exeext'
10852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853   (eval $ac_try) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   eval "$as_ac_var=yes"
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 eval "$as_ac_var=no"
10863 fi
10864 rm -f conftest.err conftest.$ac_objext \
10865       conftest$ac_exeext conftest.$ac_ext
10866 fi
10867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10869 if test `eval echo '${'$as_ac_var'}'` = yes; then
10870   cat >>confdefs.h <<_ACEOF
10871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10872 _ACEOF
10873
10874 fi
10875 done
10876
10877 echo "$as_me:$LINENO: checking for getopt_long" >&5
10878 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10879 if test "${ac_cv_func_getopt_long+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10890 #define getopt_long innocuous_getopt_long
10891
10892 /* System header to define __stub macros and hopefully few prototypes,
10893     which can conflict with char getopt_long (); below.
10894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895     <limits.h> exists even on freestanding compilers.  */
10896
10897 #ifdef __STDC__
10898 # include <limits.h>
10899 #else
10900 # include <assert.h>
10901 #endif
10902
10903 #undef getopt_long
10904
10905 /* Override any gcc2 internal prototype to avoid an error.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 {
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911    builtin and then its argument prototype would still apply.  */
10912 char getopt_long ();
10913 /* The GNU C library defines this for functions which it implements
10914     to always fail with ENOSYS.  Some functions are actually named
10915     something starting with __ and the normal name is an alias.  */
10916 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10917 choke me
10918 #else
10919 char (*f) () = getopt_long;
10920 #endif
10921 #ifdef __cplusplus
10922 }
10923 #endif
10924
10925 int
10926 main ()
10927 {
10928 return f != getopt_long;
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935   (eval $ac_link) 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag"
10943                          || test ! -s conftest.err'
10944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest$ac_exeext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955   ac_cv_func_getopt_long=yes
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 ac_cv_func_getopt_long=no
10961 fi
10962 rm -f conftest.err conftest.$ac_objext \
10963       conftest$ac_exeext conftest.$ac_ext
10964 fi
10965 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10966 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10967 if test $ac_cv_func_getopt_long = yes; then
10968
10969 cat >>confdefs.h <<\_ACEOF
10970 #define HAVE_GETOPT_LONG 1
10971 _ACEOF
10972
10973          tm_cv_needgetopt="no"
10974 else
10975   tm_cv_needgetopt="yes"
10976 fi
10977
10978
10979
10980 if test "x$tm_cv_needgetopt" = "xyes"; then
10981   NEEDGETOPT_TRUE=
10982   NEEDGETOPT_FALSE='#'
10983 else
10984   NEEDGETOPT_TRUE='#'
10985   NEEDGETOPT_FALSE=
10986 fi
10987
10988
10989 # Checks on cygnus
10990 if test "x$CYGNUS" = xyes; then
10991   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
10992   *yes*)
10993     echo "$as_me:$LINENO: checking for opendir" >&5
10994 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10995 if test "${ac_cv_func_opendir+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11006 #define opendir innocuous_opendir
11007
11008 /* System header to define __stub macros and hopefully few prototypes,
11009     which can conflict with char opendir (); below.
11010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11011     <limits.h> exists even on freestanding compilers.  */
11012
11013 #ifdef __STDC__
11014 # include <limits.h>
11015 #else
11016 # include <assert.h>
11017 #endif
11018
11019 #undef opendir
11020
11021 /* Override any gcc2 internal prototype to avoid an error.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 {
11025 #endif
11026 /* We use char because int might match the return type of a gcc2
11027    builtin and then its argument prototype would still apply.  */
11028 char opendir ();
11029 /* The GNU C library defines this for functions which it implements
11030     to always fail with ENOSYS.  Some functions are actually named
11031     something starting with __ and the normal name is an alias.  */
11032 #if defined (__stub_opendir) || defined (__stub___opendir)
11033 choke me
11034 #else
11035 char (*f) () = opendir;
11036 #endif
11037 #ifdef __cplusplus
11038 }
11039 #endif
11040
11041 int
11042 main ()
11043 {
11044 return f != opendir;
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_c_werror_flag"
11059                          || test ! -s conftest.err'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   ac_cv_func_opendir=yes
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 ac_cv_func_opendir=no
11077 fi
11078 rm -f conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11083 if test $ac_cv_func_opendir = yes; then
11084   :
11085 else
11086    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11087     W32READDIR=yes
11088 fi
11089
11090     ;;
11091   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11092     W32READDIR=yes
11093     ;;
11094   esac
11095   if test "x$enable_network" = "xyes"; then
11096     echo "$as_me:$LINENO: checking for socket" >&5
11097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11098 if test "${ac_cv_func_socket+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11109 #define socket innocuous_socket
11110
11111 /* System header to define __stub macros and hopefully few prototypes,
11112     which can conflict with char socket (); below.
11113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114     <limits.h> exists even on freestanding compilers.  */
11115
11116 #ifdef __STDC__
11117 # include <limits.h>
11118 #else
11119 # include <assert.h>
11120 #endif
11121
11122 #undef socket
11123
11124 /* Override any gcc2 internal prototype to avoid an error.  */
11125 #ifdef __cplusplus
11126 extern "C"
11127 {
11128 #endif
11129 /* We use char because int might match the return type of a gcc2
11130    builtin and then its argument prototype would still apply.  */
11131 char socket ();
11132 /* The GNU C library defines this for functions which it implements
11133     to always fail with ENOSYS.  Some functions are actually named
11134     something starting with __ and the normal name is an alias.  */
11135 #if defined (__stub_socket) || defined (__stub___socket)
11136 choke me
11137 #else
11138 char (*f) () = socket;
11139 #endif
11140 #ifdef __cplusplus
11141 }
11142 #endif
11143
11144 int
11145 main ()
11146 {
11147 return f != socket;
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154   (eval $ac_link) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_c_werror_flag"
11162                          || test ! -s conftest.err'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; } &&
11168          { ac_try='test -s conftest$ac_exeext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_cv_func_socket=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_cv_func_socket=no
11180 fi
11181 rm -f conftest.err conftest.$ac_objext \
11182       conftest$ac_exeext conftest.$ac_ext
11183 fi
11184 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11185 echo "${ECHO_T}$ac_cv_func_socket" >&6
11186 if test $ac_cv_func_socket = yes; then
11187   :
11188 else
11189   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11190 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11191 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11192 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   ac_save_LIBS="$LIBS"
11196 LIBS="-lwsock32  $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 #include <windows.h>
11204 #include <winsock.h>
11205
11206 int
11207 main ()
11208 {
11209 WSAStartup(0,0);
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216   (eval $ac_link) 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -z "$ac_c_werror_flag"
11224                          || test ! -s conftest.err'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest$ac_exeext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   eval "wapi_cv_lib_$ac_lib_var=yes"
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 eval "wapi_cv_lib_$ac_lib_var=no"
11242 fi
11243 rm -f conftest.err conftest.$ac_objext \
11244       conftest$ac_exeext conftest.$ac_ext
11245 LIBS="$ac_save_LIBS"
11246
11247 fi
11248 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11249   echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6
11251    EXTRALIBS="$EXTRALIBS -lwsock32"
11252     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11253 else
11254   echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11256 fi
11257
11258 fi
11259
11260   fi
11261 fi
11262
11263 # Checks on Mingw
11264 if test "x$CYGWIN" = xyes; then
11265   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
11266   *yes*)
11267     echo "$as_me:$LINENO: checking for opendir" >&5
11268 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11269 if test "${ac_cv_func_opendir+set}" = set; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11280 #define opendir innocuous_opendir
11281
11282 /* System header to define __stub macros and hopefully few prototypes,
11283     which can conflict with char opendir (); below.
11284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285     <limits.h> exists even on freestanding compilers.  */
11286
11287 #ifdef __STDC__
11288 # include <limits.h>
11289 #else
11290 # include <assert.h>
11291 #endif
11292
11293 #undef opendir
11294
11295 /* Override any gcc2 internal prototype to avoid an error.  */
11296 #ifdef __cplusplus
11297 extern "C"
11298 {
11299 #endif
11300 /* We use char because int might match the return type of a gcc2
11301    builtin and then its argument prototype would still apply.  */
11302 char opendir ();
11303 /* The GNU C library defines this for functions which it implements
11304     to always fail with ENOSYS.  Some functions are actually named
11305     something starting with __ and the normal name is an alias.  */
11306 #if defined (__stub_opendir) || defined (__stub___opendir)
11307 choke me
11308 #else
11309 char (*f) () = opendir;
11310 #endif
11311 #ifdef __cplusplus
11312 }
11313 #endif
11314
11315 int
11316 main ()
11317 {
11318 return f != opendir;
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325   (eval $ac_link) 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag"
11333                          || test ! -s conftest.err'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest$ac_exeext'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   ac_cv_func_opendir=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_cv_func_opendir=no
11351 fi
11352 rm -f conftest.err conftest.$ac_objext \
11353       conftest$ac_exeext conftest.$ac_ext
11354 fi
11355 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11356 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11357 if test $ac_cv_func_opendir = yes; then
11358   :
11359 else
11360    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11361     W32READDIR=yes
11362 fi
11363
11364     ;;
11365   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11366     W32READDIR=yes
11367     ;;
11368   esac
11369   if test "x$enable_network" = "xyes"; then
11370     echo "$as_me:$LINENO: checking for socket" >&5
11371 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11372 if test "${ac_cv_func_socket+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11383 #define socket innocuous_socket
11384
11385 /* System header to define __stub macros and hopefully few prototypes,
11386     which can conflict with char socket (); below.
11387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388     <limits.h> exists even on freestanding compilers.  */
11389
11390 #ifdef __STDC__
11391 # include <limits.h>
11392 #else
11393 # include <assert.h>
11394 #endif
11395
11396 #undef socket
11397
11398 /* Override any gcc2 internal prototype to avoid an error.  */
11399 #ifdef __cplusplus
11400 extern "C"
11401 {
11402 #endif
11403 /* We use char because int might match the return type of a gcc2
11404    builtin and then its argument prototype would still apply.  */
11405 char socket ();
11406 /* The GNU C library defines this for functions which it implements
11407     to always fail with ENOSYS.  Some functions are actually named
11408     something starting with __ and the normal name is an alias.  */
11409 #if defined (__stub_socket) || defined (__stub___socket)
11410 choke me
11411 #else
11412 char (*f) () = socket;
11413 #endif
11414 #ifdef __cplusplus
11415 }
11416 #endif
11417
11418 int
11419 main ()
11420 {
11421 return f != socket;
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428   (eval $ac_link) 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag"
11436                          || test ! -s conftest.err'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest$ac_exeext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   ac_cv_func_socket=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_func_socket=no
11454 fi
11455 rm -f conftest.err conftest.$ac_objext \
11456       conftest$ac_exeext conftest.$ac_ext
11457 fi
11458 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11459 echo "${ECHO_T}$ac_cv_func_socket" >&6
11460 if test $ac_cv_func_socket = yes; then
11461   :
11462 else
11463   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11464 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11465 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11466 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   ac_save_LIBS="$LIBS"
11470 LIBS="-lwsock32  $LIBS"
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 #include <windows.h>
11478 #include <winsock.h>
11479
11480 int
11481 main ()
11482 {
11483 WSAStartup(0,0);
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490   (eval $ac_link) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   eval "wapi_cv_lib_$ac_lib_var=yes"
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 eval "wapi_cv_lib_$ac_lib_var=no"
11516 fi
11517 rm -f conftest.err conftest.$ac_objext \
11518       conftest$ac_exeext conftest.$ac_ext
11519 LIBS="$ac_save_LIBS"
11520
11521 fi
11522 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11523   echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11525    EXTRALIBS="$EXTRALIBS -lwsock32"
11526     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11527 else
11528   echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11530 fi
11531
11532 fi
11533
11534   fi
11535 fi
11536
11537 # Checks on extra paths
11538
11539
11540 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11541 if test "${with_tcl_includes+set}" = set; then
11542   withval="$with_tcl_includes"
11543    if test ! -d $withval; then
11544       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11545 echo "$as_me: WARNING: $withval is not found." >&2;}
11546     fi
11547     tcl_include_dir="-I$withval"
11548
11549 fi;
11550
11551 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11552 if test "${with_tcl_libs+set}" = set; then
11553   withval="$with_tcl_libs"
11554    if test ! -d $withval; then
11555       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11556 echo "$as_me: WARNING: $withval is not found." >&2;}
11557     fi
11558     tcl_libdir="-L$withval"
11559 fi;
11560
11561 # Check whether --with-tk-includes or --without-tk-includes was given.
11562 if test "${with_tk_includes+set}" = set; then
11563   withval="$with_tk_includes"
11564    if test ! -d $withval; then
11565       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11566 echo "$as_me: WARNING: $withval is not found." >&2;}
11567     fi
11568     tk_includes="-I$withval"
11569 fi;
11570
11571 # Check whether --with-tk-libs or --without-tk-libs was given.
11572 if test "${with_tk_libs+set}" = set; then
11573   withval="$with_tk_libs"
11574    if test ! -d $withval; then
11575       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11576 echo "$as_me: WARNING: $withval is not found." >&2;}
11577     fi
11578     tk_libdir="-L$withval"
11579 fi;
11580
11581
11582 # Check whether --with-offix-includes or --without-offix-includes was given.
11583 if test "${with_offix_includes+set}" = set; then
11584   withval="$with_offix_includes"
11585    if test ! -d $withval; then
11586       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11587 echo "$as_me: WARNING: $withval is not found." >&2;}
11588     fi
11589     offix_include_dir="-I$withval"
11590 fi;
11591
11592 # Check whether --with-offix-libs or --without-offix-libs was given.
11593 if test "${with_offix_libs+set}" = set; then
11594   withval="$with_offix_libs"
11595    if test ! -d $withval; then
11596       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11597 echo "$as_me: WARNING: $withval is not found." >&2;}
11598     fi
11599     offix_lib_dir="-L$withval"
11600 fi;
11601
11602
11603 #
11604 # audio section
11605 #
11606
11607 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
11608
11609
11610 # Check whether --with-nas-library or --without-nas-library was given.
11611 if test "${with_nas_library+set}" = set; then
11612   withval="$with_nas_library"
11613
11614 fi;
11615
11616 # Check whether --with-nas-includes or --without-nas-includes was given.
11617 if test "${with_nas_includes+set}" = set; then
11618   withval="$with_nas_includes"
11619
11620 fi;
11621
11622
11623 # Check whether --enable-audio or --disable-audio was given.
11624 if test "${enable_audio+set}" = set; then
11625   enableval="$enable_audio"
11626    enable_audio=$enableval
11627     have_audio_opt=yes
11628 else
11629    enable_audio=yes
11630     have_audio_opt=no
11631 fi;
11632
11633 test "x$enable_audio" = xyes && enable_audio=default
11634
11635 if test "x$enable_audio" != xno; then
11636   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11637     eval "au_enable_$i=yes"
11638   done
11639 fi
11640
11641 DEFAULT_PLAYMODE=
11642
11643 # Check whether --with-default-output or --without-default-output was given.
11644 if test "${with_default_output+set}" = set; then
11645   withval="$with_default_output"
11646    if test "$enable_audio" != no; then
11647     DEFAULT_PLAYMODE=$withval
11648     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11649   else
11650     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11651 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11652   fi
11653 fi;
11654
11655
11656 if test "x$au_enable_default" = xyes; then
11657   case "$target" in
11658   *-*-linux*|*-*-freebsd*)
11659     au_enable_oss=yes
11660     ;;
11661   *-*-bsdi2.0)
11662     au_enable_sb_dsp=yes
11663     ;;
11664   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11665     au_enable_oss=yes
11666     ;;
11667   *-*-hpux*)
11668     au_enable_hpux=yes
11669     ;;
11670   *-dec-*)
11671     au_enable_mme=yes
11672     ;;
11673   *irix*)
11674     au_enable_irix=yes
11675     ;;
11676   *-*-sunos4*)
11677     au_enable_sun=yes
11678     ;;
11679   *-*-solaris*)
11680     au_enable_sun=yes
11681     ;;
11682   *-*-netbsd*)
11683     au_enable_sun=yes
11684     ;;
11685   *-*-cygwin*)
11686     au_enable_w32=yes
11687     ;;
11688   *-*-mingw*)
11689     au_enable_w32=yes
11690     ;;
11691   *-*-darwin*)
11692     au_enable_darwin=yes
11693     ;;
11694   *)
11695     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11696 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11697     ;;
11698   esac
11699 fi
11700
11701
11702 # Each audio mode's configurations
11703 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11704 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11705 if test "x$au_enable_oss" = xyes; then
11706   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11707   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11708   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11709     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11710 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11711   else
11712     case "$target" in
11713       *linux*|*freebsd*)
11714                 echo "$as_me:$LINENO: result: yes" >&5
11715 echo "${ECHO_T}yes" >&6
11716         ;;
11717       *)
11718         if test "x$ac_cv_header_soundcard_h" = xyes; then
11719           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11720 echo "${ECHO_T}yes - <soundcard.h>" >&6
11721         else
11722           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11723 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11724         fi
11725         ;;
11726     esac
11727   fi
11728
11729 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11730 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11731 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lossaudio  $LIBS"
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742
11743 /* Override any gcc2 internal prototype to avoid an error.  */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 /* We use char because int might match the return type of a gcc2
11748    builtin and then its argument prototype would still apply.  */
11749 char open ();
11750 int
11751 main ()
11752 {
11753 open ();
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -z "$ac_c_werror_flag"
11768                          || test ! -s conftest.err'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; } &&
11774          { ac_try='test -s conftest$ac_exeext'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_cv_lib_ossaudio_open=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_lib_ossaudio_open=no
11786 fi
11787 rm -f conftest.err conftest.$ac_objext \
11788       conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11792 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11793 if test $ac_cv_lib_ossaudio_open = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBOSSAUDIO 1
11796 _ACEOF
11797
11798   LIBS="-lossaudio $LIBS"
11799
11800 fi
11801
11802
11803     case "$target" in
11804     *openbsd*)
11805       if test ! -e "/dev/dsp"; then
11806         oss_device=/dev/audio
11807       fi
11808       ;;
11809   esac
11810 else
11811   echo "$as_me:$LINENO: result: no" >&5
11812 echo "${ECHO_T}no" >&6
11813 fi
11814
11815 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11816 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11817 if test "x$au_enable_sun" = xyes; then
11818   case "$target" in
11819     *-*-sunos4*)
11820       if test -f /usr/demo/SOUND/libaudio.a; then
11821         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11822         echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6
11824       else
11825         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11826 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11827       fi
11828       ;;
11829     *-*-solaris*)
11830       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11831         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11832         echo "$as_me:$LINENO: result: yes" >&5
11833 echo "${ECHO_T}yes" >&6
11834       else
11835         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11836 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11837       fi
11838       ;;
11839     *)   echo "$as_me:$LINENO: result: yes" >&5
11840 echo "${ECHO_T}yes" >&6
11841       ;;
11842   esac
11843   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11844   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11845 else
11846   echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11848 fi
11849
11850 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11851 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11852 if test "x$au_enable_hpux" = xyes; then
11853   case "$target" in
11854     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6 ;;
11856     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11857 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11858   esac
11859   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11860   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11861 else
11862   echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11864 fi
11865
11866 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11867 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11868 if test "x$au_enable_irix" = xyes; then
11869   case "$target" in
11870     *-sgi-irix5*|*-sgi-irix6.2)
11871       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11872       echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11874       ;;
11875     *-sgi-irix6*)
11876       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11877       echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11879       ;;
11880     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11881 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11882   esac
11883   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11884   EXTRALIBS="$EXTRASLIBS -laudio"
11885 else
11886   echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6
11888 fi
11889
11890 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11891 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11892 if test "x$au_enable_mme" = xyes; then
11893   case "$target" in
11894     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11895 echo "${ECHO_T}yes" >&6 ;;
11896     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11897 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11898   esac
11899   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11900   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11901   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11902   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11903 else
11904   echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6
11906 fi
11907
11908 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11909 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11910 if test "x$au_enable_sb_dsp" = xyes; then
11911   case "$target" in
11912     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6 ;;
11914     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11915 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11916   esac
11917   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11918   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11919 else
11920   echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11922 fi
11923
11924 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11925 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11926 if test "x$au_enable_w32" = xyes; then
11927   case "$target" in
11928     *-*-cygwin*)
11929      echo "$as_me:$LINENO: result: yes" >&5
11930 echo "${ECHO_T}yes" >&6
11931      ;;
11932     *-*-mingw32)
11933      echo "$as_me:$LINENO: result: yes" >&5
11934 echo "${ECHO_T}yes" >&6
11935      ;;
11936     *)
11937      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11938 echo "$as_me: WARNING: may not work on $target" >&2;}
11939      ;;
11940   esac
11941   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11942   EXTRALIBS="$EXTRALIBS -lwinmm"
11943   EXTRADEFS="$EXTRADEFS -DAU_W32"
11944 else
11945   echo "$as_me:$LINENO: result: no" >&5
11946 echo "${ECHO_T}no" >&6
11947 fi
11948
11949 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11950 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11951 if test "x$au_enable_darwin" = xyes; then
11952   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11953   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11954   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11955     case "$target" in
11956     *-*-darwin*)
11957      echo "$as_me:$LINENO: result: yes" >&5
11958 echo "${ECHO_T}yes" >&6;;
11959    *)
11960      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11961 echo "$as_me: WARNING: may not work on $target" >&2;}
11962      ;;
11963   esac
11964 else
11965   echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11967 fi
11968
11969
11970 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11971 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11972 if test "x$au_enable_alsa" = xyes; then
11973   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11974 echo "${ECHO_T}yes, configuring alsa" >&6
11975   KEEPCFLAGS=$CFLAGS
11976   KEEPLIBS=$LIBS
11977   KEEPLDFLAGS=$LDFLAGS
11978   alsa_save_CFLAGS="$CFLAGS"
11979 alsa_save_LDFLAGS="$LDFLAGS"
11980 alsa_save_LIBS="$LIBS"
11981 alsa_found=yes
11982
11983
11984 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11985 if test "${with_alsa_prefix+set}" = set; then
11986   withval="$with_alsa_prefix"
11987   alsa_prefix="$withval"
11988 else
11989   alsa_prefix=""
11990 fi;
11991
11992
11993 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11994 if test "${with_alsa_inc_prefix+set}" = set; then
11995   withval="$with_alsa_inc_prefix"
11996   alsa_inc_prefix="$withval"
11997 else
11998   alsa_inc_prefix=""
11999 fi;
12000
12001 # Check whether --enable-alsatest or --disable-alsatest was given.
12002 if test "${enable_alsatest+set}" = set; then
12003   enableval="$enable_alsatest"
12004   enable_alsatest=no
12005 else
12006   enable_alsatest=yes
12007 fi;
12008
12009 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12010 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12011 if test "$alsa_inc_prefix" != "" ; then
12012         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12013         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12014 fi
12015 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12016 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12017
12018 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12020 if test "$alsa_prefix" != "" ; then
12021         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12022         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12023 fi
12024
12025 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12026 LIBS=`echo $LIBS | sed 's/-lm//'`
12027 LIBS=`echo $LIBS | sed 's/-ldl//'`
12028 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12029 LIBS=`echo $LIBS | sed 's/  //'`
12030 LIBS="$ALSA_LIBS $LIBS"
12031 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12032 echo "${ECHO_T}$ALSA_LIBS" >&6
12033
12034 min_alsa_version=0.1.1
12035 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12036 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12037 no_alsa=""
12038     alsa_min_major_version=`echo $min_alsa_version | \
12039            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12040     alsa_min_minor_version=`echo $min_alsa_version | \
12041            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12042     alsa_min_micro_version=`echo $min_alsa_version | \
12043            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12044
12045
12046
12047
12048 ac_ext=c
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 #include <alsa/asoundlib.h>
12062
12063 int
12064 main ()
12065 {
12066
12067 /* ensure backward compatibility */
12068 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12069 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12070 #endif
12071 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12072 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12073 #endif
12074 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12075 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12076 #endif
12077
12078 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12079   exit(0);
12080 #  else
12081 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12082 #       error not present
12083 #    endif
12084
12085 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12086   exit(0);
12087 #   else
12088 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12089 #          error not present
12090 #      endif
12091
12092 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12093 #        error not present
12094 #      endif
12095 #    endif
12096 #  endif
12097 exit(0);
12098
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105   (eval $ac_compile) 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag"
12113                          || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest.$ac_objext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   echo "$as_me:$LINENO: result: found." >&5
12126 echo "${ECHO_T}found." >&6
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h.  */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h.  */
12137
12138 #include <sys/asoundlib.h>
12139
12140 int
12141 main ()
12142 {
12143
12144 /* ensure backward compatibility */
12145 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12146 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12147 #endif
12148 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12149 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12150 #endif
12151 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12152 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12153 #endif
12154
12155 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12156   exit(0);
12157 #  else
12158 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12159 #       error not present
12160 #    endif
12161
12162 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12163   exit(0);
12164 #   else
12165 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12166 #          error not present
12167 #      endif
12168
12169 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12170 #        error not present
12171 #      endif
12172 #    endif
12173 #  endif
12174 exit(0);
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag"
12190                          || test ! -s conftest.err'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   echo "$as_me:$LINENO: result: found." >&5
12203 echo "${ECHO_T}found." >&6
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 echo "$as_me:$LINENO: result: not present." >&5
12209 echo "${ECHO_T}not present." >&6
12210    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12211 echo "${ECHO_T}libasound was not found anywhere." >&6
12212    alsa_found=no
12213 fi
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12216 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12217
12218 fi
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 ac_ext=c
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225
12226
12227
12228 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12229 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12230 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lasound  $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241
12242 /* Override any gcc2 internal prototype to avoid an error.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 /* We use char because int might match the return type of a gcc2
12247    builtin and then its argument prototype would still apply.  */
12248 char snd_ctl_open ();
12249 int
12250 main ()
12251 {
12252 snd_ctl_open ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>conftest.er1
12260   ac_status=$?
12261   grep -v '^ *+' conftest.er1 >conftest.err
12262   rm -f conftest.er1
12263   cat conftest.err >&5
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } &&
12266          { ac_try='test -z "$ac_c_werror_flag"
12267                          || test ! -s conftest.err'
12268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269   (eval $ac_try) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; } &&
12273          { ac_try='test -s conftest$ac_exeext'
12274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275   (eval $ac_try) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }; }; then
12279   ac_cv_lib_asound_snd_ctl_open=yes
12280 else
12281   echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_cv_lib_asound_snd_ctl_open=no
12285 fi
12286 rm -f conftest.err conftest.$ac_objext \
12287       conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12291 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12292 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12293   cat >>confdefs.h <<_ACEOF
12294 #define HAVE_LIBASOUND 1
12295 _ACEOF
12296
12297   LIBS="-lasound $LIBS"
12298
12299 else
12300   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12301 echo "${ECHO_T}No linkable libasound was found." >&6
12302    alsa_found=no
12303
12304 fi
12305
12306
12307 if test "x$alsa_found" = "xyes" ; then
12308    :
12309    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12310    LIBS=`echo $LIBS | sed 's/  //'`
12311    LIBS="-lasound $LIBS"
12312 else
12313    :
12314    CFLAGS="$alsa_save_CFLAGS"
12315    LDFLAGS="$alsa_save_LDFLAGS"
12316    LIBS="$alsa_save_LIBS"
12317    ALSA_CFLAGS=""
12318    ALSA_LIBS=""
12319 fi
12320
12321
12322
12323
12324   if test "x$alsa_found" = "xyes" ; then
12325         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12326     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12327     for f in $ALSA_CFLAGS; do
12328     case ".$f" in
12329         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12330         *)              CFLAGS="$CPPFLAGS $f" ;;
12331     esac
12332 done
12333
12334     LIBS="$KEEPLIBS $ALSA_LIBS"
12335
12336 for ac_func in snd_seq_port_info_set_timestamping
12337 do
12338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12339 echo "$as_me:$LINENO: checking for $ac_func" >&5
12340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12341 if eval "test \"\${$as_ac_var+set}\" = set"; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12352 #define $ac_func innocuous_$ac_func
12353
12354 /* System header to define __stub macros and hopefully few prototypes,
12355     which can conflict with char $ac_func (); below.
12356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12357     <limits.h> exists even on freestanding compilers.  */
12358
12359 #ifdef __STDC__
12360 # include <limits.h>
12361 #else
12362 # include <assert.h>
12363 #endif
12364
12365 #undef $ac_func
12366
12367 /* Override any gcc2 internal prototype to avoid an error.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 {
12371 #endif
12372 /* We use char because int might match the return type of a gcc2
12373    builtin and then its argument prototype would still apply.  */
12374 char $ac_func ();
12375 /* The GNU C library defines this for functions which it implements
12376     to always fail with ENOSYS.  Some functions are actually named
12377     something starting with __ and the normal name is an alias.  */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 char (*f) () = $ac_func;
12382 #endif
12383 #ifdef __cplusplus
12384 }
12385 #endif
12386
12387 int
12388 main ()
12389 {
12390 return f != $ac_func;
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397   (eval $ac_link) 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -z "$ac_c_werror_flag"
12405                          || test ! -s conftest.err'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; } &&
12411          { ac_try='test -s conftest$ac_exeext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   eval "$as_ac_var=yes"
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 eval "$as_ac_var=no"
12423 fi
12424 rm -f conftest.err conftest.$ac_objext \
12425       conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12429 if test `eval echo '${'$as_ac_var'}'` = yes; then
12430   cat >>confdefs.h <<_ACEOF
12431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12432 _ACEOF
12433
12434 fi
12435 done
12436
12437   else
12438     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12439 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12440     CFLAGS=$KEEPCFLAGS
12441     LIBS=$KEEPLIBS
12442     LDFLAGS=$KEEPLDFLAGS
12443   fi
12444 else
12445   echo "$as_me:$LINENO: result: no" >&5
12446 echo "${ECHO_T}no" >&6
12447 fi
12448
12449 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12450 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12451 if test "x$au_enable_alib" = xyes; then
12452   case "$target" in
12453     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12454 echo "${ECHO_T}yes" >&6 ;;
12455     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12456 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12457   esac
12458   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12459   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12460   if test -d /opt/audio/include; then
12461     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12462   fi
12463   if test -d /opt/audio/lib; then
12464     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12465   fi
12466   EXTRALIBS="$EXTRALIBS -lAlib"
12467 else
12468   echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6
12470 fi
12471
12472 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12473 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12474 if test "x$au_enable_nas" = xyes; then
12475   if test "x$with_x" != xyes; then
12476     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12477 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12478    { (exit 1); exit 1; }; }
12479   fi
12480   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12481   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12482
12483
12484   if test "x$with_nas_library" != x; then
12485     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12486 echo "${ECHO_T}$with_nas_library" >&6;
12487     EXTRALIBS="$EXTRALIBS $with_nas_library"
12488   else
12489     echo "$as_me:$LINENO: result: " >&5
12490 echo "${ECHO_T}" >&6
12491     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12492 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12493 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   ac_func_search_save_LIBS="$LIBS"
12497 timidity_cv_search_AuOpenServer="no"
12498 for i in $x_libraries/libaudio.a \
12499          /usr/lib/libaudio.so \
12500          /usr/lib/libaudio.a ; do
12501   LIBS="$i  $ac_func_search_save_LIBS"
12502   cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508
12509 /* Override any gcc2 internal prototype to avoid an error.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 /* We use char because int might match the return type of a gcc2
12514    builtin and then its argument prototype would still apply.  */
12515 char AuOpenServer ();
12516 int
12517 main ()
12518 {
12519 AuOpenServer ();
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526   (eval $ac_link) 2>conftest.er1
12527   ac_status=$?
12528   grep -v '^ *+' conftest.er1 >conftest.err
12529   rm -f conftest.er1
12530   cat conftest.err >&5
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -z "$ac_c_werror_flag"
12534                          || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   timidity_cv_search_AuOpenServer="$i"; break
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554 done
12555 LIBS="$ac_func_search_save_LIBS"
12556 fi
12557 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12558 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12559 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12560    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12561 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12562           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12563 else :
12564   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12565 echo "$as_me: WARNING: NAS library is not found." >&2;}
12566 fi
12567   fi
12568   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12569   lib_xt_opt=-lXt
12570   if test "x$have_xext" = xyes; then
12571     lib_xext_opt=-lXext
12572   fi
12573   if test "x$have_xprelibs" = xyes; then
12574     lib_xprelibs_opt='-lSM -lICE'
12575   fi
12576 else
12577   echo "$as_me:$LINENO: result: no" >&5
12578 echo "${ECHO_T}no" >&6
12579 fi
12580
12581 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12582 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12583 if test "x$au_enable_arts" = xyes; then
12584   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12585 echo "${ECHO_T}yes, configuring aRts" >&6
12586   KEEPCFLAGS=$CFLAGS
12587   KEEPLIBS=$LIBS
12588   KEEPLDFLAGS=$LDFLAGS
12589
12590 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12591 if test "${with_arts_prefix+set}" = set; then
12592   withval="$with_arts_prefix"
12593   arts_prefix="$withval"
12594 else
12595   arts_prefix=""
12596 fi;
12597 # Check whether --enable-artstest or --disable-artstest was given.
12598 if test "${enable_artstest+set}" = set; then
12599   enableval="$enable_artstest"
12600
12601 else
12602   enable_artstest=yes
12603 fi;
12604
12605   if test x$arts_prefix != x ; then
12606      arts_args="$arts_args --prefix=$arts_prefix"
12607      if test x${ARTS_CONFIG+set} != xset ; then
12608         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12609      fi
12610   fi
12611
12612   # Extract the first word of "artsc-config", so it can be a program name with args.
12613 set dummy artsc-config; ac_word=$2
12614 echo "$as_me:$LINENO: checking for $ac_word" >&5
12615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12616 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   case $ARTS_CONFIG in
12620   [\\/]* | ?:[\\/]*)
12621   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12622   ;;
12623   *)
12624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627   IFS=$as_save_IFS
12628   test -z "$as_dir" && as_dir=.
12629   for ac_exec_ext in '' $ac_executable_extensions; do
12630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12633     break 2
12634   fi
12635 done
12636 done
12637
12638   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12639   ;;
12640 esac
12641 fi
12642 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12643
12644 if test -n "$ARTS_CONFIG"; then
12645   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12646 echo "${ECHO_T}$ARTS_CONFIG" >&6
12647 else
12648   echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12650 fi
12651
12652   min_arts_version=0.9.5
12653   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12654 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12655   no_arts=""
12656   if test "$ARTS_CONFIG" = "no" ; then
12657     no_arts=yes
12658   else
12659     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12660     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12661
12662     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12663            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12664     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12665            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12666     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12667            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12668     if test "x$enable_artstest" = "xyes" ; then
12669       ac_save_CFLAGS="$CFLAGS"
12670       ac_save_LIBS="$LIBS"
12671       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12672       LIBS="$LIBS $ARTS_LIBS"
12673       rm -f conf.artstest
12674       if test "$cross_compiling" = yes; then
12675   echo $ac_n "cross compiling; assumed OK... $ac_c"
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683
12684 #include <stdio.h>
12685 #include <stdlib.h>
12686 #include <string.h>
12687 #include <artsc.h>
12688
12689 char*
12690 my_strdup (char *str)
12691 {
12692   char *new_str;
12693
12694   if (str)
12695     {
12696       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12697       strcpy (new_str, str);
12698     }
12699   else
12700     new_str = NULL;
12701
12702   return new_str;
12703 }
12704
12705 int main ()
12706 {
12707   int major, minor, micro;
12708   char *tmp_version;
12709
12710   system ("touch conf.artstest");
12711
12712   /* HP/UX 9 (%@#!) writes to sscanf strings */
12713   tmp_version = my_strdup("$min_arts_version");
12714   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12715      printf("%s, bad version string\n", "$min_arts_version");
12716      exit(1);
12717    }
12718
12719    if (($arts_major_version > major) ||
12720       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12721       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12722     {
12723       return 0;
12724     }
12725   else
12726     {
12727       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12728       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12729       printf("*** best to upgrade to the required version.\n");
12730       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12731       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12732       printf("*** config.cache before re-running configure\n");
12733       return 1;
12734     }
12735 }
12736
12737
12738 _ACEOF
12739 rm -f conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741   (eval $ac_link) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; }; then
12750   :
12751 else
12752   echo "$as_me: program exited with status $ac_status" >&5
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ( exit $ac_status )
12757 no_arts=yes
12758 fi
12759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760 fi
12761        CFLAGS="$ac_save_CFLAGS"
12762        LIBS="$ac_save_LIBS"
12763      fi
12764   fi
12765   if test "x$no_arts" = x ; then
12766      echo "$as_me:$LINENO: result: yes" >&5
12767 echo "${ECHO_T}yes" >&6
12768      :
12769   else
12770      echo "$as_me:$LINENO: result: no" >&5
12771 echo "${ECHO_T}no" >&6
12772      if test "$ARTS_CONFIG" = "no" ; then
12773        echo "*** The artsc-config script installed by ARTS could not be found"
12774        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12775        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12776        echo "*** full path to artsc-config."
12777      else
12778        if test -f conf.artstest ; then
12779         :
12780        else
12781           echo "*** Could not run ARTS test program, checking why..."
12782           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12783           LIBS="$LIBS $ARTS_LIBS"
12784           cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790
12791 #include <stdio.h>
12792 #include <artsc.h>
12793
12794 int
12795 main ()
12796 {
12797  return 0;
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804   (eval $ac_link) 2>conftest.er1
12805   ac_status=$?
12806   grep -v '^ *+' conftest.er1 >conftest.err
12807   rm -f conftest.er1
12808   cat conftest.err >&5
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } &&
12811          { ac_try='test -z "$ac_c_werror_flag"
12812                          || test ! -s conftest.err'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; } &&
12818          { ac_try='test -s conftest$ac_exeext'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; }; then
12824    echo "*** The test program compiled, but did not run. This usually means"
12825           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12826           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12827           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12828           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12829           echo "*** is required on your system"
12830           echo "***"
12831           echo "*** If you have an old version installed, it is best to remove it, although"
12832           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12833 else
12834   echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837  echo "*** The test program failed to compile or link. See the file config.log for the"
12838           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12839           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12840           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12841 fi
12842 rm -f conftest.err conftest.$ac_objext \
12843       conftest$ac_exeext conftest.$ac_ext
12844           CFLAGS="$ac_save_CFLAGS"
12845           LIBS="$ac_save_LIBS"
12846        fi
12847      fi
12848      ARTS_CFLAGS=""
12849      ARTS_LIBS=""
12850      :
12851   fi
12852
12853
12854   rm -f conf.artstest
12855
12856   CFLAGS=$KEEPCFLAGS
12857   LIBS=$KEEPLIBS
12858   LDFLAGS=$KEEPLDFLAGS
12859   if test "x$no_arts" = x; then
12860         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12861     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12862     for f in $ARTS_CFLAGS; do
12863     case ".$f" in
12864         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12865         *)              CFLAGS="$CPPFLAGS $f" ;;
12866     esac
12867 done
12868
12869     LIBS="$LIBS $ARTS_LIBS"
12870   else
12871     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12872 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12873   fi
12874 else
12875   echo "$as_me:$LINENO: result: no" >&5
12876 echo "${ECHO_T}no" >&6
12877 fi
12878
12879 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12880 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12881 if test "x$au_enable_esd" = xyes; then
12882   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12883 echo "${ECHO_T}yes, configuring esd" >&6
12884   KEEPCFLAGS=$CFLAGS
12885   KEEPLIBS=$LIBS
12886   KEEPLDFLAGS=$LDFLAGS
12887
12888 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12889 if test "${with_esd_prefix+set}" = set; then
12890   withval="$with_esd_prefix"
12891   esd_prefix="$withval"
12892 else
12893   esd_prefix=""
12894 fi;
12895
12896 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12897 if test "${with_esd_exec_prefix+set}" = set; then
12898   withval="$with_esd_exec_prefix"
12899   esd_exec_prefix="$withval"
12900 else
12901   esd_exec_prefix=""
12902 fi;
12903 # Check whether --enable-esdtest or --disable-esdtest was given.
12904 if test "${enable_esdtest+set}" = set; then
12905   enableval="$enable_esdtest"
12906
12907 else
12908   enable_esdtest=yes
12909 fi;
12910
12911   if test x$esd_exec_prefix != x ; then
12912      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12913      if test x${ESD_CONFIG+set} != xset ; then
12914         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12915      fi
12916   fi
12917   if test x$esd_prefix != x ; then
12918      esd_args="$esd_args --prefix=$esd_prefix"
12919      if test x${ESD_CONFIG+set} != xset ; then
12920         ESD_CONFIG=$esd_prefix/bin/esd-config
12921      fi
12922   fi
12923
12924   # Extract the first word of "esd-config", so it can be a program name with args.
12925 set dummy esd-config; ac_word=$2
12926 echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12928 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12929   echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931   case $ESD_CONFIG in
12932   [\\/]* | ?:[\\/]*)
12933   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12934   ;;
12935   *)
12936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939   IFS=$as_save_IFS
12940   test -z "$as_dir" && as_dir=.
12941   for ac_exec_ext in '' $ac_executable_extensions; do
12942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12945     break 2
12946   fi
12947 done
12948 done
12949
12950   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12951   ;;
12952 esac
12953 fi
12954 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12955
12956 if test -n "$ESD_CONFIG"; then
12957   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12958 echo "${ECHO_T}$ESD_CONFIG" >&6
12959 else
12960   echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6
12962 fi
12963
12964   min_esd_version=0.2.7
12965   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12966 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12967   no_esd=""
12968   if test "$ESD_CONFIG" = "no" ; then
12969     no_esd=yes
12970   else
12971
12972
12973     ac_ext=c
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12980     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12981
12982     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12984     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12985            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12986     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12987            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12988     if test "x$enable_esdtest" = "xyes" ; then
12989       ac_save_CFLAGS="$CFLAGS"
12990       ac_save_LIBS="$LIBS"
12991       CFLAGS="$CFLAGS $ESD_CFLAGS"
12992       LIBS="$LIBS $ESD_LIBS"
12993       rm -f conf.esdtest
12994       if test "$cross_compiling" = yes; then
12995   echo $ac_n "cross compiling; assumed OK... $ac_c"
12996 else
12997   cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003
13004 #include <stdio.h>
13005 #include <stdlib.h>
13006 #include <string.h>
13007 #include <esd.h>
13008
13009 char*
13010 my_strdup (char *str)
13011 {
13012   char *new_str;
13013
13014   if (str)
13015     {
13016       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13017       strcpy (new_str, str);
13018     }
13019   else
13020     new_str = NULL;
13021
13022   return new_str;
13023 }
13024
13025 int main ()
13026 {
13027   int major, minor, micro;
13028   char *tmp_version;
13029
13030   system ("touch conf.esdtest");
13031
13032   /* HP/UX 9 (%@#!) writes to sscanf strings */
13033   tmp_version = my_strdup("$min_esd_version");
13034   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13035      printf("%s, bad version string\n", "$min_esd_version");
13036      exit(1);
13037    }
13038
13039    if (($esd_major_version > major) ||
13040       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13041       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13042     {
13043       return 0;
13044     }
13045   else
13046     {
13047       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13048       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13049       printf("*** best to upgrade to the required version.\n");
13050       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13051       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13052       printf("*** config.cache before re-running configure\n");
13053       return 1;
13054     }
13055 }
13056
13057
13058 _ACEOF
13059 rm -f conftest$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061   (eval $ac_link) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066   (eval $ac_try) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   :
13071 else
13072   echo "$as_me: program exited with status $ac_status" >&5
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ( exit $ac_status )
13077 no_esd=yes
13078 fi
13079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13080 fi
13081        CFLAGS="$ac_save_CFLAGS"
13082        LIBS="$ac_save_LIBS"
13083        ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089      fi
13090   fi
13091   if test "x$no_esd" = x ; then
13092      echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6
13094      :
13095   else
13096      echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13098      if test "$ESD_CONFIG" = "no" ; then
13099        echo "*** The esd-config script installed by ESD could not be found"
13100        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13101        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13102        echo "*** full path to esd-config."
13103      else
13104        if test -f conf.esdtest ; then
13105         :
13106        else
13107           echo "*** Could not run ESD test program, checking why..."
13108           CFLAGS="$CFLAGS $ESD_CFLAGS"
13109           LIBS="$LIBS $ESD_LIBS"
13110
13111
13112           ac_ext=c
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117
13118           cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124
13125 #include <stdio.h>
13126 #include <esd.h>
13127
13128 int
13129 main ()
13130 {
13131  return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -z "$ac_c_werror_flag"
13146                          || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158    echo "*** The test program compiled, but did not run. This usually means"
13159           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13160           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13161           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13162           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13163           echo "*** is required on your system"
13164           echo "***"
13165           echo "*** If you have an old version installed, it is best to remove it, although"
13166           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171  echo "*** The test program failed to compile or link. See the file config.log for the"
13172           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13173           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13174           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13175 fi
13176 rm -f conftest.err conftest.$ac_objext \
13177       conftest$ac_exeext conftest.$ac_ext
13178           CFLAGS="$ac_save_CFLAGS"
13179           LIBS="$ac_save_LIBS"
13180           ac_ext=c
13181 ac_cpp='$CPP $CPPFLAGS'
13182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13185
13186        fi
13187      fi
13188      ESD_CFLAGS=""
13189      ESD_LIBS=""
13190      :
13191   fi
13192
13193
13194   rm -f conf.esdtest
13195
13196   CFLAGS=$KEEPCFLAGS
13197   LIBS=$KEEPLIBS
13198   LDFLAGS=$KEEPLDFLAGS
13199   if test "x$no_esd" = x; then
13200         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13201     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13202     for f in $ESD_CFLAGS; do
13203     case ".$f" in
13204         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13205         *)              CFLAGS="$CPPFLAGS $f" ;;
13206     esac
13207 done
13208
13209     LIBS="$LIBS $ESD_LIBS"
13210   else
13211     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13212 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13213   fi
13214 else
13215   echo "$as_me:$LINENO: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13217 fi
13218
13219 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13220 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13221 if test "x$au_enable_portaudio" = xyes; then
13222   echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13225   EXTRALIBS="$EXTRALIBS -lportaudio"
13226   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13227 else
13228   echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13230 fi
13231
13232 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13233 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13234 if test "x$au_enable_jack" = xyes; then
13235   echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6
13237   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13238   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13239   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13240 else
13241   echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13243 fi
13244
13245 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13246 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13247 if test "x$au_enable_vorbis" = xyes; then
13248   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13249 echo "${ECHO_T}yes, configuring vorbis" >&6
13250
13251 # Check whether --with-ogg or --without-ogg was given.
13252 if test "${with_ogg+set}" = set; then
13253   withval="$with_ogg"
13254   ogg_prefix="$withval"
13255 else
13256   ogg_prefix=""
13257 fi;
13258
13259 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13260 if test "${with_ogg_libraries+set}" = set; then
13261   withval="$with_ogg_libraries"
13262   ogg_libraries="$withval"
13263 else
13264   ogg_libraries=""
13265 fi;
13266
13267 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13268 if test "${with_ogg_includes+set}" = set; then
13269   withval="$with_ogg_includes"
13270   ogg_includes="$withval"
13271 else
13272   ogg_includes=""
13273 fi;
13274 # Check whether --enable-oggtest or --disable-oggtest was given.
13275 if test "${enable_oggtest+set}" = set; then
13276   enableval="$enable_oggtest"
13277
13278 else
13279   enable_oggtest=yes
13280 fi;
13281
13282   if test "x$ogg_libraries" != "x" ; then
13283     OGG_LIBS="-L$ogg_libraries"
13284   elif test "x$ogg_prefix" != "x" ; then
13285     OGG_LIBS="-L$ogg_prefix/lib"
13286   elif test "x$prefix" != "xNONE" ; then
13287     OGG_LIBS="-L$prefix/lib"
13288   fi
13289
13290   OGG_LIBS="$OGG_LIBS -logg"
13291
13292   if test "x$ogg_includes" != "x" ; then
13293     OGG_CFLAGS="-I$ogg_includes"
13294   elif test "x$ogg_prefix" != "x" ; then
13295     OGG_CFLAGS="-I$ogg_prefix/include"
13296   elif test "x$prefix" != "xNONE"; then
13297     OGG_CFLAGS="-I$prefix/include"
13298   fi
13299
13300   echo "$as_me:$LINENO: checking for Ogg" >&5
13301 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13302   no_ogg=""
13303
13304
13305   if test "x$enable_oggtest" = "xyes" ; then
13306     ac_save_CFLAGS="$CFLAGS"
13307     ac_save_LIBS="$LIBS"
13308     CFLAGS="$CFLAGS $OGG_CFLAGS"
13309     LIBS="$LIBS $OGG_LIBS"
13310       rm -f conf.oggtest
13311       if test "$cross_compiling" = yes; then
13312   echo $ac_n "cross compiling; assumed OK... $ac_c"
13313 else
13314   cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h.  */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h.  */
13320
13321 #include <stdio.h>
13322 #include <stdlib.h>
13323 #include <string.h>
13324 #include <ogg/ogg.h>
13325
13326 int main ()
13327 {
13328   system("touch conf.oggtest");
13329   return 0;
13330 }
13331
13332
13333 _ACEOF
13334 rm -f conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336   (eval $ac_link) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; }; then
13345   :
13346 else
13347   echo "$as_me: program exited with status $ac_status" >&5
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351 ( exit $ac_status )
13352 no_ogg=yes
13353 fi
13354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13355 fi
13356        CFLAGS="$ac_save_CFLAGS"
13357        LIBS="$ac_save_LIBS"
13358   fi
13359
13360   if test "x$no_ogg" = "x" ; then
13361      echo "$as_me:$LINENO: result: yes" >&5
13362 echo "${ECHO_T}yes" >&6
13363
13364
13365 # Check whether --with-vorbis or --without-vorbis was given.
13366 if test "${with_vorbis+set}" = set; then
13367   withval="$with_vorbis"
13368   vorbis_prefix="$withval"
13369 else
13370   vorbis_prefix=""
13371 fi;
13372
13373 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13374 if test "${with_vorbis_libraries+set}" = set; then
13375   withval="$with_vorbis_libraries"
13376   vorbis_libraries="$withval"
13377 else
13378   vorbis_libraries=""
13379 fi;
13380
13381 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13382 if test "${with_vorbis_includes+set}" = set; then
13383   withval="$with_vorbis_includes"
13384   vorbis_includes="$withval"
13385 else
13386   vorbis_includes=""
13387 fi;
13388 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13389 if test "${enable_vorbistest+set}" = set; then
13390   enableval="$enable_vorbistest"
13391
13392 else
13393   enable_vorbistest=yes
13394 fi;
13395
13396   if test "x$vorbis_libraries" != "x" ; then
13397     VORBIS_LIBS="-L$vorbis_libraries"
13398   elif test "x$vorbis_prefix" != "x" ; then
13399     VORBIS_LIBS="-L$vorbis_prefix/lib"
13400   elif test "x$prefix" != "xNONE"; then
13401     VORBIS_LIBS="-L$prefix/lib"
13402   fi
13403
13404   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13405   VORBISFILE_LIBS="-lvorbisfile"
13406   VORBISENC_LIBS="-lvorbisenc"
13407
13408   if test "x$vorbis_includes" != "x" ; then
13409     VORBIS_CFLAGS="-I$vorbis_includes"
13410   elif test "x$vorbis_prefix" != "x" ; then
13411     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13412   elif test "x$prefix" != "xNONE"; then
13413     VORBIS_CFLAGS="-I$prefix/include"
13414   fi
13415
13416
13417   echo "$as_me:$LINENO: checking for Vorbis" >&5
13418 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13419   no_vorbis=""
13420
13421
13422   if test "x$enable_vorbistest" = "xyes" ; then
13423     ac_save_CFLAGS="$CFLAGS"
13424     ac_save_LIBS="$LIBS"
13425     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13426     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13427       rm -f conf.vorbistest
13428       if test "$cross_compiling" = yes; then
13429   echo $ac_n "cross compiling; assumed OK... $ac_c"
13430 else
13431   cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437
13438 #include <stdio.h>
13439 #include <stdlib.h>
13440 #include <string.h>
13441 #include <vorbis/codec.h>
13442
13443 int main ()
13444 {
13445   system("touch conf.vorbistest");
13446   return 0;
13447 }
13448
13449
13450 _ACEOF
13451 rm -f conftest$ac_exeext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453   (eval $ac_link) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   :
13463 else
13464   echo "$as_me: program exited with status $ac_status" >&5
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 ( exit $ac_status )
13469 no_vorbis=yes
13470 fi
13471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13472 fi
13473        CFLAGS="$ac_save_CFLAGS"
13474        LIBS="$ac_save_LIBS"
13475   fi
13476
13477   if test "x$no_vorbis" = "x" ; then
13478      echo "$as_me:$LINENO: result: yes" >&5
13479 echo "${ECHO_T}yes" >&6
13480
13481       have_vorbis=yes
13482       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13483       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13484       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13485       if test "x$CYGNUS" = "xyes"; then
13486       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13487           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13488       fi
13489       if test "x$MINGW" = "xyes"; then
13490       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13491           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13492       fi
13493
13494   else
13495      echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6
13497      if test -f conf.vorbistest ; then
13498        :
13499      else
13500        echo "*** Could not run Vorbis test program, checking why..."
13501        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13502        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13503        cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509
13510 #include <stdio.h>
13511 #include <vorbis/codec.h>
13512
13513 int
13514 main ()
13515 {
13516  return 0;
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523   (eval $ac_link) 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -z "$ac_c_werror_flag"
13531                          || test ! -s conftest.err'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543    echo "*** The test program compiled, but did not run. This usually means"
13544        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13545        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13546        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13547        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13548        echo "*** is required on your system"
13549        echo "***"
13550        echo "*** If you have an old version installed, it is best to remove it, although"
13551        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556  echo "*** The test program failed to compile or link. See the file config.log for the"
13557        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13558        echo "*** or that you have moved Vorbis since it was installed."
13559 fi
13560 rm -f conftest.err conftest.$ac_objext \
13561       conftest$ac_exeext conftest.$ac_ext
13562        CFLAGS="$ac_save_CFLAGS"
13563        LIBS="$ac_save_LIBS"
13564      fi
13565      VORBIS_CFLAGS=""
13566      VORBIS_LIBS=""
13567      VORBISFILE_LIBS=""
13568      VORBISENC_LIBS=""
13569
13570       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13571 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13572
13573   fi
13574
13575
13576
13577
13578   rm -f conf.vorbistest
13579
13580
13581   else
13582      echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6
13584      if test -f conf.oggtest ; then
13585        :
13586      else
13587        echo "*** Could not run Ogg test program, checking why..."
13588        CFLAGS="$CFLAGS $OGG_CFLAGS"
13589        LIBS="$LIBS $OGG_LIBS"
13590        cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 #include <stdio.h>
13598 #include <ogg/ogg.h>
13599
13600 int
13601 main ()
13602 {
13603  return 0;
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610   (eval $ac_link) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630    echo "*** The test program compiled, but did not run. This usually means"
13631        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13632        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13633        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13634        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13635        echo "*** is required on your system"
13636        echo "***"
13637        echo "*** If you have an old version installed, it is best to remove it, although"
13638        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643  echo "*** The test program failed to compile or link. See the file config.log for the"
13644        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13645        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
13646        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
13647 fi
13648 rm -f conftest.err conftest.$ac_objext \
13649       conftest$ac_exeext conftest.$ac_ext
13650        CFLAGS="$ac_save_CFLAGS"
13651        LIBS="$ac_save_LIBS"
13652      fi
13653      OGG_CFLAGS=""
13654      OGG_LIBS=""
13655
13656     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13657 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13658     have_vorbis=no
13659
13660   fi
13661
13662
13663   rm -f conf.oggtest
13664
13665 else
13666   echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6
13668 fi
13669
13670 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
13671 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
13672 if test "x$au_enable_gogo" = xyes; then
13673   if test "x$CYGNUS" = "xyes"; then
13674     echo "$as_me:$LINENO: result: yes" >&5
13675 echo "${ECHO_T}yes" >&6
13676   else
13677     if test "x$MINGW" = "xyes"; then
13678     echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13680     else
13681       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
13682 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
13683     fi
13684   fi
13685   have_gogo=yes
13686   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
13687   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
13688   EXTRALIBS="$EXTRALIBS -lgogo"
13689 else
13690   echo "$as_me:$LINENO: result: no" >&5
13691 echo "${ECHO_T}no" >&6
13692 fi
13693
13694 if test "x$au_enable_none" = xyes; then
13695     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
13696     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
13697 fi
13698 echo "$as_me:$LINENO: checking default output mode" >&5
13699 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
13700 if test "x$DEFAULT_PLAYMODE" = x; then
13701   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
13702 fi
13703 case ".$DEFAULT_PLAYMODE" in
13704   .default)  TIMIDITY_OUTPUT_ID=d ;;
13705   .oss)      TIMIDITY_OUTPUT_ID=d ;;
13706   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
13707   .sun)      TIMIDITY_OUTPUT_ID=d ;;
13708   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
13709   .irix)     TIMIDITY_OUTPUT_ID=d ;;
13710   .mme)      TIMIDITY_OUTPUT_ID=d ;;
13711   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
13712   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
13713   .w32)      TIMIDITY_OUTPUT_ID=d ;;
13714   .alib)     TIMIDITY_OUTPUT_ID=A ;;
13715   .nas)      TIMIDITY_OUTPUT_ID=n ;;
13716   .arts)     TIMIDITY_OUTPUT_ID=R ;;
13717   .esd)      TIMIDITY_OUTPUT_ID=e ;;
13718   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
13719   .wav)      TIMIDITY_OUTPUT_ID=w ;;
13720   .au)       TIMIDITY_OUTPUT_ID=u ;;
13721   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
13722   .list)     TIMIDITY_OUTPUT_ID=l ;;
13723   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
13724   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
13725   .jack)     TIMIDITY_OUTPUT_ID=j ;;
13726   *)         TIMIDITY_OUTPUT_ID= ;;
13727 esac
13728 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
13729 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
13730
13731 #
13732 # Interface Section
13733 #
13734
13735 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
13736
13737 # Check whether --enable-interface or --disable-interface was given.
13738 if test "${enable_interface+set}" = set; then
13739   enableval="$enable_interface"
13740    for i in `echo $enableval | sed 's/,/ /g'`; do
13741       eval "enable_$i=yes"
13742     done
13743 fi;
13744
13745 #  Dynamic link configuration
13746 # Check whether --enable-dynamic or --disable-dynamic was given.
13747 if test "${enable_dynamic+set}" = set; then
13748   enableval="$enable_dynamic"
13749        if test "x$enable_dynamic" = xyes; then
13750       enable_dynamic=dynamic
13751     elif test "x$enable_dynamic" != xno; then
13752       for i in `echo $enableval | sed 's/,/ /g'`; do
13753         eval "enable_$i=dynamic"
13754       done
13755     fi
13756 fi;
13757
13758 join_targets=
13759 for i in $interface_targets; do
13760   eval "join_targets=$join_targets\$enable_$i"
13761 done
13762
13763 case ".$join_targets" in
13764 .*dynamic*) NEEDDLOPEN=yes;;
13765 *)          NEEDDLOPEN=no;;
13766 esac
13767
13768 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
13769 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
13770
13771 if test "$NEEDDLOPEN" = "yes"; then
13772   have_dl=no
13773
13774   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
13775 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
13776 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 #include <windows.h>
13786
13787
13788 int
13789 main ()
13790 {
13791 LoadLibrary(0);
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798   (eval $ac_link) 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } &&
13805          { ac_try='test -z "$ac_c_werror_flag"
13806                          || test ! -s conftest.err'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; } &&
13812          { ac_try='test -s conftest$ac_exeext'
13813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814   (eval $ac_try) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   wapi_cv_func_LoadLibrary=yes
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 wapi_cv_func_LoadLibrary=no
13824 fi
13825 rm -f conftest.err conftest.$ac_objext \
13826       conftest$ac_exeext conftest.$ac_ext
13827 fi
13828
13829 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
13830   echo "$as_me:$LINENO: result: yes" >&5
13831 echo "${ECHO_T}yes" >&6
13832   have_dl=w32
13833 else
13834   echo "$as_me:$LINENO: result: no" >&5
13835 echo "${ECHO_T}no" >&6
13836 fi
13837
13838   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
13839
13840   if test "$have_dl" = "no"; then
13841     echo "$as_me:$LINENO: checking for shl_load" >&5
13842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13843 if test "${ac_cv_func_shl_load+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846   cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h.  */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h.  */
13852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13854 #define shl_load innocuous_shl_load
13855
13856 /* System header to define __stub macros and hopefully few prototypes,
13857     which can conflict with char shl_load (); below.
13858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13859     <limits.h> exists even on freestanding compilers.  */
13860
13861 #ifdef __STDC__
13862 # include <limits.h>
13863 #else
13864 # include <assert.h>
13865 #endif
13866
13867 #undef shl_load
13868
13869 /* Override any gcc2 internal prototype to avoid an error.  */
13870 #ifdef __cplusplus
13871 extern "C"
13872 {
13873 #endif
13874 /* We use char because int might match the return type of a gcc2
13875    builtin and then its argument prototype would still apply.  */
13876 char shl_load ();
13877 /* The GNU C library defines this for functions which it implements
13878     to always fail with ENOSYS.  Some functions are actually named
13879     something starting with __ and the normal name is an alias.  */
13880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13881 choke me
13882 #else
13883 char (*f) () = shl_load;
13884 #endif
13885 #ifdef __cplusplus
13886 }
13887 #endif
13888
13889 int
13890 main ()
13891 {
13892 return f != shl_load;
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13899   (eval $ac_link) 2>conftest.er1
13900   ac_status=$?
13901   grep -v '^ *+' conftest.er1 >conftest.err
13902   rm -f conftest.er1
13903   cat conftest.err >&5
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); } &&
13906          { ac_try='test -z "$ac_c_werror_flag"
13907                          || test ! -s conftest.err'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; } &&
13913          { ac_try='test -s conftest$ac_exeext'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_cv_func_shl_load=yes
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 ac_cv_func_shl_load=no
13925 fi
13926 rm -f conftest.err conftest.$ac_objext \
13927       conftest$ac_exeext conftest.$ac_ext
13928 fi
13929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13931 if test $ac_cv_func_shl_load = yes; then
13932   have_dl=hpux
13933 fi
13934
13935   fi
13936   if test "$have_dl" = "no"; then
13937             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
13938 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
13939 if test "${ac_cv_func_NSLinkModule+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
13949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13950 #define NSLinkModule innocuous_NSLinkModule
13951
13952 /* System header to define __stub macros and hopefully few prototypes,
13953     which can conflict with char NSLinkModule (); below.
13954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955     <limits.h> exists even on freestanding compilers.  */
13956
13957 #ifdef __STDC__
13958 # include <limits.h>
13959 #else
13960 # include <assert.h>
13961 #endif
13962
13963 #undef NSLinkModule
13964
13965 /* Override any gcc2 internal prototype to avoid an error.  */
13966 #ifdef __cplusplus
13967 extern "C"
13968 {
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971    builtin and then its argument prototype would still apply.  */
13972 char NSLinkModule ();
13973 /* The GNU C library defines this for functions which it implements
13974     to always fail with ENOSYS.  Some functions are actually named
13975     something starting with __ and the normal name is an alias.  */
13976 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
13977 choke me
13978 #else
13979 char (*f) () = NSLinkModule;
13980 #endif
13981 #ifdef __cplusplus
13982 }
13983 #endif
13984
13985 int
13986 main ()
13987 {
13988 return f != NSLinkModule;
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995   (eval $ac_link) 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } &&
14002          { ac_try='test -z "$ac_c_werror_flag"
14003                          || test ! -s conftest.err'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; } &&
14009          { ac_try='test -s conftest$ac_exeext'
14010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011   (eval $ac_try) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; }; then
14015   ac_cv_func_NSLinkModule=yes
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_cv_func_NSLinkModule=no
14021 fi
14022 rm -f conftest.err conftest.$ac_objext \
14023       conftest$ac_exeext conftest.$ac_ext
14024 fi
14025 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14026 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14027 if test $ac_cv_func_NSLinkModule = yes; then
14028   have_dl=dyld
14029 fi
14030
14031   fi
14032   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14033     have_dl=dlopen
14034   fi
14035   if test "$have_dl" = "no"; then
14036     echo "$as_me:$LINENO: checking for dlopen" >&5
14037 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14038 if test "${ac_cv_func_dlopen+set}" = set; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14049 #define dlopen innocuous_dlopen
14050
14051 /* System header to define __stub macros and hopefully few prototypes,
14052     which can conflict with char dlopen (); below.
14053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054     <limits.h> exists even on freestanding compilers.  */
14055
14056 #ifdef __STDC__
14057 # include <limits.h>
14058 #else
14059 # include <assert.h>
14060 #endif
14061
14062 #undef dlopen
14063
14064 /* Override any gcc2 internal prototype to avoid an error.  */
14065 #ifdef __cplusplus
14066 extern "C"
14067 {
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070    builtin and then its argument prototype would still apply.  */
14071 char dlopen ();
14072 /* The GNU C library defines this for functions which it implements
14073     to always fail with ENOSYS.  Some functions are actually named
14074     something starting with __ and the normal name is an alias.  */
14075 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14076 choke me
14077 #else
14078 char (*f) () = dlopen;
14079 #endif
14080 #ifdef __cplusplus
14081 }
14082 #endif
14083
14084 int
14085 main ()
14086 {
14087 return f != dlopen;
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag"
14102                          || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest$ac_exeext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   ac_cv_func_dlopen=yes
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_cv_func_dlopen=no
14120 fi
14121 rm -f conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 fi
14124 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14125 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14126 if test $ac_cv_func_dlopen = yes; then
14127   have_dl=dlopen
14128 fi
14129
14130   fi
14131   if test "$have_dl" = "no"; then
14132     echo "$as_me:$LINENO: checking for dld_init" >&5
14133 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
14134 if test "${ac_cv_func_dld_init+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
14144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14145 #define dld_init innocuous_dld_init
14146
14147 /* System header to define __stub macros and hopefully few prototypes,
14148     which can conflict with char dld_init (); below.
14149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14150     <limits.h> exists even on freestanding compilers.  */
14151
14152 #ifdef __STDC__
14153 # include <limits.h>
14154 #else
14155 # include <assert.h>
14156 #endif
14157
14158 #undef dld_init
14159
14160 /* Override any gcc2 internal prototype to avoid an error.  */
14161 #ifdef __cplusplus
14162 extern "C"
14163 {
14164 #endif
14165 /* We use char because int might match the return type of a gcc2
14166    builtin and then its argument prototype would still apply.  */
14167 char dld_init ();
14168 /* The GNU C library defines this for functions which it implements
14169     to always fail with ENOSYS.  Some functions are actually named
14170     something starting with __ and the normal name is an alias.  */
14171 #if defined (__stub_dld_init) || defined (__stub___dld_init)
14172 choke me
14173 #else
14174 char (*f) () = dld_init;
14175 #endif
14176 #ifdef __cplusplus
14177 }
14178 #endif
14179
14180 int
14181 main ()
14182 {
14183 return f != dld_init;
14184   ;
14185   return 0;
14186 }
14187 _ACEOF
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190   (eval $ac_link) 2>conftest.er1
14191   ac_status=$?
14192   grep -v '^ *+' conftest.er1 >conftest.err
14193   rm -f conftest.er1
14194   cat conftest.err >&5
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -z "$ac_c_werror_flag"
14198                          || test ! -s conftest.err'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; } &&
14204          { ac_try='test -s conftest$ac_exeext'
14205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206   (eval $ac_try) 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; }; then
14210   ac_cv_func_dld_init=yes
14211 else
14212   echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 ac_cv_func_dld_init=no
14216 fi
14217 rm -f conftest.err conftest.$ac_objext \
14218       conftest$ac_exeext conftest.$ac_ext
14219 fi
14220 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
14221 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
14222 if test $ac_cv_func_dld_init = yes; then
14223   have_dl=dld
14224 fi
14225
14226   fi
14227   if test "$have_dl" = "no"; then
14228     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
14229 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
14230 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233   ac_check_lib_save_LIBS=$LIBS
14234 LIBS="-ldld  $LIBS"
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241
14242 /* Override any gcc2 internal prototype to avoid an error.  */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 /* We use char because int might match the return type of a gcc2
14247    builtin and then its argument prototype would still apply.  */
14248 char dld_init ();
14249 int
14250 main ()
14251 {
14252 dld_init ();
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259   (eval $ac_link) 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -z "$ac_c_werror_flag"
14267                          || test ! -s conftest.err'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; } &&
14273          { ac_try='test -s conftest$ac_exeext'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   ac_cv_lib_dld_dld_init=yes
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ac_cv_lib_dld_dld_init=no
14285 fi
14286 rm -f conftest.err conftest.$ac_objext \
14287       conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14289 fi
14290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
14291 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
14292 if test $ac_cv_lib_dld_dld_init = yes; then
14293   have_dl=dld;lib_dl_opt=-ldld
14294 fi
14295
14296   fi
14297
14298   echo "$as_me:$LINENO: checking dynamic link method" >&5
14299 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
14300   case "$have_dl" in
14301     dlopen)
14302       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
14303 echo "${ECHO_T}use dl_dlopen.c" >&6
14304       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
14305       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
14306 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
14307 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310   case "$ac_cv_header_dlfcn_h" in
14311 yes) i_dlfcn=define;;
14312 *)   i_dlfcn=undef;;
14313 esac
14314 cat > dyna.c <<EOM
14315 fred () { }
14316 EOM
14317
14318 cat > fred.c <<EOM
14319 #include <stdio.h>
14320 #$i_dlfcn I_DLFCN
14321 #ifdef I_DLFCN
14322 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
14323 #else
14324 #include <sys/types.h>
14325 #include <nlist.h>
14326 #include <link.h>
14327 #endif
14328
14329 extern int fred() ;
14330
14331 main()
14332 {
14333     void * handle ;
14334     void * symbol ;
14335 #ifndef RTLD_LAZY
14336     int mode = 1 ;
14337 #else
14338     int mode = RTLD_LAZY ;
14339 #endif
14340     handle = dlopen("./dyna.$so", mode) ;
14341     if (handle == NULL) {
14342         printf ("1\n") ;
14343         fflush (stdout) ;
14344         exit(0);
14345     }
14346     symbol = dlsym(handle, "fred") ;
14347     if (symbol == NULL) {
14348         /* try putting a leading underscore */
14349         symbol = dlsym(handle, "_fred") ;
14350         if (symbol == NULL) {
14351             printf ("2\n") ;
14352             fflush (stdout) ;
14353             exit(0);
14354         }
14355         printf ("3\n") ;
14356     }
14357     else
14358         printf ("4\n") ;
14359     fflush (stdout) ;
14360     exit(0);
14361 }
14362 EOM
14363 : Call the object file tmp-dyna.o in case dlext=o.
14364 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
14365         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
14366         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
14367         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
14368         xxx=`./fred`
14369         case $xxx in
14370         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
14371 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
14372                 ;;
14373         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
14374 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
14375                 ;;
14376         3)      timidity_cv_func_dlsym_underscore=yes
14377                 ;;
14378         4)      timidity_cv_func_dlsym_underscore=no
14379                 ;;
14380         esac
14381 else
14382         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
14383 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
14384 fi
14385 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
14386
14387 fi
14388
14389 case "x$timidity_cv_func_dlsym_underscore" in
14390 xyes)
14391 cat >>confdefs.h <<\_ACEOF
14392 #define DLSYM_NEEDS_UNDERSCORE 1
14393 _ACEOF
14394
14395         echo "$as_me:$LINENO: result: yes" >&5
14396 echo "${ECHO_T}yes" >&6
14397         ;;
14398 xno)
14399         echo "$as_me:$LINENO: result: no" >&5
14400 echo "${ECHO_T}no" >&6
14401         ;;
14402 esac
14403
14404       ;;
14405     dld)
14406       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
14407 echo "${ECHO_T}use dl_dld.c" >&6
14408       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
14409       ;;
14410     hpux)
14411       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
14412 echo "${ECHO_T}use dl_hpux.c" >&6
14413       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
14414       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
14415       ;;
14416     w32)
14417       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
14418 echo "${ECHO_T}use dl_w32.c" >&6
14419       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
14420       ;;
14421     dyld)
14422       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
14423 echo "${ECHO_T}use dl_dyld.c" >&6
14424       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
14425       ;;
14426     *)
14427       NEEDDLOPEN="no"
14428       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
14429 echo "$as_me: WARNING: no method to open a shared object" >&2;}
14430       ;;
14431   esac
14432 fi
14433
14434 if test "$NEEDDLOPEN" = "yes"; then
14435   cat >> confdefs.h <<EOF
14436 #define IA_DYNAMIC 1
14437 EOF
14438
14439
14440 cat >>confdefs.h <<_ACEOF
14441 #define SHARED_LIB_EXT ".$so"
14442 _ACEOF
14443
14444       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
14445 fi
14446
14447
14448
14449 if test "$NEEDDLOPEN" = "yes"; then
14450   NEEDDLOPEN_TRUE=
14451   NEEDDLOPEN_FALSE='#'
14452 else
14453   NEEDDLOPEN_TRUE='#'
14454   NEEDDLOPEN_FALSE=
14455 fi
14456
14457
14458
14459
14460
14461 if false; then
14462   ENABLE_NCURSES_TRUE=
14463   ENABLE_NCURSES_FALSE='#'
14464 else
14465   ENABLE_NCURSES_TRUE='#'
14466   ENABLE_NCURSES_FALSE=
14467 fi
14468
14469 # Check whether --enable-ncurses or --disable-ncurses was given.
14470 if test "${enable_ncurses+set}" = set; then
14471   enableval="$enable_ncurses"
14472   case "x$enable_ncurses" in xyes|xdynamic)
14473
14474
14475 for ac_header in ncurses.h ncurses/curses.h curses.h
14476 do
14477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479   echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 fi
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486 else
14487   # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 $ac_includes_default
14497 #include <$ac_header>
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501   (eval $ac_compile) 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } &&
14508          { ac_try='test -z "$ac_c_werror_flag"
14509                          || test ! -s conftest.err'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   ac_header_compiler=yes
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 ac_header_compiler=no
14527 fi
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14530 echo "${ECHO_T}$ac_header_compiler" >&6
14531
14532 # Is the header present?
14533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h.  */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h.  */
14541 #include <$ac_header>
14542 _ACEOF
14543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14545   ac_status=$?
14546   grep -v '^ *+' conftest.er1 >conftest.err
14547   rm -f conftest.er1
14548   cat conftest.err >&5
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); } >/dev/null; then
14551   if test -s conftest.err; then
14552     ac_cpp_err=$ac_c_preproc_warn_flag
14553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14554   else
14555     ac_cpp_err=
14556   fi
14557 else
14558   ac_cpp_err=yes
14559 fi
14560 if test -z "$ac_cpp_err"; then
14561   ac_header_preproc=yes
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566   ac_header_preproc=no
14567 fi
14568 rm -f conftest.err conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14570 echo "${ECHO_T}$ac_header_preproc" >&6
14571
14572 # So?  What about this header?
14573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14574   yes:no: )
14575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14579     ac_header_preproc=yes
14580     ;;
14581   no:yes:* )
14582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14594     (
14595       cat <<\_ASBOX
14596 ## ------------------------------- ##
14597 ## Report this to root@mput.dip.jp ##
14598 ## ------------------------------- ##
14599 _ASBOX
14600     ) |
14601       sed "s/^/$as_me: WARNING:     /" >&2
14602     ;;
14603 esac
14604 echo "$as_me:$LINENO: checking for $ac_header" >&5
14605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   eval "$as_ac_Header=\$ac_header_preproc"
14610 fi
14611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14613
14614 fi
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14616   cat >>confdefs.h <<_ACEOF
14617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14618 _ACEOF
14619
14620 fi
14621
14622 done
14623
14624
14625
14626   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
14627     *yes*);;
14628     *)  for i in /usr/include /usr/local/include; do
14629           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
14630             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
14631 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
14632             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
14633             break
14634           fi
14635         done
14636         ;;
14637     esac
14638
14639     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
14640 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
14641 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   ac_check_lib_save_LIBS=$LIBS
14645 LIBS="-lncurses  $LIBS"
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652
14653 /* Override any gcc2 internal prototype to avoid an error.  */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 /* We use char because int might match the return type of a gcc2
14658    builtin and then its argument prototype would still apply.  */
14659 char initscr ();
14660 int
14661 main ()
14662 {
14663 initscr ();
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670   (eval $ac_link) 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } &&
14677          { ac_try='test -z "$ac_c_werror_flag"
14678                          || test ! -s conftest.err'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; } &&
14684          { ac_try='test -s conftest$ac_exeext'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; }; then
14690   ac_cv_lib_ncurses_initscr=yes
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14694
14695 ac_cv_lib_ncurses_initscr=no
14696 fi
14697 rm -f conftest.err conftest.$ac_objext \
14698       conftest$ac_exeext conftest.$ac_ext
14699 LIBS=$ac_check_lib_save_LIBS
14700 fi
14701 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
14702 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
14703 if test $ac_cv_lib_ncurses_initscr = yes; then
14704   lib_curses_opt=-lncurses
14705 else
14706         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
14707 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
14708 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711   ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lcurses $lib_user32_test $LIBS"
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719
14720 /* Override any gcc2 internal prototype to avoid an error.  */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 /* We use char because int might match the return type of a gcc2
14725    builtin and then its argument prototype would still apply.  */
14726 char PDC_set_ctrl_break ();
14727 int
14728 main ()
14729 {
14730 PDC_set_ctrl_break ();
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737   (eval $ac_link) 2>conftest.er1
14738   ac_status=$?
14739   grep -v '^ *+' conftest.er1 >conftest.err
14740   rm -f conftest.er1
14741   cat conftest.err >&5
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -z "$ac_c_werror_flag"
14745                          || test ! -s conftest.err'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; } &&
14751          { ac_try='test -s conftest$ac_exeext'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   ac_cv_lib_curses_PDC_set_ctrl_break=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 ac_cv_lib_curses_PDC_set_ctrl_break=no
14763 fi
14764 rm -f conftest.err conftest.$ac_objext \
14765       conftest$ac_exeext conftest.$ac_ext
14766 LIBS=$ac_check_lib_save_LIBS
14767 fi
14768 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
14769 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
14770 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
14771    lib_curses_opt=-lcurses
14772
14773 cat >>confdefs.h <<\_ACEOF
14774 #define USE_PDCURSES 1
14775 _ACEOF
14776
14777             lib_user32_opt="$lib_user32_test"
14778
14779 else
14780             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
14781 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
14782 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lpdcurses  $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793
14794 /* Override any gcc2 internal prototype to avoid an error.  */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 /* We use char because int might match the return type of a gcc2
14799    builtin and then its argument prototype would still apply.  */
14800 char PDC_set_ctrl_break ();
14801 int
14802 main ()
14803 {
14804 PDC_set_ctrl_break ();
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811   (eval $ac_link) 2>conftest.er1
14812   ac_status=$?
14813   grep -v '^ *+' conftest.er1 >conftest.err
14814   rm -f conftest.er1
14815   cat conftest.err >&5
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -z "$ac_c_werror_flag"
14819                          || test ! -s conftest.err'
14820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821   (eval $ac_try) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); }; } &&
14825          { ac_try='test -s conftest$ac_exeext'
14826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
14837 fi
14838 rm -f conftest.err conftest.$ac_objext \
14839       conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14841 fi
14842 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
14843 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
14844 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
14845    lib_curses_opt=-lpdcurses
14846
14847 cat >>confdefs.h <<\_ACEOF
14848 #define USE_PDCURSES 1
14849 _ACEOF
14850
14851               lib_user32_opt="$lib_user32_test"
14852
14853 else
14854               case "$target" in
14855                 *openbsd*)
14856                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
14857 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
14858 if test "${ac_cv_lib_curses_initscr+set}" = set; then
14859   echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861   ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lcurses  $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869
14870 /* Override any gcc2 internal prototype to avoid an error.  */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 /* We use char because int might match the return type of a gcc2
14875    builtin and then its argument prototype would still apply.  */
14876 char initscr ();
14877 int
14878 main ()
14879 {
14880 initscr ();
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887   (eval $ac_link) 2>conftest.er1
14888   ac_status=$?
14889   grep -v '^ *+' conftest.er1 >conftest.err
14890   rm -f conftest.er1
14891   cat conftest.err >&5
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -z "$ac_c_werror_flag"
14895                          || test ! -s conftest.err'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; } &&
14901          { ac_try='test -s conftest$ac_exeext'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907   ac_cv_lib_curses_initscr=yes
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 ac_cv_lib_curses_initscr=no
14913 fi
14914 rm -f conftest.err conftest.$ac_objext \
14915       conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14917 fi
14918 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
14919 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
14920 if test $ac_cv_lib_curses_initscr = yes; then
14921   lib_curses_opt=-lcurses
14922 else
14923    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
14924 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
14925                       enable_ncurses=no
14926 fi
14927
14928                   ;;
14929                 *)
14930                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
14931 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
14932                   enable_ncurses=no
14933                   ;;
14934               esac
14935
14936 fi
14937
14938
14939 fi
14940
14941
14942 fi
14943
14944    ;; esac
14945 fi;
14946 case "x$enable_ncurses" in
14947 xyes)
14948   cat >> confdefs.h <<EOF
14949 #define IA_NCURSES 1
14950 EOF
14951
14952
14953
14954 if true; then
14955   ENABLE_NCURSES_TRUE=
14956   ENABLE_NCURSES_FALSE='#'
14957 else
14958   ENABLE_NCURSES_TRUE='#'
14959   ENABLE_NCURSES_FALSE=
14960 fi
14961
14962    LIBS="$LIBS $lib_curses_opt"
14963     case "$target" in
14964        *-*-freebsd123*)
14965          EXTRALIBS="$EXTRALIBS -lmytinfo"
14966          ;;
14967      esac
14968     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
14969
14970   ;;
14971 xdynamic)
14972   dynamic_targets="$dynamic_targets interface_n.\$(so)"
14973    n_so_libs="$lib_curses_opt"
14974     case "$target" in
14975        *-*-freebsd123*)
14976          EXTRALIBS="$EXTRALIBS -lmytinfo"
14977          ;;
14978      esac
14979   ;;
14980 *)
14981
14982   ;;
14983 esac
14984
14985
14986
14987
14988
14989 if false; then
14990   ENABLE_SLANG_TRUE=
14991   ENABLE_SLANG_FALSE='#'
14992 else
14993   ENABLE_SLANG_TRUE='#'
14994   ENABLE_SLANG_FALSE=
14995 fi
14996
14997 # Check whether --enable-slang or --disable-slang was given.
14998 if test "${enable_slang+set}" = set; then
14999   enableval="$enable_slang"
15000   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15001 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15002 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lslang  $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013
15014 /* Override any gcc2 internal prototype to avoid an error.  */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 /* We use char because int might match the return type of a gcc2
15019    builtin and then its argument prototype would still apply.  */
15020 char SLang_init_tty ();
15021 int
15022 main ()
15023 {
15024 SLang_init_tty ();
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031   (eval $ac_link) 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } &&
15038          { ac_try='test -z "$ac_c_werror_flag"
15039                          || test ! -s conftest.err'
15040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041   (eval $ac_try) 2>&5
15042   ac_status=$?
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); }; } &&
15045          { ac_try='test -s conftest$ac_exeext'
15046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047   (eval $ac_try) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); }; }; then
15051   ac_cv_lib_slang_SLang_init_tty=yes
15052 else
15053   echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 ac_cv_lib_slang_SLang_init_tty=no
15057 fi
15058 rm -f conftest.err conftest.$ac_objext \
15059       conftest$ac_exeext conftest.$ac_ext
15060 LIBS=$ac_check_lib_save_LIBS
15061 fi
15062 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15063 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15064 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15065   :
15066 else
15067    enable_slang=no
15068       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15069 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15070
15071 fi
15072
15073
15074
15075 for ac_header in slang/slang.h slang.h
15076 do
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079   echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 fi
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15086 else
15087   # Is the header compilable?
15088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 $ac_includes_default
15097 #include <$ac_header>
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101   (eval $ac_compile) 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag"
15109                          || test ! -s conftest.err'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; } &&
15115          { ac_try='test -s conftest.$ac_objext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_header_compiler=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_header_compiler=no
15127 fi
15128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15130 echo "${ECHO_T}$ac_header_compiler" >&6
15131
15132 # Is the header present?
15133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141 #include <$ac_header>
15142 _ACEOF
15143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } >/dev/null; then
15151   if test -s conftest.err; then
15152     ac_cpp_err=$ac_c_preproc_warn_flag
15153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15154   else
15155     ac_cpp_err=
15156   fi
15157 else
15158   ac_cpp_err=yes
15159 fi
15160 if test -z "$ac_cpp_err"; then
15161   ac_header_preproc=yes
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166   ac_header_preproc=no
15167 fi
15168 rm -f conftest.err conftest.$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15170 echo "${ECHO_T}$ac_header_preproc" >&6
15171
15172 # So?  What about this header?
15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15174   yes:no: )
15175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15179     ac_header_preproc=yes
15180     ;;
15181   no:yes:* )
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15194     (
15195       cat <<\_ASBOX
15196 ## ------------------------------- ##
15197 ## Report this to root@mput.dip.jp ##
15198 ## ------------------------------- ##
15199 _ASBOX
15200     ) |
15201       sed "s/^/$as_me: WARNING:     /" >&2
15202     ;;
15203 esac
15204 echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207   echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209   eval "$as_ac_Header=\$ac_header_preproc"
15210 fi
15211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15213
15214 fi
15215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15216   cat >>confdefs.h <<_ACEOF
15217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15218 _ACEOF
15219
15220 fi
15221
15222 done
15223
15224    ;; esac
15225 fi;
15226 case "x$enable_slang" in
15227 xyes)
15228   cat >> confdefs.h <<EOF
15229 #define IA_SLANG 1
15230 EOF
15231
15232
15233
15234 if true; then
15235   ENABLE_SLANG_TRUE=
15236   ENABLE_SLANG_FALSE='#'
15237 else
15238   ENABLE_SLANG_TRUE='#'
15239   ENABLE_SLANG_FALSE=
15240 fi
15241
15242    LIBS="$LIBS -lslang"
15243     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
15244
15245   ;;
15246 xdynamic)
15247   dynamic_targets="$dynamic_targets interface_s.\$(so)"
15248    s_so_libs="-lslang"
15249     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
15250 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
15251 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254   ac_check_lib_save_LIBS=$LIBS
15255 LIBS="-ltermcap  $LIBS"
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262
15263 /* Override any gcc2 internal prototype to avoid an error.  */
15264 #ifdef __cplusplus
15265 extern "C"
15266 #endif
15267 /* We use char because int might match the return type of a gcc2
15268    builtin and then its argument prototype would still apply.  */
15269 char initscr ();
15270 int
15271 main ()
15272 {
15273 initscr ();
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15280   (eval $ac_link) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag"
15288                          || test ! -s conftest.err'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; } &&
15294          { ac_try='test -s conftest$ac_exeext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_cv_lib_termcap_initscr=yes
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 ac_cv_lib_termcap_initscr=no
15306 fi
15307 rm -f conftest.err conftest.$ac_objext \
15308       conftest$ac_exeext conftest.$ac_ext
15309 LIBS=$ac_check_lib_save_LIBS
15310 fi
15311 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
15312 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
15313 if test $ac_cv_lib_termcap_initscr = yes; then
15314   s_so_libs="$s_so_libs -ltermcap"
15315 fi
15316
15317
15318   ;;
15319 *)
15320
15321   ;;
15322 esac
15323
15324
15325
15326
15327
15328 if false; then
15329   ENABLE_MOTIF_TRUE=
15330   ENABLE_MOTIF_FALSE='#'
15331 else
15332   ENABLE_MOTIF_TRUE='#'
15333   ENABLE_MOTIF_FALSE=
15334 fi
15335
15336 # Check whether --enable-motif or --disable-motif was given.
15337 if test "${enable_motif+set}" = set; then
15338   enableval="$enable_motif"
15339   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15340         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
15341 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
15342    { (exit 1); exit 1; }; }
15343     fi
15344     if test "x$have_xm" != xyes; then
15345       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
15346 echo "$as_me: WARNING: Motif library is not found." >&2;}
15347       enable_motif=no
15348     fi
15349    ;; esac
15350 fi;
15351 case "x$enable_motif" in
15352 xyes)
15353   cat >> confdefs.h <<EOF
15354 #define IA_MOTIF 1
15355 EOF
15356
15357
15358
15359 if true; then
15360   ENABLE_MOTIF_TRUE=
15361   ENABLE_MOTIF_FALSE='#'
15362 else
15363   ENABLE_MOTIF_TRUE='#'
15364   ENABLE_MOTIF_FALSE=
15365 fi
15366
15367    lib_xm_opt=-lXm
15368     lib_xt_opt=-lXt
15369     lib_xext_opt=-lXext
15370     if test "x$have_xprelibs" = xyes; then
15371         lib_xprelibs_opt='-lSM -lICE'
15372     fi
15373     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
15374
15375   ;;
15376 xdynamic)
15377   dynamic_targets="$dynamic_targets interface_m.\$(so)"
15378    if test x$have_xprelibs = xyes; then
15379       m_so_libs="-lXext -lSM -lICE"
15380     fi
15381     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
15382
15383   ;;
15384 *)
15385
15386   ;;
15387 esac
15388
15389
15390
15391
15392
15393 if false; then
15394   ENABLE_TCLTK_TRUE=
15395   ENABLE_TCLTK_FALSE='#'
15396 else
15397   ENABLE_TCLTK_TRUE='#'
15398   ENABLE_TCLTK_FALSE=
15399 fi
15400
15401 # Check whether --enable-tcltk or --disable-tcltk was given.
15402 if test "${enable_tcltk+set}" = set; then
15403   enableval="$enable_tcltk"
15404   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15405         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
15406 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
15407    { (exit 1); exit 1; }; }
15408     fi
15409
15410         KEEPCPPFLAGS=$CPPFLAGS
15411     KEEPLDFLAGS=$LDFLAGS
15412     KEEPLIBS=$LIBS
15413
15414     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
15415     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
15416     LIBS="$LIBS $lib_dl_opt"
15417
15418     tcl_lib=
15419     tk_lib=
15420     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
15421       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
15422 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
15423 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
15424 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15425   echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427   ac_check_lib_save_LIBS=$LIBS
15428 LIBS="-l$l  $LIBS"
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435
15436 /* Override any gcc2 internal prototype to avoid an error.  */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441    builtin and then its argument prototype would still apply.  */
15442 char Tcl_Init ();
15443 int
15444 main ()
15445 {
15446 Tcl_Init ();
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453   (eval $ac_link) 2>conftest.er1
15454   ac_status=$?
15455   grep -v '^ *+' conftest.er1 >conftest.err
15456   rm -f conftest.er1
15457   cat conftest.err >&5
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -z "$ac_c_werror_flag"
15461                          || test ! -s conftest.err'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; } &&
15467          { ac_try='test -s conftest$ac_exeext'
15468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469   (eval $ac_try) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; }; then
15473   eval "$as_ac_Lib=yes"
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478 eval "$as_ac_Lib=no"
15479 fi
15480 rm -f conftest.err conftest.$ac_objext \
15481       conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15483 fi
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15487   tcl_lib=-l$l
15488 fi
15489 ;; esac
15490     done
15491     LIBS="$LIBS $tcl_lib"
15492     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
15493       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
15494 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
15495 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
15496 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-l$l  $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507
15508 /* Override any gcc2 internal prototype to avoid an error.  */
15509 #ifdef __cplusplus
15510 extern "C"
15511 #endif
15512 /* We use char because int might match the return type of a gcc2
15513    builtin and then its argument prototype would still apply.  */
15514 char Tk_Init ();
15515 int
15516 main ()
15517 {
15518 Tk_Init ();
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525   (eval $ac_link) 2>conftest.er1
15526   ac_status=$?
15527   grep -v '^ *+' conftest.er1 >conftest.err
15528   rm -f conftest.er1
15529   cat conftest.err >&5
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } &&
15532          { ac_try='test -z "$ac_c_werror_flag"
15533                          || test ! -s conftest.err'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; } &&
15539          { ac_try='test -s conftest$ac_exeext'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; }; then
15545   eval "$as_ac_Lib=yes"
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550 eval "$as_ac_Lib=no"
15551 fi
15552 rm -f conftest.err conftest.$ac_objext \
15553       conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15555 fi
15556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15557 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15558 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15559   tk_lib=-l$l
15560 fi
15561 ;; esac
15562     done
15563
15564     LIBS=$KEEPLIBS
15565     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
15566       CPPFLAGS=$KEEPCPPFLAGS
15567       LDFLAGS=$KEEPLDFLAGS
15568       enable_tcltk=no
15569       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
15570 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
15571     else
15572       tcltk_dep='tclIndex'
15573     fi
15574    ;; esac
15575 fi;
15576 case "x$enable_tcltk" in
15577 xyes)
15578   cat >> confdefs.h <<EOF
15579 #define IA_TCLTK 1
15580 EOF
15581
15582
15583
15584 if true; then
15585   ENABLE_TCLTK_TRUE=
15586   ENABLE_TCLTK_FALSE='#'
15587 else
15588   ENABLE_TCLTK_TRUE='#'
15589   ENABLE_TCLTK_FALSE=
15590 fi
15591
15592    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
15593     case "$target" in
15594       *-*-bsdi*)
15595         EXTRALIBS="$EXTRALIBS -lipc"
15596         ;;
15597     esac
15598     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
15599
15600   ;;
15601 xdynamic)
15602   dynamic_targets="$dynamic_targets interface_k.\$(so)"
15603    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
15604     case "$target" in
15605       *-*-bsdi*)
15606         k_so_libs="$k_so_libs -lipc"
15607         ;;
15608     esac
15609     k_so_libs="$k_so_libs -lX11 -lm"
15610
15611   ;;
15612 *)
15613
15614   ;;
15615 esac
15616
15617
15618
15619
15620 if test "x$enable_tcltk" = "xdynamic"; then
15621   ENABLE_DYNAMIC_TCLTK_TRUE=
15622   ENABLE_DYNAMIC_TCLTK_FALSE='#'
15623 else
15624   ENABLE_DYNAMIC_TCLTK_TRUE='#'
15625   ENABLE_DYNAMIC_TCLTK_FALSE=
15626 fi
15627
15628
15629
15630
15631 if false; then
15632   ENABLE_EMACS_TRUE=
15633   ENABLE_EMACS_FALSE='#'
15634 else
15635   ENABLE_EMACS_TRUE='#'
15636   ENABLE_EMACS_FALSE=
15637 fi
15638
15639 # Check whether --enable-emacs or --disable-emacs was given.
15640 if test "${enable_emacs+set}" = set; then
15641   enableval="$enable_emacs"
15642   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
15643 fi;
15644 case "x$enable_emacs" in
15645 xyes)
15646   cat >> confdefs.h <<EOF
15647 #define IA_EMACS 1
15648 EOF
15649
15650
15651
15652 if true; then
15653   ENABLE_EMACS_TRUE=
15654   ENABLE_EMACS_FALSE='#'
15655 else
15656   ENABLE_EMACS_TRUE='#'
15657   ENABLE_EMACS_FALSE=
15658 fi
15659
15660    ELFILES="$ELFILES timidity.el"
15661     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
15662
15663   ;;
15664 xdynamic)
15665   dynamic_targets="$dynamic_targets interface_e.\$(so)"
15666    ELFILES="$ELFILES timidity.el"
15667   ;;
15668 *)
15669
15670   ;;
15671 esac
15672
15673
15674
15675
15676
15677 if false; then
15678   ENABLE_VT100_TRUE=
15679   ENABLE_VT100_FALSE='#'
15680 else
15681   ENABLE_VT100_TRUE='#'
15682   ENABLE_VT100_FALSE=
15683 fi
15684
15685 # Check whether --enable-vt100 or --disable-vt100 was given.
15686 if test "${enable_vt100+set}" = set; then
15687   enableval="$enable_vt100"
15688   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
15689 fi;
15690 case "x$enable_vt100" in
15691 xyes)
15692   cat >> confdefs.h <<EOF
15693 #define IA_VT100 1
15694 EOF
15695
15696
15697
15698 if true; then
15699   ENABLE_VT100_TRUE=
15700   ENABLE_VT100_FALSE='#'
15701 else
15702   ENABLE_VT100_TRUE='#'
15703   ENABLE_VT100_FALSE=
15704 fi
15705
15706    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
15707   ;;
15708 xdynamic)
15709   dynamic_targets="$dynamic_targets interface_T.\$(so)"
15710
15711   ;;
15712 *)
15713
15714   ;;
15715 esac
15716
15717
15718
15719
15720
15721 if false; then
15722   ENABLE_XAW_TRUE=
15723   ENABLE_XAW_FALSE='#'
15724 else
15725   ENABLE_XAW_TRUE='#'
15726   ENABLE_XAW_FALSE=
15727 fi
15728
15729 # Check whether --enable-xaw or --disable-xaw was given.
15730 if test "${enable_xaw+set}" = set; then
15731   enableval="$enable_xaw"
15732   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15733         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
15734 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
15735    { (exit 1); exit 1; }; }
15736     fi
15737     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
15738       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
15739 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
15740       enable_xaw=no
15741     fi  ;; esac
15742 fi;
15743 case "x$enable_xaw" in
15744 xyes)
15745   cat >> confdefs.h <<EOF
15746 #define IA_XAW 1
15747 EOF
15748
15749
15750
15751 if true; then
15752   ENABLE_XAW_TRUE=
15753   ENABLE_XAW_FALSE='#'
15754 else
15755   ENABLE_XAW_TRUE='#'
15756   ENABLE_XAW_FALSE=
15757 fi
15758
15759        if test "x$have_xext" = xyes; then
15760       lib_xext_opt=-lXext
15761     fi
15762     if test "x$have_xprelibs" = xyes; then
15763       lib_xprelibs_opt='-lSM -lICE'
15764     fi
15765     lib_xmu_opt=-lXmu
15766     lib_xt_opt=-lXt
15767     if test "x$have_xaw" = x3d; then
15768
15769 cat >>confdefs.h <<\_ACEOF
15770 #define XAW3D 1
15771 _ACEOF
15772
15773       lib_xaw_opt=-lXaw3d
15774     else
15775       lib_xaw_opt=-lXaw
15776     fi
15777     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
15778
15779   ;;
15780 xdynamic)
15781   dynamic_targets="$dynamic_targets interface_a.\$(so)"
15782    if test "x$have_xext" = xyes; then
15783       a_so_libs="-lXext -lX11"
15784     else
15785       a_so_libs="-lX11"
15786     fi
15787     case "$target" in
15788       *darwin*)
15789         a_so_libs="$a_so_libs -lcc_dynamic"
15790         ;;
15791     esac
15792     if test "x$have_xprelibs" = xyes; then
15793       a_so_libs="-lSM -lICE $a_so_libs"
15794     fi
15795     if test "x$have_xaw" = xyes; then
15796       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
15797     elif test "x$have_xaw" = x3d; then
15798
15799 cat >>confdefs.h <<\_ACEOF
15800 #define XAW3D 1
15801 _ACEOF
15802
15803       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
15804     fi
15805     a_so_libs="$ldflags_x_opt $a_so_libs"
15806
15807   ;;
15808 *)
15809
15810   ;;
15811 esac
15812
15813
15814
15815
15816 if test "x$enable_xaw" = "xdynamic"; then
15817   ENABLE_DYNAMIC_XAW_TRUE=
15818   ENABLE_DYNAMIC_XAW_FALSE='#'
15819 else
15820   ENABLE_DYNAMIC_XAW_TRUE='#'
15821   ENABLE_DYNAMIC_XAW_FALSE=
15822 fi
15823
15824
15825
15826
15827 if false; then
15828   ENABLE_XSKIN_TRUE=
15829   ENABLE_XSKIN_FALSE='#'
15830 else
15831   ENABLE_XSKIN_TRUE='#'
15832   ENABLE_XSKIN_FALSE=
15833 fi
15834
15835 # Check whether --enable-xskin or --disable-xskin was given.
15836 if test "${enable_xskin+set}" = set; then
15837   enableval="$enable_xskin"
15838   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
15839         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
15840 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
15841    { (exit 1); exit 1; }; }
15842     fi
15843    ;; esac
15844 fi;
15845 case "x$enable_xskin" in
15846 xyes)
15847   cat >> confdefs.h <<EOF
15848 #define IA_XSKIN 1
15849 EOF
15850
15851
15852
15853 if true; then
15854   ENABLE_XSKIN_TRUE=
15855   ENABLE_XSKIN_FALSE='#'
15856 else
15857   ENABLE_XSKIN_TRUE='#'
15858   ENABLE_XSKIN_FALSE=
15859 fi
15860
15861    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
15862   ;;
15863 xdynamic)
15864   dynamic_targets="$dynamic_targets interface_i.\$(so)"
15865    i_so_libs="$ldflags_x_opt -lX11"
15866   ;;
15867 *)
15868
15869   ;;
15870 esac
15871
15872
15873
15874
15875
15876 if false; then
15877   ENABLE_GTK_TRUE=
15878   ENABLE_GTK_FALSE='#'
15879 else
15880   ENABLE_GTK_TRUE='#'
15881   ENABLE_GTK_FALSE=
15882 fi
15883
15884 # Check whether --enable-gtk or --disable-gtk was given.
15885 if test "${enable_gtk+set}" = set; then
15886   enableval="$enable_gtk"
15887   case "x$enable_gtk" in xyes|xdynamic)
15888 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
15889 if test "${with_gtk_prefix+set}" = set; then
15890   withval="$with_gtk_prefix"
15891   gtk_config_prefix="$withval"
15892 else
15893   gtk_config_prefix=""
15894 fi;
15895
15896 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15897 if test "${with_gtk_exec_prefix+set}" = set; then
15898   withval="$with_gtk_exec_prefix"
15899   gtk_config_exec_prefix="$withval"
15900 else
15901   gtk_config_exec_prefix=""
15902 fi;
15903 # Check whether --enable-gtktest or --disable-gtktest was given.
15904 if test "${enable_gtktest+set}" = set; then
15905   enableval="$enable_gtktest"
15906
15907 else
15908   enable_gtktest=yes
15909 fi;
15910
15911   for module in .
15912   do
15913       case "$module" in
15914          gthread)
15915              gtk_config_args="$gtk_config_args gthread"
15916          ;;
15917       esac
15918   done
15919
15920   if test x$gtk_config_exec_prefix != x ; then
15921      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15922      if test x${GTK_CONFIG+set} != xset ; then
15923         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15924      fi
15925   fi
15926   if test x$gtk_config_prefix != x ; then
15927      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15928      if test x${GTK_CONFIG+set} != xset ; then
15929         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15930      fi
15931   fi
15932
15933   # Extract the first word of "gtk-config", so it can be a program name with args.
15934 set dummy gtk-config; ac_word=$2
15935 echo "$as_me:$LINENO: checking for $ac_word" >&5
15936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15937 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   case $GTK_CONFIG in
15941   [\\/]* | ?:[\\/]*)
15942   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15943   ;;
15944   *)
15945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15947 do
15948   IFS=$as_save_IFS
15949   test -z "$as_dir" && as_dir=.
15950   for ac_exec_ext in '' $ac_executable_extensions; do
15951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15954     break 2
15955   fi
15956 done
15957 done
15958
15959   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15960   ;;
15961 esac
15962 fi
15963 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15964
15965 if test -n "$GTK_CONFIG"; then
15966   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
15967 echo "${ECHO_T}$GTK_CONFIG" >&6
15968 else
15969   echo "$as_me:$LINENO: result: no" >&5
15970 echo "${ECHO_T}no" >&6
15971 fi
15972
15973   min_gtk_version=1.1.3
15974   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
15975 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
15976   no_gtk=""
15977   if test "$GTK_CONFIG" = "no" ; then
15978     no_gtk=yes
15979   else
15980     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15981     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15982     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15984     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15985            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15986     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15987            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15988     if test "x$enable_gtktest" = "xyes" ; then
15989       ac_save_CFLAGS="$CFLAGS"
15990       ac_save_LIBS="$LIBS"
15991       CFLAGS="$CFLAGS $GTK_CFLAGS"
15992       LIBS="$GTK_LIBS $LIBS"
15993       rm -f conf.gtktest
15994       if test "$cross_compiling" = yes; then
15995   echo $ac_n "cross compiling; assumed OK... $ac_c"
15996 else
15997   cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003
16004 #include <gtk/gtk.h>
16005 #include <stdio.h>
16006 #include <stdlib.h>
16007
16008 int
16009 main ()
16010 {
16011   int major, minor, micro;
16012   char *tmp_version;
16013
16014   system ("touch conf.gtktest");
16015
16016   /* HP/UX 9 (%@#!) writes to sscanf strings */
16017   tmp_version = g_strdup("$min_gtk_version");
16018   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16019      printf("%s, bad version string\n", "$min_gtk_version");
16020      exit(1);
16021    }
16022
16023   if ((gtk_major_version != $gtk_config_major_version) ||
16024       (gtk_minor_version != $gtk_config_minor_version) ||
16025       (gtk_micro_version != $gtk_config_micro_version))
16026     {
16027       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16028              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16029              gtk_major_version, gtk_minor_version, gtk_micro_version);
16030       printf ("*** was found! If gtk-config was correct, then it is best\n");
16031       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16032       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16033       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16034       printf("*** required on your system.\n");
16035       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16036       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16037       printf("*** before re-running configure\n");
16038     }
16039 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16040   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16041            (gtk_minor_version != GTK_MINOR_VERSION) ||
16042            (gtk_micro_version != GTK_MICRO_VERSION))
16043     {
16044       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16045              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16046       printf("*** library (version %d.%d.%d)\n",
16047              gtk_major_version, gtk_minor_version, gtk_micro_version);
16048     }
16049 #endif /* defined (GTK_MAJOR_VERSION) ... */
16050   else
16051     {
16052       if ((gtk_major_version > major) ||
16053         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16054         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16055       {
16056         return 0;
16057        }
16058      else
16059       {
16060         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16061                gtk_major_version, gtk_minor_version, gtk_micro_version);
16062         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16063                major, minor, micro);
16064         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16065         printf("***\n");
16066         printf("*** If you have already installed a sufficiently new version, this error\n");
16067         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16068         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16069         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16070         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16071         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16072         printf("*** so that the correct libraries are found at run-time))\n");
16073       }
16074     }
16075   return 1;
16076 }
16077
16078 _ACEOF
16079 rm -f conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081   (eval $ac_link) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086   (eval $ac_try) 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; }; then
16090   :
16091 else
16092   echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ( exit $ac_status )
16097 no_gtk=yes
16098 fi
16099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16100 fi
16101        CFLAGS="$ac_save_CFLAGS"
16102        LIBS="$ac_save_LIBS"
16103      fi
16104   fi
16105   if test "x$no_gtk" = x ; then
16106      echo "$as_me:$LINENO: result: yes" >&5
16107 echo "${ECHO_T}yes" >&6
16108      :
16109   else
16110      echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6
16112      if test "$GTK_CONFIG" = "no" ; then
16113        echo "*** The gtk-config script installed by GTK could not be found"
16114        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
16115        echo "*** your path, or set the GTK_CONFIG environment variable to the"
16116        echo "*** full path to gtk-config."
16117      else
16118        if test -f conf.gtktest ; then
16119         :
16120        else
16121           echo "*** Could not run GTK test program, checking why..."
16122           CFLAGS="$CFLAGS $GTK_CFLAGS"
16123           LIBS="$LIBS $GTK_LIBS"
16124           cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130
16131 #include <gtk/gtk.h>
16132 #include <stdio.h>
16133
16134 int
16135 main ()
16136 {
16137  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
16138   ;
16139   return 0;
16140 }
16141 _ACEOF
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144   (eval $ac_link) 2>conftest.er1
16145   ac_status=$?
16146   grep -v '^ *+' conftest.er1 >conftest.err
16147   rm -f conftest.er1
16148   cat conftest.err >&5
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -z "$ac_c_werror_flag"
16152                          || test ! -s conftest.err'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; } &&
16158          { ac_try='test -s conftest$ac_exeext'
16159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160   (eval $ac_try) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; }; then
16164    echo "*** The test program compiled, but did not run. This usually means"
16165           echo "*** that the run-time linker is not finding GTK or finding the wrong"
16166           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
16167           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16168           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16169           echo "*** is required on your system"
16170           echo "***"
16171           echo "*** If you have an old version installed, it is best to remove it, although"
16172           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16173           echo "***"
16174           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
16175           echo "*** came with the system with the command"
16176           echo "***"
16177           echo "***    rpm --erase --nodeps gtk gtk-devel"
16178 else
16179   echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16181
16182  echo "*** The test program failed to compile or link. See the file config.log for the"
16183           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
16184           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
16185           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
16186 fi
16187 rm -f conftest.err conftest.$ac_objext \
16188       conftest$ac_exeext conftest.$ac_ext
16189           CFLAGS="$ac_save_CFLAGS"
16190           LIBS="$ac_save_LIBS"
16191        fi
16192      fi
16193      GTK_CFLAGS=""
16194      GTK_LIBS=""
16195      enable_gtk=no
16196   fi
16197
16198
16199   rm -f conf.gtktest
16200   ;; esac
16201 fi;
16202 case "x$enable_gtk" in
16203 xyes)
16204   cat >> confdefs.h <<EOF
16205 #define IA_GTK 1
16206 EOF
16207
16208
16209
16210 if true; then
16211   ENABLE_GTK_TRUE=
16212   ENABLE_GTK_FALSE='#'
16213 else
16214   ENABLE_GTK_TRUE='#'
16215   ENABLE_GTK_FALSE=
16216 fi
16217
16218    LIBS="$LIBS $GTK_LIBS"
16219     for f in $GTK_CFLAGS; do
16220     case ".$f" in
16221         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16222         *)              CFLAGS="$CPPFLAGS $f" ;;
16223     esac
16224 done
16225
16226     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
16227
16228   ;;
16229 xdynamic)
16230   dynamic_targets="$dynamic_targets interface_g.\$(so)"
16231    if test "x$GCC" = xyes; then
16232                 for i in $GTK_LIBS; do
16233             case "x$i" in
16234                 x-rdynamic) ;;
16235                 *) g_so_libs="$g_so_libs $i" ;;
16236             esac
16237         done
16238     else
16239         g_so_libs="$GTK_LIBS"
16240     fi
16241     for f in $GTK_CFLAGS; do
16242     case ".$f" in
16243         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
16244         *)              CFLAGS="$CPPFLAGS $f" ;;
16245     esac
16246 done
16247
16248   ;;
16249 *)
16250
16251   ;;
16252 esac
16253
16254
16255
16256
16257
16258 if false; then
16259   ENABLE_SERVER_TRUE=
16260   ENABLE_SERVER_FALSE='#'
16261 else
16262   ENABLE_SERVER_TRUE='#'
16263   ENABLE_SERVER_FALSE=
16264 fi
16265
16266 # Check whether --enable-server or --disable-server was given.
16267 if test "${enable_server+set}" = set; then
16268   enableval="$enable_server"
16269   case "x$enable_server" in xyes|xdynamic)  ;; esac
16270 fi;
16271 case "x$enable_server" in
16272 xyes)
16273   cat >> confdefs.h <<EOF
16274 #define IA_SERVER 1
16275 EOF
16276
16277
16278
16279 if true; then
16280   ENABLE_SERVER_TRUE=
16281   ENABLE_SERVER_FALSE='#'
16282 else
16283   ENABLE_SERVER_TRUE='#'
16284   ENABLE_SERVER_FALSE=
16285 fi
16286
16287    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
16288
16289 for ac_header in sys/soundcard.h
16290 do
16291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16293   echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 fi
16298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16300 else
16301   # Is the header compilable?
16302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 $ac_includes_default
16311 #include <$ac_header>
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315   (eval $ac_compile) 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag"
16323                          || test ! -s conftest.err'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; } &&
16329          { ac_try='test -s conftest.$ac_objext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   ac_header_compiler=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_compiler=no
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6
16345
16346 # Is the header present?
16347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 #include <$ac_header>
16356 _ACEOF
16357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } >/dev/null; then
16365   if test -s conftest.err; then
16366     ac_cpp_err=$ac_c_preproc_warn_flag
16367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16368   else
16369     ac_cpp_err=
16370   fi
16371 else
16372   ac_cpp_err=yes
16373 fi
16374 if test -z "$ac_cpp_err"; then
16375   ac_header_preproc=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380   ac_header_preproc=no
16381 fi
16382 rm -f conftest.err conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384 echo "${ECHO_T}$ac_header_preproc" >&6
16385
16386 # So?  What about this header?
16387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16388   yes:no: )
16389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393     ac_header_preproc=yes
16394     ;;
16395   no:yes:* )
16396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16408     (
16409       cat <<\_ASBOX
16410 ## ------------------------------- ##
16411 ## Report this to root@mput.dip.jp ##
16412 ## ------------------------------- ##
16413 _ASBOX
16414     ) |
16415       sed "s/^/$as_me: WARNING:     /" >&2
16416     ;;
16417 esac
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421   echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423   eval "$as_ac_Header=\$ac_header_preproc"
16424 fi
16425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16427
16428 fi
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430   cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438
16439   ;;
16440 xdynamic)
16441   dynamic_targets="$dynamic_targets interface_r.\$(so)"
16442
16443   ;;
16444 *)
16445
16446   ;;
16447 esac
16448
16449
16450
16451
16452
16453 if false; then
16454   ENABLE_ALSASEQ_TRUE=
16455   ENABLE_ALSASEQ_FALSE='#'
16456 else
16457   ENABLE_ALSASEQ_TRUE='#'
16458   ENABLE_ALSASEQ_FALSE=
16459 fi
16460
16461 # Check whether --enable-alsaseq or --disable-alsaseq was given.
16462 if test "${enable_alsaseq+set}" = set; then
16463   enableval="$enable_alsaseq"
16464   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
16465 fi;
16466 case "x$enable_alsaseq" in
16467 xyes)
16468   cat >> confdefs.h <<EOF
16469 #define IA_ALSASEQ 1
16470 EOF
16471
16472
16473
16474 if true; then
16475   ENABLE_ALSASEQ_TRUE=
16476   ENABLE_ALSASEQ_FALSE='#'
16477 else
16478   ENABLE_ALSASEQ_TRUE='#'
16479   ENABLE_ALSASEQ_FALSE=
16480 fi
16481
16482    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
16483     alsa_save_CFLAGS="$CFLAGS"
16484 alsa_save_LDFLAGS="$LDFLAGS"
16485 alsa_save_LIBS="$LIBS"
16486 alsa_found=yes
16487
16488
16489 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
16490 if test "${with_alsa_prefix+set}" = set; then
16491   withval="$with_alsa_prefix"
16492   alsa_prefix="$withval"
16493 else
16494   alsa_prefix=""
16495 fi;
16496
16497
16498 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
16499 if test "${with_alsa_inc_prefix+set}" = set; then
16500   withval="$with_alsa_inc_prefix"
16501   alsa_inc_prefix="$withval"
16502 else
16503   alsa_inc_prefix=""
16504 fi;
16505
16506 # Check whether --enable-alsatest or --disable-alsatest was given.
16507 if test "${enable_alsatest+set}" = set; then
16508   enableval="$enable_alsatest"
16509   enable_alsatest=no
16510 else
16511   enable_alsatest=yes
16512 fi;
16513
16514 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
16515 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
16516 if test "$alsa_inc_prefix" != "" ; then
16517         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
16518         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
16519 fi
16520 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
16521 echo "${ECHO_T}$ALSA_CFLAGS" >&6
16522
16523 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
16524 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
16525 if test "$alsa_prefix" != "" ; then
16526         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
16527         LDFLAGS="$LDFLAGS $ALSA_LIBS"
16528 fi
16529
16530 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
16531 LIBS=`echo $LIBS | sed 's/-lm//'`
16532 LIBS=`echo $LIBS | sed 's/-ldl//'`
16533 LIBS=`echo $LIBS | sed 's/-lpthread//'`
16534 LIBS=`echo $LIBS | sed 's/  //'`
16535 LIBS="$ALSA_LIBS $LIBS"
16536 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
16537 echo "${ECHO_T}$ALSA_LIBS" >&6
16538
16539 min_alsa_version=0.1.1
16540 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
16541 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
16542 no_alsa=""
16543     alsa_min_major_version=`echo $min_alsa_version | \
16544            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16545     alsa_min_minor_version=`echo $min_alsa_version | \
16546            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16547     alsa_min_micro_version=`echo $min_alsa_version | \
16548            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16549
16550
16551
16552
16553 ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565
16566 #include <alsa/asoundlib.h>
16567
16568 int
16569 main ()
16570 {
16571
16572 /* ensure backward compatibility */
16573 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
16574 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
16575 #endif
16576 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
16577 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
16578 #endif
16579 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
16580 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
16581 #endif
16582
16583 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
16584   exit(0);
16585 #  else
16586 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
16587 #       error not present
16588 #    endif
16589
16590 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
16591   exit(0);
16592 #   else
16593 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
16594 #          error not present
16595 #      endif
16596
16597 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
16598 #        error not present
16599 #      endif
16600 #    endif
16601 #  endif
16602 exit(0);
16603
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610   (eval $ac_compile) 2>conftest.er1
16611   ac_status=$?
16612   grep -v '^ *+' conftest.er1 >conftest.err
16613   rm -f conftest.er1
16614   cat conftest.err >&5
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); } &&
16617          { ac_try='test -z "$ac_c_werror_flag"
16618                          || test ! -s conftest.err'
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); }; } &&
16624          { ac_try='test -s conftest.$ac_objext'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   echo "$as_me:$LINENO: result: found." >&5
16631 echo "${ECHO_T}found." >&6
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h.  */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h.  */
16642
16643 #include <sys/asoundlib.h>
16644
16645 int
16646 main ()
16647 {
16648
16649 /* ensure backward compatibility */
16650 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
16651 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
16652 #endif
16653 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
16654 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
16655 #endif
16656 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
16657 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
16658 #endif
16659
16660 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
16661   exit(0);
16662 #  else
16663 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
16664 #       error not present
16665 #    endif
16666
16667 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
16668   exit(0);
16669 #   else
16670 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
16671 #          error not present
16672 #      endif
16673
16674 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
16675 #        error not present
16676 #      endif
16677 #    endif
16678 #  endif
16679 exit(0);
16680
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687   (eval $ac_compile) 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag"
16695                          || test ! -s conftest.err'
16696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697   (eval $ac_try) 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; } &&
16701          { ac_try='test -s conftest.$ac_objext'
16702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703   (eval $ac_try) 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); }; }; then
16707   echo "$as_me:$LINENO: result: found." >&5
16708 echo "${ECHO_T}found." >&6
16709 else
16710   echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 echo "$as_me:$LINENO: result: not present." >&5
16714 echo "${ECHO_T}not present." >&6
16715    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
16716 echo "${ECHO_T}libasound was not found anywhere." >&6
16717    alsa_found=no
16718 fi
16719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
16721 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
16722
16723 fi
16724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16725 ac_ext=c
16726 ac_cpp='$CPP $CPPFLAGS'
16727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16730
16731
16732
16733 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
16734 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
16735 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
16736   echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738   ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lasound  $LIBS"
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746
16747 /* Override any gcc2 internal prototype to avoid an error.  */
16748 #ifdef __cplusplus
16749 extern "C"
16750 #endif
16751 /* We use char because int might match the return type of a gcc2
16752    builtin and then its argument prototype would still apply.  */
16753 char snd_ctl_open ();
16754 int
16755 main ()
16756 {
16757 snd_ctl_open ();
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16764   (eval $ac_link) 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } &&
16771          { ac_try='test -z "$ac_c_werror_flag"
16772                          || test ! -s conftest.err'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; } &&
16778          { ac_try='test -s conftest$ac_exeext'
16779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780   (eval $ac_try) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; }; then
16784   ac_cv_lib_asound_snd_ctl_open=yes
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789 ac_cv_lib_asound_snd_ctl_open=no
16790 fi
16791 rm -f conftest.err conftest.$ac_objext \
16792       conftest$ac_exeext conftest.$ac_ext
16793 LIBS=$ac_check_lib_save_LIBS
16794 fi
16795 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
16796 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
16797 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
16798   cat >>confdefs.h <<_ACEOF
16799 #define HAVE_LIBASOUND 1
16800 _ACEOF
16801
16802   LIBS="-lasound $LIBS"
16803
16804 else
16805   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
16806 echo "${ECHO_T}No linkable libasound was found." >&6
16807    alsa_found=no
16808
16809 fi
16810
16811
16812 if test "x$alsa_found" = "xyes" ; then
16813    :
16814    LIBS=`echo $LIBS | sed 's/-lasound//g'`
16815    LIBS=`echo $LIBS | sed 's/  //'`
16816    LIBS="-lasound $LIBS"
16817 else
16818    :
16819    CFLAGS="$alsa_save_CFLAGS"
16820    LDFLAGS="$alsa_save_LDFLAGS"
16821    LIBS="$alsa_save_LIBS"
16822    ALSA_CFLAGS=""
16823    ALSA_LIBS=""
16824 fi
16825
16826
16827
16828
16829
16830   ;;
16831 xdynamic)
16832   dynamic_targets="$dynamic_targets interface_A.\$(so)"
16833
16834   ;;
16835 *)
16836
16837   ;;
16838 esac
16839
16840
16841
16842
16843
16844 if false; then
16845   ENABLE_WINSYN_TRUE=
16846   ENABLE_WINSYN_FALSE='#'
16847 else
16848   ENABLE_WINSYN_TRUE='#'
16849   ENABLE_WINSYN_FALSE=
16850 fi
16851
16852 # Check whether --enable-winsyn or --disable-winsyn was given.
16853 if test "${enable_winsyn+set}" = set; then
16854   enableval="$enable_winsyn"
16855   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
16856 fi;
16857 case "x$enable_winsyn" in
16858 xyes)
16859   cat >> confdefs.h <<EOF
16860 #define IA_WINSYN 1
16861 EOF
16862
16863
16864
16865 if true; then
16866   ENABLE_WINSYN_TRUE=
16867   ENABLE_WINSYN_FALSE='#'
16868 else
16869   ENABLE_WINSYN_TRUE='#'
16870   ENABLE_WINSYN_FALSE=
16871 fi
16872
16873    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
16874   ;;
16875 xdynamic)
16876   dynamic_targets="$dynamic_targets interface_W.\$(so)"
16877
16878   ;;
16879 *)
16880
16881   ;;
16882 esac
16883
16884
16885
16886
16887
16888 if false; then
16889   ENABLE_PORTMIDISYN_TRUE=
16890   ENABLE_PORTMIDISYN_FALSE='#'
16891 else
16892   ENABLE_PORTMIDISYN_TRUE='#'
16893   ENABLE_PORTMIDISYN_FALSE=
16894 fi
16895
16896 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
16897 if test "${enable_portmidisyn+set}" = set; then
16898   enableval="$enable_portmidisyn"
16899   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
16900 fi;
16901 case "x$enable_portmidisyn" in
16902 xyes)
16903   cat >> confdefs.h <<EOF
16904 #define IA_PORTMIDISYN 1
16905 EOF
16906
16907
16908
16909 if true; then
16910   ENABLE_PORTMIDISYN_TRUE=
16911   ENABLE_PORTMIDISYN_FALSE='#'
16912 else
16913   ENABLE_PORTMIDISYN_TRUE='#'
16914   ENABLE_PORTMIDISYN_FALSE=
16915 fi
16916
16917    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
16918   ;;
16919 xdynamic)
16920   dynamic_targets="$dynamic_targets interface_P.\$(so)"
16921
16922   ;;
16923 *)
16924
16925   ;;
16926 esac
16927
16928
16929
16930
16931
16932 if false; then
16933   ENABLE_W32G_SYN_TRUE=
16934   ENABLE_W32G_SYN_FALSE='#'
16935 else
16936   ENABLE_W32G_SYN_TRUE='#'
16937   ENABLE_W32G_SYN_FALSE=
16938 fi
16939
16940 # Check whether --enable-winsyng or --disable-winsyng was given.
16941 if test "${enable_winsyng+set}" = set; then
16942   enableval="$enable_winsyng"
16943   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
16944 fi;
16945 case "x$enable_winsyng" in
16946 xyes)
16947   cat >> confdefs.h <<EOF
16948 #define IA_W32G_SYN 1
16949 EOF
16950
16951
16952
16953 if true; then
16954   ENABLE_W32G_SYN_TRUE=
16955   ENABLE_W32G_SYN_FALSE='#'
16956 else
16957   ENABLE_W32G_SYN_TRUE='#'
16958   ENABLE_W32G_SYN_FALSE=
16959 fi
16960
16961    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
16962     lib_user32_opt='-luser32'
16963     LDFLAGS="-mwindows $LDFLAGS"
16964     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"
16965
16966   ;;
16967 xdynamic)
16968   dynamic_targets="$dynamic_targets interface_W.\$(so)"
16969
16970   ;;
16971 *)
16972
16973   ;;
16974 esac
16975
16976
16977
16978
16979
16980
16981 if false; then
16982   ENABLE_W32GUI_TRUE=
16983   ENABLE_W32GUI_FALSE='#'
16984 else
16985   ENABLE_W32GUI_TRUE='#'
16986   ENABLE_W32GUI_FALSE=
16987 fi
16988
16989 # Check whether --enable-w32gui or --disable-w32gui was given.
16990 if test "${enable_w32gui+set}" = set; then
16991   enableval="$enable_w32gui"
16992   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
16993 fi;
16994 case "x$enable_w32gui" in
16995 xyes)
16996   cat >> confdefs.h <<EOF
16997 #define IA_W32GUI 1
16998 EOF
16999
17000
17001
17002 if true; then
17003   ENABLE_W32GUI_TRUE=
17004   ENABLE_W32GUI_FALSE='#'
17005 else
17006   ENABLE_W32GUI_TRUE='#'
17007   ENABLE_W32GUI_FALSE=
17008 fi
17009
17010    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17011     lib_user32_opt='-luser32'
17012     LDFLAGS="-mwindows $LDFLAGS"
17013     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"
17014
17015   ;;
17016 xdynamic)
17017   dynamic_targets="$dynamic_targets interface_w.\$(so)"
17018
17019   ;;
17020 *)
17021
17022   ;;
17023 esac
17024
17025
17026
17027
17028
17029 if false; then
17030   ENABLE_PLUGIN_TRUE=
17031   ENABLE_PLUGIN_FALSE='#'
17032 else
17033   ENABLE_PLUGIN_TRUE='#'
17034   ENABLE_PLUGIN_FALSE=
17035 fi
17036
17037 # Check whether --enable-ump or --disable-ump was given.
17038 if test "${enable_ump+set}" = set; then
17039   enableval="$enable_ump"
17040   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
17041         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
17042 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
17043    { (exit 1); exit 1; }; }
17044     fi
17045     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17046   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17047 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17048 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 fi
17051 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17052 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17053 else
17054   # Is the header compilable?
17055 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17056 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 $ac_includes_default
17064 #include <X11/xpm.h>
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068   (eval $ac_compile) 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag"
17076                          || test ! -s conftest.err'
17077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078   (eval $ac_try) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); }; } &&
17082          { ac_try='test -s conftest.$ac_objext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   ac_header_compiler=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_header_compiler=no
17094 fi
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17097 echo "${ECHO_T}$ac_header_compiler" >&6
17098
17099 # Is the header present?
17100 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
17101 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 #include <X11/xpm.h>
17109 _ACEOF
17110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17112   ac_status=$?
17113   grep -v '^ *+' conftest.er1 >conftest.err
17114   rm -f conftest.er1
17115   cat conftest.err >&5
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } >/dev/null; then
17118   if test -s conftest.err; then
17119     ac_cpp_err=$ac_c_preproc_warn_flag
17120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17121   else
17122     ac_cpp_err=
17123   fi
17124 else
17125   ac_cpp_err=yes
17126 fi
17127 if test -z "$ac_cpp_err"; then
17128   ac_header_preproc=yes
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133   ac_header_preproc=no
17134 fi
17135 rm -f conftest.err conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17137 echo "${ECHO_T}$ac_header_preproc" >&6
17138
17139 # So?  What about this header?
17140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17141   yes:no: )
17142     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17143 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17144     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
17145 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
17146     ac_header_preproc=yes
17147     ;;
17148   no:yes:* )
17149     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
17150 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
17152 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
17153     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
17154 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
17155     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
17156 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17157     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
17158 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
17159     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
17160 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
17161     (
17162       cat <<\_ASBOX
17163 ## ------------------------------- ##
17164 ## Report this to root@mput.dip.jp ##
17165 ## ------------------------------- ##
17166 _ASBOX
17167     ) |
17168       sed "s/^/$as_me: WARNING:     /" >&2
17169     ;;
17170 esac
17171 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17172 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17173 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17174   echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176   ac_cv_header_X11_xpm_h=$ac_header_preproc
17177 fi
17178 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17180
17181 fi
17182 if test $ac_cv_header_X11_xpm_h = yes; then
17183   :
17184 else
17185   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
17186 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
17187    { (exit 1); exit 1; }; }
17188 fi
17189
17190
17191     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17192 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
17193 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   ac_check_lib_save_LIBS=$LIBS
17197 LIBS="-lXpm  $LIBS"
17198 cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 /* We use char because int might match the return type of a gcc2
17210    builtin and then its argument prototype would still apply.  */
17211 char XpmCreatePixmapFromData ();
17212 int
17213 main ()
17214 {
17215 XpmCreatePixmapFromData ();
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag"
17230                          || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251 LIBS=$ac_check_lib_save_LIBS
17252 fi
17253 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17254 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
17255 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17256   :
17257 else
17258   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
17259 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
17260    { (exit 1); exit 1; }; }
17261 fi
17262
17263     if test "x$have_xext" = xyes; then
17264       lib_xext_opt=-lXext
17265     fi
17266     if test "x$have_xprelibs" = xyes; then
17267       lib_xprelibs_opt='-lSM -lICE'
17268     fi
17269     lib_xmu_opt=-lXmu
17270     lib_xt_opt=-lXt
17271    ;; esac
17272 fi;
17273 case "x$enable_ump" in
17274 xyes)
17275   cat >> confdefs.h <<EOF
17276 #define IA_PLUGIN 1
17277 EOF
17278
17279
17280
17281 if true; then
17282   ENABLE_PLUGIN_TRUE=
17283   ENABLE_PLUGIN_FALSE='#'
17284 else
17285   ENABLE_PLUGIN_TRUE='#'
17286   ENABLE_PLUGIN_FALSE=
17287 fi
17288
17289
17290   ;;
17291 xdynamic)
17292   dynamic_targets="$dynamic_targets interface_p.\$(so)"
17293
17294   ;;
17295 *)
17296
17297   ;;
17298 esac
17299
17300
17301
17302
17303 # Check whether --enable-offix or --disable-offix was given.
17304 if test "${enable_offix+set}" = set; then
17305   enableval="$enable_offix"
17306    if test "$enableval" = "yes"; then
17307       KEEPCPPFLAGS=$CPPFLAGS
17308       KEEPLIBS=$LIBS
17309       KEEPLDFLAGS=$LDFLAGS
17310       CPPFLAGS="$CPPFLAGS $offix_include_dir"
17311       LDFLAGS="$LDFLAGS $offix_lib_dir"
17312       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
17313       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
17314 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
17315 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
17316   echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318   ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-lDnd  $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326
17327 /* Override any gcc2 internal prototype to avoid an error.  */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 /* We use char because int might match the return type of a gcc2
17332    builtin and then its argument prototype would still apply.  */
17333 char DndInitialize ();
17334 int
17335 main ()
17336 {
17337 DndInitialize ();
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17344   (eval $ac_link) 2>conftest.er1
17345   ac_status=$?
17346   grep -v '^ *+' conftest.er1 >conftest.err
17347   rm -f conftest.er1
17348   cat conftest.err >&5
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); } &&
17351          { ac_try='test -z "$ac_c_werror_flag"
17352                          || test ! -s conftest.err'
17353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354   (eval $ac_try) 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest$ac_exeext'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; }; then
17364   ac_cv_lib_Dnd_DndInitialize=yes
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 ac_cv_lib_Dnd_DndInitialize=no
17370 fi
17371 rm -f conftest.err conftest.$ac_objext \
17372       conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17374 fi
17375 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
17376 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
17377 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
17378
17379         LIBS=$KEEPLIBS
17380         lib_offix_opt="-lDnd"
17381
17382 cat >>confdefs.h <<\_ACEOF
17383 #define OFFIX 1
17384 _ACEOF
17385
17386
17387 else
17388    LDFLAGS=$KEEPLDFLAGS
17389         CPPFLAGS=$KEEPCPPFLAGS
17390         LIBS=$KEEPLIBS
17391
17392 fi
17393
17394     fi
17395
17396 fi;
17397
17398 # Check whether --enable-network or --disable-network was given.
17399 if test "${enable_network+set}" = set; then
17400   enableval="$enable_network"
17401    if test "$enableval" = "yes"; then
17402
17403 cat >>confdefs.h <<\_ACEOF
17404 #define SUPPORT_SOCKET 1
17405 _ACEOF
17406
17407     fi
17408 fi;
17409
17410
17411 if test "x$enable_network" = "xyes"; then
17412   ENABLE_NETWORK_TRUE=
17413   ENABLE_NETWORK_FALSE='#'
17414 else
17415   ENABLE_NETWORK_TRUE='#'
17416   ENABLE_NETWORK_FALSE=
17417 fi
17418
17419
17420 # Check whether --enable-spectrogram or --disable-spectrogram was given.
17421 if test "${enable_spectrogram+set}" = set; then
17422   enableval="$enable_spectrogram"
17423    if test "$enableval" = "yes"; then
17424       if test "x$with_x" != xyes; then
17425         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
17426 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
17427    { (exit 1); exit 1; }; }
17428       fi
17429
17430 cat >>confdefs.h <<\_ACEOF
17431 #define SUPPORT_SOUNDSPEC 1
17432 _ACEOF
17433
17434     fi
17435 fi;
17436
17437
17438 if test "x$enable_spectrogram" = "xyes"; then
17439   ENABLE_SOUND_SPEC_TRUE=
17440   ENABLE_SOUND_SPEC_FALSE='#'
17441 else
17442   ENABLE_SOUND_SPEC_TRUE='#'
17443   ENABLE_SOUND_SPEC_FALSE=
17444 fi
17445
17446
17447 # Check whether --enable-spline or --disable-spline was given.
17448 if test "${enable_spline+set}" = set; then
17449   enableval="$enable_spline"
17450    case "x$enableval" in
17451       xlinear)
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define LINEAR_INTERPOLATION 1
17455 _ACEOF
17456
17457         ;;
17458       xcubic)
17459
17460 cat >>confdefs.h <<\_ACEOF
17461 #define CSPLINE_INTERPOLATION 1
17462 _ACEOF
17463
17464         ;;
17465       xlagrange)
17466
17467 cat >>confdefs.h <<\_ACEOF
17468 #define LAGRANGE_INTERPOLATION 1
17469 _ACEOF
17470
17471         ;;
17472       xnewton)
17473
17474 cat >>confdefs.h <<\_ACEOF
17475 #define NEWTON_INTERPOLATION 1
17476 _ACEOF
17477
17478         ;;
17479       xgauss)
17480
17481 cat >>confdefs.h <<\_ACEOF
17482 #define GAUSS_INTERPOLATION 1
17483 _ACEOF
17484
17485         ;;
17486       xno)
17487
17488 cat >>confdefs.h <<\_ACEOF
17489 #define NO_INTERPOLATION 1
17490 _ACEOF
17491
17492         ;;
17493       *)
17494         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
17495 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
17496    { (exit 1); exit 1; }; }
17497         ;;
17498     esac
17499 fi;
17500
17501 # Check whether --enable-wrd or --disable-wrd was given.
17502 if test "${enable_wrd+set}" = set; then
17503   enableval="$enable_wrd"
17504    if test "$enableval" = "yes"; then
17505       if test "x$with_x" != xyes; then
17506         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
17507 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
17508    { (exit 1); exit 1; }; }
17509       fi
17510
17511 cat >>confdefs.h <<\_ACEOF
17512 #define WRDT_X 1
17513 _ACEOF
17514
17515       enable_sherry_wrd=yes
17516       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
17517 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
17518 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   ac_check_lib_save_LIBS=$LIBS
17522 LIBS="-lz  $LIBS"
17523 cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529
17530 /* Override any gcc2 internal prototype to avoid an error.  */
17531 #ifdef __cplusplus
17532 extern "C"
17533 #endif
17534 /* We use char because int might match the return type of a gcc2
17535    builtin and then its argument prototype would still apply.  */
17536 char zlibVersion ();
17537 int
17538 main ()
17539 {
17540 zlibVersion ();
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547   (eval $ac_link) 2>conftest.er1
17548   ac_status=$?
17549   grep -v '^ *+' conftest.er1 >conftest.err
17550   rm -f conftest.er1
17551   cat conftest.err >&5
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } &&
17554          { ac_try='test -z "$ac_c_werror_flag"
17555                          || test ! -s conftest.err'
17556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557   (eval $ac_try) 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; } &&
17561          { ac_try='test -s conftest$ac_exeext'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; }; then
17567   ac_cv_lib_z_zlibVersion=yes
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 ac_cv_lib_z_zlibVersion=no
17573 fi
17574 rm -f conftest.err conftest.$ac_objext \
17575       conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17577 fi
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
17579 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
17580 if test $ac_cv_lib_z_zlibVersion = yes; then
17581   :
17582 else
17583   enable_sherry_wrd=no
17584 fi
17585
17586       if test "${ac_cv_header_png_h+set}" = set; then
17587   echo "$as_me:$LINENO: checking for png.h" >&5
17588 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17589 if test "${ac_cv_header_png_h+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 fi
17592 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
17593 echo "${ECHO_T}$ac_cv_header_png_h" >&6
17594 else
17595   # Is the header compilable?
17596 echo "$as_me:$LINENO: checking png.h usability" >&5
17597 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 $ac_includes_default
17605 #include <png.h>
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609   (eval $ac_compile) 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } &&
17616          { ac_try='test -z "$ac_c_werror_flag"
17617                          || test ! -s conftest.err'
17618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619   (eval $ac_try) 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; } &&
17623          { ac_try='test -s conftest.$ac_objext'
17624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625   (eval $ac_try) 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); }; }; then
17629   ac_header_compiler=yes
17630 else
17631   echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634 ac_header_compiler=no
17635 fi
17636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17638 echo "${ECHO_T}$ac_header_compiler" >&6
17639
17640 # Is the header present?
17641 echo "$as_me:$LINENO: checking png.h presence" >&5
17642 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649 #include <png.h>
17650 _ACEOF
17651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } >/dev/null; then
17659   if test -s conftest.err; then
17660     ac_cpp_err=$ac_c_preproc_warn_flag
17661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17662   else
17663     ac_cpp_err=
17664   fi
17665 else
17666   ac_cpp_err=yes
17667 fi
17668 if test -z "$ac_cpp_err"; then
17669   ac_header_preproc=yes
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674   ac_header_preproc=no
17675 fi
17676 rm -f conftest.err conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17678 echo "${ECHO_T}$ac_header_preproc" >&6
17679
17680 # So?  What about this header?
17681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17682   yes:no: )
17683     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
17684 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17685     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
17686 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
17687     ac_header_preproc=yes
17688     ;;
17689   no:yes:* )
17690     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
17691 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
17692     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
17693 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
17694     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
17695 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
17696     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
17697 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17698     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
17699 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
17700     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
17701 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
17702     (
17703       cat <<\_ASBOX
17704 ## ------------------------------- ##
17705 ## Report this to root@mput.dip.jp ##
17706 ## ------------------------------- ##
17707 _ASBOX
17708     ) |
17709       sed "s/^/$as_me: WARNING:     /" >&2
17710     ;;
17711 esac
17712 echo "$as_me:$LINENO: checking for png.h" >&5
17713 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
17714 if test "${ac_cv_header_png_h+set}" = set; then
17715   echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717   ac_cv_header_png_h=$ac_header_preproc
17718 fi
17719 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
17720 echo "${ECHO_T}$ac_cv_header_png_h" >&6
17721
17722 fi
17723 if test $ac_cv_header_png_h = yes; then
17724   :
17725 else
17726   enable_sherry_wrd=no
17727 fi
17728
17729
17730       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
17731 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
17732 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   ac_check_lib_save_LIBS=$LIBS
17736 LIBS="-lpng -lz $LIBS"
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 /* Override any gcc2 internal prototype to avoid an error.  */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749    builtin and then its argument prototype would still apply.  */
17750 char png_init_io ();
17751 int
17752 main ()
17753 {
17754 png_init_io ();
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_c_werror_flag"
17769                          || test ! -s conftest.err'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_lib_png_png_init_io=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_lib_png_png_init_io=no
17787 fi
17788 rm -f conftest.err conftest.$ac_objext \
17789       conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17791 fi
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
17793 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
17794 if test $ac_cv_lib_png_png_init_io = yes; then
17795   :
17796 else
17797   enable_sherry_wrd=no
17798 fi
17799
17800       if test "$enable_sherry_wrd" = yes; then
17801
17802 cat >>confdefs.h <<\_ACEOF
17803 #define ENABLE_SHERRY 1
17804 _ACEOF
17805
17806         lib_zip_opt=-lz
17807         lib_png_opt=-lpng
17808       else
17809          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
17810 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
17811       fi
17812       if test "x$have_xext" = xyes; then
17813         lib_xext_opt=-lXext
17814       fi
17815     fi
17816 fi;
17817
17818
17819
17820 #
17821 # Finish up
17822 #
17823
17824
17825
17826 if test "x$enable_wrd" = "xyes"; then
17827   ENABLE_WRD_TRUE=
17828   ENABLE_WRD_FALSE='#'
17829 else
17830   ENABLE_WRD_TRUE='#'
17831   ENABLE_WRD_FALSE=
17832 fi
17833
17834
17835
17836
17837 if test "x$CYGNUS" = xyes; then
17838   CYGNUS_TRUE=
17839   CYGNUS_FALSE='#'
17840 else
17841   CYGNUS_TRUE='#'
17842   CYGNUS_FALSE=
17843 fi
17844
17845
17846
17847 if test "x$MINGW" = xyes; then
17848   MINGW_TRUE=
17849   MINGW_FALSE='#'
17850 else
17851   MINGW_TRUE='#'
17852   MINGW_FALSE=
17853 fi
17854
17855
17856
17857 if test "x$W32READDIR" = "xyes"; then
17858   W32READDIR_TRUE=
17859   W32READDIR_FALSE='#'
17860 else
17861   W32READDIR_TRUE='#'
17862   W32READDIR_FALSE=
17863 fi
17864
17865
17866 rm -f wordtmp >/dev/null 2>&1
17867 val=''
17868 for f in $LDFLAGS; do
17869   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17870   :
17871 else
17872   echo $f >>wordtmp; val="$val $f"
17873 fi
17874
17875 done
17876 LDFLAGS="$val"
17877 rm -f wordtmp >/dev/null 2>&1
17878
17879 rm -f wordtmp >/dev/null 2>&1
17880 val=''
17881 for f in $SHLDFLAGS; do
17882   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17883   :
17884 else
17885   echo $f >>wordtmp; val="$val $f"
17886 fi
17887
17888 done
17889 SHLDFLAGS="$val"
17890 rm -f wordtmp >/dev/null 2>&1
17891
17892 rm -f wordtmp >/dev/null 2>&1
17893 val=''
17894 for f in $EXTRACFLAGS $CFLAGS; do
17895   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17896   :
17897 else
17898   echo $f >>wordtmp; val="$val $f"
17899 fi
17900
17901 done
17902 CFLAGS="$val"
17903 rm -f wordtmp >/dev/null 2>&1
17904
17905 rm -f wordtmp >/dev/null 2>&1
17906 val=''
17907 for f in $CPPFLAGS $EXTRADEFS; do
17908   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
17909   :
17910 else
17911   echo $f >>wordtmp; val="$val $f"
17912 fi
17913
17914 done
17915 CPPFLAGS="$val"
17916 rm -f wordtmp >/dev/null 2>&1
17917
17918
17919 if test "x$oss_device" != x; then
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define OSS_DEVICE "$oss_device"
17923 _ACEOF
17924
17925 fi
17926
17927 if test "x$TIMIDITY_OUTPUT_ID" != x; then
17928
17929 cat >>confdefs.h <<_ACEOF
17930 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
17931 _ACEOF
17932
17933 fi
17934
17935 if test "x$with_x" = xyes; then
17936     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/"`
17937 fi
17938 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
17939 SHLD="$SHLD $SHLDFLAGS"
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959                                                                                                                                                                                     ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
17960
17961 cat >confcache <<\_ACEOF
17962 # This file is a shell script that caches the results of configure
17963 # tests run on this system so they can be shared between configure
17964 # scripts and configure runs, see configure's option --config-cache.
17965 # It is not useful on other systems.  If it contains results you don't
17966 # want to keep, you may remove or edit it.
17967 #
17968 # config.status only pays attention to the cache file if you give it
17969 # the --recheck option to rerun configure.
17970 #
17971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17973 # following values.
17974
17975 _ACEOF
17976
17977 # The following way of writing the cache mishandles newlines in values,
17978 # but we know of no workaround that is simple, portable, and efficient.
17979 # So, don't put newlines in cache variables' values.
17980 # Ultrix sh set writes to stderr and can't be redirected directly,
17981 # and sets the high bit in the cache file unless we assign to the vars.
17982 {
17983   (set) 2>&1 |
17984     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17985     *ac_space=\ *)
17986       # `set' does not quote correctly, so add quotes (double-quote
17987       # substitution turns \\\\ into \\, and sed turns \\ into \).
17988       sed -n \
17989         "s/'/'\\\\''/g;
17990           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17991       ;;
17992     *)
17993       # `set' quotes correctly as required by POSIX, so do not add quotes.
17994       sed -n \
17995         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17996       ;;
17997     esac;
17998 } |
17999   sed '
18000      t clear
18001      : clear
18002      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18003      t end
18004      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18005      : end' >>confcache
18006 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18007   if test -w $cache_file; then
18008     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18009     cat confcache >$cache_file
18010   else
18011     echo "not updating unwritable cache $cache_file"
18012   fi
18013 fi
18014 rm -f confcache
18015
18016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18017 # Let make expand exec_prefix.
18018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18019
18020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18022 # trailing colons and then remove the whole line if VPATH becomes empty
18023 # (actually we leave an empty line to preserve line numbers).
18024 if test "x$srcdir" = x.; then
18025   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18026 s/:*\$(srcdir):*/:/;
18027 s/:*\${srcdir}:*/:/;
18028 s/:*@srcdir@:*/:/;
18029 s/^\([^=]*=[     ]*\):*/\1/;
18030 s/:*$//;
18031 s/^[^=]*=[       ]*$//;
18032 }'
18033 fi
18034
18035 DEFS=-DHAVE_CONFIG_H
18036
18037 ac_libobjs=
18038 ac_ltlibobjs=
18039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18040   # 1. Remove the extension, and $U if already installed.
18041   ac_i=`echo "$ac_i" |
18042          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18043   # 2. Add them.
18044   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18045   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18046 done
18047 LIBOBJS=$ac_libobjs
18048
18049 LTLIBOBJS=$ac_ltlibobjs
18050
18051
18052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18053   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18054 Usually this means the macro was only invoked conditionally." >&5
18055 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18056 Usually this means the macro was only invoked conditionally." >&2;}
18057    { (exit 1); exit 1; }; }
18058 fi
18059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18060   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18061 Usually this means the macro was only invoked conditionally." >&5
18062 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18063 Usually this means the macro was only invoked conditionally." >&2;}
18064    { (exit 1); exit 1; }; }
18065 fi
18066 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18067   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18068 Usually this means the macro was only invoked conditionally." >&5
18069 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18070 Usually this means the macro was only invoked conditionally." >&2;}
18071    { (exit 1); exit 1; }; }
18072 fi
18073 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18074   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18075 Usually this means the macro was only invoked conditionally." >&5
18076 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18077 Usually this means the macro was only invoked conditionally." >&2;}
18078    { (exit 1); exit 1; }; }
18079 fi
18080 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18081   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18082 Usually this means the macro was only invoked conditionally." >&5
18083 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18084 Usually this means the macro was only invoked conditionally." >&2;}
18085    { (exit 1); exit 1; }; }
18086 fi
18087 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18088   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18089 Usually this means the macro was only invoked conditionally." >&5
18090 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18091 Usually this means the macro was only invoked conditionally." >&2;}
18092    { (exit 1); exit 1; }; }
18093 fi
18094 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18095   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18096 Usually this means the macro was only invoked conditionally." >&5
18097 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18098 Usually this means the macro was only invoked conditionally." >&2;}
18099    { (exit 1); exit 1; }; }
18100 fi
18101 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18102   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18103 Usually this means the macro was only invoked conditionally." >&5
18104 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18105 Usually this means the macro was only invoked conditionally." >&2;}
18106    { (exit 1); exit 1; }; }
18107 fi
18108 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
18109   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
18110 Usually this means the macro was only invoked conditionally." >&5
18111 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
18112 Usually this means the macro was only invoked conditionally." >&2;}
18113    { (exit 1); exit 1; }; }
18114 fi
18115 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18116   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18117 Usually this means the macro was only invoked conditionally." >&5
18118 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18119 Usually this means the macro was only invoked conditionally." >&2;}
18120    { (exit 1); exit 1; }; }
18121 fi
18122 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
18123   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
18124 Usually this means the macro was only invoked conditionally." >&5
18125 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
18126 Usually this means the macro was only invoked conditionally." >&2;}
18127    { (exit 1); exit 1; }; }
18128 fi
18129 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18130   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18131 Usually this means the macro was only invoked conditionally." >&5
18132 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18133 Usually this means the macro was only invoked conditionally." >&2;}
18134    { (exit 1); exit 1; }; }
18135 fi
18136 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
18137   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
18138 Usually this means the macro was only invoked conditionally." >&5
18139 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
18140 Usually this means the macro was only invoked conditionally." >&2;}
18141    { (exit 1); exit 1; }; }
18142 fi
18143 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
18144   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18145 Usually this means the macro was only invoked conditionally." >&5
18146 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
18147 Usually this means the macro was only invoked conditionally." >&2;}
18148    { (exit 1); exit 1; }; }
18149 fi
18150 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18151   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18152 Usually this means the macro was only invoked conditionally." >&5
18153 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18154 Usually this means the macro was only invoked conditionally." >&2;}
18155    { (exit 1); exit 1; }; }
18156 fi
18157 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
18158   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
18159 Usually this means the macro was only invoked conditionally." >&5
18160 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
18161 Usually this means the macro was only invoked conditionally." >&2;}
18162    { (exit 1); exit 1; }; }
18163 fi
18164 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18165   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18166 Usually this means the macro was only invoked conditionally." >&5
18167 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18168 Usually this means the macro was only invoked conditionally." >&2;}
18169    { (exit 1); exit 1; }; }
18170 fi
18171 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
18172   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
18173 Usually this means the macro was only invoked conditionally." >&5
18174 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
18175 Usually this means the macro was only invoked conditionally." >&2;}
18176    { (exit 1); exit 1; }; }
18177 fi
18178 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18179   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18180 Usually this means the macro was only invoked conditionally." >&5
18181 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18182 Usually this means the macro was only invoked conditionally." >&2;}
18183    { (exit 1); exit 1; }; }
18184 fi
18185 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
18186   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
18187 Usually this means the macro was only invoked conditionally." >&5
18188 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
18189 Usually this means the macro was only invoked conditionally." >&2;}
18190    { (exit 1); exit 1; }; }
18191 fi
18192 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
18193   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18194 Usually this means the macro was only invoked conditionally." >&5
18195 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
18196 Usually this means the macro was only invoked conditionally." >&2;}
18197    { (exit 1); exit 1; }; }
18198 fi
18199 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18200   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18201 Usually this means the macro was only invoked conditionally." >&5
18202 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18203 Usually this means the macro was only invoked conditionally." >&2;}
18204    { (exit 1); exit 1; }; }
18205 fi
18206 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
18207   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
18208 Usually this means the macro was only invoked conditionally." >&5
18209 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
18210 Usually this means the macro was only invoked conditionally." >&2;}
18211    { (exit 1); exit 1; }; }
18212 fi
18213 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18214   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18215 Usually this means the macro was only invoked conditionally." >&5
18216 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18217 Usually this means the macro was only invoked conditionally." >&2;}
18218    { (exit 1); exit 1; }; }
18219 fi
18220 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
18221   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
18222 Usually this means the macro was only invoked conditionally." >&5
18223 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
18224 Usually this means the macro was only invoked conditionally." >&2;}
18225    { (exit 1); exit 1; }; }
18226 fi
18227 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18228   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18229 Usually this means the macro was only invoked conditionally." >&5
18230 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18231 Usually this means the macro was only invoked conditionally." >&2;}
18232    { (exit 1); exit 1; }; }
18233 fi
18234 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
18235   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
18236 Usually this means the macro was only invoked conditionally." >&5
18237 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
18238 Usually this means the macro was only invoked conditionally." >&2;}
18239    { (exit 1); exit 1; }; }
18240 fi
18241 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18242   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18243 Usually this means the macro was only invoked conditionally." >&5
18244 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18245 Usually this means the macro was only invoked conditionally." >&2;}
18246    { (exit 1); exit 1; }; }
18247 fi
18248 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
18249   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18250 Usually this means the macro was only invoked conditionally." >&5
18251 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
18252 Usually this means the macro was only invoked conditionally." >&2;}
18253    { (exit 1); exit 1; }; }
18254 fi
18255 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18256   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18257 Usually this means the macro was only invoked conditionally." >&5
18258 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18259 Usually this means the macro was only invoked conditionally." >&2;}
18260    { (exit 1); exit 1; }; }
18261 fi
18262 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
18263   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
18264 Usually this means the macro was only invoked conditionally." >&5
18265 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
18266 Usually this means the macro was only invoked conditionally." >&2;}
18267    { (exit 1); exit 1; }; }
18268 fi
18269 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18270   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18271 Usually this means the macro was only invoked conditionally." >&5
18272 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18273 Usually this means the macro was only invoked conditionally." >&2;}
18274    { (exit 1); exit 1; }; }
18275 fi
18276 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
18277   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18278 Usually this means the macro was only invoked conditionally." >&5
18279 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
18280 Usually this means the macro was only invoked conditionally." >&2;}
18281    { (exit 1); exit 1; }; }
18282 fi
18283 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18284   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18285 Usually this means the macro was only invoked conditionally." >&5
18286 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18287 Usually this means the macro was only invoked conditionally." >&2;}
18288    { (exit 1); exit 1; }; }
18289 fi
18290 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
18291   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18292 Usually this means the macro was only invoked conditionally." >&5
18293 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
18294 Usually this means the macro was only invoked conditionally." >&2;}
18295    { (exit 1); exit 1; }; }
18296 fi
18297 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18298   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18299 Usually this means the macro was only invoked conditionally." >&5
18300 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18301 Usually this means the macro was only invoked conditionally." >&2;}
18302    { (exit 1); exit 1; }; }
18303 fi
18304 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
18305   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
18306 Usually this means the macro was only invoked conditionally." >&5
18307 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
18308 Usually this means the macro was only invoked conditionally." >&2;}
18309    { (exit 1); exit 1; }; }
18310 fi
18311 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18312   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18313 Usually this means the macro was only invoked conditionally." >&5
18314 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18315 Usually this means the macro was only invoked conditionally." >&2;}
18316    { (exit 1); exit 1; }; }
18317 fi
18318 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
18319   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
18320 Usually this means the macro was only invoked conditionally." >&5
18321 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
18322 Usually this means the macro was only invoked conditionally." >&2;}
18323    { (exit 1); exit 1; }; }
18324 fi
18325 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
18326   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
18327 Usually this means the macro was only invoked conditionally." >&5
18328 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
18329 Usually this means the macro was only invoked conditionally." >&2;}
18330    { (exit 1); exit 1; }; }
18331 fi
18332 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
18333   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18334 Usually this means the macro was only invoked conditionally." >&5
18335 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
18336 Usually this means the macro was only invoked conditionally." >&2;}
18337    { (exit 1); exit 1; }; }
18338 fi
18339 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
18340   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
18341 Usually this means the macro was only invoked conditionally." >&5
18342 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
18343 Usually this means the macro was only invoked conditionally." >&2;}
18344    { (exit 1); exit 1; }; }
18345 fi
18346 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
18347   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
18348 Usually this means the macro was only invoked conditionally." >&5
18349 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
18350 Usually this means the macro was only invoked conditionally." >&2;}
18351    { (exit 1); exit 1; }; }
18352 fi
18353 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18354   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
18355 Usually this means the macro was only invoked conditionally." >&5
18356 echo "$as_me: error: conditional \"MINGW\" was never defined.
18357 Usually this means the macro was only invoked conditionally." >&2;}
18358    { (exit 1); exit 1; }; }
18359 fi
18360 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
18361   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
18362 Usually this means the macro was only invoked conditionally." >&5
18363 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
18364 Usually this means the macro was only invoked conditionally." >&2;}
18365    { (exit 1); exit 1; }; }
18366 fi
18367
18368 : ${CONFIG_STATUS=./config.status}
18369 ac_clean_files_save=$ac_clean_files
18370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18373 cat >$CONFIG_STATUS <<_ACEOF
18374 #! $SHELL
18375 # Generated by $as_me.
18376 # Run this file to recreate the current configuration.
18377 # Compiler output produced by configure, useful for debugging
18378 # configure, is in config.log if it exists.
18379
18380 debug=false
18381 ac_cs_recheck=false
18382 ac_cs_silent=false
18383 SHELL=\${CONFIG_SHELL-$SHELL}
18384 _ACEOF
18385
18386 cat >>$CONFIG_STATUS <<\_ACEOF
18387 ## --------------------- ##
18388 ## M4sh Initialization.  ##
18389 ## --------------------- ##
18390
18391 # Be Bourne compatible
18392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18393   emulate sh
18394   NULLCMD=:
18395   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18396   # is contrary to our usage.  Disable this feature.
18397   alias -g '${1+"$@"}'='"$@"'
18398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18399   set -o posix
18400 fi
18401 DUALCASE=1; export DUALCASE # for MKS sh
18402
18403 # Support unset when possible.
18404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18405   as_unset=unset
18406 else
18407   as_unset=false
18408 fi
18409
18410
18411 # Work around bugs in pre-3.0 UWIN ksh.
18412 $as_unset ENV MAIL MAILPATH
18413 PS1='$ '
18414 PS2='> '
18415 PS4='+ '
18416
18417 # NLS nuisances.
18418 for as_var in \
18419   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18420   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18421   LC_TELEPHONE LC_TIME
18422 do
18423   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18424     eval $as_var=C; export $as_var
18425   else
18426     $as_unset $as_var
18427   fi
18428 done
18429
18430 # Required to use basename.
18431 if expr a : '\(a\)' >/dev/null 2>&1; then
18432   as_expr=expr
18433 else
18434   as_expr=false
18435 fi
18436
18437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18438   as_basename=basename
18439 else
18440   as_basename=false
18441 fi
18442
18443
18444 # Name of the executable.
18445 as_me=`$as_basename "$0" ||
18446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18447          X"$0" : 'X\(//\)$' \| \
18448          X"$0" : 'X\(/\)$' \| \
18449          .     : '\(.\)' 2>/dev/null ||
18450 echo X/"$0" |
18451     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18452           /^X\/\(\/\/\)$/{ s//\1/; q; }
18453           /^X\/\(\/\).*/{ s//\1/; q; }
18454           s/.*/./; q'`
18455
18456
18457 # PATH needs CR, and LINENO needs CR and PATH.
18458 # Avoid depending upon Character Ranges.
18459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18462 as_cr_digits='0123456789'
18463 as_cr_alnum=$as_cr_Letters$as_cr_digits
18464
18465 # The user is always right.
18466 if test "${PATH_SEPARATOR+set}" != set; then
18467   echo "#! /bin/sh" >conf$$.sh
18468   echo  "exit 0"   >>conf$$.sh
18469   chmod +x conf$$.sh
18470   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18471     PATH_SEPARATOR=';'
18472   else
18473     PATH_SEPARATOR=:
18474   fi
18475   rm -f conf$$.sh
18476 fi
18477
18478
18479   as_lineno_1=$LINENO
18480   as_lineno_2=$LINENO
18481   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18482   test "x$as_lineno_1" != "x$as_lineno_2" &&
18483   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18484   # Find who we are.  Look in the path if we contain no path at all
18485   # relative or not.
18486   case $0 in
18487     *[\\/]* ) as_myself=$0 ;;
18488     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18494 done
18495
18496        ;;
18497   esac
18498   # We did not find ourselves, most probably we were run as `sh COMMAND'
18499   # in which case we are not to be found in the path.
18500   if test "x$as_myself" = x; then
18501     as_myself=$0
18502   fi
18503   if test ! -f "$as_myself"; then
18504     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18506    { (exit 1); exit 1; }; }
18507   fi
18508   case $CONFIG_SHELL in
18509   '')
18510     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18512 do
18513   IFS=$as_save_IFS
18514   test -z "$as_dir" && as_dir=.
18515   for as_base in sh bash ksh sh5; do
18516          case $as_dir in
18517          /*)
18518            if ("$as_dir/$as_base" -c '
18519   as_lineno_1=$LINENO
18520   as_lineno_2=$LINENO
18521   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18522   test "x$as_lineno_1" != "x$as_lineno_2" &&
18523   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18524              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18525              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18526              CONFIG_SHELL=$as_dir/$as_base
18527              export CONFIG_SHELL
18528              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18529            fi;;
18530          esac
18531        done
18532 done
18533 ;;
18534   esac
18535
18536   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18537   # uniformly replaced by the line number.  The first 'sed' inserts a
18538   # line-number line before each line; the second 'sed' does the real
18539   # work.  The second script uses 'N' to pair each line-number line
18540   # with the numbered line, and appends trailing '-' during
18541   # substitution so that $LINENO is not a special case at line end.
18542   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18543   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18544   sed '=' <$as_myself |
18545     sed '
18546       N
18547       s,$,-,
18548       : loop
18549       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18550       t loop
18551       s,-$,,
18552       s,^['$as_cr_digits']*\n,,
18553     ' >$as_me.lineno &&
18554   chmod +x $as_me.lineno ||
18555     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18557    { (exit 1); exit 1; }; }
18558
18559   # Don't try to exec as it changes $[0], causing all sort of problems
18560   # (the dirname of $[0] is not the place where we might find the
18561   # original and so on.  Autoconf is especially sensible to this).
18562   . ./$as_me.lineno
18563   # Exit status is that of the last command.
18564   exit
18565 }
18566
18567
18568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18569   *c*,-n*) ECHO_N= ECHO_C='
18570 ' ECHO_T='      ' ;;
18571   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18572   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18573 esac
18574
18575 if expr a : '\(a\)' >/dev/null 2>&1; then
18576   as_expr=expr
18577 else
18578   as_expr=false
18579 fi
18580
18581 rm -f conf$$ conf$$.exe conf$$.file
18582 echo >conf$$.file
18583 if ln -s conf$$.file conf$$ 2>/dev/null; then
18584   # We could just check for DJGPP; but this test a) works b) is more generic
18585   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18586   if test -f conf$$.exe; then
18587     # Don't use ln at all; we don't have any links
18588     as_ln_s='cp -p'
18589   else
18590     as_ln_s='ln -s'
18591   fi
18592 elif ln conf$$.file conf$$ 2>/dev/null; then
18593   as_ln_s=ln
18594 else
18595   as_ln_s='cp -p'
18596 fi
18597 rm -f conf$$ conf$$.exe conf$$.file
18598
18599 if mkdir -p . 2>/dev/null; then
18600   as_mkdir_p=:
18601 else
18602   test -d ./-p && rmdir ./-p
18603   as_mkdir_p=false
18604 fi
18605
18606 as_executable_p="test -f"
18607
18608 # Sed expression to map a string onto a valid CPP name.
18609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18610
18611 # Sed expression to map a string onto a valid variable name.
18612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18613
18614
18615 # IFS
18616 # We need space, tab and new line, in precisely that order.
18617 as_nl='
18618 '
18619 IFS="   $as_nl"
18620
18621 # CDPATH.
18622 $as_unset CDPATH
18623
18624 exec 6>&1
18625
18626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18627 # report actual input values of CONFIG_FILES etc. instead of their
18628 # values after options handling.  Logging --version etc. is OK.
18629 exec 5>>config.log
18630 {
18631   echo
18632   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18633 ## Running $as_me. ##
18634 _ASBOX
18635 } >&5
18636 cat >&5 <<_CSEOF
18637
18638 This file was extended by TiMidity++ $as_me 2.13.0-rc2, which was
18639 generated by GNU Autoconf 2.59.  Invocation command line was
18640
18641   CONFIG_FILES    = $CONFIG_FILES
18642   CONFIG_HEADERS  = $CONFIG_HEADERS
18643   CONFIG_LINKS    = $CONFIG_LINKS
18644   CONFIG_COMMANDS = $CONFIG_COMMANDS
18645   $ $0 $@
18646
18647 _CSEOF
18648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18649 echo >&5
18650 _ACEOF
18651
18652 # Files that config.status was made for.
18653 if test -n "$ac_config_files"; then
18654   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18655 fi
18656
18657 if test -n "$ac_config_headers"; then
18658   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18659 fi
18660
18661 if test -n "$ac_config_links"; then
18662   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18663 fi
18664
18665 if test -n "$ac_config_commands"; then
18666   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18667 fi
18668
18669 cat >>$CONFIG_STATUS <<\_ACEOF
18670
18671 ac_cs_usage="\
18672 \`$as_me' instantiates files from templates according to the
18673 current configuration.
18674
18675 Usage: $0 [OPTIONS] [FILE]...
18676
18677   -h, --help       print this help, then exit
18678   -V, --version    print version number, then exit
18679   -q, --quiet      do not print progress messages
18680   -d, --debug      don't remove temporary files
18681       --recheck    update $as_me by reconfiguring in the same conditions
18682   --file=FILE[:TEMPLATE]
18683                    instantiate the configuration file FILE
18684   --header=FILE[:TEMPLATE]
18685                    instantiate the configuration header FILE
18686
18687 Configuration files:
18688 $config_files
18689
18690 Configuration headers:
18691 $config_headers
18692
18693 Configuration commands:
18694 $config_commands
18695
18696 Report bugs to <bug-autoconf@gnu.org>."
18697 _ACEOF
18698
18699 cat >>$CONFIG_STATUS <<_ACEOF
18700 ac_cs_version="\\
18701 TiMidity++ config.status 2.13.0-rc2
18702 configured by $0, generated by GNU Autoconf 2.59,
18703   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18704
18705 Copyright (C) 2003 Free Software Foundation, Inc.
18706 This config.status script is free software; the Free Software Foundation
18707 gives unlimited permission to copy, distribute and modify it."
18708 srcdir=$srcdir
18709 INSTALL="$INSTALL"
18710 _ACEOF
18711
18712 cat >>$CONFIG_STATUS <<\_ACEOF
18713 # If no file are specified by the user, then we need to provide default
18714 # value.  By we need to know if files were specified by the user.
18715 ac_need_defaults=:
18716 while test $# != 0
18717 do
18718   case $1 in
18719   --*=*)
18720     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18721     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18722     ac_shift=:
18723     ;;
18724   -*)
18725     ac_option=$1
18726     ac_optarg=$2
18727     ac_shift=shift
18728     ;;
18729   *) # This is not an option, so the user has probably given explicit
18730      # arguments.
18731      ac_option=$1
18732      ac_need_defaults=false;;
18733   esac
18734
18735   case $ac_option in
18736   # Handling of the options.
18737 _ACEOF
18738 cat >>$CONFIG_STATUS <<\_ACEOF
18739   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18740     ac_cs_recheck=: ;;
18741   --version | --vers* | -V )
18742     echo "$ac_cs_version"; exit 0 ;;
18743   --he | --h)
18744     # Conflict between --help and --header
18745     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18746 Try \`$0 --help' for more information." >&5
18747 echo "$as_me: error: ambiguous option: $1
18748 Try \`$0 --help' for more information." >&2;}
18749    { (exit 1); exit 1; }; };;
18750   --help | --hel | -h )
18751     echo "$ac_cs_usage"; exit 0 ;;
18752   --debug | --d* | -d )
18753     debug=: ;;
18754   --file | --fil | --fi | --f )
18755     $ac_shift
18756     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18757     ac_need_defaults=false;;
18758   --header | --heade | --head | --hea )
18759     $ac_shift
18760     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18761     ac_need_defaults=false;;
18762   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18763   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18764     ac_cs_silent=: ;;
18765
18766   # This is an error.
18767   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18768 Try \`$0 --help' for more information." >&5
18769 echo "$as_me: error: unrecognized option: $1
18770 Try \`$0 --help' for more information." >&2;}
18771    { (exit 1); exit 1; }; } ;;
18772
18773   *) ac_config_targets="$ac_config_targets $1" ;;
18774
18775   esac
18776   shift
18777 done
18778
18779 ac_configure_extra_args=
18780
18781 if $ac_cs_silent; then
18782   exec 6>/dev/null
18783   ac_configure_extra_args="$ac_configure_extra_args --silent"
18784 fi
18785
18786 _ACEOF
18787 cat >>$CONFIG_STATUS <<_ACEOF
18788 if \$ac_cs_recheck; then
18789   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18790   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18791 fi
18792
18793 _ACEOF
18794
18795 cat >>$CONFIG_STATUS <<_ACEOF
18796 #
18797 # INIT-COMMANDS section.
18798 #
18799
18800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18801
18802 _ACEOF
18803
18804
18805
18806 cat >>$CONFIG_STATUS <<\_ACEOF
18807 for ac_config_target in $ac_config_targets
18808 do
18809   case "$ac_config_target" in
18810   # Handling of arguments.
18811   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18812   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
18813   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
18814   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
18815   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18816   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
18817   "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
18818   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
18819   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
18820   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
18821   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
18822   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
18823   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
18824   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
18825   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18826   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
18827   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
18828   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
18829   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18830   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18831   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
18832   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18833 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18834    { (exit 1); exit 1; }; };;
18835   esac
18836 done
18837
18838 # If the user did not use the arguments to specify the items to instantiate,
18839 # then the envvar interface is used.  Set only those that are not.
18840 # We use the long form for the default assignment because of an extremely
18841 # bizarre bug on SunOS 4.1.3.
18842 if $ac_need_defaults; then
18843   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18844   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18845   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18846 fi
18847
18848 # Have a temporary directory for convenience.  Make it in the build tree
18849 # simply because there is no reason to put it here, and in addition,
18850 # creating and moving files from /tmp can sometimes cause problems.
18851 # Create a temporary directory, and hook for its removal unless debugging.
18852 $debug ||
18853 {
18854   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18855   trap '{ (exit 1); exit 1; }' 1 2 13 15
18856 }
18857
18858 # Create a (secure) tmp directory for tmp files.
18859
18860 {
18861   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18862   test -n "$tmp" && test -d "$tmp"
18863 }  ||
18864 {
18865   tmp=./confstat$$-$RANDOM
18866   (umask 077 && mkdir $tmp)
18867 } ||
18868 {
18869    echo "$me: cannot create a temporary directory in ." >&2
18870    { (exit 1); exit 1; }
18871 }
18872
18873 _ACEOF
18874
18875 cat >>$CONFIG_STATUS <<_ACEOF
18876
18877 #
18878 # CONFIG_FILES section.
18879 #
18880
18881 # No need to generate the scripts if there are no CONFIG_FILES.
18882 # This happens for instance when ./config.status config.h
18883 if test -n "\$CONFIG_FILES"; then
18884   # Protect against being on the right side of a sed subst in config.status.
18885   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18886    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18887 s,@SHELL@,$SHELL,;t t
18888 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18889 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18890 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18891 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18892 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18893 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18894 s,@exec_prefix@,$exec_prefix,;t t
18895 s,@prefix@,$prefix,;t t
18896 s,@program_transform_name@,$program_transform_name,;t t
18897 s,@bindir@,$bindir,;t t
18898 s,@sbindir@,$sbindir,;t t
18899 s,@libexecdir@,$libexecdir,;t t
18900 s,@datadir@,$datadir,;t t
18901 s,@sysconfdir@,$sysconfdir,;t t
18902 s,@sharedstatedir@,$sharedstatedir,;t t
18903 s,@localstatedir@,$localstatedir,;t t
18904 s,@libdir@,$libdir,;t t
18905 s,@includedir@,$includedir,;t t
18906 s,@oldincludedir@,$oldincludedir,;t t
18907 s,@infodir@,$infodir,;t t
18908 s,@mandir@,$mandir,;t t
18909 s,@build_alias@,$build_alias,;t t
18910 s,@host_alias@,$host_alias,;t t
18911 s,@target_alias@,$target_alias,;t t
18912 s,@DEFS@,$DEFS,;t t
18913 s,@ECHO_C@,$ECHO_C,;t t
18914 s,@ECHO_N@,$ECHO_N,;t t
18915 s,@ECHO_T@,$ECHO_T,;t t
18916 s,@LIBS@,$LIBS,;t t
18917 s,@build@,$build,;t t
18918 s,@build_cpu@,$build_cpu,;t t
18919 s,@build_vendor@,$build_vendor,;t t
18920 s,@build_os@,$build_os,;t t
18921 s,@host@,$host,;t t
18922 s,@host_cpu@,$host_cpu,;t t
18923 s,@host_vendor@,$host_vendor,;t t
18924 s,@host_os@,$host_os,;t t
18925 s,@target@,$target,;t t
18926 s,@target_cpu@,$target_cpu,;t t
18927 s,@target_vendor@,$target_vendor,;t t
18928 s,@target_os@,$target_os,;t t
18929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18932 s,@CYGPATH_W@,$CYGPATH_W,;t t
18933 s,@PACKAGE@,$PACKAGE,;t t
18934 s,@VERSION@,$VERSION,;t t
18935 s,@ACLOCAL@,$ACLOCAL,;t t
18936 s,@AUTOCONF@,$AUTOCONF,;t t
18937 s,@AUTOMAKE@,$AUTOMAKE,;t t
18938 s,@AUTOHEADER@,$AUTOHEADER,;t t
18939 s,@MAKEINFO@,$MAKEINFO,;t t
18940 s,@AMTAR@,$AMTAR,;t t
18941 s,@install_sh@,$install_sh,;t t
18942 s,@STRIP@,$STRIP,;t t
18943 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18944 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18945 s,@AWK@,$AWK,;t t
18946 s,@SET_MAKE@,$SET_MAKE,;t t
18947 s,@am__leading_dot@,$am__leading_dot,;t t
18948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18950 s,@MAINT@,$MAINT,;t t
18951 s,@EMACS@,$EMACS,;t t
18952 s,@lispdir@,$lispdir,;t t
18953 s,@CC@,$CC,;t t
18954 s,@CFLAGS@,$CFLAGS,;t t
18955 s,@LDFLAGS@,$LDFLAGS,;t t
18956 s,@CPPFLAGS@,$CPPFLAGS,;t t
18957 s,@ac_ct_CC@,$ac_ct_CC,;t t
18958 s,@EXEEXT@,$EXEEXT,;t t
18959 s,@OBJEXT@,$OBJEXT,;t t
18960 s,@DEPDIR@,$DEPDIR,;t t
18961 s,@am__include@,$am__include,;t t
18962 s,@am__quote@,$am__quote,;t t
18963 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18964 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18965 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18966 s,@CCDEPMODE@,$CCDEPMODE,;t t
18967 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18968 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18969 s,@CPP@,$CPP,;t t
18970 s,@EGREP@,$EGREP,;t t
18971 s,@RANLIB@,$RANLIB,;t t
18972 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18973 s,@LN_S@,$LN_S,;t t
18974 s,@X_CFLAGS@,$X_CFLAGS,;t t
18975 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18976 s,@X_LIBS@,$X_LIBS,;t t
18977 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18978 s,@LIBOBJS@,$LIBOBJS,;t t
18979 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
18980 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
18981 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
18982 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
18983 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
18984 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
18985 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
18986 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
18987 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
18988 s,@ESD_LIBS@,$ESD_LIBS,;t t
18989 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
18990 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
18991 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
18992 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
18993 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
18994 s,@OGG_LIBS@,$OGG_LIBS,;t t
18995 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
18996 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
18997 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
18998 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
18999 s,@n_so_libs@,$n_so_libs,;t t
19000 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19001 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19002 s,@s_so_libs@,$s_so_libs,;t t
19003 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19004 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19005 s,@m_so_libs@,$m_so_libs,;t t
19006 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19007 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19008 s,@k_so_libs@,$k_so_libs,;t t
19009 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19010 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19011 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19012 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19013 s,@e_so_libs@,$e_so_libs,;t t
19014 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19015 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19016 s,@T_so_libs@,$T_so_libs,;t t
19017 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19018 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19019 s,@a_so_libs@,$a_so_libs,;t t
19020 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19021 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19022 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19023 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19024 s,@i_so_libs@,$i_so_libs,;t t
19025 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19026 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19027 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19028 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19029 s,@GTK_LIBS@,$GTK_LIBS,;t t
19030 s,@g_so_libs@,$g_so_libs,;t t
19031 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19032 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19033 s,@r_so_libs@,$r_so_libs,;t t
19034 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19035 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19036 s,@A_so_libs@,$A_so_libs,;t t
19037 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19038 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19039 s,@W_so_libs@,$W_so_libs,;t t
19040 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19041 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19042 s,@P_so_libs@,$P_so_libs,;t t
19043 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19044 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19045 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19046 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19047 s,@w_so_libs@,$w_so_libs,;t t
19048 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19049 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19050 s,@p_so_libs@,$p_so_libs,;t t
19051 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19052 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19053 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19054 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19055 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19056 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19057 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19058 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19059 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19060 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19061 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19062 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19063 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19064 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19065 s,@EXTRALIBS@,$EXTRALIBS,;t t
19066 s,@NETSRCS@,$NETSRCS,;t t
19067 s,@ELFILES@,$ELFILES,;t t
19068 s,@SHLD@,$SHLD,;t t
19069 s,@SHCFLAGS@,$SHCFLAGS,;t t
19070 s,@dynamic_targets@,$dynamic_targets,;t t
19071 s,@so@,$so,;t t
19072 s,@WISH@,$WISH,;t t
19073 s,@tcltk_dep@,$tcltk_dep,;t t
19074 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19075 s,@pkgdatadir@,$pkgdatadir,;t t
19076 s,@pkglibdir@,$pkglibdir,;t t
19077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19078 CEOF
19079
19080 _ACEOF
19081
19082   cat >>$CONFIG_STATUS <<\_ACEOF
19083   # Split the substitutions into bite-sized pieces for seds with
19084   # small command number limits, like on Digital OSF/1 and HP-UX.
19085   ac_max_sed_lines=48
19086   ac_sed_frag=1 # Number of current file.
19087   ac_beg=1 # First line for current file.
19088   ac_end=$ac_max_sed_lines # Line after last line for current file.
19089   ac_more_lines=:
19090   ac_sed_cmds=
19091   while $ac_more_lines; do
19092     if test $ac_beg -gt 1; then
19093       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19094     else
19095       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19096     fi
19097     if test ! -s $tmp/subs.frag; then
19098       ac_more_lines=false
19099     else
19100       # The purpose of the label and of the branching condition is to
19101       # speed up the sed processing (if there are no `@' at all, there
19102       # is no need to browse any of the substitutions).
19103       # These are the two extra sed commands mentioned above.
19104       (echo ':t
19105   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19106       if test -z "$ac_sed_cmds"; then
19107         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19108       else
19109         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19110       fi
19111       ac_sed_frag=`expr $ac_sed_frag + 1`
19112       ac_beg=$ac_end
19113       ac_end=`expr $ac_end + $ac_max_sed_lines`
19114     fi
19115   done
19116   if test -z "$ac_sed_cmds"; then
19117     ac_sed_cmds=cat
19118   fi
19119 fi # test -n "$CONFIG_FILES"
19120
19121 _ACEOF
19122 cat >>$CONFIG_STATUS <<\_ACEOF
19123 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19124   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19125   case $ac_file in
19126   - | *:- | *:-:* ) # input from stdin
19127         cat >$tmp/stdin
19128         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19132   * )   ac_file_in=$ac_file.in ;;
19133   esac
19134
19135   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19136   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19138          X"$ac_file" : 'X\(//\)[^/]' \| \
19139          X"$ac_file" : 'X\(//\)$' \| \
19140          X"$ac_file" : 'X\(/\)' \| \
19141          .     : '\(.\)' 2>/dev/null ||
19142 echo X"$ac_file" |
19143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19144           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19145           /^X\(\/\/\)$/{ s//\1/; q; }
19146           /^X\(\/\).*/{ s//\1/; q; }
19147           s/.*/./; q'`
19148   { if $as_mkdir_p; then
19149     mkdir -p "$ac_dir"
19150   else
19151     as_dir="$ac_dir"
19152     as_dirs=
19153     while test ! -d "$as_dir"; do
19154       as_dirs="$as_dir $as_dirs"
19155       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19157          X"$as_dir" : 'X\(//\)[^/]' \| \
19158          X"$as_dir" : 'X\(//\)$' \| \
19159          X"$as_dir" : 'X\(/\)' \| \
19160          .     : '\(.\)' 2>/dev/null ||
19161 echo X"$as_dir" |
19162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19164           /^X\(\/\/\)$/{ s//\1/; q; }
19165           /^X\(\/\).*/{ s//\1/; q; }
19166           s/.*/./; q'`
19167     done
19168     test ! -n "$as_dirs" || mkdir $as_dirs
19169   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19171    { (exit 1); exit 1; }; }; }
19172
19173   ac_builddir=.
19174
19175 if test "$ac_dir" != .; then
19176   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19177   # A "../" for each directory in $ac_dir_suffix.
19178   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19179 else
19180   ac_dir_suffix= ac_top_builddir=
19181 fi
19182
19183 case $srcdir in
19184   .)  # No --srcdir option.  We are building in place.
19185     ac_srcdir=.
19186     if test -z "$ac_top_builddir"; then
19187        ac_top_srcdir=.
19188     else
19189        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19190     fi ;;
19191   [\\/]* | ?:[\\/]* )  # Absolute path.
19192     ac_srcdir=$srcdir$ac_dir_suffix;
19193     ac_top_srcdir=$srcdir ;;
19194   *) # Relative path.
19195     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19196     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19197 esac
19198
19199 # Do not use `cd foo && pwd` to compute absolute paths, because
19200 # the directories may not exist.
19201 case `pwd` in
19202 .) ac_abs_builddir="$ac_dir";;
19203 *)
19204   case "$ac_dir" in
19205   .) ac_abs_builddir=`pwd`;;
19206   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19207   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19208   esac;;
19209 esac
19210 case $ac_abs_builddir in
19211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19212 *)
19213   case ${ac_top_builddir}. in
19214   .) ac_abs_top_builddir=$ac_abs_builddir;;
19215   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19216   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19217   esac;;
19218 esac
19219 case $ac_abs_builddir in
19220 .) ac_abs_srcdir=$ac_srcdir;;
19221 *)
19222   case $ac_srcdir in
19223   .) ac_abs_srcdir=$ac_abs_builddir;;
19224   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19225   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19226   esac;;
19227 esac
19228 case $ac_abs_builddir in
19229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19230 *)
19231   case $ac_top_srcdir in
19232   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19233   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19234   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19235   esac;;
19236 esac
19237
19238
19239   case $INSTALL in
19240   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19241   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19242   esac
19243
19244   if test x"$ac_file" != x-; then
19245     { echo "$as_me:$LINENO: creating $ac_file" >&5
19246 echo "$as_me: creating $ac_file" >&6;}
19247     rm -f "$ac_file"
19248   fi
19249   # Let's still pretend it is `configure' which instantiates (i.e., don't
19250   # use $as_me), people would be surprised to read:
19251   #    /* config.h.  Generated by config.status.  */
19252   if test x"$ac_file" = x-; then
19253     configure_input=
19254   else
19255     configure_input="$ac_file.  "
19256   fi
19257   configure_input=$configure_input"Generated from `echo $ac_file_in |
19258                                      sed 's,.*/,,'` by configure."
19259
19260   # First look for the input files in the build tree, otherwise in the
19261   # src tree.
19262   ac_file_inputs=`IFS=:
19263     for f in $ac_file_in; do
19264       case $f in
19265       -) echo $tmp/stdin ;;
19266       [\\/$]*)
19267          # Absolute (can't be DOS-style, as IFS=:)
19268          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19269 echo "$as_me: error: cannot find input file: $f" >&2;}
19270    { (exit 1); exit 1; }; }
19271          echo "$f";;
19272       *) # Relative
19273          if test -f "$f"; then
19274            # Build tree
19275            echo "$f"
19276          elif test -f "$srcdir/$f"; then
19277            # Source tree
19278            echo "$srcdir/$f"
19279          else
19280            # /dev/null tree
19281            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19282 echo "$as_me: error: cannot find input file: $f" >&2;}
19283    { (exit 1); exit 1; }; }
19284          fi;;
19285       esac
19286     done` || { (exit 1); exit 1; }
19287 _ACEOF
19288 cat >>$CONFIG_STATUS <<_ACEOF
19289   sed "$ac_vpsub
19290 $extrasub
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<\_ACEOF
19293 :t
19294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19295 s,@configure_input@,$configure_input,;t t
19296 s,@srcdir@,$ac_srcdir,;t t
19297 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19298 s,@top_srcdir@,$ac_top_srcdir,;t t
19299 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19300 s,@builddir@,$ac_builddir,;t t
19301 s,@abs_builddir@,$ac_abs_builddir,;t t
19302 s,@top_builddir@,$ac_top_builddir,;t t
19303 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19304 s,@INSTALL@,$ac_INSTALL,;t t
19305 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19306   rm -f $tmp/stdin
19307   if test x"$ac_file" != x-; then
19308     mv $tmp/out $ac_file
19309   else
19310     cat $tmp/out
19311     rm -f $tmp/out
19312   fi
19313
19314 done
19315 _ACEOF
19316 cat >>$CONFIG_STATUS <<\_ACEOF
19317
19318 #
19319 # CONFIG_HEADER section.
19320 #
19321
19322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19324 #
19325 # ac_d sets the value in "#define NAME VALUE" lines.
19326 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19327 ac_dB='[         ].*$,\1#\2'
19328 ac_dC=' '
19329 ac_dD=',;t'
19330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19331 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19332 ac_uB='$,\1#\2define\3'
19333 ac_uC=' '
19334 ac_uD=',;t'
19335
19336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19337   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19338   case $ac_file in
19339   - | *:- | *:-:* ) # input from stdin
19340         cat >$tmp/stdin
19341         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19342         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19343   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19345   * )   ac_file_in=$ac_file.in ;;
19346   esac
19347
19348   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19349 echo "$as_me: creating $ac_file" >&6;}
19350
19351   # First look for the input files in the build tree, otherwise in the
19352   # src tree.
19353   ac_file_inputs=`IFS=:
19354     for f in $ac_file_in; do
19355       case $f in
19356       -) echo $tmp/stdin ;;
19357       [\\/$]*)
19358          # Absolute (can't be DOS-style, as IFS=:)
19359          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19360 echo "$as_me: error: cannot find input file: $f" >&2;}
19361    { (exit 1); exit 1; }; }
19362          # Do quote $f, to prevent DOS paths from being IFS'd.
19363          echo "$f";;
19364       *) # Relative
19365          if test -f "$f"; then
19366            # Build tree
19367            echo "$f"
19368          elif test -f "$srcdir/$f"; then
19369            # Source tree
19370            echo "$srcdir/$f"
19371          else
19372            # /dev/null tree
19373            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19374 echo "$as_me: error: cannot find input file: $f" >&2;}
19375    { (exit 1); exit 1; }; }
19376          fi;;
19377       esac
19378     done` || { (exit 1); exit 1; }
19379   # Remove the trailing spaces.
19380   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19381
19382 _ACEOF
19383
19384 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19385 # `conftest.undefs', that substitutes the proper values into
19386 # config.h.in to produce config.h.  The first handles `#define'
19387 # templates, and the second `#undef' templates.
19388 # And first: Protect against being on the right side of a sed subst in
19389 # config.status.  Protect against being in an unquoted here document
19390 # in config.status.
19391 rm -f conftest.defines conftest.undefs
19392 # Using a here document instead of a string reduces the quoting nightmare.
19393 # Putting comments in sed scripts is not portable.
19394 #
19395 # `end' is used to avoid that the second main sed command (meant for
19396 # 0-ary CPP macros) applies to n-ary macro definitions.
19397 # See the Autoconf documentation for `clear'.
19398 cat >confdef2sed.sed <<\_ACEOF
19399 s/[\\&,]/\\&/g
19400 s,[\\$`],\\&,g
19401 t clear
19402 : clear
19403 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19404 t end
19405 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19406 : end
19407 _ACEOF
19408 # If some macros were called several times there might be several times
19409 # the same #defines, which is useless.  Nevertheless, we may not want to
19410 # sort them, since we want the *last* AC-DEFINE to be honored.
19411 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19412 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19413 rm -f confdef2sed.sed
19414
19415 # This sed command replaces #undef with comments.  This is necessary, for
19416 # example, in the case of _POSIX_SOURCE, which is predefined and required
19417 # on some systems where configure will not decide to define it.
19418 cat >>conftest.undefs <<\_ACEOF
19419 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19420 _ACEOF
19421
19422 # Break up conftest.defines because some shells have a limit on the size
19423 # of here documents, and old seds have small limits too (100 cmds).
19424 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19425 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19426 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19427 echo '  :' >>$CONFIG_STATUS
19428 rm -f conftest.tail
19429 while grep . conftest.defines >/dev/null
19430 do
19431   # Write a limited-size here document to $tmp/defines.sed.
19432   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19433   # Speed up: don't consider the non `#define' lines.
19434   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19435   # Work around the forget-to-reset-the-flag bug.
19436   echo 't clr' >>$CONFIG_STATUS
19437   echo ': clr' >>$CONFIG_STATUS
19438   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19439   echo 'CEOF
19440   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19441   rm -f $tmp/in
19442   mv $tmp/out $tmp/in
19443 ' >>$CONFIG_STATUS
19444   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19445   rm -f conftest.defines
19446   mv conftest.tail conftest.defines
19447 done
19448 rm -f conftest.defines
19449 echo '  fi # grep' >>$CONFIG_STATUS
19450 echo >>$CONFIG_STATUS
19451
19452 # Break up conftest.undefs because some shells have a limit on the size
19453 # of here documents, and old seds have small limits too (100 cmds).
19454 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19455 rm -f conftest.tail
19456 while grep . conftest.undefs >/dev/null
19457 do
19458   # Write a limited-size here document to $tmp/undefs.sed.
19459   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19460   # Speed up: don't consider the non `#undef'
19461   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19462   # Work around the forget-to-reset-the-flag bug.
19463   echo 't clr' >>$CONFIG_STATUS
19464   echo ': clr' >>$CONFIG_STATUS
19465   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19466   echo 'CEOF
19467   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19468   rm -f $tmp/in
19469   mv $tmp/out $tmp/in
19470 ' >>$CONFIG_STATUS
19471   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19472   rm -f conftest.undefs
19473   mv conftest.tail conftest.undefs
19474 done
19475 rm -f conftest.undefs
19476
19477 cat >>$CONFIG_STATUS <<\_ACEOF
19478   # Let's still pretend it is `configure' which instantiates (i.e., don't
19479   # use $as_me), people would be surprised to read:
19480   #    /* config.h.  Generated by config.status.  */
19481   if test x"$ac_file" = x-; then
19482     echo "/* Generated by configure.  */" >$tmp/config.h
19483   else
19484     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19485   fi
19486   cat $tmp/in >>$tmp/config.h
19487   rm -f $tmp/in
19488   if test x"$ac_file" != x-; then
19489     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19490       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19491 echo "$as_me: $ac_file is unchanged" >&6;}
19492     else
19493       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495          X"$ac_file" : 'X\(//\)[^/]' \| \
19496          X"$ac_file" : 'X\(//\)$' \| \
19497          X"$ac_file" : 'X\(/\)' \| \
19498          .     : '\(.\)' 2>/dev/null ||
19499 echo X"$ac_file" |
19500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19502           /^X\(\/\/\)$/{ s//\1/; q; }
19503           /^X\(\/\).*/{ s//\1/; q; }
19504           s/.*/./; q'`
19505       { if $as_mkdir_p; then
19506     mkdir -p "$ac_dir"
19507   else
19508     as_dir="$ac_dir"
19509     as_dirs=
19510     while test ! -d "$as_dir"; do
19511       as_dirs="$as_dir $as_dirs"
19512       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19514          X"$as_dir" : 'X\(//\)[^/]' \| \
19515          X"$as_dir" : 'X\(//\)$' \| \
19516          X"$as_dir" : 'X\(/\)' \| \
19517          .     : '\(.\)' 2>/dev/null ||
19518 echo X"$as_dir" |
19519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19520           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19521           /^X\(\/\/\)$/{ s//\1/; q; }
19522           /^X\(\/\).*/{ s//\1/; q; }
19523           s/.*/./; q'`
19524     done
19525     test ! -n "$as_dirs" || mkdir $as_dirs
19526   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19528    { (exit 1); exit 1; }; }; }
19529
19530       rm -f $ac_file
19531       mv $tmp/config.h $ac_file
19532     fi
19533   else
19534     cat $tmp/config.h
19535     rm -f $tmp/config.h
19536   fi
19537 # Compute $ac_file's index in $config_headers.
19538 _am_stamp_count=1
19539 for _am_header in $config_headers :; do
19540   case $_am_header in
19541     $ac_file | $ac_file:* )
19542       break ;;
19543     * )
19544       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19545   esac
19546 done
19547 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19548 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19549          X$ac_file : 'X\(//\)[^/]' \| \
19550          X$ac_file : 'X\(//\)$' \| \
19551          X$ac_file : 'X\(/\)' \| \
19552          .     : '\(.\)' 2>/dev/null ||
19553 echo X$ac_file |
19554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19555           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19556           /^X\(\/\/\)$/{ s//\1/; q; }
19557           /^X\(\/\).*/{ s//\1/; q; }
19558           s/.*/./; q'`/stamp-h$_am_stamp_count
19559 done
19560 _ACEOF
19561 cat >>$CONFIG_STATUS <<\_ACEOF
19562
19563 #
19564 # CONFIG_COMMANDS section.
19565 #
19566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19567   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19568   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19569   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19571          X"$ac_dest" : 'X\(//\)[^/]' \| \
19572          X"$ac_dest" : 'X\(//\)$' \| \
19573          X"$ac_dest" : 'X\(/\)' \| \
19574          .     : '\(.\)' 2>/dev/null ||
19575 echo X"$ac_dest" |
19576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19578           /^X\(\/\/\)$/{ s//\1/; q; }
19579           /^X\(\/\).*/{ s//\1/; q; }
19580           s/.*/./; q'`
19581   { if $as_mkdir_p; then
19582     mkdir -p "$ac_dir"
19583   else
19584     as_dir="$ac_dir"
19585     as_dirs=
19586     while test ! -d "$as_dir"; do
19587       as_dirs="$as_dir $as_dirs"
19588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19590          X"$as_dir" : 'X\(//\)[^/]' \| \
19591          X"$as_dir" : 'X\(//\)$' \| \
19592          X"$as_dir" : 'X\(/\)' \| \
19593          .     : '\(.\)' 2>/dev/null ||
19594 echo X"$as_dir" |
19595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19597           /^X\(\/\/\)$/{ s//\1/; q; }
19598           /^X\(\/\).*/{ s//\1/; q; }
19599           s/.*/./; q'`
19600     done
19601     test ! -n "$as_dirs" || mkdir $as_dirs
19602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19604    { (exit 1); exit 1; }; }; }
19605
19606   ac_builddir=.
19607
19608 if test "$ac_dir" != .; then
19609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19610   # A "../" for each directory in $ac_dir_suffix.
19611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19612 else
19613   ac_dir_suffix= ac_top_builddir=
19614 fi
19615
19616 case $srcdir in
19617   .)  # No --srcdir option.  We are building in place.
19618     ac_srcdir=.
19619     if test -z "$ac_top_builddir"; then
19620        ac_top_srcdir=.
19621     else
19622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19623     fi ;;
19624   [\\/]* | ?:[\\/]* )  # Absolute path.
19625     ac_srcdir=$srcdir$ac_dir_suffix;
19626     ac_top_srcdir=$srcdir ;;
19627   *) # Relative path.
19628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19630 esac
19631
19632 # Do not use `cd foo && pwd` to compute absolute paths, because
19633 # the directories may not exist.
19634 case `pwd` in
19635 .) ac_abs_builddir="$ac_dir";;
19636 *)
19637   case "$ac_dir" in
19638   .) ac_abs_builddir=`pwd`;;
19639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19640   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19641   esac;;
19642 esac
19643 case $ac_abs_builddir in
19644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19645 *)
19646   case ${ac_top_builddir}. in
19647   .) ac_abs_top_builddir=$ac_abs_builddir;;
19648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19650   esac;;
19651 esac
19652 case $ac_abs_builddir in
19653 .) ac_abs_srcdir=$ac_srcdir;;
19654 *)
19655   case $ac_srcdir in
19656   .) ac_abs_srcdir=$ac_abs_builddir;;
19657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19659   esac;;
19660 esac
19661 case $ac_abs_builddir in
19662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19663 *)
19664   case $ac_top_srcdir in
19665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19668   esac;;
19669 esac
19670
19671
19672   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19673 echo "$as_me: executing $ac_dest commands" >&6;}
19674   case $ac_dest in
19675     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19676   # Strip MF so we end up with the name of the file.
19677   mf=`echo "$mf" | sed -e 's/:.*$//'`
19678   # Check whether this is an Automake generated Makefile or not.
19679   # We used to match only the files named `Makefile.in', but
19680   # some people rename them; so instead we look at the file content.
19681   # Grep'ing the first line is not enough: some people post-process
19682   # each Makefile.in and add a new line on top of each file to say so.
19683   # So let's grep whole file.
19684   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19685     dirpart=`(dirname "$mf") 2>/dev/null ||
19686 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19687          X"$mf" : 'X\(//\)[^/]' \| \
19688          X"$mf" : 'X\(//\)$' \| \
19689          X"$mf" : 'X\(/\)' \| \
19690          .     : '\(.\)' 2>/dev/null ||
19691 echo X"$mf" |
19692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19694           /^X\(\/\/\)$/{ s//\1/; q; }
19695           /^X\(\/\).*/{ s//\1/; q; }
19696           s/.*/./; q'`
19697   else
19698     continue
19699   fi
19700   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19701   # Extract the definition of DEP_FILES from the Makefile without
19702   # running `make'.
19703   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19704   test -z "$DEPDIR" && continue
19705   # When using ansi2knr, U may be empty or an underscore; expand it
19706   U=`sed -n -e '/^U = / s///p' < "$mf"`
19707   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19708   # We invoke sed twice because it is the simplest approach to
19709   # changing $(DEPDIR) to its actual value in the expansion.
19710   for file in `sed -n -e '
19711     /^DEP_FILES = .*\\\\$/ {
19712       s/^DEP_FILES = //
19713       :loop
19714         s/\\\\$//
19715         p
19716         n
19717         /\\\\$/ b loop
19718       p
19719     }
19720     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19721        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19722     # Make sure the directory exists.
19723     test -f "$dirpart/$file" && continue
19724     fdir=`(dirname "$file") 2>/dev/null ||
19725 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19726          X"$file" : 'X\(//\)[^/]' \| \
19727          X"$file" : 'X\(//\)$' \| \
19728          X"$file" : 'X\(/\)' \| \
19729          .     : '\(.\)' 2>/dev/null ||
19730 echo X"$file" |
19731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19732           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19733           /^X\(\/\/\)$/{ s//\1/; q; }
19734           /^X\(\/\).*/{ s//\1/; q; }
19735           s/.*/./; q'`
19736     { if $as_mkdir_p; then
19737     mkdir -p $dirpart/$fdir
19738   else
19739     as_dir=$dirpart/$fdir
19740     as_dirs=
19741     while test ! -d "$as_dir"; do
19742       as_dirs="$as_dir $as_dirs"
19743       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19745          X"$as_dir" : 'X\(//\)[^/]' \| \
19746          X"$as_dir" : 'X\(//\)$' \| \
19747          X"$as_dir" : 'X\(/\)' \| \
19748          .     : '\(.\)' 2>/dev/null ||
19749 echo X"$as_dir" |
19750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19751           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19752           /^X\(\/\/\)$/{ s//\1/; q; }
19753           /^X\(\/\).*/{ s//\1/; q; }
19754           s/.*/./; q'`
19755     done
19756     test ! -n "$as_dirs" || mkdir $as_dirs
19757   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19758 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19759    { (exit 1); exit 1; }; }; }
19760
19761     # echo "creating $dirpart/$file"
19762     echo '# dummy' > "$dirpart/$file"
19763   done
19764 done
19765  ;;
19766   esac
19767 done
19768 _ACEOF
19769
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19771
19772 { (exit 0); exit 0; }
19773 _ACEOF
19774 chmod +x $CONFIG_STATUS
19775 ac_clean_files=$ac_clean_files_save
19776
19777
19778 # configure is writing to config.log, and then calls config.status.
19779 # config.status does its own redirection, appending to config.log.
19780 # Unfortunately, on DOS this fails, as config.log is still kept open
19781 # by configure, so config.status won't be able to write to it; its
19782 # output is simply discarded.  So we exec the FD to /dev/null,
19783 # effectively closing config.log, so it can be properly (re)opened and
19784 # appended to by config.status.  When coming back to configure, we
19785 # need to make the FD available again.
19786 if test "$no_create" != yes; then
19787   ac_cs_success=:
19788   ac_config_status_args=
19789   test "$silent" = yes &&
19790     ac_config_status_args="$ac_config_status_args --quiet"
19791   exec 5>/dev/null
19792   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19793   exec 5>>config.log
19794   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19795   # would make configure fail if this is the last instruction.
19796   $ac_cs_success || { (exit 1); exit 1; }
19797 fi
19798