Develop and Download Open Source Software

Browse CVS Repository

Contents of /twsynth/twsynth_gui/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Sep 3 07:23:26 2002 UTC (21 years, 6 months ago) by skeishi
Branch: MAIN, skeishi
CVS Tags: initial, HEAD
Changes since 1.1: +0 -0 lines
GUI Version of TW Synthesizer by Mr. Aoki. Thank you Aoki !!

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53a for TiMidity++ 2.12.0-pre1b.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # NLS nuisances.
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
33 { $as_unset LANG || test "${LANG+set}" != set; } ||
34 { LANG=C; export LANG; }
35 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
37 { LC_ALL=C; export LC_ALL; }
38 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
39 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
40 { LC_TIME=C; export LC_TIME; }
41 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
42 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
43 { LC_CTYPE=C; export LC_CTYPE; }
44 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
45 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
46 { LANGUAGE=C; export LANGUAGE; }
47 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
48 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
49 { LC_COLLATE=C; export LC_COLLATE; }
50 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
51 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
52 { LC_NUMERIC=C; export LC_NUMERIC; }
53 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
54 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
55 { LC_MESSAGES=C; export LC_MESSAGES; }
56
57
58 # Required to use basename.
59 if expr a : '\(a\)' >/dev/null 2>&1; then
60 as_expr=expr
61 else
62 as_expr=false
63 fi
64
65 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 as_basename=basename
67 else
68 as_basename=false
69 fi
70
71
72 # Name of the executable.
73 as_me=`$as_basename "$0" ||
74 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75 X"$0" : 'X\(//\)$' \| \
76 X"$0" : 'X\(/\)$' \| \
77 . : '\(.\)' 2>/dev/null ||
78 echo X/"$0" |
79 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80 /^X\/\(\/\/\)$/{ s//\1/; q; }
81 /^X\/\(\/\).*/{ s//\1/; q; }
82 s/.*/./; q'`
83
84
85 # PATH needs CR, and LINENO needs CR and PATH.
86 # Avoid depending upon Character Ranges.
87 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
88 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
90 as_cr_digits='0123456789'
91 as_cr_alnum=$as_cr_Letters$as_cr_digits
92
93 # The user is always right.
94 if test "${PATH_SEPARATOR+set}" != set; then
95 echo "#! /bin/sh" >conftest.sh
96 echo "exit 0" >>conftest.sh
97 chmod +x conftest.sh
98 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 PATH_SEPARATOR=';'
100 else
101 PATH_SEPARATOR=:
102 fi
103 rm -f conftest.sh
104 fi
105
106
107 as_lineno_1=$LINENO
108 as_lineno_2=$LINENO
109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
110 test "x$as_lineno_1" != "x$as_lineno_2" &&
111 test "x$as_lineno_3" = "x$as_lineno_2" || {
112 # Find who we are. Look in the path if we contain no path at all
113 # relative or not.
114 case $0 in
115 *[\\/]* ) as_myself=$0 ;;
116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 for as_dir in $PATH
118 do
119 IFS=$as_save_IFS
120 test -z "$as_dir" && as_dir=.
121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 done
123
124 ;;
125 esac
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x; then
129 as_myself=$0
130 fi
131 if test ! -f "$as_myself"; then
132 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133 { (exit 1); exit 1; }; }
134 fi
135 case $CONFIG_SHELL in
136 '')
137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
139 do
140 IFS=$as_save_IFS
141 test -z "$as_dir" && as_dir=.
142 for as_base in sh bash ksh sh5; do
143 case $as_dir in
144 /*)
145 if ("$as_dir/$as_base" -c '
146 as_lineno_1=$LINENO
147 as_lineno_2=$LINENO
148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149 test "x$as_lineno_1" != "x$as_lineno_2" &&
150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
151 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
152 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
153 CONFIG_SHELL=$as_dir/$as_base
154 export CONFIG_SHELL
155 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 fi;;
157 esac
158 done
159 done
160 ;;
161 esac
162
163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164 # uniformly replaced by the line number. The first 'sed' inserts a
165 # line-number line before each line; the second 'sed' does the real
166 # work. The second script uses 'N' to pair each line-number line
167 # with the numbered line, and appends trailing '-' during
168 # substitution so that $LINENO is not a special case at line end.
169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
171 sed '=' <$as_myself |
172 sed '
173 N
174 s,$,-,
175 : loop
176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
177 t loop
178 s,-$,,
179 s,^['$as_cr_digits']*\n,,
180 ' >$as_me.lineno &&
181 chmod +x $as_me.lineno ||
182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183 { (exit 1); exit 1; }; }
184
185 # Don't try to exec as it changes $[0], causing all sort of problems
186 # (the dirname of $[0] is not the place where we might find the
187 # original and so on. Autoconf is especially sensible to this).
188 . ./$as_me.lineno
189 # Exit status is that of the last command.
190 exit
191 }
192
193
194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195 *c*,-n*) ECHO_N= ECHO_C='
196 ' ECHO_T=' ' ;;
197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
199 esac
200
201 if expr a : '\(a\)' >/dev/null 2>&1; then
202 as_expr=expr
203 else
204 as_expr=false
205 fi
206
207 rm -f conf$$ conf$$.exe conf$$.file
208 echo >conf$$.file
209 if ln -s conf$$.file conf$$ 2>/dev/null; then
210 # We could just check for DJGPP; but this test a) works b) is more generic
211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212 if test -f conf$$.exe; then
213 # Don't use ln at all; we don't have any links
214 as_ln_s='cp -p'
215 else
216 as_ln_s='ln -s'
217 fi
218 elif ln conf$$.file conf$$ 2>/dev/null; then
219 as_ln_s=ln
220 else
221 as_ln_s='cp -p'
222 fi
223 rm -f conf$$ conf$$.exe conf$$.file
224
225 if mkdir -p . 2>/dev/null; then
226 as_mkdir_p=:
227 else
228 as_mkdir_p=false
229 fi
230
231 as_executable_p="test -f"
232
233 # Sed expression to map a string onto a valid CPP name.
234 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
235
236 # Sed expression to map a string onto a valid variable name.
237 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
238
239
240 # IFS
241 # We need space, tab and new line, in precisely that order.
242 as_nl='
243 '
244 IFS=" $as_nl"
245
246 # CDPATH.
247 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
248
249
250 # Name of the host.
251 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252 # so uname gets run too.
253 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
255 exec 6>&1
256
257 #
258 # Initializations.
259 #
260 ac_default_prefix=/usr/local
261 cross_compiling=no
262 subdirs=
263 MFLAGS=
264 MAKEFLAGS=
265 SHELL=${CONFIG_SHELL-/bin/sh}
266
267 # Maximum number of lines to put in a shell here document.
268 # This variable seems obsolete. It should probably be removed, and
269 # only ac_max_sed_lines should be used.
270 : ${ac_max_here_lines=38}
271
272 # Identity of this package.
273 PACKAGE_NAME='TiMidity++'
274 PACKAGE_TARNAME='timidity--'
275 PACKAGE_VERSION='2.12.0-pre1b'
276 PACKAGE_STRING='TiMidity++ 2.12.0-pre1b'
277 PACKAGE_BUGREPORT=''
278
279 ac_unique_file="timidity/timidity.c"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 # include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 # include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
316
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851 case $ac_init_help in
852 short | recursive ) echo "Configuration of TiMidity++ 2.12.0-pre1b:";;
853 esac
854 cat <<\_ACEOF
855
856 Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-debug Build a debugging version.
860 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
862 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
863 default: Automatically select audio device.
864 oss: OSS /dev/dsp
865 sun: SunOS /dev/audio
866 hpux: HPUX /dev/audio
867 irix: IRIX audio library
868 mme: OSF/1 MME
869 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
870 w32: Windows MMS
871 darwin: Darwin CoreAudio
872 alsa: ALSA pcm device
873 alib: HPUX network audio (Alib)
874 nas: NAS - Network Audio System
875 esd: EsounD - Enlightened Sound Daemon
876 vorbis: Ogg Vorbis
877 gogo: MP3 GOGO (Only Windows is supported)
878 --disable-alsatest Do not try to compile and run a test Alsa program
879 --disable-esdtest Do not try to compile and run a test ESD program
880 --disable-oggtest Do not try to compile and run a test Ogg program
881 --disable-vorbistest Do not try to compile and run a test Vorbis program
882 --enable-interface=interface_list
883 Comma separated interface list
884 --enable-dynamic Enable dynamic link interface (default is no)
885 --enable-dynamic=dynamic_list
886 Comma separated dynamic interface list
887 --enable-ncurses Enable ncurses interface (default is no)
888 --enable-slang Enable slang interface (default is no)
889 --enable-motif Enable motif interface (default is no)
890 --enable-tcltk Enable tcltk interface (default is no)
891 --enable-emacs Enable emacs interface (default is no)
892 --enable-vt100 Enable VT100 interface (default is no)
893 --enable-xaw Enable athena interface (default is no)
894 --enable-xskin Enable X skin interface (default is no)
895 --enable-gtk Enable GTK+ interface (default is no)
896 --disable-gtktest Do not try to compile and run a test GTK program
897 --enable-server Enable server interface (default is no)
898 --enable-alsaseq Enable ALSA sequencer server interface
899 (default is no)
900 --enable-winsyn Enable Windows Synthesizer interface
901 (default is no)
902 --enable-w32gui Enable Windows GUI interface (default is no)
903 --enable-ump UMP configuration (default is no)
904 --enable-offix Enable offix support (default is no)
905 --enable-network Enable network support (default is no)
906 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
907 --enable-spline=method Specify spline method: no|linear|cubic|lagrange
908 (default is linear)
909 --enable-wrd Enable WRD interface for X (default is no)
910
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-includes=DIR Specify include directories (colon separated)
915 --with-libraries=DIR Specify library directories (colon separated)
916 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
917 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
918 --with-lispdir Override the default lisp directory
919 --with-elf create ELF shared object instead of AOUT
920 --with-simd create SIMD friendly binary (default is no)
921 --with-x use the X Window System
922 --with-tcl-includes=DIR Tcl include file path
923 --with-tcl-libs=DIR Tcl library file path
924 --with-tk-includes=DIR Tk include file path
925 --with-tk-libs=DIR Tk library file path
926 --with-offix-includes=DIR Offix include file path
927 --with-offix-libs=DIR Offix include file path
928 --with-nas-library=library NAS absolute library path(Don't use -laudio)
929 --with-nas-includes=DIR NAS include files are in dir
930 --with-default-output=<mode> Specify default output mode (optional):
931 (default|alsa|alib|nas|esd|wav
932 |au|aiff|list|vorbis|gogo)
933 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
934 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
935 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
936 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
937 --with-ogg=PFX Prefix where libogg is installed (optional)
938 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
939 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
940 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
941 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
942 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
943 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
944 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
945
946 Some influential environment variables:
947 CC C compiler command
948 CFLAGS C compiler flags
949 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
950 nonstandard directory <lib dir>
951 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
952 headers in a nonstandard directory <include dir>
953 CPP C preprocessor
954
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
957
958 _ACEOF
959 fi
960
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
967
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
974 fi
975
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
991 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
992 # absolute.
993 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
994 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
995 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
996 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
997
998 cd $ac_dir
999 # Check for guested configure; otherwise get Cygnus style configure.
1000 if test -f $ac_srcdir/configure.gnu; then
1001 echo
1002 $SHELL $ac_srcdir/configure.gnu --help=recursive
1003 elif test -f $ac_srcdir/configure; then
1004 echo
1005 $SHELL $ac_srcdir/configure --help=recursive
1006 elif test -f $ac_srcdir/configure.ac ||
1007 test -f $ac_srcdir/configure.in; then
1008 echo
1009 $ac_configure --help
1010 else
1011 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012 fi
1013 cd $ac_popdir
1014 done
1015 fi
1016
1017 test -n "$ac_init_help" && exit 0
1018 if $ac_init_version; then
1019 cat <<\_ACEOF
1020 TiMidity++ configure 2.12.0-pre1b
1021 generated by GNU Autoconf 2.53a
1022
1023 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1024 Free Software Foundation, Inc.
1025 This configure script is free software; the Free Software Foundation
1026 gives unlimited permission to copy, distribute and modify it.
1027 _ACEOF
1028 exit 0
1029 fi
1030 exec 5>config.log
1031 cat >&5 <<_ACEOF
1032 This file contains any messages produced by compilers while
1033 running configure, to aid debugging if configure makes a mistake.
1034
1035 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1036 generated by GNU Autoconf 2.53a. Invocation command line was
1037
1038 $ $0 $@
1039
1040 _ACEOF
1041 {
1042 cat <<_ASUNAME
1043 ## --------- ##
1044 ## Platform. ##
1045 ## --------- ##
1046
1047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1052
1053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1055
1056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1059 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1063
1064 _ASUNAME
1065
1066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067 for as_dir in $PATH
1068 do
1069 IFS=$as_save_IFS
1070 test -z "$as_dir" && as_dir=.
1071 echo "PATH: $as_dir"
1072 done
1073
1074 } >&5
1075
1076 cat >&5 <<_ACEOF
1077
1078
1079 ## ----------- ##
1080 ## Core tests. ##
1081 ## ----------- ##
1082
1083 _ACEOF
1084
1085
1086 # Keep a trace of the command line.
1087 # Strip out --no-create and --no-recursion so they do not pile up.
1088 # Also quote any args containing shell meta-characters.
1089 ac_configure_args=
1090 ac_sep=
1091 for ac_arg
1092 do
1093 case $ac_arg in
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n ) continue ;;
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 continue ;;
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 esac
1102 case " $ac_configure_args " in
1103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1104 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 ac_sep=" " ;;
1106 esac
1107 # Get rid of the leading space.
1108 done
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1117 {
1118 echo
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141 if test -s confdefs.h; then
1142 cat <<\_ASBOX
1143 ## ----------- ##
1144 ## confdefs.h. ##
1145 ## ----------- ##
1146 _ASBOX
1147 echo
1148 sed "/^$/d" confdefs.h
1149 echo
1150 fi
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1154 } >&5
1155 rm -f core core.* *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157 exit $exit_status
1158 ' 0
1159 for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 done
1162 ac_signal=0
1163
1164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165 rm -rf conftest* confdefs.h
1166 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 echo >confdefs.h
1168
1169 # Predefined preprocessor variables.
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 _ACEOF
1194
1195
1196 # Let the site file select an alternate cache file if it wants to.
1197 # Prefer explicitly selected file to automatically selected ones.
1198 if test -z "$CONFIG_SITE"; then
1199 if test "x$prefix" != xNONE; then
1200 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 else
1202 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 fi
1204 fi
1205 for ac_site_file in $CONFIG_SITE; do
1206 if test -r "$ac_site_file"; then
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208 echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
1210 . "$ac_site_file"
1211 fi
1212 done
1213
1214 if test -r "$cache_file"; then
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219 echo "$as_me: loading cache $cache_file" >&6;}
1220 case $cache_file in
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1223 esac
1224 fi
1225 else
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227 echo "$as_me: creating cache $cache_file" >&6;}
1228 >$cache_file
1229 fi
1230
1231 # Check that the precious variables saved in the cache have kept the same
1232 # value.
1233 ac_cache_corrupted=false
1234 for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1241 set,)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,set)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,);;
1250 *)
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
1272 fi
1273 done
1274 if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
1280 fi
1281
1282 ac_ext=c
1283 ac_cpp='$CPP $CPPFLAGS'
1284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 ac_aux_dir=
1315 for ac_dir in autoconf $srcdir/autoconf; do
1316 if test -f $ac_dir/install-sh; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/install-sh -c"
1319 break
1320 elif test -f $ac_dir/install.sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install.sh -c"
1323 break
1324 elif test -f $ac_dir/shtool; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/shtool install -c"
1327 break
1328 fi
1329 done
1330 if test -z "$ac_aux_dir"; then
1331 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1332 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1333 { (exit 1); exit 1; }; }
1334 fi
1335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339 # Make sure we can run config.sub.
1340 $ac_config_sub sun4 >/dev/null 2>&1 ||
1341 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343 { (exit 1); exit 1; }; }
1344
1345 echo "$as_me:$LINENO: checking build system type" >&5
1346 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347 if test "${ac_cv_build+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350 ac_cv_build_alias=$build_alias
1351 test -z "$ac_cv_build_alias" &&
1352 ac_cv_build_alias=`$ac_config_guess`
1353 test -z "$ac_cv_build_alias" &&
1354 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356 { (exit 1); exit 1; }; }
1357 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360 { (exit 1); exit 1; }; }
1361
1362 fi
1363 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364 echo "${ECHO_T}$ac_cv_build" >&6
1365 build=$ac_cv_build
1366 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371 echo "$as_me:$LINENO: checking host system type" >&5
1372 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373 if test "${ac_cv_host+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376 ac_cv_host_alias=$host_alias
1377 test -z "$ac_cv_host_alias" &&
1378 ac_cv_host_alias=$ac_cv_build_alias
1379 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1383
1384 fi
1385 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386 echo "${ECHO_T}$ac_cv_host" >&6
1387 host=$ac_cv_host
1388 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393 echo "$as_me:$LINENO: checking target system type" >&5
1394 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395 if test "${ac_cv_target+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398 ac_cv_target_alias=$target_alias
1399 test "x$ac_cv_target_alias" = "x" &&
1400 ac_cv_target_alias=$ac_cv_host_alias
1401 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1405
1406 fi
1407 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408 echo "${ECHO_T}$ac_cv_target" >&6
1409 target=$ac_cv_target
1410 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415 # The aliases save the names the user supplied, while $host etc.
1416 # will get canonicalized.
1417 test -n "$target_alias" &&
1418 test "$program_prefix$program_suffix$program_transform_name" = \
1419 NONENONEs,x,x, &&
1420 program_prefix=${target_alias}-
1421 am__api_version="1.6"
1422 # Find a good install program. We prefer a C program (faster),
1423 # so one script is as good as another. But avoid the broken or
1424 # incompatible versions:
1425 # SysV /etc/install, /usr/sbin/install
1426 # SunOS /usr/etc/install
1427 # IRIX /sbin/install
1428 # AIX /bin/install
1429 # AmigaOS /C/install, which installs bootblocks on floppy discs
1430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1433 # ./install, which can be erroneously created by make from ./install.sh.
1434 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1435 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1436 if test -z "$INSTALL"; then
1437 if test "${ac_cv_path_install+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 # Account for people who put trailing slashes in PATH elements.
1446 case $as_dir/ in
1447 ./ | .// | /cC/* | \
1448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1449 /usr/ucb/* ) ;;
1450 *)
1451 # OSF1 and SCO ODT 3.0 have their own names for install.
1452 # Don't use installbsd from OSF since it installs stuff as root
1453 # by default.
1454 for ac_prog in ginstall scoinst install; do
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1457 if test $ac_prog = install &&
1458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1459 # AIX install. It has an incompatible calling convention.
1460 :
1461 elif test $ac_prog = install &&
1462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1463 # program-specific install script used by HP pwplus--don't use.
1464 :
1465 else
1466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1467 break 3
1468 fi
1469 fi
1470 done
1471 done
1472 ;;
1473 esac
1474 done
1475
1476
1477 fi
1478 if test "${ac_cv_path_install+set}" = set; then
1479 INSTALL=$ac_cv_path_install
1480 else
1481 # As a last resort, use the slow shell script. We don't cache a
1482 # path for INSTALL within a source directory, because that will
1483 # break other packages using the cache if that directory is
1484 # removed, or if the path is relative.
1485 INSTALL=$ac_install_sh
1486 fi
1487 fi
1488 echo "$as_me:$LINENO: result: $INSTALL" >&5
1489 echo "${ECHO_T}$INSTALL" >&6
1490
1491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1492 # It thinks the first close brace ends the variable substitution.
1493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1494
1495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1496
1497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1498
1499 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1500 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1501 # Just in case
1502 sleep 1
1503 echo timestamp > conftest.file
1504 # Do `set' in a subshell so we don't clobber the current shell's
1505 # arguments. Must try -L first in case configure is actually a
1506 # symlink; some systems play weird games with the mod time of symlinks
1507 # (eg FreeBSD returns the mod time of the symlink's containing
1508 # directory).
1509 if (
1510 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1511 if test "$*" = "X"; then
1512 # -L didn't work.
1513 set X `ls -t $srcdir/configure conftest.file`
1514 fi
1515 rm -f conftest.file
1516 if test "$*" != "X $srcdir/configure conftest.file" \
1517 && test "$*" != "X conftest.file $srcdir/configure"; then
1518
1519 # If neither matched, then we have a broken ls. This can happen
1520 # if, for instance, CONFIG_SHELL is bash and it inherits a
1521 # broken ls alias from the environment. This has actually
1522 # happened. Such a system could not be considered "sane".
1523 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1524 alias in your environment" >&5
1525 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1526 alias in your environment" >&2;}
1527 { (exit 1); exit 1; }; }
1528 fi
1529
1530 test "$2" = conftest.file
1531 )
1532 then
1533 # Ok.
1534 :
1535 else
1536 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1537 Check your system clock" >&5
1538 echo "$as_me: error: newly created file is older than distributed files!
1539 Check your system clock" >&2;}
1540 { (exit 1); exit 1; }; }
1541 fi
1542 echo "$as_me:$LINENO: result: yes" >&5
1543 echo "${ECHO_T}yes" >&6
1544 test "$program_prefix" != NONE &&
1545 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1546 # Use a double $ so make ignores it.
1547 test "$program_suffix" != NONE &&
1548 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1549 # Double any \ or $. echo might interpret backslashes.
1550 # By default was `s,x,x', remove it if useless.
1551 cat <<\_ACEOF >conftest.sed
1552 s/[\\$]/&&/g;s/;s,x,x,$//
1553 _ACEOF
1554 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1555 rm conftest.sed
1556
1557
1558 # expand $ac_aux_dir to an absolute path
1559 am_aux_dir=`cd $ac_aux_dir && pwd`
1560
1561 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1562 # Use eval to expand $SHELL
1563 if eval "$MISSING --run true"; then
1564 am_missing_run="$MISSING --run "
1565 else
1566 am_missing_run=
1567 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1568 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1569 fi
1570
1571 for ac_prog in gawk mawk nawk awk
1572 do
1573 # Extract the first word of "$ac_prog", so it can be a program name with args.
1574 set dummy $ac_prog; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_AWK+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 if test -n "$AWK"; then
1581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_AWK="$ac_prog"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1593 fi
1594 done
1595 done
1596
1597 fi
1598 fi
1599 AWK=$ac_cv_prog_AWK
1600 if test -n "$AWK"; then
1601 echo "$as_me:$LINENO: result: $AWK" >&5
1602 echo "${ECHO_T}$AWK" >&6
1603 else
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 fi
1607
1608 test -n "$AWK" && break
1609 done
1610
1611 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1612 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1613 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1614 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 cat >conftest.make <<\_ACEOF
1618 all:
1619 @echo 'ac_maketemp="${MAKE}"'
1620 _ACEOF
1621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1622 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1623 if test -n "$ac_maketemp"; then
1624 eval ac_cv_prog_make_${ac_make}_set=yes
1625 else
1626 eval ac_cv_prog_make_${ac_make}_set=no
1627 fi
1628 rm -f conftest.make
1629 fi
1630 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1631 echo "$as_me:$LINENO: result: yes" >&5
1632 echo "${ECHO_T}yes" >&6
1633 SET_MAKE=
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 SET_MAKE="MAKE=${MAKE-make}"
1638 fi
1639
1640 # test to see if srcdir already configured
1641 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1642 test -f $srcdir/config.status; then
1643 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1644 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1645 { (exit 1); exit 1; }; }
1646 fi
1647
1648 # Define the identity of the package.
1649 PACKAGE=TiMidity++
1650 VERSION=2.12.0-pre1b
1651
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE "$PACKAGE"
1655 _ACEOF
1656
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define VERSION "$VERSION"
1660 _ACEOF
1661
1662 # Some tools Automake needs.
1663
1664 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1665
1666
1667 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1668
1669
1670 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1671
1672
1673 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1674
1675
1676 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1677
1678
1679 AMTAR=${AMTAR-"${am_missing_run}tar"}
1680
1681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1682
1683 # Installed binaries are usually stripped using `strip' when the user
1684 # run `make install-strip'. However `strip' might not be the right
1685 # tool to use in cross-compilation environments, therefore Automake
1686 # will honor the `STRIP' environment variable to overrule this program.
1687 if test "$cross_compiling" != no; then
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_STRIP+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$STRIP"; then
1697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 STRIP=$ac_cv_prog_STRIP
1716 if test -n "$STRIP"; then
1717 echo "$as_me:$LINENO: result: $STRIP" >&5
1718 echo "${ECHO_T}$STRIP" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$ac_cv_prog_STRIP"; then
1726 ac_ct_STRIP=$STRIP
1727 # Extract the first word of "strip", so it can be a program name with args.
1728 set dummy strip; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$ac_ct_STRIP"; then
1735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_STRIP="strip"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1747 fi
1748 done
1749 done
1750
1751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1752 fi
1753 fi
1754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1755 if test -n "$ac_ct_STRIP"; then
1756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1757 echo "${ECHO_T}$ac_ct_STRIP" >&6
1758 else
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1761 fi
1762
1763 STRIP=$ac_ct_STRIP
1764 else
1765 STRIP="$ac_cv_prog_STRIP"
1766 fi
1767
1768 fi
1769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1770
1771 # We need awk for the "check" target. The system "awk" is bad on
1772 # some platforms.
1773
1774
1775
1776
1777 # Add the stamp file to the list of files AC keeps track of,
1778 # along with our hook.
1779 ac_config_headers="$ac_config_headers config.h"
1780
1781 # Add the stamp file to the list of files AC keeps track of,
1782 # along with our hook.
1783 ac_config_headers="$ac_config_headers interface.h"
1784
1785
1786
1787
1788 SHELL=${CONFIG_SHELL-"/bin/sh"}
1789 WISH=${WISH-"wish"}
1790
1791 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1792 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1793 echo "grimblepritz" >grimble
1794 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1795 contains="./contains"
1796 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1797 contains=grep
1798 else
1799 contains="./contains"
1800 fi
1801 rm -f grimble
1802 case "$contains" in
1803 grep) echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805 ;;
1806 ./contains)
1807 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1808 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1809 cat >./contains <<'EOSS'
1810 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1811 EOSS
1812 chmod +x "./contains"
1813 ;;
1814 esac
1815
1816
1817 # Check for compiler options -- such as debug flags.
1818
1819 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1820 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1821 # Check whether --enable-debug or --disable-debug was given.
1822 if test "${enable_debug+set}" = set; then
1823 enableval="$enable_debug"
1824 timidity_cv_debug="yes"
1825 else
1826 timidity_cv_debug="no"
1827 fi;
1828 if test "x$timidity_cv_debug" = "xyes"; then
1829
1830 cat >>confdefs.h <<\_ACEOF
1831 #define DEBUG 1
1832 _ACEOF
1833
1834 CFLAGS=${CFLAGS-"-g"}
1835 fi
1836 if test "x$timidity_cv_debug" = "xno"; then
1837
1838 cat >>confdefs.h <<\_ACEOF
1839 #define NDEBUG 1
1840 _ACEOF
1841
1842 fi
1843 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1844 echo "${ECHO_T}$timidity_cv_debug" >&6
1845
1846 CFLAGS=${CFLAGS-"-O2"}
1847
1848 if test "x$with_x" = x; then
1849 with_x=yes
1850 else
1851 x_config_flag=yes
1852 fi
1853
1854 # Checking gcc environment
1855 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1856 LDFLAGS="$LDFLAGS -L${i}"
1857 done
1858 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1859 CPPFLAGS="$CPPFLAGS -I${i}"
1860 done
1861
1862 # add $prefix if specified.
1863 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1864 LDFLAGS="-L$prefix/lib $LDFLAGS"
1865 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1866 CPPFLAGS="-I$prefix/include $CPPFLAGS"
1867 fi
1868
1869
1870 # Check whether --with-includes or --without-includes was given.
1871 if test "${with_includes+set}" = set; then
1872 withval="$with_includes"
1873 j=' '
1874 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1875 j="${j}-I${i} "
1876 done
1877 CPPFLAGS="$j$CPPFLAGS"
1878
1879 fi;
1880
1881
1882 # Check whether --with-libraries or --without-libraries was given.
1883 if test "${with_libraries+set}" = set; then
1884 withval="$with_libraries"
1885 j=' '
1886 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1887 j="${j}-L${i} "
1888 done
1889 LDFLAGS="$j$LDFLAGS"
1890
1891 fi;
1892
1893
1894
1895 # Check whether --with-default-path or --without-default-path was given.
1896 if test "${with_default_path+set}" = set; then
1897 withval="$with_default_path"
1898 pkgdatadir=$withval
1899 else
1900
1901 if test "x$prefix" != "xNONE"; then
1902 pkgdatadir='${prefix}/share/timidity'
1903 else
1904 pkgdatadir='/usr/local/share/timidity'
1905 fi
1906
1907 fi;
1908 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define DEFAULT_PATH "$tmpdefpath"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<\_ACEOF
1916 #define PKGDATADIR DEFAULT_PATH
1917 _ACEOF
1918
1919
1920
1921 # Check whether --with-module-dir or --without-module-dir was given.
1922 if test "${with_module_dir+set}" = set; then
1923 withval="$with_module_dir"
1924 pkglibdir=$withval
1925 else
1926
1927 if test "x$prefix" != "xNONE"; then
1928 pkglibdir='${prefix}/lib/timidity'
1929 else
1930 pkglibdir='/usr/local/lib/timidity'
1931 fi
1932
1933 fi;
1934 tmplibdir="`eval \"echo ${pkglibdir}\"`"
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PKGLIBDIR "$tmplibdir"
1938 _ACEOF
1939
1940
1941
1942 # Checks for programs.
1943
1944 # Check whether --with-lispdir or --without-lispdir was given.
1945 if test "${with_lispdir+set}" = set; then
1946 withval="$with_lispdir"
1947 lispdir="$withval"
1948 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1949 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1950 echo "$as_me:$LINENO: result: $lispdir" >&5
1951 echo "${ECHO_T}$lispdir" >&6
1952 else
1953
1954 # If set to t, that means we are running in a shell under Emacs.
1955 # If you have an Emacs named "t", then use the full path.
1956 test x"$EMACS" = xt && EMACS=
1957 for ac_prog in emacs xemacs
1958 do
1959 # Extract the first word of "$ac_prog", so it can be a program name with args.
1960 set dummy $ac_prog; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_EMACS+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$EMACS"; then
1967 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 ac_cv_prog_EMACS="$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 break 2
1979 fi
1980 done
1981 done
1982
1983 fi
1984 fi
1985 EMACS=$ac_cv_prog_EMACS
1986 if test -n "$EMACS"; then
1987 echo "$as_me:$LINENO: result: $EMACS" >&5
1988 echo "${ECHO_T}$EMACS" >&6
1989 else
1990 echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1992 fi
1993
1994 test -n "$EMACS" && break
1995 done
1996 test -n "$EMACS" || EMACS="no"
1997
1998 if test $EMACS != "no"; then
1999 if test x${lispdir+set} != xset; then
2000 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2001 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2002 if test "${am_cv_lispdir+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2006 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2007 # which is non-obvious for non-emacs users.
2008 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2009 # emacsen earlier and avoid running this altogether.
2010 { (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
2011 ($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
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2015 am_cv_lispdir=`sed -n \
2016 -e 's,/$,,' \
2017 -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2018 -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2019 conftest.out`
2020 rm conftest.out
2021 if test -z "$am_cv_lispdir"; then
2022 am_cv_lispdir='${datadir}/emacs/site-lisp'
2023 fi
2024
2025 fi
2026 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2027 echo "${ECHO_T}$am_cv_lispdir" >&6
2028 lispdir="$am_cv_lispdir"
2029 fi
2030 fi
2031
2032 fi;
2033
2034
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069 echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2071 else
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 fi
2077 if test -z "$ac_cv_prog_CC"; then
2078 ac_ct_CC=$CC
2079 # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 CC=$ac_ct_CC
2115 else
2116 CC="$ac_cv_prog_CC"
2117 fi
2118
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_CC="${ac_tool_prefix}cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 fi
2157 if test -z "$ac_cv_prog_CC"; then
2158 ac_ct_CC=$CC
2159 # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test -n "$ac_ct_CC"; then
2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_ac_ct_CC="cc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2179 fi
2180 done
2181 done
2182
2183 fi
2184 fi
2185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2186 if test -n "$ac_ct_CC"; then
2187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2188 echo "${ECHO_T}$ac_ct_CC" >&6
2189 else
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 CC=$ac_ct_CC
2195 else
2196 CC="$ac_cv_prog_CC"
2197 fi
2198
2199 fi
2200 if test -z "$CC"; then
2201 # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 ac_prog_rejected=no
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2221 continue
2222 fi
2223 ac_cv_prog_CC="cc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227 done
2228 done
2229
2230 if test $ac_prog_rejected = yes; then
2231 # We found a bogon in the path, so make sure we never use it.
2232 set dummy $ac_cv_prog_CC
2233 shift
2234 if test $# != 0; then
2235 # We chose a different compiler from the bogus one.
2236 # However, it has the same basename, so the bogon will be chosen
2237 # first if we set CC to just the basename; use the full file name.
2238 shift
2239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2240 fi
2241 fi
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$CC"; then
2255 if test -n "$ac_tool_prefix"; then
2256 for ac_prog in cl
2257 do
2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286 echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2288 else
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293 test -n "$CC" && break
2294 done
2295 fi
2296 if test -z "$CC"; then
2297 ac_ct_CC=$CC
2298 for ac_prog in cl
2299 do
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 if test -n "$ac_ct_CC"; then
2308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317 ac_cv_prog_ac_ct_CC="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 break 2
2320 fi
2321 done
2322 done
2323
2324 fi
2325 fi
2326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327 if test -n "$ac_ct_CC"; then
2328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329 echo "${ECHO_T}$ac_ct_CC" >&6
2330 else
2331 echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2333 fi
2334
2335 test -n "$ac_ct_CC" && break
2336 done
2337
2338 CC=$ac_ct_CC
2339 fi
2340
2341 fi
2342
2343
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2345 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2346 { (exit 1); exit 1; }; }
2347
2348 # Provide some information about the compiler.
2349 echo "$as_me:$LINENO:" \
2350 "checking for C compiler version" >&5
2351 ac_compiler=`set X $ac_compile; echo $2`
2352 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2353 (eval $ac_compiler --version </dev/null >&5) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2357 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2358 (eval $ac_compiler -v </dev/null >&5) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2363 (eval $ac_compiler -V </dev/null >&5) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367
2368 cat >conftest.$ac_ext <<_ACEOF
2369 #line $LINENO "configure"
2370 #include "confdefs.h"
2371
2372 #ifdef F77_DUMMY_MAIN
2373 # ifdef __cplusplus
2374 extern "C"
2375 # endif
2376 int F77_DUMMY_MAIN() { return 1; }
2377 #endif
2378 int
2379 main ()
2380 {
2381
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2392 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2402
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2407 ls a.out conftest 2>/dev/null;
2408 ls a.* conftest.* 2>/dev/null`; do
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2411 a.out ) # We found the default executable, but exeext='' is most
2412 # certainly right.
2413 break;;
2414 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2416 export ac_cv_exeext
2417 break;;
2418 * ) break;;
2419 esac
2420 done
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2424 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2425 echo "$as_me: error: C compiler cannot create executables" >&2;}
2426 { (exit 77); exit 77; }; }
2427 fi
2428
2429 ac_exeext=$ac_cv_exeext
2430 echo "$as_me:$LINENO: result: $ac_file" >&5
2431 echo "${ECHO_T}$ac_file" >&6
2432
2433 # Check the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2436 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2437 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2438 # If not cross compiling, check that we can run a simple program.
2439 if test "$cross_compiling" != yes; then
2440 if { ac_try='./$ac_file'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 cross_compiling=no
2447 else
2448 if test "$cross_compiling" = maybe; then
2449 cross_compiling=yes
2450 else
2451 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2452 If you meant to cross compile, use \`--host'." >&5
2453 echo "$as_me: error: cannot run C compiled programs.
2454 If you meant to cross compile, use \`--host'." >&2;}
2455 { (exit 1); exit 1; }; }
2456 fi
2457 fi
2458 fi
2459 echo "$as_me:$LINENO: result: yes" >&5
2460 echo "${ECHO_T}yes" >&6
2461
2462 rm -f a.out a.exe conftest$ac_cv_exeext
2463 ac_clean_files=$ac_clean_files_save
2464 # Check the compiler produces executables we can run. If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2467 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2468 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2469 echo "${ECHO_T}$cross_compiling" >&6
2470
2471 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2472 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2474 (eval $ac_link) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; then
2478 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2479 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2480 # work properly (i.e., refer to `conftest.exe'), while it won't with
2481 # `rm'.
2482 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2483 case $ac_file in
2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2486 export ac_cv_exeext
2487 break;;
2488 * ) break;;
2489 esac
2490 done
2491 else
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2493 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2494 { (exit 1); exit 1; }; }
2495 fi
2496
2497 rm -f conftest$ac_cv_exeext
2498 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499 echo "${ECHO_T}$ac_cv_exeext" >&6
2500
2501 rm -f conftest.$ac_ext
2502 EXEEXT=$ac_cv_exeext
2503 ac_exeext=$EXEEXT
2504 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2506 if test "${ac_cv_objext+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 #include "confdefs.h"
2512
2513 #ifdef F77_DUMMY_MAIN
2514 # ifdef __cplusplus
2515 extern "C"
2516 # endif
2517 int F77_DUMMY_MAIN() { return 1; }
2518 #endif
2519 int
2520 main ()
2521 {
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.o conftest.obj
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2534 case $ac_file in
2535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2537 break;;
2538 esac
2539 done
2540 else
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2544 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2545 { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6
2552 OBJEXT=$ac_cv_objext
2553 ac_objext=$OBJEXT
2554 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2561 #include "confdefs.h"
2562
2563 #ifdef F77_DUMMY_MAIN
2564 # ifdef __cplusplus
2565 extern "C"
2566 # endif
2567 int F77_DUMMY_MAIN() { return 1; }
2568 #endif
2569 int
2570 main ()
2571 {
2572 #ifndef __GNUC__
2573 choke me
2574 #endif
2575
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_compiler_gnu=yes
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2604 GCC=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2607 CFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2609 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cc_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 #include "confdefs.h"
2616
2617 #ifdef F77_DUMMY_MAIN
2618 # ifdef __cplusplus
2619 extern "C"
2620 # endif
2621 int F77_DUMMY_MAIN() { return 1; }
2622 #endif
2623 int
2624 main ()
2625 {
2626
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_prog_cc_g=yes
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 ac_cv_prog_cc_g=no
2648 fi
2649 rm -f conftest.$ac_objext conftest.$ac_ext
2650 fi
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2657 CFLAGS="-g -O2"
2658 else
2659 CFLAGS="-g"
2660 fi
2661 else
2662 if test "$GCC" = yes; then
2663 CFLAGS="-O2"
2664 else
2665 CFLAGS=
2666 fi
2667 fi
2668 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2669 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 ac_cv_prog_cc_stdc=no
2674 ac_save_CC=$CC
2675 cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <stdarg.h>
2679 #include <stdio.h>
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2686 char **p;
2687 int i;
2688 {
2689 return p[i];
2690 }
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2692 {
2693 char *s;
2694 va_list v;
2695 va_start (v,p);
2696 s = g (p, va_arg (v,int));
2697 va_end (v);
2698 return s;
2699 }
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 int argc;
2705 char **argv;
2706 #ifdef F77_DUMMY_MAIN
2707 # ifdef __cplusplus
2708 extern "C"
2709 # endif
2710 int F77_DUMMY_MAIN() { return 1; }
2711 #endif
2712 int
2713 main ()
2714 {
2715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX -qlanglvl=ansi
2723 # Ultrix and OSF/1 -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions -Aa -D_HPUX_SOURCE
2726 # SVR4 -Xc -D__EXTENSIONS__
2727 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 do
2729 CC="$ac_save_CC $ac_arg"
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_stdc=$ac_arg
2743 break
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 fi
2748 rm -f conftest.$ac_objext
2749 done
2750 rm -f conftest.$ac_ext conftest.$ac_objext
2751 CC=$ac_save_CC
2752
2753 fi
2754
2755 case "x$ac_cv_prog_cc_stdc" in
2756 x|xno)
2757 echo "$as_me:$LINENO: result: none needed" >&5
2758 echo "${ECHO_T}none needed" >&6 ;;
2759 *)
2760 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2761 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2762 CC="$CC $ac_cv_prog_cc_stdc" ;;
2763 esac
2764
2765 # Some people use a C++ compiler to compile C. Since we use `exit',
2766 # in C++ we need to declare it. In case someone uses the same compiler
2767 # for both compiling C and C++ we need to have the C++ compiler decide
2768 # the declaration of exit, since it's the most demanding environment.
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #ifndef __cplusplus
2771 choke me
2772 #endif
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 for ac_declaration in \
2787 ''\
2788 '#include <stdlib.h>' \
2789 'extern "C" void std::exit (int) throw (); using std::exit;' \
2790 'extern "C" void std::exit (int); using std::exit;' \
2791 'extern "C" void exit (int) throw ();' \
2792 'extern "C" void exit (int);' \
2793 'void exit (int);'
2794 do
2795 cat >conftest.$ac_ext <<_ACEOF
2796 #line $LINENO "configure"
2797 #include "confdefs.h"
2798 #include <stdlib.h>
2799 $ac_declaration
2800 #ifdef F77_DUMMY_MAIN
2801 # ifdef __cplusplus
2802 extern "C"
2803 # endif
2804 int F77_DUMMY_MAIN() { return 1; }
2805 #endif
2806 int
2807 main ()
2808 {
2809 exit (42);
2810 ;
2811 return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 :
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2830 continue
2831 fi
2832 rm -f conftest.$ac_objext conftest.$ac_ext
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2835 #include "confdefs.h"
2836 $ac_declaration
2837 #ifdef F77_DUMMY_MAIN
2838 # ifdef __cplusplus
2839 extern "C"
2840 # endif
2841 int F77_DUMMY_MAIN() { return 1; }
2842 #endif
2843 int
2844 main ()
2845 {
2846 exit (42);
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 break
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 fi
2868 rm -f conftest.$ac_objext conftest.$ac_ext
2869 done
2870 rm -f conftest*
2871 if test -n "$ac_declaration"; then
2872 echo '#ifdef __cplusplus' >>confdefs.h
2873 echo $ac_declaration >>confdefs.h
2874 echo '#endif' >>confdefs.h
2875 fi
2876
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 fi
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 rm -f .deps 2>/dev/null
2888 mkdir .deps 2>/dev/null
2889 if test -d .deps; then
2890 DEPDIR=.deps
2891 else
2892 # MS-DOS does not allow filenames that begin with a dot.
2893 DEPDIR=_deps
2894 fi
2895 rmdir .deps 2>/dev/null
2896
2897
2898 ac_config_commands="$ac_config_commands depfiles"
2899
2900
2901 am_make=${MAKE-make}
2902 cat > confinc << 'END'
2903 doit:
2904 @echo done
2905 END
2906 # If we don't find an include directive, just comment out the code.
2907 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2908 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2909 am__include="#"
2910 am__quote=
2911 _am_result=none
2912 # First try GNU make style include.
2913 echo "include confinc" > confmf
2914 # We grep out `Entering directory' and `Leaving directory'
2915 # messages which can occur if `w' ends up in MAKEFLAGS.
2916 # In particular we don't look at `^make:' because GNU make might
2917 # be invoked under some other name (usually "gmake"), in which
2918 # case it prints its new name instead of `make'.
2919 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2920 am__include=include
2921 am__quote=
2922 _am_result=GNU
2923 fi
2924 # Now try BSD make style include.
2925 if test "$am__include" = "#"; then
2926 echo '.include "confinc"' > confmf
2927 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2928 am__include=.include
2929 am__quote="\""
2930 _am_result=BSD
2931 fi
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: result: $_am_result" >&5
2936 echo "${ECHO_T}$_am_result" >&6
2937 rm -f confinc confmf
2938
2939 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2940 if test "${enable_dependency_tracking+set}" = set; then
2941 enableval="$enable_dependency_tracking"
2942
2943 fi;
2944 if test "x$enable_dependency_tracking" != xno; then
2945 am_depcomp="$ac_aux_dir/depcomp"
2946 AMDEPBACKSLASH='\'
2947 fi
2948
2949
2950 if test "x$enable_dependency_tracking" != xno; then
2951 AMDEP_TRUE=
2952 AMDEP_FALSE='#'
2953 else
2954 AMDEP_TRUE='#'
2955 AMDEP_FALSE=
2956 fi
2957
2958
2959
2960
2961 depcc="$CC" am_compiler_list=
2962
2963 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2964 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2969 # We make a subdir and do the tests there. Otherwise we can end up
2970 # making bogus files that we don't know about and never remove. For
2971 # instance it was reported that on HP-UX the gcc test will end up
2972 # making a dummy file named `D' -- because `-MD' means `put the output
2973 # in D'.
2974 mkdir conftest.dir
2975 # Copy depcomp to subdir because otherwise we won't find it if we're
2976 # using a relative directory.
2977 cp "$am_depcomp" conftest.dir
2978 cd conftest.dir
2979
2980 am_cv_CC_dependencies_compiler_type=none
2981 if test "$am_compiler_list" = ""; then
2982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2983 fi
2984 for depmode in $am_compiler_list; do
2985 # We need to recreate these files for each test, as the compiler may
2986 # overwrite some of them when testing with obscure command lines.
2987 # This happens at least with the AIX C compiler.
2988 echo '#include "conftest.h"' > conftest.c
2989 echo 'int i;' > conftest.h
2990 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2991
2992 case $depmode in
2993 nosideeffect)
2994 # after this tag, mechanisms are not by side-effect, so they'll
2995 # only be used when explicitly requested
2996 if test "x$enable_dependency_tracking" = xyes; then
2997 continue
2998 else
2999 break
3000 fi
3001 ;;
3002 none) break ;;
3003 esac
3004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3005 # mode. It turns out that the SunPro C++ compiler does not properly
3006 # handle `-M -o', and we need to detect this.
3007 if depmode=$depmode \
3008 source=conftest.c object=conftest.o \
3009 depfile=conftest.Po tmpdepfile=conftest.TPo \
3010 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3011 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3013 am_cv_CC_dependencies_compiler_type=$depmode
3014 break
3015 fi
3016 done
3017
3018 cd ..
3019 rm -rf conftest.dir
3020 else
3021 am_cv_CC_dependencies_compiler_type=none
3022 fi
3023
3024 fi
3025 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3028
3029
3030 # Find a good install program. We prefer a C program (faster),
3031 # so one script is as good as another. But avoid the broken or
3032 # incompatible versions:
3033 # SysV /etc/install, /usr/sbin/install
3034 # SunOS /usr/etc/install
3035 # IRIX /sbin/install
3036 # AIX /bin/install
3037 # AmigaOS /C/install, which installs bootblocks on floppy discs
3038 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3039 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3040 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3041 # ./install, which can be erroneously created by make from ./install.sh.
3042 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3044 if test -z "$INSTALL"; then
3045 if test "${ac_cv_path_install+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 # Account for people who put trailing slashes in PATH elements.
3054 case $as_dir/ in
3055 ./ | .// | /cC/* | \
3056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3057 /usr/ucb/* ) ;;
3058 *)
3059 # OSF1 and SCO ODT 3.0 have their own names for install.
3060 # Don't use installbsd from OSF since it installs stuff as root
3061 # by default.
3062 for ac_prog in ginstall scoinst install; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065 if test $ac_prog = install &&
3066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067 # AIX install. It has an incompatible calling convention.
3068 :
3069 elif test $ac_prog = install &&
3070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071 # program-specific install script used by HP pwplus--don't use.
3072 :
3073 else
3074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075 break 3
3076 fi
3077 fi
3078 done
3079 done
3080 ;;
3081 esac
3082 done
3083
3084
3085 fi
3086 if test "${ac_cv_path_install+set}" = set; then
3087 INSTALL=$ac_cv_path_install
3088 else
3089 # As a last resort, use the slow shell script. We don't cache a
3090 # path for INSTALL within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the path is relative.
3093 INSTALL=$ac_install_sh
3094 fi
3095 fi
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 for ac_prog in gawk mawk nawk awk
3108 do
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113 if test "${ac_cv_prog_AWK+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if test -n "$AWK"; then
3117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_AWK="$ac_prog"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132
3133 fi
3134 fi
3135 AWK=$ac_cv_prog_AWK
3136 if test -n "$AWK"; then
3137 echo "$as_me:$LINENO: result: $AWK" >&5
3138 echo "${ECHO_T}$AWK" >&6
3139 else
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3142 fi
3143
3144 test -n "$AWK" && break
3145 done
3146
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3150 echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3152 if test "${ac_cv_prog_RANLIB+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 if test -n "$RANLIB"; then
3156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171
3172 fi
3173 fi
3174 RANLIB=$ac_cv_prog_RANLIB
3175 if test -n "$RANLIB"; then
3176 echo "$as_me:$LINENO: result: $RANLIB" >&5
3177 echo "${ECHO_T}$RANLIB" >&6
3178 else
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3181 fi
3182
3183 fi
3184 if test -z "$ac_cv_prog_RANLIB"; then
3185 ac_ct_RANLIB=$RANLIB
3186 # Extract the first word of "ranlib", so it can be a program name with args.
3187 set dummy ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -n "$ac_ct_RANLIB"; then
3194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_RANLIB="ranlib"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209
3210 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3211 fi
3212 fi
3213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3214 if test -n "$ac_ct_RANLIB"; then
3215 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3216 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221
3222 RANLIB=$ac_ct_RANLIB
3223 else
3224 RANLIB="$ac_cv_prog_RANLIB"
3225 fi
3226
3227 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3228 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3229 LN_S=$as_ln_s
3230 if test "$LN_S" = "ln -s"; then
3231 echo "$as_me:$LINENO: result: yes" >&5
3232 echo "${ECHO_T}yes" >&6
3233 else
3234 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3235 echo "${ECHO_T}no, using $LN_S" >&6
3236 fi
3237
3238 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3239 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3240 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3241 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 cat > conftest.$ac_ext <<EOF
3245 int main() {return 0;}
3246 EOF
3247 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3248 if test -s conftest.out; then
3249 eval "timidity_cv_ccoption_$ac_ccoption=no"
3250 else
3251 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3252 fi
3253 else
3254 eval "timidity_cv_ccoption_$ac_ccoption=no"
3255 fi
3256
3257 fi
3258
3259 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3262
3263 else
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266
3267 fi
3268
3269
3270 # Checks for target dependencies
3271
3272
3273 # Check whether --with-elf or --without-elf was given.
3274 if test "${with_elf+set}" = set; then
3275 withval="$with_elf"
3276 ELFFORMAT=$withval
3277 else
3278 ELFFORMAT="yes"
3279 fi;
3280
3281
3282 # Check whether --with-simd or --without-simd was given.
3283 if test "${with_simd+set}" = set; then
3284 withval="$with_simd"
3285 SIMD=$withval
3286 else
3287 SIMD="no"
3288 fi;
3289
3290 case "$target" in
3291 *-*-hpux*)
3292 EXTRADEFS="-DHPUX"
3293 test -n "$SHLD" || SHLD="ld -b"
3294 so="sl"
3295 ;;
3296 *-sgi-irix*)
3297 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3298 test -n "$SHLD" || SHLD="cc -shared -all"
3299 so="so"
3300 ;;
3301 *-*-netbsd*)
3302 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3303 so="so"
3304 ;;
3305
3306 *-*-freebsd2*)
3307 test -n "$SHLD" || SHLD="ld -Bshareable"
3308 so="so"
3309 ;;
3310 *-*-freebsd*)
3311 if test "$ELFFORMAT" = yes; then
3312 test -n "$SHLD" || SHLD="ld -Bshareable"
3313 else
3314 SHCFLAGS=-aou
3315 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3316 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3317 fi
3318 so="so"
3319 ;;
3320
3321 # *-*-freebsd*)
3322 # EXTRALIBS="$EXTRALIBS -lxpg4"
3323 # test -n "$SHLD" || SHLD="ld -Bshareable"
3324 # so="so"
3325 # ;;
3326
3327 *-*-cygwin*)
3328 EXTRADEFS="-D__W32__"
3329 # ??
3330 case "x${CC} " in
3331 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3332 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3333 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3334 *) test -n "$SHLD" || SHLD="unknown" ;;
3335 esac
3336 so="dll"
3337 CYGNUS=yes
3338 lib_user32_test=-luser32
3339 ;;
3340 *-*-mingw*)
3341 EXTRADEFS="-D__W32__"
3342 # ??
3343 case "x${CC} " in
3344 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3345 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3346 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3347 *) test -n "$SHLD" || SHLD="unknown" ;;
3348 esac
3349 so="dll"
3350 MINGW=yes
3351 lib_user32_test=-luser32
3352 ;;
3353 *-dec-*)
3354 EXTRADEFS="-DDEC"
3355 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3356 so="so"
3357 ;;
3358 *-*-solaris*)
3359 EXTRADEFS="-DSOLARIS"
3360 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3361 so="so"
3362 ;;
3363 *-*-nextstep*)
3364 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3365 so="so"
3366 ;;
3367 *-*-darwin*)
3368 if test "x$SIMD" = "xyes"; then
3369
3370 cat >>confdefs.h <<\_ACEOF
3371 #define USE_ALTIVEC 1
3372 _ACEOF
3373
3374 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3375 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3376 else
3377
3378 cat >>confdefs.h <<\_ACEOF
3379 #define USE_ALTIVEC 0
3380 _ACEOF
3381
3382 fi
3383 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3384 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3385 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3386 so="bundle"
3387 ;;
3388 *)
3389 test -n "$SHLD" || \
3390 if test "x$GCC" = xyes; then
3391 SHLD="$CC -shared"
3392 else
3393 SHLD="ld -Bdynamic -G"
3394 fi
3395 so="so"
3396 ;;
3397 esac
3398
3399
3400 # Checks for libraries.
3401
3402
3403 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3404 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3405 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 ac_check_lib_save_LIBS=$LIBS
3409 LIBS="-lm $LIBS"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 #ifdef __cplusplus
3416 extern "C"
3417 #endif
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420 char sqrt ();
3421 #ifdef F77_DUMMY_MAIN
3422 # ifdef __cplusplus
3423 extern "C"
3424 # endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426 #endif
3427 int
3428 main ()
3429 {
3430 sqrt ();
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext conftest$ac_exeext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3437 (eval $ac_link) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_m_sqrt=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_cv_lib_m_sqrt=no
3452 fi
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3457 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3458 if test $ac_cv_lib_m_sqrt = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460 #define HAVE_LIBM 1
3461 _ACEOF
3462
3463 LIBS="-lm $LIBS"
3464
3465 fi
3466
3467
3468 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3469 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3470 if test "${ac_cv_lib_socket_socket+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 ac_check_lib_save_LIBS=$LIBS
3474 LIBS="-lsocket $LIBS"
3475 cat >conftest.$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3477 #include "confdefs.h"
3478
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 #ifdef __cplusplus
3481 extern "C"
3482 #endif
3483 /* We use char because int might match the return type of a gcc2
3484 builtin and then its argument prototype would still apply. */
3485 char socket ();
3486 #ifdef F77_DUMMY_MAIN
3487 # ifdef __cplusplus
3488 extern "C"
3489 # endif
3490 int F77_DUMMY_MAIN() { return 1; }
3491 #endif
3492 int
3493 main ()
3494 {
3495 socket ();
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext conftest$ac_exeext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502 (eval $ac_link) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -s conftest$ac_exeext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_lib_socket_socket=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 ac_cv_lib_socket_socket=no
3517 fi
3518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3519 LIBS=$ac_check_lib_save_LIBS
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3522 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3523 if test $ac_cv_lib_socket_socket = yes; then
3524 cat >>confdefs.h <<_ACEOF
3525 #define HAVE_LIBSOCKET 1
3526 _ACEOF
3527
3528 LIBS="-lsocket $LIBS"
3529
3530 fi
3531
3532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 ac_check_lib_save_LIBS=$LIBS
3538 LIBS="-ldl $LIBS"
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3542
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 #ifdef __cplusplus
3545 extern "C"
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char dlopen ();
3550 #ifdef F77_DUMMY_MAIN
3551 # ifdef __cplusplus
3552 extern "C"
3553 # endif
3554 int F77_DUMMY_MAIN() { return 1; }
3555 #endif
3556 int
3557 main ()
3558 {
3559 dlopen ();
3560 ;