10d74cb2430bdb82557411d664afb3774498da21
[platform/upstream/libvorbis.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
48
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
54 ac_max_here_lines=12
55
56 ac_prev=
57 for ac_option
58 do
59
60   # If the previous option needs an argument, assign it.
61   if test -n "$ac_prev"; then
62     eval "$ac_prev=\$ac_option"
63     ac_prev=
64     continue
65   fi
66
67   case "$ac_option" in
68   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69   *) ac_optarg= ;;
70   esac
71
72   # Accept the important Cygnus configure options, so we can diagnose typos.
73
74   case "$ac_option" in
75
76   -bindir | --bindir | --bindi | --bind | --bin | --bi)
77     ac_prev=bindir ;;
78   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79     bindir="$ac_optarg" ;;
80
81   -build | --build | --buil | --bui | --bu)
82     ac_prev=build ;;
83   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84     build="$ac_optarg" ;;
85
86   -cache-file | --cache-file | --cache-fil | --cache-fi \
87   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88     ac_prev=cache_file ;;
89   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91     cache_file="$ac_optarg" ;;
92
93   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94     ac_prev=datadir ;;
95   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96   | --da=*)
97     datadir="$ac_optarg" ;;
98
99   -disable-* | --disable-*)
100     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101     # Reject names that are not valid shell variable names.
102     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104     fi
105     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106     eval "enable_${ac_feature}=no" ;;
107
108   -enable-* | --enable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     case "$ac_option" in
116       *=*) ;;
117       *) ac_optarg=yes ;;
118     esac
119     eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123   | --exec | --exe | --ex)
124     ac_prev=exec_prefix ;;
125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127   | --exec=* | --exe=* | --ex=*)
128     exec_prefix="$ac_optarg" ;;
129
130   -gas | --gas | --ga | --g)
131     # Obsolete; use --with-gas.
132     with_gas=yes ;;
133
134   -help | --help | --hel | --he)
135     # Omit some internal or obsolete options to make the list less imposing.
136     # This message is too long to be a string in the A/UX 3.1 sh.
137     cat << EOF
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
140 Configuration:
141   --cache-file=FILE       cache test results in FILE
142   --help                  print this message
143   --no-create             do not create output files
144   --quiet, --silent       do not print \`checking...' messages
145   --version               print the version of autoconf that created configure
146 Directory and file names:
147   --prefix=PREFIX         install architecture-independent files in PREFIX
148                           [$ac_default_prefix]
149   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150                           [same as prefix]
151   --bindir=DIR            user executables in DIR [EPREFIX/bin]
152   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154   --datadir=DIR           read-only architecture-independent data in DIR
155                           [PREFIX/share]
156   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158                           [PREFIX/com]
159   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161   --includedir=DIR        C header files in DIR [PREFIX/include]
162   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163   --infodir=DIR           info documentation in DIR [PREFIX/info]
164   --mandir=DIR            man documentation in DIR [PREFIX/man]
165   --srcdir=DIR            find the sources in DIR [configure dir or ..]
166   --program-prefix=PREFIX prepend PREFIX to installed program names
167   --program-suffix=SUFFIX append SUFFIX to installed program names
168   --program-transform-name=PROGRAM
169                           run sed PROGRAM on installed program names
170 EOF
171     cat << EOF
172 Host type:
173   --build=BUILD           configure for building on BUILD [BUILD=HOST]
174   --host=HOST             configure for HOST [guessed]
175   --target=TARGET         configure for TARGET [TARGET=HOST]
176 Features and packages:
177   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181   --x-includes=DIR        X include files are in DIR
182   --x-libraries=DIR       X library files are in DIR
183 EOF
184     if test -n "$ac_help"; then
185       echo "--enable and --with options recognized:$ac_help"
186     fi
187     exit 0 ;;
188
189   -host | --host | --hos | --ho)
190     ac_prev=host ;;
191   -host=* | --host=* | --hos=* | --ho=*)
192     host="$ac_optarg" ;;
193
194   -includedir | --includedir | --includedi | --included | --include \
195   | --includ | --inclu | --incl | --inc)
196     ac_prev=includedir ;;
197   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198   | --includ=* | --inclu=* | --incl=* | --inc=*)
199     includedir="$ac_optarg" ;;
200
201   -infodir | --infodir | --infodi | --infod | --info | --inf)
202     ac_prev=infodir ;;
203   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204     infodir="$ac_optarg" ;;
205
206   -libdir | --libdir | --libdi | --libd)
207     ac_prev=libdir ;;
208   -libdir=* | --libdir=* | --libdi=* | --libd=*)
209     libdir="$ac_optarg" ;;
210
211   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212   | --libexe | --libex | --libe)
213     ac_prev=libexecdir ;;
214   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215   | --libexe=* | --libex=* | --libe=*)
216     libexecdir="$ac_optarg" ;;
217
218   -localstatedir | --localstatedir | --localstatedi | --localstated \
219   | --localstate | --localstat | --localsta | --localst \
220   | --locals | --local | --loca | --loc | --lo)
221     ac_prev=localstatedir ;;
222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225     localstatedir="$ac_optarg" ;;
226
227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228     ac_prev=mandir ;;
229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230     mandir="$ac_optarg" ;;
231
232   -nfp | --nfp | --nf)
233     # Obsolete; use --without-fp.
234     with_fp=no ;;
235
236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237   | --no-cr | --no-c)
238     no_create=yes ;;
239
240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242     no_recursion=yes ;;
243
244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246   | --oldin | --oldi | --old | --ol | --o)
247     ac_prev=oldincludedir ;;
248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251     oldincludedir="$ac_optarg" ;;
252
253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254     ac_prev=prefix ;;
255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256     prefix="$ac_optarg" ;;
257
258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
259   | --program-pre | --program-pr | --program-p)
260     ac_prev=program_prefix ;;
261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263     program_prefix="$ac_optarg" ;;
264
265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
266   | --program-suf | --program-su | --program-s)
267     ac_prev=program_suffix ;;
268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270     program_suffix="$ac_optarg" ;;
271
272   -program-transform-name | --program-transform-name \
273   | --program-transform-nam | --program-transform-na \
274   | --program-transform-n | --program-transform- \
275   | --program-transform | --program-transfor \
276   | --program-transfo | --program-transf \
277   | --program-trans | --program-tran \
278   | --progr-tra | --program-tr | --program-t)
279     ac_prev=program_transform_name ;;
280   -program-transform-name=* | --program-transform-name=* \
281   | --program-transform-nam=* | --program-transform-na=* \
282   | --program-transform-n=* | --program-transform-=* \
283   | --program-transform=* | --program-transfor=* \
284   | --program-transfo=* | --program-transf=* \
285   | --program-trans=* | --program-tran=* \
286   | --progr-tra=* | --program-tr=* | --program-t=*)
287     program_transform_name="$ac_optarg" ;;
288
289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290   | -silent | --silent | --silen | --sile | --sil)
291     silent=yes ;;
292
293   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294     ac_prev=sbindir ;;
295   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296   | --sbi=* | --sb=*)
297     sbindir="$ac_optarg" ;;
298
299   -sharedstatedir | --sharedstatedir | --sharedstatedi \
300   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301   | --sharedst | --shareds | --shared | --share | --shar \
302   | --sha | --sh)
303     ac_prev=sharedstatedir ;;
304   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307   | --sha=* | --sh=*)
308     sharedstatedir="$ac_optarg" ;;
309
310   -site | --site | --sit)
311     ac_prev=site ;;
312   -site=* | --site=* | --sit=*)
313     site="$ac_optarg" ;;
314
315   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316     ac_prev=srcdir ;;
317   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318     srcdir="$ac_optarg" ;;
319
320   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321   | --syscon | --sysco | --sysc | --sys | --sy)
322     ac_prev=sysconfdir ;;
323   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325     sysconfdir="$ac_optarg" ;;
326
327   -target | --target | --targe | --targ | --tar | --ta | --t)
328     ac_prev=target ;;
329   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330     target="$ac_optarg" ;;
331
332   -v | -verbose | --verbose | --verbos | --verbo | --verb)
333     verbose=yes ;;
334
335   -version | --version | --versio | --versi | --vers)
336     echo "configure generated by autoconf version 2.13"
337     exit 0 ;;
338
339   -with-* | --with-*)
340     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341     # Reject names that are not valid shell variable names.
342     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344     fi
345     ac_package=`echo $ac_package| sed 's/-/_/g'`
346     case "$ac_option" in
347       *=*) ;;
348       *) ac_optarg=yes ;;
349     esac
350     eval "with_${ac_package}='$ac_optarg'" ;;
351
352   -without-* | --without-*)
353     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354     # Reject names that are not valid shell variable names.
355     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357     fi
358     ac_package=`echo $ac_package| sed 's/-/_/g'`
359     eval "with_${ac_package}=no" ;;
360
361   --x)
362     # Obsolete; use --with-x.
363     with_x=yes ;;
364
365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366   | --x-incl | --x-inc | --x-in | --x-i)
367     ac_prev=x_includes ;;
368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370     x_includes="$ac_optarg" ;;
371
372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374     ac_prev=x_libraries ;;
375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377     x_libraries="$ac_optarg" ;;
378
379   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380     ;;
381
382   *)
383     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384       echo "configure: warning: $ac_option: invalid host type" 1>&2
385     fi
386     if test "x$nonopt" != xNONE; then
387       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388     fi
389     nonopt="$ac_option"
390     ;;
391
392   esac
393 done
394
395 if test -n "$ac_prev"; then
396   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 fi
398
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401 # File descriptor usage:
402 # 0 standard input
403 # 1 file creation
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
410   exec 6>/dev/null
411 else
412   exec 6>&1
413 fi
414 exec 5>./config.log
415
416 echo "\
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
419 " 1>&5
420
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
423 ac_configure_args=
424 for ac_arg
425 do
426   case "$ac_arg" in
427   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428   | --no-cr | --no-c) ;;
429   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434   esac
435 done
436
437 # NLS nuisances.
438 # Only set these to C if already set.  These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
451
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=lib/mdct.c
455
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458   ac_srcdir_defaulted=yes
459   # Try the directory containing this script, then its parent.
460   ac_prog=$0
461   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463   srcdir=$ac_confdir
464   if test ! -r $srcdir/$ac_unique_file; then
465     srcdir=..
466   fi
467 else
468   ac_srcdir_defaulted=no
469 fi
470 if test ! -r $srcdir/$ac_unique_file; then
471   if test "$ac_srcdir_defaulted" = yes; then
472     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473   else
474     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475   fi
476 fi
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481   if test "x$prefix" != xNONE; then
482     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483   else
484     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485   fi
486 fi
487 for ac_site_file in $CONFIG_SITE; do
488   if test -r "$ac_site_file"; then
489     echo "loading site script $ac_site_file"
490     . "$ac_site_file"
491   fi
492 done
493
494 if test -r "$cache_file"; then
495   echo "loading cache $cache_file"
496   . $cache_file
497 else
498   echo "creating cache $cache_file"
499   > $cache_file
500 fi
501
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
508
509 ac_exeext=
510 ac_objext=o
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514     ac_n= ac_c='
515 ' ac_t='        '
516   else
517     ac_n=-n ac_c= ac_t=
518   fi
519 else
520   ac_n= ac_c='\c' ac_t=
521 fi
522
523
524 #AC_CONFIG_HEADER(config.h)
525
526 cp configure.guess config.guess
527 cp configure.sub config.sub
528
529 ac_aux_dir=
530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
531   if test -f $ac_dir/install-sh; then
532     ac_aux_dir=$ac_dir
533     ac_install_sh="$ac_aux_dir/install-sh -c"
534     break
535   elif test -f $ac_dir/install.sh; then
536     ac_aux_dir=$ac_dir
537     ac_install_sh="$ac_aux_dir/install.sh -c"
538     break
539   fi
540 done
541 if test -z "$ac_aux_dir"; then
542   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
543 fi
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547
548
549 # Make sure we can run config.sub.
550 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
551 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
552 fi
553
554 echo $ac_n "checking host system type""... $ac_c" 1>&6
555 echo "configure:556: checking host system type" >&5
556
557 host_alias=$host
558 case "$host_alias" in
559 NONE)
560   case $nonopt in
561   NONE)
562     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
563     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
564     fi ;;
565   *) host_alias=$nonopt ;;
566   esac ;;
567 esac
568
569 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
570 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
571 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
572 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
573 echo "$ac_t""$host" 1>&6
574
575
576 case $host 
577         in *-*-irix*)
578                 if test -z "$CC"; then
579                         CC=cc
580                 fi
581                 echo $ac_n "checking for ALwritesamps in -laudio""... $ac_c" 1>&6
582 echo "configure:583: checking for ALwritesamps in -laudio" >&5
583 ac_lib_var=`echo audio'_'ALwritesamps | sed 'y%./+-%__p_%'`
584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
585   echo $ac_n "(cached) $ac_c" 1>&6
586 else
587   ac_save_LIBS="$LIBS"
588 LIBS="-laudio  $LIBS"
589 cat > conftest.$ac_ext <<EOF
590 #line 591 "configure"
591 #include "confdefs.h"
592 /* Override any gcc2 internal prototype to avoid an error.  */
593 /* We use char because int might match the return type of a gcc2
594     builtin and then its argument prototype would still apply.  */
595 char ALwritesamps();
596
597 int main() {
598 ALwritesamps()
599 ; return 0; }
600 EOF
601 if { (eval echo configure:602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
602   rm -rf conftest*
603   eval "ac_cv_lib_$ac_lib_var=yes"
604 else
605   echo "configure: failed program was:" >&5
606   cat conftest.$ac_ext >&5
607   rm -rf conftest*
608   eval "ac_cv_lib_$ac_lib_var=no"
609 fi
610 rm -f conftest*
611 LIBS="$ac_save_LIBS"
612
613 fi
614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
615   echo "$ac_t""yes" 1>&6
616     ac_tr_lib=HAVE_LIB`echo audio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
617     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
618   cat >> confdefs.h <<EOF
619 #define $ac_tr_lib 1
620 EOF
621
622   LIBS="-laudio $LIBS"
623
624 else
625   echo "$ac_t""no" 1>&6
626 fi
627
628         ;;
629 esac
630
631 if test -z "$CC"; then
632         # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637   echo $ac_n "(cached) $ac_c" 1>&6
638 else
639   if test -n "$CC"; then
640   ac_cv_prog_CC="$CC" # Let the user override the test.
641 else
642   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
643   ac_dummy="$PATH"
644   for ac_dir in $ac_dummy; do
645     test -z "$ac_dir" && ac_dir=.
646     if test -f $ac_dir/$ac_word; then
647       ac_cv_prog_CC="gcc"
648       break
649     fi
650   done
651   IFS="$ac_save_ifs"
652 fi
653 fi
654 CC="$ac_cv_prog_CC"
655 if test -n "$CC"; then
656   echo "$ac_t""$CC" 1>&6
657 else
658   echo "$ac_t""no" 1>&6
659 fi
660
661 if test -z "$CC"; then
662   # Extract the first word of "cc", so it can be a program name with args.
663 set dummy cc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667   echo $ac_n "(cached) $ac_c" 1>&6
668 else
669   if test -n "$CC"; then
670   ac_cv_prog_CC="$CC" # Let the user override the test.
671 else
672   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
673   ac_prog_rejected=no
674   ac_dummy="$PATH"
675   for ac_dir in $ac_dummy; do
676     test -z "$ac_dir" && ac_dir=.
677     if test -f $ac_dir/$ac_word; then
678       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
679         ac_prog_rejected=yes
680         continue
681       fi
682       ac_cv_prog_CC="cc"
683       break
684     fi
685   done
686   IFS="$ac_save_ifs"
687 if test $ac_prog_rejected = yes; then
688   # We found a bogon in the path, so make sure we never use it.
689   set dummy $ac_cv_prog_CC
690   shift
691   if test $# -gt 0; then
692     # We chose a different compiler from the bogus one.
693     # However, it has the same basename, so the bogon will be chosen
694     # first if we set CC to just the basename; use the full file name.
695     shift
696     set dummy "$ac_dir/$ac_word" "$@"
697     shift
698     ac_cv_prog_CC="$@"
699   fi
700 fi
701 fi
702 fi
703 CC="$ac_cv_prog_CC"
704 if test -n "$CC"; then
705   echo "$ac_t""$CC" 1>&6
706 else
707   echo "$ac_t""no" 1>&6
708 fi
709
710   if test -z "$CC"; then
711     case "`uname -s`" in
712     *win32* | *WIN32*)
713       # Extract the first word of "cl", so it can be a program name with args.
714 set dummy cl; ac_word=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718   echo $ac_n "(cached) $ac_c" 1>&6
719 else
720   if test -n "$CC"; then
721   ac_cv_prog_CC="$CC" # Let the user override the test.
722 else
723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
724   ac_dummy="$PATH"
725   for ac_dir in $ac_dummy; do
726     test -z "$ac_dir" && ac_dir=.
727     if test -f $ac_dir/$ac_word; then
728       ac_cv_prog_CC="cl"
729       break
730     fi
731   done
732   IFS="$ac_save_ifs"
733 fi
734 fi
735 CC="$ac_cv_prog_CC"
736 if test -n "$CC"; then
737   echo "$ac_t""$CC" 1>&6
738 else
739   echo "$ac_t""no" 1>&6
740 fi
741  ;;
742     esac
743   fi
744   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
745 fi
746
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
749
750 ac_ext=c
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
756
757 cat > conftest.$ac_ext << EOF
758
759 #line 760 "configure"
760 #include "confdefs.h"
761
762 main(){return(0);}
763 EOF
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765   ac_cv_prog_cc_works=yes
766   # If we can't run a trivial program, we are probably using a cross compiler.
767   if (./conftest; exit) 2>/dev/null; then
768     ac_cv_prog_cc_cross=no
769   else
770     ac_cv_prog_cc_cross=yes
771   fi
772 else
773   echo "configure: failed program was:" >&5
774   cat conftest.$ac_ext >&5
775   ac_cv_prog_cc_works=no
776 fi
777 rm -fr conftest*
778 ac_ext=c
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
784
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
788 fi
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
793
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797   echo $ac_n "(cached) $ac_c" 1>&6
798 else
799   cat > conftest.c <<EOF
800 #ifdef __GNUC__
801   yes;
802 #endif
803 EOF
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805   ac_cv_prog_gcc=yes
806 else
807   ac_cv_prog_gcc=no
808 fi
809 fi
810
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
812
813 if test $ac_cv_prog_gcc = yes; then
814   GCC=yes
815 else
816   GCC=
817 fi
818
819 ac_test_CFLAGS="${CFLAGS+set}"
820 ac_save_CFLAGS="$CFLAGS"
821 CFLAGS=
822 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
825   echo $ac_n "(cached) $ac_c" 1>&6
826 else
827   echo 'void f(){}' > conftest.c
828 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
829   ac_cv_prog_cc_g=yes
830 else
831   ac_cv_prog_cc_g=no
832 fi
833 rm -f conftest*
834
835 fi
836
837 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
838 if test "$ac_test_CFLAGS" = set; then
839   CFLAGS="$ac_save_CFLAGS"
840 elif test $ac_cv_prog_cc_g = yes; then
841   if test "$GCC" = yes; then
842     CFLAGS="-g -O2"
843   else
844     CFLAGS="-g"
845   fi
846 else
847   if test "$GCC" = yes; then
848     CFLAGS="-O2"
849   else
850     CFLAGS=
851   fi
852 fi
853         
854 fi
855 # Extract the first word of "ranlib", so it can be a program name with args.
856 set dummy ranlib; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
860   echo $ac_n "(cached) $ac_c" 1>&6
861 else
862   if test -n "$RANLIB"; then
863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
864 else
865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
866   ac_dummy="$PATH"
867   for ac_dir in $ac_dummy; do
868     test -z "$ac_dir" && ac_dir=.
869     if test -f $ac_dir/$ac_word; then
870       ac_cv_prog_RANLIB="ranlib"
871       break
872     fi
873   done
874   IFS="$ac_save_ifs"
875   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
876 fi
877 fi
878 RANLIB="$ac_cv_prog_RANLIB"
879 if test -n "$RANLIB"; then
880   echo "$ac_t""$RANLIB" 1>&6
881 else
882   echo "$ac_t""no" 1>&6
883 fi
884
885 # Extract the first word of "ar", so it can be a program name with args.
886 set dummy ar; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
890   echo $ac_n "(cached) $ac_c" 1>&6
891 else
892   if test -n "$AR"; then
893   ac_cv_prog_AR="$AR" # Let the user override the test.
894 else
895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
896   ac_dummy="$PATH"
897   for ac_dir in $ac_dummy; do
898     test -z "$ac_dir" && ac_dir=.
899     if test -f $ac_dir/$ac_word; then
900       ac_cv_prog_AR="ar"
901       break
902     fi
903   done
904   IFS="$ac_save_ifs"
905 fi
906 fi
907 AR="$ac_cv_prog_AR"
908 if test -n "$AR"; then
909   echo "$ac_t""$AR" 1>&6
910 else
911   echo "$ac_t""no" 1>&6
912 fi
913
914 # Extract the first word of "install", so it can be a program name with args.
915 set dummy install; ac_word=$2
916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_INSTALL'+set}'`\" = set"; then
919   echo $ac_n "(cached) $ac_c" 1>&6
920 else
921   if test -n "$INSTALL"; then
922   ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
923 else
924   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
925   ac_dummy="$PATH"
926   for ac_dir in $ac_dummy; do
927     test -z "$ac_dir" && ac_dir=.
928     if test -f $ac_dir/$ac_word; then
929       ac_cv_prog_INSTALL="install"
930       break
931     fi
932   done
933   IFS="$ac_save_ifs"
934 fi
935 fi
936 INSTALL="$ac_cv_prog_INSTALL"
937 if test -n "$INSTALL"; then
938   echo "$ac_t""$INSTALL" 1>&6
939 else
940   echo "$ac_t""no" 1>&6
941 fi
942
943
944 if test -z "$GCC"; then
945         case $host in 
946         *-*-irix*)
947                 DEBUG="-g" 
948                 OPT="-O2 -w"
949                 PROFILE="-p -g3 -O2" ;;
950         sparc-sun-solaris*)
951                 DEBUG="-v -g"
952                 OPT="-xO4 -fast -w -fsingle -fsimple -native -xcg92"
953                 PROFILE="-v -xpg -g -xO4 -fast -fsingle -native -fsimple -xcg92 -Dsuncc" ;;
954         *)
955                 DEBUG="-g"
956                 OPT="-O"
957                 PROFILE="-g -p" ;;
958         esac
959 else
960
961 # -D__NO_MATH_INLINES avoids some serious FP assembly related bugs in
962 # glibc 2.0/2.1
963
964         case $host in 
965         *-*-linux*)
966                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
967                 OPT="-O20 -ffast-math -D_REENTRANT -fsigned-char"
968                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
969         sparc-sun-*)
970                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
971                 OPT="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
972                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
973         *)
974                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
975                 OPT="-O20 -D__NO_MATH_INLINES -fsigned-char"
976                 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
977         esac
978 fi
979
980 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
981 echo "configure:982: checking how to run the C preprocessor" >&5
982 # On Suns, sometimes $CPP names a directory.
983 if test -n "$CPP" && test -d "$CPP"; then
984   CPP=
985 fi
986 if test -z "$CPP"; then
987 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990     # This must be in double quotes, not single quotes, because CPP may get
991   # substituted into the Makefile and "${CC-cc}" will confuse make.
992   CPP="${CC-cc} -E"
993   # On the NeXT, cc -E runs the code through the compiler's parser,
994   # not just through cpp.
995   cat > conftest.$ac_ext <<EOF
996 #line 997 "configure"
997 #include "confdefs.h"
998 #include <assert.h>
999 Syntax Error
1000 EOF
1001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1002 { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1004 if test -z "$ac_err"; then
1005   :
1006 else
1007   echo "$ac_err" >&5
1008   echo "configure: failed program was:" >&5
1009   cat conftest.$ac_ext >&5
1010   rm -rf conftest*
1011   CPP="${CC-cc} -E -traditional-cpp"
1012   cat > conftest.$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1015 #include <assert.h>
1016 Syntax Error
1017 EOF
1018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1019 { (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1021 if test -z "$ac_err"; then
1022   :
1023 else
1024   echo "$ac_err" >&5
1025   echo "configure: failed program was:" >&5
1026   cat conftest.$ac_ext >&5
1027   rm -rf conftest*
1028   CPP="${CC-cc} -nologo -E"
1029   cat > conftest.$ac_ext <<EOF
1030 #line 1031 "configure"
1031 #include "confdefs.h"
1032 #include <assert.h>
1033 Syntax Error
1034 EOF
1035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1036 { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1038 if test -z "$ac_err"; then
1039   :
1040 else
1041   echo "$ac_err" >&5
1042   echo "configure: failed program was:" >&5
1043   cat conftest.$ac_ext >&5
1044   rm -rf conftest*
1045   CPP=/lib/cpp
1046 fi
1047 rm -f conftest*
1048 fi
1049 rm -f conftest*
1050 fi
1051 rm -f conftest*
1052   ac_cv_prog_CPP="$CPP"
1053 fi
1054   CPP="$ac_cv_prog_CPP"
1055 else
1056   ac_cv_prog_CPP="$CPP"
1057 fi
1058 echo "$ac_t""$CPP" 1>&6
1059
1060 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1061 echo "configure:1062: checking for ANSI C header files" >&5
1062 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1063   echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065   cat > conftest.$ac_ext <<EOF
1066 #line 1067 "configure"
1067 #include "confdefs.h"
1068 #include <stdlib.h>
1069 #include <stdarg.h>
1070 #include <string.h>
1071 #include <float.h>
1072 EOF
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1077   rm -rf conftest*
1078   ac_cv_header_stdc=yes
1079 else
1080   echo "$ac_err" >&5
1081   echo "configure: failed program was:" >&5
1082   cat conftest.$ac_ext >&5
1083   rm -rf conftest*
1084   ac_cv_header_stdc=no
1085 fi
1086 rm -f conftest*
1087
1088 if test $ac_cv_header_stdc = yes; then
1089   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093 #include <string.h>
1094 EOF
1095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1096   egrep "memchr" >/dev/null 2>&1; then
1097   :
1098 else
1099   rm -rf conftest*
1100   ac_cv_header_stdc=no
1101 fi
1102 rm -f conftest*
1103
1104 fi
1105
1106 if test $ac_cv_header_stdc = yes; then
1107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1111 #include <stdlib.h>
1112 EOF
1113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1114   egrep "free" >/dev/null 2>&1; then
1115   :
1116 else
1117   rm -rf conftest*
1118   ac_cv_header_stdc=no
1119 fi
1120 rm -f conftest*
1121
1122 fi
1123
1124 if test $ac_cv_header_stdc = yes; then
1125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1126 if test "$cross_compiling" = yes; then
1127   :
1128 else
1129   cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1132 #include <ctype.h>
1133 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1134 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1136 int main () { int i; for (i = 0; i < 256; i++)
1137 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1138 exit (0); }
1139
1140 EOF
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1142 then
1143   :
1144 else
1145   echo "configure: failed program was:" >&5
1146   cat conftest.$ac_ext >&5
1147   rm -fr conftest*
1148   ac_cv_header_stdc=no
1149 fi
1150 rm -fr conftest*
1151 fi
1152
1153 fi
1154 fi
1155
1156 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1157 if test $ac_cv_header_stdc = yes; then
1158   cat >> confdefs.h <<\EOF
1159 #define STDC_HEADERS 1
1160 EOF
1161
1162 fi
1163
1164
1165 CFLAGS=""
1166
1167
1168 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1169 echo "configure:1170: checking for pthread_create in -lpthread" >&5
1170 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1172   echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174   ac_save_LIBS="$LIBS"
1175 LIBS="-lpthread  $LIBS"
1176 cat > conftest.$ac_ext <<EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1179 /* Override any gcc2 internal prototype to avoid an error.  */
1180 /* We use char because int might match the return type of a gcc2
1181     builtin and then its argument prototype would still apply.  */
1182 char pthread_create();
1183
1184 int main() {
1185 pthread_create()
1186 ; return 0; }
1187 EOF
1188 if { (eval echo configure:1189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1189   rm -rf conftest*
1190   eval "ac_cv_lib_$ac_lib_var=yes"
1191 else
1192   echo "configure: failed program was:" >&5
1193   cat conftest.$ac_ext >&5
1194   rm -rf conftest*
1195   eval "ac_cv_lib_$ac_lib_var=no"
1196 fi
1197 rm -f conftest*
1198 LIBS="$ac_save_LIBS"
1199
1200 fi
1201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1202   echo "$ac_t""yes" 1>&6
1203   pthread_lib="-lpthread"; cat >> confdefs.h <<\EOF
1204 #define HAVE_LIBPTHREAD 1
1205 EOF
1206
1207 else
1208   echo "$ac_t""no" 1>&6
1209 :
1210 fi
1211
1212
1213
1214 if test -n "$pthread_lib"; then
1215         case $host in 
1216         i?86-*-linux*)
1217                 cat >> confdefs.h <<\EOF
1218 #define _REENTRANT 1
1219 EOF
1220
1221                 ;;
1222         esac
1223 fi
1224
1225 #if test -n "$x_libraries"; then
1226 #       XOGG="yes"
1227 #
1228 #       dnl If we find libgtk installed, great; otherwise assume we have
1229 #       dnl to build it ourselves.
1230 #
1231 #       AC_CHECK_LIB(gtk, gtk_main, :, LIBGTKDIR="libgtk", $X_LIBS -lglib -lgdk -lX11 -lXext -lm)
1232 #
1233 #       dnl libpthread is required for xogg.
1234 #
1235 #       if test -z "$pthread_lib"; then XOGG=""; fi
1236 #
1237 #       dnl If we don't have libgtk installed, and we don't have a libgtk 
1238 #       dnl  subdirectory to build the library ourself, we can't build xogg.
1239 #
1240 #       if test -n "$LIBGTKDIR" -a ! -d "$LIBGTKDIR"; then
1241 #               XOGG=""
1242 #               LIBGTKDIR=""
1243 #       fi
1244 #fi
1245
1246
1247 dummy="__noconf"
1248
1249 #if test -d "$LIBGTKDIR"; then
1250 #       enable_shared="no"; export enable_shared
1251 #       dummy="libgtk"
1252 #       AC_CONFIG_SUBDIRS("$dummy")
1253 #       X_LIBS="-L${srcdir}/libgtk/gtk/.libs -L${srcdir}/libgtk/gdk/.libs -L${srcdir}/libgtk/glib/.libs $X_LIBS"
1254 #fi
1255
1256 echo $ac_n "checking size of short""... $ac_c" 1>&6
1257 echo "configure:1258: checking size of short" >&5
1258 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1259   echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261   if test "$cross_compiling" = yes; then
1262     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1263 else
1264   cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 #include <stdio.h>
1268 main()
1269 {
1270   FILE *f=fopen("conftestval", "w");
1271   if (!f) exit(1);
1272   fprintf(f, "%d\n", sizeof(short));
1273   exit(0);
1274 }
1275 EOF
1276 if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1277 then
1278   ac_cv_sizeof_short=`cat conftestval`
1279 else
1280   echo "configure: failed program was:" >&5
1281   cat conftest.$ac_ext >&5
1282   rm -fr conftest*
1283   ac_cv_sizeof_short=0
1284 fi
1285 rm -fr conftest*
1286 fi
1287
1288 fi
1289 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1290 cat >> confdefs.h <<EOF
1291 #define SIZEOF_SHORT $ac_cv_sizeof_short
1292 EOF
1293
1294
1295 echo $ac_n "checking size of int""... $ac_c" 1>&6
1296 echo "configure:1297: checking size of int" >&5
1297 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1298   echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300   if test "$cross_compiling" = yes; then
1301     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1302 else
1303   cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306 #include <stdio.h>
1307 main()
1308 {
1309   FILE *f=fopen("conftestval", "w");
1310   if (!f) exit(1);
1311   fprintf(f, "%d\n", sizeof(int));
1312   exit(0);
1313 }
1314 EOF
1315 if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1316 then
1317   ac_cv_sizeof_int=`cat conftestval`
1318 else
1319   echo "configure: failed program was:" >&5
1320   cat conftest.$ac_ext >&5
1321   rm -fr conftest*
1322   ac_cv_sizeof_int=0
1323 fi
1324 rm -fr conftest*
1325 fi
1326
1327 fi
1328 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1329 cat >> confdefs.h <<EOF
1330 #define SIZEOF_INT $ac_cv_sizeof_int
1331 EOF
1332
1333
1334 echo $ac_n "checking size of long""... $ac_c" 1>&6
1335 echo "configure:1336: checking size of long" >&5
1336 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1337   echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339   if test "$cross_compiling" = yes; then
1340     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1341 else
1342   cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 #include <stdio.h>
1346 main()
1347 {
1348   FILE *f=fopen("conftestval", "w");
1349   if (!f) exit(1);
1350   fprintf(f, "%d\n", sizeof(long));
1351   exit(0);
1352 }
1353 EOF
1354 if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1355 then
1356   ac_cv_sizeof_long=`cat conftestval`
1357 else
1358   echo "configure: failed program was:" >&5
1359   cat conftest.$ac_ext >&5
1360   rm -fr conftest*
1361   ac_cv_sizeof_long=0
1362 fi
1363 rm -fr conftest*
1364 fi
1365
1366 fi
1367 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1368 cat >> confdefs.h <<EOF
1369 #define SIZEOF_LONG $ac_cv_sizeof_long
1370 EOF
1371
1372
1373 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1374 echo "configure:1375: checking size of long long" >&5
1375 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378   if test "$cross_compiling" = yes; then
1379     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1380 else
1381   cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <stdio.h>
1385 main()
1386 {
1387   FILE *f=fopen("conftestval", "w");
1388   if (!f) exit(1);
1389   fprintf(f, "%d\n", sizeof(long long));
1390   exit(0);
1391 }
1392 EOF
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1394 then
1395   ac_cv_sizeof_long_long=`cat conftestval`
1396 else
1397   echo "configure: failed program was:" >&5
1398   cat conftest.$ac_ext >&5
1399   rm -fr conftest*
1400   ac_cv_sizeof_long_long=0
1401 fi
1402 rm -fr conftest*
1403 fi
1404
1405 fi
1406 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1407 cat >> confdefs.h <<EOF
1408 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1409 EOF
1410
1411
1412
1413 case 2 in
1414         $ac_cv_sizeof_short) SIZE16="short";;
1415         $ac_cv_sizeof_int) SIZE16="int";;
1416 esac
1417
1418 case 4 in
1419         $ac_cv_sizeof_short) SIZE32="short";;
1420         $ac_cv_sizeof_int) SIZE32="int";;
1421         $ac_cv_sizeof_long) SIZE32="long";;
1422 esac
1423
1424 case 8 in
1425         $ac_cv_sizeof_int) SIZE64="int";;
1426         $ac_cv_sizeof_long) SIZE64="long";;
1427         $ac_cv_sizeof_long_long) SIZE64="long long";;
1428 esac
1429
1430 if test -z "$SIZE16"; then
1431         { echo "configure: error: No 16 bit type found on this platform!" 1>&2; exit 1; }
1432 fi
1433 if test -z "$SIZE32"; then
1434         { echo "configure: error: No 32 bit type found on this platform!" 1>&2; exit 1; }
1435 fi
1436 if test -z "$SIZE64"; then
1437         echo "configure: warning: No 64 bit type found on this platform!" 1>&2
1438 fi
1439         
1440 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1441 echo "configure:1442: checking for sys/wait.h that is POSIX.1 compatible" >&5
1442 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1443   echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445   cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <sys/types.h>
1449 #include <sys/wait.h>
1450 #ifndef WEXITSTATUS
1451 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1452 #endif
1453 #ifndef WIFEXITED
1454 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1455 #endif
1456 int main() {
1457 int s;
1458 wait (&s);
1459 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1460 ; return 0; }
1461 EOF
1462 if { (eval echo configure:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1463   rm -rf conftest*
1464   ac_cv_header_sys_wait_h=yes
1465 else
1466   echo "configure: failed program was:" >&5
1467   cat conftest.$ac_ext >&5
1468   rm -rf conftest*
1469   ac_cv_header_sys_wait_h=no
1470 fi
1471 rm -f conftest*
1472 fi
1473
1474 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1475 if test $ac_cv_header_sys_wait_h = yes; then
1476   cat >> confdefs.h <<\EOF
1477 #define HAVE_SYS_WAIT_H 1
1478 EOF
1479
1480 fi
1481
1482 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h
1483 do
1484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1486 echo "configure:1487: checking for $ac_hdr" >&5
1487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1488   echo $ac_n "(cached) $ac_c" 1>&6
1489 else
1490   cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <$ac_hdr>
1494 EOF
1495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496 { (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498 if test -z "$ac_err"; then
1499   rm -rf conftest*
1500   eval "ac_cv_header_$ac_safe=yes"
1501 else
1502   echo "$ac_err" >&5
1503   echo "configure: failed program was:" >&5
1504   cat conftest.$ac_ext >&5
1505   rm -rf conftest*
1506   eval "ac_cv_header_$ac_safe=no"
1507 fi
1508 rm -f conftest*
1509 fi
1510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1511   echo "$ac_t""yes" 1>&6
1512     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1513   cat >> confdefs.h <<EOF
1514 #define $ac_tr_hdr 1
1515 EOF
1516  
1517 else
1518   echo "$ac_t""no" 1>&6
1519 fi
1520 done
1521
1522
1523 echo $ac_n "checking for working const""... $ac_c" 1>&6
1524 echo "configure:1525: checking for working const" >&5
1525 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1526   echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528   cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531
1532 int main() {
1533
1534 /* Ultrix mips cc rejects this.  */
1535 typedef int charset[2]; const charset x = {0,0};
1536 /* SunOS 4.1.1 cc rejects this.  */
1537 char const *const *ccp;
1538 char **p;
1539 /* NEC SVR4.0.2 mips cc rejects this.  */
1540 struct point {int x, y;};
1541 static struct point const zero = {0,0};
1542 /* AIX XL C 1.02.0.0 rejects this.
1543    It does not let you subtract one const X* pointer from another in an arm
1544    of an if-expression whose if-part is not a constant expression */
1545 const char *g = "string";
1546 ccp = &g + (g ? g-g : 0);
1547 /* HPUX 7.0 cc rejects these. */
1548 ++ccp;
1549 p = (char**) ccp;
1550 ccp = (char const *const *) p;
1551 { /* SCO 3.2v4 cc rejects this.  */
1552   char *t;
1553   char const *s = 0 ? (char *) 0 : (char const *) 0;
1554
1555   *t++ = 0;
1556 }
1557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1558   int x[] = {25, 17};
1559   const int *foo = &x[0];
1560   ++foo;
1561 }
1562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1563   typedef const int *iptr;
1564   iptr p = 0;
1565   ++p;
1566 }
1567 { /* AIX XL C 1.02.0.0 rejects this saying
1568      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1569   struct s { int j; const int *ap[3]; };
1570   struct s *b; b->j = 5;
1571 }
1572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1573   const int foo = 10;
1574 }
1575
1576 ; return 0; }
1577 EOF
1578 if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1579   rm -rf conftest*
1580   ac_cv_c_const=yes
1581 else
1582   echo "configure: failed program was:" >&5
1583   cat conftest.$ac_ext >&5
1584   rm -rf conftest*
1585   ac_cv_c_const=no
1586 fi
1587 rm -f conftest*
1588 fi
1589
1590 echo "$ac_t""$ac_cv_c_const" 1>&6
1591 if test $ac_cv_c_const = no; then
1592   cat >> confdefs.h <<\EOF
1593 #define const 
1594 EOF
1595
1596 fi
1597
1598 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether time.h and sys/time.h may both be included" >&5
1600 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1601   echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603   cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <sys/types.h>
1607 #include <sys/time.h>
1608 #include <time.h>
1609 int main() {
1610 struct tm *tp;
1611 ; return 0; }
1612 EOF
1613 if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614   rm -rf conftest*
1615   ac_cv_header_time=yes
1616 else
1617   echo "configure: failed program was:" >&5
1618   cat conftest.$ac_ext >&5
1619   rm -rf conftest*
1620   ac_cv_header_time=no
1621 fi
1622 rm -f conftest*
1623 fi
1624
1625 echo "$ac_t""$ac_cv_header_time" 1>&6
1626 if test $ac_cv_header_time = yes; then
1627   cat >> confdefs.h <<\EOF
1628 #define TIME_WITH_SYS_TIME 1
1629 EOF
1630
1631 fi
1632
1633 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether struct tm is in sys/time.h or time.h" >&5
1635 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1636   echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638   cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1642 #include <time.h>
1643 int main() {
1644 struct tm *tp; tp->tm_sec;
1645 ; return 0; }
1646 EOF
1647 if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648   rm -rf conftest*
1649   ac_cv_struct_tm=time.h
1650 else
1651   echo "configure: failed program was:" >&5
1652   cat conftest.$ac_ext >&5
1653   rm -rf conftest*
1654   ac_cv_struct_tm=sys/time.h
1655 fi
1656 rm -f conftest*
1657 fi
1658
1659 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1660 if test $ac_cv_struct_tm = sys/time.h; then
1661   cat >> confdefs.h <<\EOF
1662 #define TM_IN_SYS_TIME 1
1663 EOF
1664
1665 fi
1666
1667
1668 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ${MAKE-make} sets \${MAKE}" >&5
1670 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1671 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1672   echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674   cat > conftestmake <<\EOF
1675 all:
1676         @echo 'ac_maketemp="${MAKE}"'
1677 EOF
1678 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1679 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1680 if test -n "$ac_maketemp"; then
1681   eval ac_cv_prog_make_${ac_make}_set=yes
1682 else
1683   eval ac_cv_prog_make_${ac_make}_set=no
1684 fi
1685 rm -f conftestmake
1686 fi
1687 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1688   echo "$ac_t""yes" 1>&6
1689   SET_MAKE=
1690 else
1691   echo "$ac_t""no" 1>&6
1692   SET_MAKE="MAKE=${MAKE-make}"
1693 fi
1694
1695 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1696 echo "configure:1697: checking for 8-bit clean memcmp" >&5
1697 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1698   echo $ac_n "(cached) $ac_c" 1>&6
1699 else
1700   if test "$cross_compiling" = yes; then
1701   ac_cv_func_memcmp_clean=no
1702 else
1703   cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706
1707 main()
1708 {
1709   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1710   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1711 }
1712
1713 EOF
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1715 then
1716   ac_cv_func_memcmp_clean=yes
1717 else
1718   echo "configure: failed program was:" >&5
1719   cat conftest.$ac_ext >&5
1720   rm -fr conftest*
1721   ac_cv_func_memcmp_clean=no
1722 fi
1723 rm -fr conftest*
1724 fi
1725
1726 fi
1727
1728 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1729 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1730
1731 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1732 echo "configure:1733: checking return type of signal handlers" >&5
1733 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1734   echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736   cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 #include <sys/types.h>
1740 #include <signal.h>
1741 #ifdef signal
1742 #undef signal
1743 #endif
1744 #ifdef __cplusplus
1745 extern "C" void (*signal (int, void (*)(int)))(int);
1746 #else
1747 void (*signal ()) ();
1748 #endif
1749
1750 int main() {
1751 int i;
1752 ; return 0; }
1753 EOF
1754 if { (eval echo configure:1755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1755   rm -rf conftest*
1756   ac_cv_type_signal=void
1757 else
1758   echo "configure: failed program was:" >&5
1759   cat conftest.$ac_ext >&5
1760   rm -rf conftest*
1761   ac_cv_type_signal=int
1762 fi
1763 rm -f conftest*
1764 fi
1765
1766 echo "$ac_t""$ac_cv_type_signal" 1>&6
1767 cat >> confdefs.h <<EOF
1768 #define RETSIGTYPE $ac_cv_type_signal
1769 EOF
1770
1771
1772 for ac_func in gettimeofday select strcspn strerror strspn sigaction
1773 do
1774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_func" >&5
1776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1777   echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779   cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 /* System header to define __stub macros and hopefully few prototypes,
1783     which can conflict with char $ac_func(); below.  */
1784 #include <assert.h>
1785 /* Override any gcc2 internal prototype to avoid an error.  */
1786 /* We use char because int might match the return type of a gcc2
1787     builtin and then its argument prototype would still apply.  */
1788 char $ac_func();
1789
1790 int main() {
1791
1792 /* The GNU C library defines this for functions which it implements
1793     to always fail with ENOSYS.  Some functions are actually named
1794     something starting with __ and the normal name is an alias.  */
1795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1796 choke me
1797 #else
1798 $ac_func();
1799 #endif
1800
1801 ; return 0; }
1802 EOF
1803 if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1804   rm -rf conftest*
1805   eval "ac_cv_func_$ac_func=yes"
1806 else
1807   echo "configure: failed program was:" >&5
1808   cat conftest.$ac_ext >&5
1809   rm -rf conftest*
1810   eval "ac_cv_func_$ac_func=no"
1811 fi
1812 rm -f conftest*
1813 fi
1814
1815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1816   echo "$ac_t""yes" 1>&6
1817     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1818   cat >> confdefs.h <<EOF
1819 #define $ac_tr_func 1
1820 EOF
1821  
1822 else
1823   echo "$ac_t""no" 1>&6
1824 fi
1825 done
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836 #AC_SUBST(XOGG)
1837 #AC_SUBST(LIBGTKDIR)
1838
1839
1840 trap '' 1 2 15
1841 cat > confcache <<\EOF
1842 # This file is a shell script that caches the results of configure
1843 # tests run on this system so they can be shared between configure
1844 # scripts and configure runs.  It is not useful on other systems.
1845 # If it contains results you don't want to keep, you may remove or edit it.
1846 #
1847 # By default, configure uses ./config.cache as the cache file,
1848 # creating it if it does not exist already.  You can give configure
1849 # the --cache-file=FILE option to use a different cache file; that is
1850 # what configure does when it calls configure scripts in
1851 # subdirectories, so they share the cache.
1852 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1853 # config.status only pays attention to the cache file if you give it the
1854 # --recheck option to rerun configure.
1855 #
1856 EOF
1857 # The following way of writing the cache mishandles newlines in values,
1858 # but we know of no workaround that is simple, portable, and efficient.
1859 # So, don't put newlines in cache variables' values.
1860 # Ultrix sh set writes to stderr and can't be redirected directly,
1861 # and sets the high bit in the cache file unless we assign to the vars.
1862 (set) 2>&1 |
1863   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1864   *ac_space=\ *)
1865     # `set' does not quote correctly, so add quotes (double-quote substitution
1866     # turns \\\\ into \\, and sed turns \\ into \).
1867     sed -n \
1868       -e "s/'/'\\\\''/g" \
1869       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1870     ;;
1871   *)
1872     # `set' quotes correctly as required by POSIX, so do not add quotes.
1873     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1874     ;;
1875   esac >> confcache
1876 if cmp -s $cache_file confcache; then
1877   :
1878 else
1879   if test -w $cache_file; then
1880     echo "updating cache $cache_file"
1881     cat confcache > $cache_file
1882   else
1883     echo "not updating unwritable cache $cache_file"
1884   fi
1885 fi
1886 rm -f confcache
1887
1888 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1889
1890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1891 # Let make expand exec_prefix.
1892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1893
1894 # Any assignment to VPATH causes Sun make to only execute
1895 # the first set of double-colon rules, so remove it if not needed.
1896 # If there is a colon in the path, we need to keep it.
1897 if test "x$srcdir" = x.; then
1898   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1899 fi
1900
1901 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1902
1903 # Transform confdefs.h into DEFS.
1904 # Protect against shell expansion while executing Makefile rules.
1905 # Protect against Makefile macro expansion.
1906 cat > conftest.defs <<\EOF
1907 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1908 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1909 s%\[%\\&%g
1910 s%\]%\\&%g
1911 s%\$%$$%g
1912 EOF
1913 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1914 rm -f conftest.defs
1915
1916
1917 # Without the "./", some shells look in PATH for config.status.
1918 : ${CONFIG_STATUS=./config.status}
1919
1920 echo creating $CONFIG_STATUS
1921 rm -f $CONFIG_STATUS
1922 cat > $CONFIG_STATUS <<EOF
1923 #! /bin/sh
1924 # Generated automatically by configure.
1925 # Run this file to recreate the current configuration.
1926 # This directory was configured as follows,
1927 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1928 #
1929 # $0 $ac_configure_args
1930 #
1931 # Compiler output produced by configure, useful for debugging
1932 # configure, is in ./config.log if it exists.
1933
1934 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1935 for ac_option
1936 do
1937   case "\$ac_option" in
1938   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1939     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1940     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1941   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1942     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1943     exit 0 ;;
1944   -help | --help | --hel | --he | --h)
1945     echo "\$ac_cs_usage"; exit 0 ;;
1946   *) echo "\$ac_cs_usage"; exit 1 ;;
1947   esac
1948 done
1949
1950 ac_given_srcdir=$srcdir
1951
1952 trap 'rm -fr `echo "Makefile lib/Makefile examples/Makefile vorbis-tools/Makefile\
1953         vq/Makefile huff/Makefile cmdline/Makefile xmms/Makefile kmpg/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1954 EOF
1955 cat >> $CONFIG_STATUS <<EOF
1956
1957 # Protect against being on the right side of a sed subst in config.status.
1958 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1959  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1960 $ac_vpsub
1961 $extrasub
1962 s%@SHELL@%$SHELL%g
1963 s%@CFLAGS@%$CFLAGS%g
1964 s%@CPPFLAGS@%$CPPFLAGS%g
1965 s%@CXXFLAGS@%$CXXFLAGS%g
1966 s%@FFLAGS@%$FFLAGS%g
1967 s%@DEFS@%$DEFS%g
1968 s%@LDFLAGS@%$LDFLAGS%g
1969 s%@LIBS@%$LIBS%g
1970 s%@exec_prefix@%$exec_prefix%g
1971 s%@prefix@%$prefix%g
1972 s%@program_transform_name@%$program_transform_name%g
1973 s%@bindir@%$bindir%g
1974 s%@sbindir@%$sbindir%g
1975 s%@libexecdir@%$libexecdir%g
1976 s%@datadir@%$datadir%g
1977 s%@sysconfdir@%$sysconfdir%g
1978 s%@sharedstatedir@%$sharedstatedir%g
1979 s%@localstatedir@%$localstatedir%g
1980 s%@libdir@%$libdir%g
1981 s%@includedir@%$includedir%g
1982 s%@oldincludedir@%$oldincludedir%g
1983 s%@infodir@%$infodir%g
1984 s%@mandir@%$mandir%g
1985 s%@host@%$host%g
1986 s%@host_alias@%$host_alias%g
1987 s%@host_cpu@%$host_cpu%g
1988 s%@host_vendor@%$host_vendor%g
1989 s%@host_os@%$host_os%g
1990 s%@CC@%$CC%g
1991 s%@RANLIB@%$RANLIB%g
1992 s%@AR@%$AR%g
1993 s%@INSTALL@%$INSTALL%g
1994 s%@CPP@%$CPP%g
1995 s%@SET_MAKE@%$SET_MAKE%g
1996 s%@LIBOBJS@%$LIBOBJS%g
1997 s%@SIZE16@%$SIZE16%g
1998 s%@SIZE32@%$SIZE32%g
1999 s%@SIZE64@%$SIZE64%g
2000 s%@OPT@%$OPT%g
2001 s%@DEBUG@%$DEBUG%g
2002 s%@PROFILE@%$PROFILE%g
2003 s%@pthread_lib@%$pthread_lib%g
2004
2005 CEOF
2006 EOF
2007
2008 cat >> $CONFIG_STATUS <<\EOF
2009
2010 # Split the substitutions into bite-sized pieces for seds with
2011 # small command number limits, like on Digital OSF/1 and HP-UX.
2012 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2013 ac_file=1 # Number of current file.
2014 ac_beg=1 # First line for current file.
2015 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2016 ac_more_lines=:
2017 ac_sed_cmds=""
2018 while $ac_more_lines; do
2019   if test $ac_beg -gt 1; then
2020     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2021   else
2022     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2023   fi
2024   if test ! -s conftest.s$ac_file; then
2025     ac_more_lines=false
2026     rm -f conftest.s$ac_file
2027   else
2028     if test -z "$ac_sed_cmds"; then
2029       ac_sed_cmds="sed -f conftest.s$ac_file"
2030     else
2031       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2032     fi
2033     ac_file=`expr $ac_file + 1`
2034     ac_beg=$ac_end
2035     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2036   fi
2037 done
2038 if test -z "$ac_sed_cmds"; then
2039   ac_sed_cmds=cat
2040 fi
2041 EOF
2042
2043 cat >> $CONFIG_STATUS <<EOF
2044
2045 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile examples/Makefile vorbis-tools/Makefile\
2046         vq/Makefile huff/Makefile cmdline/Makefile xmms/Makefile kmpg/Makefile"}
2047 EOF
2048 cat >> $CONFIG_STATUS <<\EOF
2049 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2051   case "$ac_file" in
2052   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2053        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2054   *) ac_file_in="${ac_file}.in" ;;
2055   esac
2056
2057   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2058
2059   # Remove last slash and all that follows it.  Not all systems have dirname.
2060   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2061   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2062     # The file is in a subdirectory.
2063     test ! -d "$ac_dir" && mkdir "$ac_dir"
2064     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2065     # A "../" for each directory in $ac_dir_suffix.
2066     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2067   else
2068     ac_dir_suffix= ac_dots=
2069   fi
2070
2071   case "$ac_given_srcdir" in
2072   .)  srcdir=.
2073       if test -z "$ac_dots"; then top_srcdir=.
2074       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2075   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2076   *) # Relative path.
2077     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2078     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2079   esac
2080
2081
2082   echo creating "$ac_file"
2083   rm -f "$ac_file"
2084   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2085   case "$ac_file" in
2086   *Makefile*) ac_comsub="1i\\
2087 # $configure_input" ;;
2088   *) ac_comsub= ;;
2089   esac
2090
2091   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2092   sed -e "$ac_comsub
2093 s%@configure_input@%$configure_input%g
2094 s%@srcdir@%$srcdir%g
2095 s%@top_srcdir@%$top_srcdir%g
2096 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2097 fi; done
2098 rm -f conftest.s*
2099
2100 EOF
2101 cat >> $CONFIG_STATUS <<EOF
2102
2103 EOF
2104 cat >> $CONFIG_STATUS <<\EOF
2105
2106 exit 0
2107 EOF
2108 chmod +x $CONFIG_STATUS
2109 rm -fr confdefs* $ac_clean_files
2110 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2111
2112