]> git.sesse.net Git - vlc/blob - configure
a7d641f8e0e56d513ea5120b47b2c9d927b26657
[vlc] / 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 ac_help="$ac_help
15   --enable-debug          Enable debug mode (default is no)"
16 ac_help="$ac_help
17   --enable-stats          Enable printing of statistics (default is yes)"
18 ac_help="$ac_help
19   --disable-optimizations Disable compiler optimizations (default enabled)"
20 ac_help="$ac_help
21   --enable-ppro           Enable PentiumPro optimizations (default is no)"
22 ac_help="$ac_help
23   --enable-mmx            Enable MMX optimizations (default is no)"
24 ac_help="$ac_help
25   --enable-dummy          dummy audio and video support (default enabled)"
26 ac_help="$ac_help
27   --enable-dsp            Linux /dev/dsp support (default enabled)"
28 ac_help="$ac_help
29   --enable-esd            Esound library support (default disabled)"
30 ac_help="$ac_help
31   --enable-fb             Linux framebuffer support (default disabled)"
32 ac_help="$ac_help
33   --enable-ggi            GGI support (default disabled)"
34 ac_help="$ac_help
35   --enable-sdl            SDL support (default disabled)"
36 ac_help="$ac_help
37   --enable-glide          Glide (3dfx) support (default disabled)"
38 ac_help="$ac_help
39   --enable-gnome          Gnome support (default disabled)"
40 ac_help="$ac_help
41   --enable-x11            X11 support (default enabled)"
42
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
46 build=NONE
47 cache_file=./config.cache
48 exec_prefix=NONE
49 host=NONE
50 no_create=
51 nonopt=NONE
52 no_recursion=
53 prefix=NONE
54 program_prefix=NONE
55 program_suffix=NONE
56 program_transform_name=s,x,x,
57 silent=
58 site=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
76
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
82 ac_max_here_lines=12
83
84 ac_prev=
85 for ac_option
86 do
87
88   # If the previous option needs an argument, assign it.
89   if test -n "$ac_prev"; then
90     eval "$ac_prev=\$ac_option"
91     ac_prev=
92     continue
93   fi
94
95   case "$ac_option" in
96   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97   *) ac_optarg= ;;
98   esac
99
100   # Accept the important Cygnus configure options, so we can diagnose typos.
101
102   case "$ac_option" in
103
104   -bindir | --bindir | --bindi | --bind | --bin | --bi)
105     ac_prev=bindir ;;
106   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107     bindir="$ac_optarg" ;;
108
109   -build | --build | --buil | --bui | --bu)
110     ac_prev=build ;;
111   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112     build="$ac_optarg" ;;
113
114   -cache-file | --cache-file | --cache-fil | --cache-fi \
115   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116     ac_prev=cache_file ;;
117   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119     cache_file="$ac_optarg" ;;
120
121   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122     ac_prev=datadir ;;
123   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124   | --da=*)
125     datadir="$ac_optarg" ;;
126
127   -disable-* | --disable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     eval "enable_${ac_feature}=no" ;;
135
136   -enable-* | --enable-*)
137     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138     # Reject names that are not valid shell variable names.
139     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141     fi
142     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143     case "$ac_option" in
144       *=*) ;;
145       *) ac_optarg=yes ;;
146     esac
147     eval "enable_${ac_feature}='$ac_optarg'" ;;
148
149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151   | --exec | --exe | --ex)
152     ac_prev=exec_prefix ;;
153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155   | --exec=* | --exe=* | --ex=*)
156     exec_prefix="$ac_optarg" ;;
157
158   -gas | --gas | --ga | --g)
159     # Obsolete; use --with-gas.
160     with_gas=yes ;;
161
162   -help | --help | --hel | --he)
163     # Omit some internal or obsolete options to make the list less imposing.
164     # This message is too long to be a string in the A/UX 3.1 sh.
165     cat << EOF
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
168 Configuration:
169   --cache-file=FILE       cache test results in FILE
170   --help                  print this message
171   --no-create             do not create output files
172   --quiet, --silent       do not print \`checking...' messages
173   --version               print the version of autoconf that created configure
174 Directory and file names:
175   --prefix=PREFIX         install architecture-independent files in PREFIX
176                           [$ac_default_prefix]
177   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
178                           [same as prefix]
179   --bindir=DIR            user executables in DIR [EPREFIX/bin]
180   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
181   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
182   --datadir=DIR           read-only architecture-independent data in DIR
183                           [PREFIX/share]
184   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
185   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
186                           [PREFIX/com]
187   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
188   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
189   --includedir=DIR        C header files in DIR [PREFIX/include]
190   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
191   --infodir=DIR           info documentation in DIR [PREFIX/info]
192   --mandir=DIR            man documentation in DIR [PREFIX/man]
193   --srcdir=DIR            find the sources in DIR [configure dir or ..]
194   --program-prefix=PREFIX prepend PREFIX to installed program names
195   --program-suffix=SUFFIX append SUFFIX to installed program names
196   --program-transform-name=PROGRAM
197                           run sed PROGRAM on installed program names
198 EOF
199     cat << EOF
200 Host type:
201   --build=BUILD           configure for building on BUILD [BUILD=HOST]
202   --host=HOST             configure for HOST [guessed]
203   --target=TARGET         configure for TARGET [TARGET=HOST]
204 Features and packages:
205   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
206   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
207   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
208   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
209   --x-includes=DIR        X include files are in DIR
210   --x-libraries=DIR       X library files are in DIR
211 EOF
212     if test -n "$ac_help"; then
213       echo "--enable and --with options recognized:$ac_help"
214     fi
215     exit 0 ;;
216
217   -host | --host | --hos | --ho)
218     ac_prev=host ;;
219   -host=* | --host=* | --hos=* | --ho=*)
220     host="$ac_optarg" ;;
221
222   -includedir | --includedir | --includedi | --included | --include \
223   | --includ | --inclu | --incl | --inc)
224     ac_prev=includedir ;;
225   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226   | --includ=* | --inclu=* | --incl=* | --inc=*)
227     includedir="$ac_optarg" ;;
228
229   -infodir | --infodir | --infodi | --infod | --info | --inf)
230     ac_prev=infodir ;;
231   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232     infodir="$ac_optarg" ;;
233
234   -libdir | --libdir | --libdi | --libd)
235     ac_prev=libdir ;;
236   -libdir=* | --libdir=* | --libdi=* | --libd=*)
237     libdir="$ac_optarg" ;;
238
239   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240   | --libexe | --libex | --libe)
241     ac_prev=libexecdir ;;
242   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243   | --libexe=* | --libex=* | --libe=*)
244     libexecdir="$ac_optarg" ;;
245
246   -localstatedir | --localstatedir | --localstatedi | --localstated \
247   | --localstate | --localstat | --localsta | --localst \
248   | --locals | --local | --loca | --loc | --lo)
249     ac_prev=localstatedir ;;
250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253     localstatedir="$ac_optarg" ;;
254
255   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256     ac_prev=mandir ;;
257   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258     mandir="$ac_optarg" ;;
259
260   -nfp | --nfp | --nf)
261     # Obsolete; use --without-fp.
262     with_fp=no ;;
263
264   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265   | --no-cr | --no-c)
266     no_create=yes ;;
267
268   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270     no_recursion=yes ;;
271
272   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274   | --oldin | --oldi | --old | --ol | --o)
275     ac_prev=oldincludedir ;;
276   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279     oldincludedir="$ac_optarg" ;;
280
281   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282     ac_prev=prefix ;;
283   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284     prefix="$ac_optarg" ;;
285
286   -program-prefix | --program-prefix | --program-prefi | --program-pref \
287   | --program-pre | --program-pr | --program-p)
288     ac_prev=program_prefix ;;
289   -program-prefix=* | --program-prefix=* | --program-prefi=* \
290   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291     program_prefix="$ac_optarg" ;;
292
293   -program-suffix | --program-suffix | --program-suffi | --program-suff \
294   | --program-suf | --program-su | --program-s)
295     ac_prev=program_suffix ;;
296   -program-suffix=* | --program-suffix=* | --program-suffi=* \
297   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298     program_suffix="$ac_optarg" ;;
299
300   -program-transform-name | --program-transform-name \
301   | --program-transform-nam | --program-transform-na \
302   | --program-transform-n | --program-transform- \
303   | --program-transform | --program-transfor \
304   | --program-transfo | --program-transf \
305   | --program-trans | --program-tran \
306   | --progr-tra | --program-tr | --program-t)
307     ac_prev=program_transform_name ;;
308   -program-transform-name=* | --program-transform-name=* \
309   | --program-transform-nam=* | --program-transform-na=* \
310   | --program-transform-n=* | --program-transform-=* \
311   | --program-transform=* | --program-transfor=* \
312   | --program-transfo=* | --program-transf=* \
313   | --program-trans=* | --program-tran=* \
314   | --progr-tra=* | --program-tr=* | --program-t=*)
315     program_transform_name="$ac_optarg" ;;
316
317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318   | -silent | --silent | --silen | --sile | --sil)
319     silent=yes ;;
320
321   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322     ac_prev=sbindir ;;
323   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324   | --sbi=* | --sb=*)
325     sbindir="$ac_optarg" ;;
326
327   -sharedstatedir | --sharedstatedir | --sharedstatedi \
328   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329   | --sharedst | --shareds | --shared | --share | --shar \
330   | --sha | --sh)
331     ac_prev=sharedstatedir ;;
332   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335   | --sha=* | --sh=*)
336     sharedstatedir="$ac_optarg" ;;
337
338   -site | --site | --sit)
339     ac_prev=site ;;
340   -site=* | --site=* | --sit=*)
341     site="$ac_optarg" ;;
342
343   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344     ac_prev=srcdir ;;
345   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346     srcdir="$ac_optarg" ;;
347
348   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349   | --syscon | --sysco | --sysc | --sys | --sy)
350     ac_prev=sysconfdir ;;
351   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353     sysconfdir="$ac_optarg" ;;
354
355   -target | --target | --targe | --targ | --tar | --ta | --t)
356     ac_prev=target ;;
357   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358     target="$ac_optarg" ;;
359
360   -v | -verbose | --verbose | --verbos | --verbo | --verb)
361     verbose=yes ;;
362
363   -version | --version | --versio | --versi | --vers)
364     echo "configure generated by autoconf version 2.13"
365     exit 0 ;;
366
367   -with-* | --with-*)
368     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     case "$ac_option" in
375       *=*) ;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "with_${ac_package}='$ac_optarg'" ;;
379
380   -without-* | --without-*)
381     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382     # Reject names that are not valid shell variable names.
383     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385     fi
386     ac_package=`echo $ac_package| sed 's/-/_/g'`
387     eval "with_${ac_package}=no" ;;
388
389   --x)
390     # Obsolete; use --with-x.
391     with_x=yes ;;
392
393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394   | --x-incl | --x-inc | --x-in | --x-i)
395     ac_prev=x_includes ;;
396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398     x_includes="$ac_optarg" ;;
399
400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402     ac_prev=x_libraries ;;
403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405     x_libraries="$ac_optarg" ;;
406
407   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408     ;;
409
410   *)
411     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412       echo "configure: warning: $ac_option: invalid host type" 1>&2
413     fi
414     if test "x$nonopt" != xNONE; then
415       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416     fi
417     nonopt="$ac_option"
418     ;;
419
420   esac
421 done
422
423 if test -n "$ac_prev"; then
424   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 fi
426
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438   exec 6>/dev/null
439 else
440   exec 6>&1
441 fi
442 exec 5>./config.log
443
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
448
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
453 do
454   case "$ac_arg" in
455   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456   | --no-cr | --no-c) ;;
457   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462   esac
463 done
464
465 # NLS nuisances.
466 # Only set these to C if already set.  These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
474
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
479
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=src/interface/main.c
483
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486   ac_srcdir_defaulted=yes
487   # Try the directory containing this script, then its parent.
488   ac_prog=$0
489   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491   srcdir=$ac_confdir
492   if test ! -r $srcdir/$ac_unique_file; then
493     srcdir=..
494   fi
495 else
496   ac_srcdir_defaulted=no
497 fi
498 if test ! -r $srcdir/$ac_unique_file; then
499   if test "$ac_srcdir_defaulted" = yes; then
500     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501   else
502     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503   fi
504 fi
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509   if test "x$prefix" != xNONE; then
510     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511   else
512     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513   fi
514 fi
515 for ac_site_file in $CONFIG_SITE; do
516   if test -r "$ac_site_file"; then
517     echo "loading site script $ac_site_file"
518     . "$ac_site_file"
519   fi
520 done
521
522 if test -r "$cache_file"; then
523   echo "loading cache $cache_file"
524   . $cache_file
525 else
526   echo "creating cache $cache_file"
527   > $cache_file
528 fi
529
530 ac_ext=c
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
536
537 ac_exeext=
538 ac_objext=o
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542     ac_n= ac_c='
543 ' ac_t='        '
544   else
545     ac_n=-n ac_c= ac_t=
546   fi
547 else
548   ac_n= ac_c='\c' ac_t=
549 fi
550
551
552
553
554 ac_aux_dir=
555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
556   if test -f $ac_dir/install-sh; then
557     ac_aux_dir=$ac_dir
558     ac_install_sh="$ac_aux_dir/install-sh -c"
559     break
560   elif test -f $ac_dir/install.sh; then
561     ac_aux_dir=$ac_dir
562     ac_install_sh="$ac_aux_dir/install.sh -c"
563     break
564   fi
565 done
566 if test -z "$ac_aux_dir"; then
567   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
568 fi
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572
573
574 # Make sure we can run config.sub.
575 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
576 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
577 fi
578
579 echo $ac_n "checking host system type""... $ac_c" 1>&6
580 echo "configure:575: checking host system type" >&5
581
582 host_alias=$host
583 case "$host_alias" in
584 NONE)
585   case $nonopt in
586   NONE)
587     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
588     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
589     fi ;;
590   *) host_alias=$nonopt ;;
591   esac ;;
592 esac
593
594 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
595 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
596 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
597 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
598 echo "$ac_t""$host" 1>&6
599
600
601 VLC_VERSION=0.1.99i
602
603 VLC_CODENAME=Onatopp
604
605
606 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
607 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
608 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
609 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
610   echo $ac_n "(cached) $ac_c" 1>&6
611 else
612   cat > conftestmake <<\EOF
613 all:
614         @echo 'ac_maketemp="${MAKE}"'
615 EOF
616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
617 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
618 if test -n "$ac_maketemp"; then
619   eval ac_cv_prog_make_${ac_make}_set=yes
620 else
621   eval ac_cv_prog_make_${ac_make}_set=no
622 fi
623 rm -f conftestmake
624 fi
625 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
626   echo "$ac_t""yes" 1>&6
627   SET_MAKE=
628 else
629   echo "$ac_t""no" 1>&6
630   SET_MAKE="MAKE=${MAKE-make}"
631 fi
632
633 if test -z "$CC"; then
634   # Extract the first word of "gcc", so it can be a program name with args.
635 set dummy gcc; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:632: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639   echo $ac_n "(cached) $ac_c" 1>&6
640 else
641   if test -n "$CC"; then
642   ac_cv_prog_CC="$CC" # Let the user override the test.
643 else
644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
645   ac_dummy="$PATH"
646   for ac_dir in $ac_dummy; do
647     test -z "$ac_dir" && ac_dir=.
648     if test -f $ac_dir/$ac_word; then
649       ac_cv_prog_CC="gcc"
650       break
651     fi
652   done
653   IFS="$ac_save_ifs"
654 fi
655 fi
656 CC="$ac_cv_prog_CC"
657 if test -n "$CC"; then
658   echo "$ac_t""$CC" 1>&6
659 else
660   echo "$ac_t""no" 1>&6
661 fi
662
663 if test -z "$CC"; then
664   # Extract the first word of "cc", so it can be a program name with args.
665 set dummy cc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:662: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669   echo $ac_n "(cached) $ac_c" 1>&6
670 else
671   if test -n "$CC"; then
672   ac_cv_prog_CC="$CC" # Let the user override the test.
673 else
674   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
675   ac_prog_rejected=no
676   ac_dummy="$PATH"
677   for ac_dir in $ac_dummy; do
678     test -z "$ac_dir" && ac_dir=.
679     if test -f $ac_dir/$ac_word; then
680       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
681         ac_prog_rejected=yes
682         continue
683       fi
684       ac_cv_prog_CC="cc"
685       break
686     fi
687   done
688   IFS="$ac_save_ifs"
689 if test $ac_prog_rejected = yes; then
690   # We found a bogon in the path, so make sure we never use it.
691   set dummy $ac_cv_prog_CC
692   shift
693   if test $# -gt 0; then
694     # We chose a different compiler from the bogus one.
695     # However, it has the same basename, so the bogon will be chosen
696     # first if we set CC to just the basename; use the full file name.
697     shift
698     set dummy "$ac_dir/$ac_word" "$@"
699     shift
700     ac_cv_prog_CC="$@"
701   fi
702 fi
703 fi
704 fi
705 CC="$ac_cv_prog_CC"
706 if test -n "$CC"; then
707   echo "$ac_t""$CC" 1>&6
708 else
709   echo "$ac_t""no" 1>&6
710 fi
711
712   if test -z "$CC"; then
713     case "`uname -s`" in
714     *win32* | *WIN32*)
715       # Extract the first word of "cl", so it can be a program name with args.
716 set dummy cl; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:713: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720   echo $ac_n "(cached) $ac_c" 1>&6
721 else
722   if test -n "$CC"; then
723   ac_cv_prog_CC="$CC" # Let the user override the test.
724 else
725   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
726   ac_dummy="$PATH"
727   for ac_dir in $ac_dummy; do
728     test -z "$ac_dir" && ac_dir=.
729     if test -f $ac_dir/$ac_word; then
730       ac_cv_prog_CC="cl"
731       break
732     fi
733   done
734   IFS="$ac_save_ifs"
735 fi
736 fi
737 CC="$ac_cv_prog_CC"
738 if test -n "$CC"; then
739   echo "$ac_t""$CC" 1>&6
740 else
741   echo "$ac_t""no" 1>&6
742 fi
743  ;;
744     esac
745   fi
746   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 fi
748
749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
750 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
751
752 ac_ext=c
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
758
759 cat > conftest.$ac_ext << EOF
760
761 #line 756 "configure"
762 #include "confdefs.h"
763
764 main(){return(0);}
765 EOF
766 if { (eval echo configure:761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
767   ac_cv_prog_cc_works=yes
768   # If we can't run a trivial program, we are probably using a cross compiler.
769   if (./conftest; exit) 2>/dev/null; then
770     ac_cv_prog_cc_cross=no
771   else
772     ac_cv_prog_cc_cross=yes
773   fi
774 else
775   echo "configure: failed program was:" >&5
776   cat conftest.$ac_ext >&5
777   ac_cv_prog_cc_works=no
778 fi
779 rm -fr conftest*
780 ac_ext=c
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
786
787 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
788 if test $ac_cv_prog_cc_works = no; then
789   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
790 fi
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
792 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
793 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
794 cross_compiling=$ac_cv_prog_cc_cross
795
796 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
797 echo "configure:792: checking whether we are using GNU C" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   cat > conftest.c <<EOF
802 #ifdef __GNUC__
803   yes;
804 #endif
805 EOF
806 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
807   ac_cv_prog_gcc=yes
808 else
809   ac_cv_prog_gcc=no
810 fi
811 fi
812
813 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
814
815 if test $ac_cv_prog_gcc = yes; then
816   GCC=yes
817 else
818   GCC=
819 fi
820
821 ac_test_CFLAGS="${CFLAGS+set}"
822 ac_save_CFLAGS="$CFLAGS"
823 CFLAGS=
824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
825 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
827   echo $ac_n "(cached) $ac_c" 1>&6
828 else
829   echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
831   ac_cv_prog_cc_g=yes
832 else
833   ac_cv_prog_cc_g=no
834 fi
835 rm -f conftest*
836
837 fi
838
839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
840 if test "$ac_test_CFLAGS" = set; then
841   CFLAGS="$ac_save_CFLAGS"
842 elif test $ac_cv_prog_cc_g = yes; then
843   if test "$GCC" = yes; then
844     CFLAGS="-g -O2"
845   else
846     CFLAGS="-g"
847   fi
848 else
849   if test "$GCC" = yes; then
850     CFLAGS="-O2"
851   else
852     CFLAGS=
853   fi
854 fi
855
856 fi
857 if test -z "$CPP"; then
858   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
859 echo "configure:854: checking how to run the C preprocessor" >&5
860 # On Suns, sometimes $CPP names a directory.
861 if test -n "$CPP" && test -d "$CPP"; then
862   CPP=
863 fi
864 if test -z "$CPP"; then
865 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
866   echo $ac_n "(cached) $ac_c" 1>&6
867 else
868     # This must be in double quotes, not single quotes, because CPP may get
869   # substituted into the Makefile and "${CC-cc}" will confuse make.
870   CPP="${CC-cc} -E"
871   # On the NeXT, cc -E runs the code through the compiler's parser,
872   # not just through cpp.
873   cat > conftest.$ac_ext <<EOF
874 #line 869 "configure"
875 #include "confdefs.h"
876 #include <assert.h>
877 Syntax Error
878 EOF
879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
880 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
882 if test -z "$ac_err"; then
883   :
884 else
885   echo "$ac_err" >&5
886   echo "configure: failed program was:" >&5
887   cat conftest.$ac_ext >&5
888   rm -rf conftest*
889   CPP="${CC-cc} -E -traditional-cpp"
890   cat > conftest.$ac_ext <<EOF
891 #line 886 "configure"
892 #include "confdefs.h"
893 #include <assert.h>
894 Syntax Error
895 EOF
896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
897 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
899 if test -z "$ac_err"; then
900   :
901 else
902   echo "$ac_err" >&5
903   echo "configure: failed program was:" >&5
904   cat conftest.$ac_ext >&5
905   rm -rf conftest*
906   CPP="${CC-cc} -nologo -E"
907   cat > conftest.$ac_ext <<EOF
908 #line 903 "configure"
909 #include "confdefs.h"
910 #include <assert.h>
911 Syntax Error
912 EOF
913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916 if test -z "$ac_err"; then
917   :
918 else
919   echo "$ac_err" >&5
920   echo "configure: failed program was:" >&5
921   cat conftest.$ac_ext >&5
922   rm -rf conftest*
923   CPP=/lib/cpp
924 fi
925 rm -f conftest*
926 fi
927 rm -f conftest*
928 fi
929 rm -f conftest*
930   ac_cv_prog_CPP="$CPP"
931 fi
932   CPP="$ac_cv_prog_CPP"
933 else
934   ac_cv_prog_CPP="$CPP"
935 fi
936 echo "$ac_t""$CPP" 1>&6
937
938 fi
939
940 # Find a good install program.  We prefer a C program (faster),
941 # so one script is as good as another.  But avoid the broken or
942 # incompatible versions:
943 # SysV /etc/install, /usr/sbin/install
944 # SunOS /usr/etc/install
945 # IRIX /sbin/install
946 # AIX /bin/install
947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
950 # ./install, which can be erroneously created by make from ./install.sh.
951 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
952 echo "configure:947: checking for a BSD compatible install" >&5
953 if test -z "$INSTALL"; then
954 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
955   echo $ac_n "(cached) $ac_c" 1>&6
956 else
957     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
958   for ac_dir in $PATH; do
959     # Account for people who put trailing slashes in PATH elements.
960     case "$ac_dir/" in
961     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
962     *)
963       # OSF1 and SCO ODT 3.0 have their own names for install.
964       # Don't use installbsd from OSF since it installs stuff as root
965       # by default.
966       for ac_prog in ginstall scoinst install; do
967         if test -f $ac_dir/$ac_prog; then
968           if test $ac_prog = install &&
969             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
970             # AIX install.  It has an incompatible calling convention.
971             :
972           else
973             ac_cv_path_install="$ac_dir/$ac_prog -c"
974             break 2
975           fi
976         fi
977       done
978       ;;
979     esac
980   done
981   IFS="$ac_save_IFS"
982
983 fi
984   if test "${ac_cv_path_install+set}" = set; then
985     INSTALL="$ac_cv_path_install"
986   else
987     # As a last resort, use the slow shell script.  We don't cache a
988     # path for INSTALL within a source directory, because that will
989     # break other packages using the cache if that directory is
990     # removed, or if the path is relative.
991     INSTALL="$ac_install_sh"
992   fi
993 fi
994 echo "$ac_t""$INSTALL" 1>&6
995
996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
997 # It thinks the first close brace ends the variable substitution.
998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
999
1000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1001
1002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1003
1004
1005 echo $ac_n "checking for working const""... $ac_c" 1>&6
1006 echo "configure:1001: checking for working const" >&5
1007 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1008   echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010   cat > conftest.$ac_ext <<EOF
1011 #line 1006 "configure"
1012 #include "confdefs.h"
1013
1014 int main() {
1015
1016 /* Ultrix mips cc rejects this.  */
1017 typedef int charset[2]; const charset x = {0,0};
1018 /* SunOS 4.1.1 cc rejects this.  */
1019 char const *const *ccp;
1020 char **p;
1021 /* NEC SVR4.0.2 mips cc rejects this.  */
1022 struct point {int x, y;};
1023 static struct point const zero = {0,0};
1024 /* AIX XL C 1.02.0.0 rejects this.
1025    It does not let you subtract one const X* pointer from another in an arm
1026    of an if-expression whose if-part is not a constant expression */
1027 const char *g = "string";
1028 ccp = &g + (g ? g-g : 0);
1029 /* HPUX 7.0 cc rejects these. */
1030 ++ccp;
1031 p = (char**) ccp;
1032 ccp = (char const *const *) p;
1033 { /* SCO 3.2v4 cc rejects this.  */
1034   char *t;
1035   char const *s = 0 ? (char *) 0 : (char const *) 0;
1036
1037   *t++ = 0;
1038 }
1039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1040   int x[] = {25, 17};
1041   const int *foo = &x[0];
1042   ++foo;
1043 }
1044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1045   typedef const int *iptr;
1046   iptr p = 0;
1047   ++p;
1048 }
1049 { /* AIX XL C 1.02.0.0 rejects this saying
1050      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1051   struct s { int j; const int *ap[3]; };
1052   struct s *b; b->j = 5;
1053 }
1054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1055   const int foo = 10;
1056 }
1057
1058 ; return 0; }
1059 EOF
1060 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1061   rm -rf conftest*
1062   ac_cv_c_const=yes
1063 else
1064   echo "configure: failed program was:" >&5
1065   cat conftest.$ac_ext >&5
1066   rm -rf conftest*
1067   ac_cv_c_const=no
1068 fi
1069 rm -f conftest*
1070 fi
1071
1072 echo "$ac_t""$ac_cv_c_const" 1>&6
1073 if test $ac_cv_c_const = no; then
1074   cat >> confdefs.h <<\EOF
1075 #define const 
1076 EOF
1077
1078 fi
1079
1080 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1081 echo "configure:1076: checking whether byte ordering is bigendian" >&5
1082 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1083   echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085   ac_cv_c_bigendian=unknown
1086 # See if sys/param.h defines the BYTE_ORDER macro.
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1083 "configure"
1089 #include "confdefs.h"
1090 #include <sys/types.h>
1091 #include <sys/param.h>
1092 int main() {
1093
1094 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1095  bogus endian macros
1096 #endif
1097 ; return 0; }
1098 EOF
1099 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1100   rm -rf conftest*
1101   # It does; now see whether it defined to BIG_ENDIAN or not.
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1098 "configure"
1104 #include "confdefs.h"
1105 #include <sys/types.h>
1106 #include <sys/param.h>
1107 int main() {
1108
1109 #if BYTE_ORDER != BIG_ENDIAN
1110  not big endian
1111 #endif
1112 ; return 0; }
1113 EOF
1114 if { (eval echo configure:1109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115   rm -rf conftest*
1116   ac_cv_c_bigendian=yes
1117 else
1118   echo "configure: failed program was:" >&5
1119   cat conftest.$ac_ext >&5
1120   rm -rf conftest*
1121   ac_cv_c_bigendian=no
1122 fi
1123 rm -f conftest*
1124 else
1125   echo "configure: failed program was:" >&5
1126   cat conftest.$ac_ext >&5
1127 fi
1128 rm -f conftest*
1129 if test $ac_cv_c_bigendian = unknown; then
1130 if test "$cross_compiling" = yes; then
1131     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1132 else
1133   cat > conftest.$ac_ext <<EOF
1134 #line 1129 "configure"
1135 #include "confdefs.h"
1136 main () {
1137   /* Are we little or big endian?  From Harbison&Steele.  */
1138   union
1139   {
1140     long l;
1141     char c[sizeof (long)];
1142   } u;
1143   u.l = 1;
1144   exit (u.c[sizeof (long) - 1] == 1);
1145 }
1146 EOF
1147 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1148 then
1149   ac_cv_c_bigendian=no
1150 else
1151   echo "configure: failed program was:" >&5
1152   cat conftest.$ac_ext >&5
1153   rm -fr conftest*
1154   ac_cv_c_bigendian=yes
1155 fi
1156 rm -fr conftest*
1157 fi
1158
1159 fi
1160 fi
1161
1162 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1163 if test $ac_cv_c_bigendian = yes; then
1164   cat >> confdefs.h <<\EOF
1165 #define WORDS_BIGENDIAN 1
1166 EOF
1167
1168 fi
1169
1170
1171 for ac_func in gettimeofday select strerror strtod strtol
1172 do
1173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1174 echo "configure:1169: checking for $ac_func" >&5
1175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1176   echo $ac_n "(cached) $ac_c" 1>&6
1177 else
1178   cat > conftest.$ac_ext <<EOF
1179 #line 1174 "configure"
1180 #include "confdefs.h"
1181 /* System header to define __stub macros and hopefully few prototypes,
1182     which can conflict with char $ac_func(); below.  */
1183 #include <assert.h>
1184 /* Override any gcc2 internal prototype to avoid an error.  */
1185 /* We use char because int might match the return type of a gcc2
1186     builtin and then its argument prototype would still apply.  */
1187 char $ac_func();
1188
1189 int main() {
1190
1191 /* The GNU C library defines this for functions which it implements
1192     to always fail with ENOSYS.  Some functions are actually named
1193     something starting with __ and the normal name is an alias.  */
1194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1195 choke me
1196 #else
1197 $ac_func();
1198 #endif
1199
1200 ; return 0; }
1201 EOF
1202 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1203   rm -rf conftest*
1204   eval "ac_cv_func_$ac_func=yes"
1205 else
1206   echo "configure: failed program was:" >&5
1207   cat conftest.$ac_ext >&5
1208   rm -rf conftest*
1209   eval "ac_cv_func_$ac_func=no"
1210 fi
1211 rm -f conftest*
1212 fi
1213
1214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1215   echo "$ac_t""yes" 1>&6
1216     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1217   cat >> confdefs.h <<EOF
1218 #define $ac_tr_func 1
1219 EOF
1220  
1221 else
1222   echo "$ac_t""no" 1>&6
1223 fi
1224 done
1225
1226 for ac_func in setenv putenv
1227 do
1228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1229 echo "configure:1224: checking for $ac_func" >&5
1230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1231   echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1229 "configure"
1235 #include "confdefs.h"
1236 /* System header to define __stub macros and hopefully few prototypes,
1237     which can conflict with char $ac_func(); below.  */
1238 #include <assert.h>
1239 /* Override any gcc2 internal prototype to avoid an error.  */
1240 /* We use char because int might match the return type of a gcc2
1241     builtin and then its argument prototype would still apply.  */
1242 char $ac_func();
1243
1244 int main() {
1245
1246 /* The GNU C library defines this for functions which it implements
1247     to always fail with ENOSYS.  Some functions are actually named
1248     something starting with __ and the normal name is an alias.  */
1249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1250 choke me
1251 #else
1252 $ac_func();
1253 #endif
1254
1255 ; return 0; }
1256 EOF
1257 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1258   rm -rf conftest*
1259   eval "ac_cv_func_$ac_func=yes"
1260 else
1261   echo "configure: failed program was:" >&5
1262   cat conftest.$ac_ext >&5
1263   rm -rf conftest*
1264   eval "ac_cv_func_$ac_func=no"
1265 fi
1266 rm -f conftest*
1267 fi
1268
1269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1270   echo "$ac_t""yes" 1>&6
1271     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1272   cat >> confdefs.h <<EOF
1273 #define $ac_tr_func 1
1274 EOF
1275  
1276 else
1277   echo "$ac_t""no" 1>&6
1278 fi
1279 done
1280
1281 echo $ac_n "checking for connect""... $ac_c" 1>&6
1282 echo "configure:1277: checking for connect" >&5
1283 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1284   echo $ac_n "(cached) $ac_c" 1>&6
1285 else
1286   cat > conftest.$ac_ext <<EOF
1287 #line 1282 "configure"
1288 #include "confdefs.h"
1289 /* System header to define __stub macros and hopefully few prototypes,
1290     which can conflict with char connect(); below.  */
1291 #include <assert.h>
1292 /* Override any gcc2 internal prototype to avoid an error.  */
1293 /* We use char because int might match the return type of a gcc2
1294     builtin and then its argument prototype would still apply.  */
1295 char connect();
1296
1297 int main() {
1298
1299 /* The GNU C library defines this for functions which it implements
1300     to always fail with ENOSYS.  Some functions are actually named
1301     something starting with __ and the normal name is an alias.  */
1302 #if defined (__stub_connect) || defined (__stub___connect)
1303 choke me
1304 #else
1305 connect();
1306 #endif
1307
1308 ; return 0; }
1309 EOF
1310 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1311   rm -rf conftest*
1312   eval "ac_cv_func_connect=yes"
1313 else
1314   echo "configure: failed program was:" >&5
1315   cat conftest.$ac_ext >&5
1316   rm -rf conftest*
1317   eval "ac_cv_func_connect=no"
1318 fi
1319 rm -f conftest*
1320 fi
1321
1322 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1323   echo "$ac_t""yes" 1>&6
1324   :
1325 else
1326   echo "$ac_t""no" 1>&6
1327 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1328 echo "configure:1323: checking for connect in -lsocket" >&5
1329 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331   echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333   ac_save_LIBS="$LIBS"
1334 LIBS="-lsocket  $LIBS"
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1331 "configure"
1337 #include "confdefs.h"
1338 /* Override any gcc2 internal prototype to avoid an error.  */
1339 /* We use char because int might match the return type of a gcc2
1340     builtin and then its argument prototype would still apply.  */
1341 char connect();
1342
1343 int main() {
1344 connect()
1345 ; return 0; }
1346 EOF
1347 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1348   rm -rf conftest*
1349   eval "ac_cv_lib_$ac_lib_var=yes"
1350 else
1351   echo "configure: failed program was:" >&5
1352   cat conftest.$ac_ext >&5
1353   rm -rf conftest*
1354   eval "ac_cv_lib_$ac_lib_var=no"
1355 fi
1356 rm -f conftest*
1357 LIBS="$ac_save_LIBS"
1358
1359 fi
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361   echo "$ac_t""yes" 1>&6
1362     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1363     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1364   cat >> confdefs.h <<EOF
1365 #define $ac_tr_lib 1
1366 EOF
1367
1368   LIBS="-lsocket $LIBS"
1369
1370 else
1371   echo "$ac_t""no" 1>&6
1372 fi
1373
1374 fi
1375
1376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1377 echo "configure:1372: checking for gethostbyname" >&5
1378 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1379   echo $ac_n "(cached) $ac_c" 1>&6
1380 else
1381   cat > conftest.$ac_ext <<EOF
1382 #line 1377 "configure"
1383 #include "confdefs.h"
1384 /* System header to define __stub macros and hopefully few prototypes,
1385     which can conflict with char gethostbyname(); below.  */
1386 #include <assert.h>
1387 /* Override any gcc2 internal prototype to avoid an error.  */
1388 /* We use char because int might match the return type of a gcc2
1389     builtin and then its argument prototype would still apply.  */
1390 char gethostbyname();
1391
1392 int main() {
1393
1394 /* The GNU C library defines this for functions which it implements
1395     to always fail with ENOSYS.  Some functions are actually named
1396     something starting with __ and the normal name is an alias.  */
1397 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1398 choke me
1399 #else
1400 gethostbyname();
1401 #endif
1402
1403 ; return 0; }
1404 EOF
1405 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406   rm -rf conftest*
1407   eval "ac_cv_func_gethostbyname=yes"
1408 else
1409   echo "configure: failed program was:" >&5
1410   cat conftest.$ac_ext >&5
1411   rm -rf conftest*
1412   eval "ac_cv_func_gethostbyname=no"
1413 fi
1414 rm -f conftest*
1415 fi
1416
1417 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1418   echo "$ac_t""yes" 1>&6
1419   :
1420 else
1421   echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1423 echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1424 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426   echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428   ac_save_LIBS="$LIBS"
1429 LIBS="-lnsl  $LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1426 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error.  */
1434 /* We use char because int might match the return type of a gcc2
1435     builtin and then its argument prototype would still apply.  */
1436 char gethostbyname();
1437
1438 int main() {
1439 gethostbyname()
1440 ; return 0; }
1441 EOF
1442 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443   rm -rf conftest*
1444   eval "ac_cv_lib_$ac_lib_var=yes"
1445 else
1446   echo "configure: failed program was:" >&5
1447   cat conftest.$ac_ext >&5
1448   rm -rf conftest*
1449   eval "ac_cv_lib_$ac_lib_var=no"
1450 fi
1451 rm -f conftest*
1452 LIBS="$ac_save_LIBS"
1453
1454 fi
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456   echo "$ac_t""yes" 1>&6
1457     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1458     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1459   cat >> confdefs.h <<EOF
1460 #define $ac_tr_lib 1
1461 EOF
1462
1463   LIBS="-lnsl $LIBS"
1464
1465 else
1466   echo "$ac_t""no" 1>&6
1467 fi
1468
1469 fi
1470
1471 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1472 echo "configure:1467: checking for nanosleep" >&5
1473 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1474   echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1476   cat > conftest.$ac_ext <<EOF
1477 #line 1472 "configure"
1478 #include "confdefs.h"
1479 /* System header to define __stub macros and hopefully few prototypes,
1480     which can conflict with char nanosleep(); below.  */
1481 #include <assert.h>
1482 /* Override any gcc2 internal prototype to avoid an error.  */
1483 /* We use char because int might match the return type of a gcc2
1484     builtin and then its argument prototype would still apply.  */
1485 char nanosleep();
1486
1487 int main() {
1488
1489 /* The GNU C library defines this for functions which it implements
1490     to always fail with ENOSYS.  Some functions are actually named
1491     something starting with __ and the normal name is an alias.  */
1492 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1493 choke me
1494 #else
1495 nanosleep();
1496 #endif
1497
1498 ; return 0; }
1499 EOF
1500 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1501   rm -rf conftest*
1502   eval "ac_cv_func_nanosleep=yes"
1503 else
1504   echo "configure: failed program was:" >&5
1505   cat conftest.$ac_ext >&5
1506   rm -rf conftest*
1507   eval "ac_cv_func_nanosleep=no"
1508 fi
1509 rm -f conftest*
1510 fi
1511
1512 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1513   echo "$ac_t""yes" 1>&6
1514   :
1515 else
1516   echo "$ac_t""no" 1>&6
1517 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1518 echo "configure:1513: checking for nanosleep in -lrt" >&5
1519 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1521   echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523   ac_save_LIBS="$LIBS"
1524 LIBS="-lrt  $LIBS"
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1521 "configure"
1527 #include "confdefs.h"
1528 /* Override any gcc2 internal prototype to avoid an error.  */
1529 /* We use char because int might match the return type of a gcc2
1530     builtin and then its argument prototype would still apply.  */
1531 char nanosleep();
1532
1533 int main() {
1534 nanosleep()
1535 ; return 0; }
1536 EOF
1537 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538   rm -rf conftest*
1539   eval "ac_cv_lib_$ac_lib_var=yes"
1540 else
1541   echo "configure: failed program was:" >&5
1542   cat conftest.$ac_ext >&5
1543   rm -rf conftest*
1544   eval "ac_cv_lib_$ac_lib_var=no"
1545 fi
1546 rm -f conftest*
1547 LIBS="$ac_save_LIBS"
1548
1549 fi
1550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1551   echo "$ac_t""yes" 1>&6
1552     ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1553     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1554   cat >> confdefs.h <<EOF
1555 #define $ac_tr_lib 1
1556 EOF
1557
1558   LIBS="-lrt $LIBS"
1559
1560 else
1561   echo "$ac_t""no" 1>&6
1562 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1563 echo "configure:1558: checking for nanosleep in -lposix4" >&5
1564 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1566   echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568   ac_save_LIBS="$LIBS"
1569 LIBS="-lposix4  $LIBS"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1566 "configure"
1572 #include "confdefs.h"
1573 /* Override any gcc2 internal prototype to avoid an error.  */
1574 /* We use char because int might match the return type of a gcc2
1575     builtin and then its argument prototype would still apply.  */
1576 char nanosleep();
1577
1578 int main() {
1579 nanosleep()
1580 ; return 0; }
1581 EOF
1582 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1583   rm -rf conftest*
1584   eval "ac_cv_lib_$ac_lib_var=yes"
1585 else
1586   echo "configure: failed program was:" >&5
1587   cat conftest.$ac_ext >&5
1588   rm -rf conftest*
1589   eval "ac_cv_lib_$ac_lib_var=no"
1590 fi
1591 rm -f conftest*
1592 LIBS="$ac_save_LIBS"
1593
1594 fi
1595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1596   echo "$ac_t""yes" 1>&6
1597     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1598     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1599   cat >> confdefs.h <<EOF
1600 #define $ac_tr_lib 1
1601 EOF
1602
1603   LIBS="-lposix4 $LIBS"
1604
1605 else
1606   echo "$ac_t""no" 1>&6
1607 fi
1608
1609 fi
1610
1611 fi
1612
1613 for ac_func in usleep
1614 do
1615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1616 echo "configure:1611: checking for $ac_func" >&5
1617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1618   echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620   cat > conftest.$ac_ext <<EOF
1621 #line 1616 "configure"
1622 #include "confdefs.h"
1623 /* System header to define __stub macros and hopefully few prototypes,
1624     which can conflict with char $ac_func(); below.  */
1625 #include <assert.h>
1626 /* Override any gcc2 internal prototype to avoid an error.  */
1627 /* We use char because int might match the return type of a gcc2
1628     builtin and then its argument prototype would still apply.  */
1629 char $ac_func();
1630
1631 int main() {
1632
1633 /* The GNU C library defines this for functions which it implements
1634     to always fail with ENOSYS.  Some functions are actually named
1635     something starting with __ and the normal name is an alias.  */
1636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1637 choke me
1638 #else
1639 $ac_func();
1640 #endif
1641
1642 ; return 0; }
1643 EOF
1644 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1645   rm -rf conftest*
1646   eval "ac_cv_func_$ac_func=yes"
1647 else
1648   echo "configure: failed program was:" >&5
1649   cat conftest.$ac_ext >&5
1650   rm -rf conftest*
1651   eval "ac_cv_func_$ac_func=no"
1652 fi
1653 rm -f conftest*
1654 fi
1655
1656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1657   echo "$ac_t""yes" 1>&6
1658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1659   cat >> confdefs.h <<EOF
1660 #define $ac_tr_func 1
1661 EOF
1662  
1663 else
1664   echo "$ac_t""no" 1>&6
1665 fi
1666 done
1667
1668 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1669 echo "configure:1664: checking for inet_aton" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1671   echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673   cat > conftest.$ac_ext <<EOF
1674 #line 1669 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677     which can conflict with char inet_aton(); below.  */
1678 #include <assert.h>
1679 /* Override any gcc2 internal prototype to avoid an error.  */
1680 /* We use char because int might match the return type of a gcc2
1681     builtin and then its argument prototype would still apply.  */
1682 char inet_aton();
1683
1684 int main() {
1685
1686 /* The GNU C library defines this for functions which it implements
1687     to always fail with ENOSYS.  Some functions are actually named
1688     something starting with __ and the normal name is an alias.  */
1689 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1690 choke me
1691 #else
1692 inet_aton();
1693 #endif
1694
1695 ; return 0; }
1696 EOF
1697 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1698   rm -rf conftest*
1699   eval "ac_cv_func_inet_aton=yes"
1700 else
1701   echo "configure: failed program was:" >&5
1702   cat conftest.$ac_ext >&5
1703   rm -rf conftest*
1704   eval "ac_cv_func_inet_aton=no"
1705 fi
1706 rm -f conftest*
1707 fi
1708
1709 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1710   echo "$ac_t""yes" 1>&6
1711   :
1712 else
1713   echo "$ac_t""no" 1>&6
1714 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1715 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1716 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718   echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720   ac_save_LIBS="$LIBS"
1721 LIBS="-lresolv  $LIBS"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1718 "configure"
1724 #include "confdefs.h"
1725 /* Override any gcc2 internal prototype to avoid an error.  */
1726 /* We use char because int might match the return type of a gcc2
1727     builtin and then its argument prototype would still apply.  */
1728 char inet_aton();
1729
1730 int main() {
1731 inet_aton()
1732 ; return 0; }
1733 EOF
1734 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735   rm -rf conftest*
1736   eval "ac_cv_lib_$ac_lib_var=yes"
1737 else
1738   echo "configure: failed program was:" >&5
1739   cat conftest.$ac_ext >&5
1740   rm -rf conftest*
1741   eval "ac_cv_lib_$ac_lib_var=no"
1742 fi
1743 rm -f conftest*
1744 LIBS="$ac_save_LIBS"
1745
1746 fi
1747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748   echo "$ac_t""yes" 1>&6
1749     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1750     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1751   cat >> confdefs.h <<EOF
1752 #define $ac_tr_lib 1
1753 EOF
1754
1755   LIBS="-lresolv $LIBS"
1756
1757 else
1758   echo "$ac_t""no" 1>&6
1759 fi
1760
1761 fi
1762
1763 for ac_hdr in unistd.h
1764 do
1765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1767 echo "configure:1762: checking for $ac_hdr" >&5
1768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1769   echo $ac_n "(cached) $ac_c" 1>&6
1770 else
1771   cat > conftest.$ac_ext <<EOF
1772 #line 1767 "configure"
1773 #include "confdefs.h"
1774 #include <$ac_hdr>
1775 EOF
1776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779 if test -z "$ac_err"; then
1780   rm -rf conftest*
1781   eval "ac_cv_header_$ac_safe=yes"
1782 else
1783   echo "$ac_err" >&5
1784   echo "configure: failed program was:" >&5
1785   cat conftest.$ac_ext >&5
1786   rm -rf conftest*
1787   eval "ac_cv_header_$ac_safe=no"
1788 fi
1789 rm -f conftest*
1790 fi
1791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1792   echo "$ac_t""yes" 1>&6
1793     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1794   cat >> confdefs.h <<EOF
1795 #define $ac_tr_hdr 1
1796 EOF
1797  
1798 else
1799   echo "$ac_t""no" 1>&6
1800 fi
1801 done
1802
1803 for ac_func in getpagesize
1804 do
1805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1806 echo "configure:1801: checking for $ac_func" >&5
1807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1808   echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810   cat > conftest.$ac_ext <<EOF
1811 #line 1806 "configure"
1812 #include "confdefs.h"
1813 /* System header to define __stub macros and hopefully few prototypes,
1814     which can conflict with char $ac_func(); below.  */
1815 #include <assert.h>
1816 /* Override any gcc2 internal prototype to avoid an error.  */
1817 /* We use char because int might match the return type of a gcc2
1818     builtin and then its argument prototype would still apply.  */
1819 char $ac_func();
1820
1821 int main() {
1822
1823 /* The GNU C library defines this for functions which it implements
1824     to always fail with ENOSYS.  Some functions are actually named
1825     something starting with __ and the normal name is an alias.  */
1826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1827 choke me
1828 #else
1829 $ac_func();
1830 #endif
1831
1832 ; return 0; }
1833 EOF
1834 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1835   rm -rf conftest*
1836   eval "ac_cv_func_$ac_func=yes"
1837 else
1838   echo "configure: failed program was:" >&5
1839   cat conftest.$ac_ext >&5
1840   rm -rf conftest*
1841   eval "ac_cv_func_$ac_func=no"
1842 fi
1843 rm -f conftest*
1844 fi
1845
1846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1847   echo "$ac_t""yes" 1>&6
1848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1849   cat >> confdefs.h <<EOF
1850 #define $ac_tr_func 1
1851 EOF
1852  
1853 else
1854   echo "$ac_t""no" 1>&6
1855 fi
1856 done
1857
1858 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1859 echo "configure:1854: checking for working mmap" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1861   echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863   if test "$cross_compiling" = yes; then
1864   ac_cv_func_mmap_fixed_mapped=no
1865 else
1866   cat > conftest.$ac_ext <<EOF
1867 #line 1862 "configure"
1868 #include "confdefs.h"
1869
1870 /* Thanks to Mike Haertel and Jim Avera for this test.
1871    Here is a matrix of mmap possibilities:
1872         mmap private not fixed
1873         mmap private fixed at somewhere currently unmapped
1874         mmap private fixed at somewhere already mapped
1875         mmap shared not fixed
1876         mmap shared fixed at somewhere currently unmapped
1877         mmap shared fixed at somewhere already mapped
1878    For private mappings, we should verify that changes cannot be read()
1879    back from the file, nor mmap's back from the file at a different
1880    address.  (There have been systems where private was not correctly
1881    implemented like the infamous i386 svr4.0, and systems where the
1882    VM page cache was not coherent with the filesystem buffer cache
1883    like early versions of FreeBSD and possibly contemporary NetBSD.)
1884    For shared mappings, we should conversely verify that changes get
1885    propogated back to all the places they're supposed to be.
1886
1887    Grep wants private fixed already mapped.
1888    The main things grep needs to know about mmap are:
1889    * does it exist and is it safe to write into the mmap'd area
1890    * how to use it (BSD variants)  */
1891 #include <sys/types.h>
1892 #include <fcntl.h>
1893 #include <sys/mman.h>
1894 #include <stdlib.h>
1895 #include <sys/stat.h>
1896
1897 #ifdef HAVE_UNISTD_H
1898 # include <unistd.h>
1899 #endif
1900
1901 /* This mess was copied from the GNU getpagesize.h.  */
1902 #ifndef HAVE_GETPAGESIZE
1903
1904 /* Assume that all systems that can run configure have sys/param.h.  */
1905 # ifndef HAVE_SYS_PARAM_H
1906 #  define HAVE_SYS_PARAM_H 1
1907 # endif
1908
1909 # ifdef _SC_PAGESIZE
1910 #  define getpagesize() sysconf(_SC_PAGESIZE)
1911 # else /* no _SC_PAGESIZE */
1912 #  ifdef HAVE_SYS_PARAM_H
1913 #   include <sys/param.h>
1914 #   ifdef EXEC_PAGESIZE
1915 #    define getpagesize() EXEC_PAGESIZE
1916 #   else /* no EXEC_PAGESIZE */
1917 #    ifdef NBPG
1918 #     define getpagesize() NBPG * CLSIZE
1919 #     ifndef CLSIZE
1920 #      define CLSIZE 1
1921 #     endif /* no CLSIZE */
1922 #    else /* no NBPG */
1923 #     ifdef NBPC
1924 #      define getpagesize() NBPC
1925 #     else /* no NBPC */
1926 #      ifdef PAGESIZE
1927 #       define getpagesize() PAGESIZE
1928 #      endif /* PAGESIZE */
1929 #     endif /* no NBPC */
1930 #    endif /* no NBPG */
1931 #   endif /* no EXEC_PAGESIZE */
1932 #  else /* no HAVE_SYS_PARAM_H */
1933 #   define getpagesize() 8192   /* punt totally */
1934 #  endif /* no HAVE_SYS_PARAM_H */
1935 # endif /* no _SC_PAGESIZE */
1936
1937 #endif /* no HAVE_GETPAGESIZE */
1938
1939 #ifdef __cplusplus
1940 extern "C" { void *malloc(unsigned); }
1941 #else
1942 char *malloc();
1943 #endif
1944
1945 int
1946 main()
1947 {
1948         char *data, *data2, *data3;
1949         int i, pagesize;
1950         int fd;
1951
1952         pagesize = getpagesize();
1953
1954         /*
1955          * First, make a file with some known garbage in it.
1956          */
1957         data = (char*)malloc(pagesize);
1958         if (!data)
1959                 exit(1);
1960         for (i = 0; i < pagesize; ++i)
1961                 *(data + i) = rand();
1962         umask(0);
1963         fd = creat("conftestmmap", 0600);
1964         if (fd < 0)
1965                 exit(1);
1966         if (write(fd, data, pagesize) != pagesize)
1967                 exit(1);
1968         close(fd);
1969
1970         /*
1971          * Next, try to mmap the file at a fixed address which
1972          * already has something else allocated at it.  If we can,
1973          * also make sure that we see the same garbage.
1974          */
1975         fd = open("conftestmmap", O_RDWR);
1976         if (fd < 0)
1977                 exit(1);
1978         data2 = (char*)malloc(2 * pagesize);
1979         if (!data2)
1980                 exit(1);
1981         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1982         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1983             MAP_PRIVATE | MAP_FIXED, fd, 0L))
1984                 exit(1);
1985         for (i = 0; i < pagesize; ++i)
1986                 if (*(data + i) != *(data2 + i))
1987                         exit(1);
1988
1989         /*
1990          * Finally, make sure that changes to the mapped area
1991          * do not percolate back to the file as seen by read().
1992          * (This is a bug on some variants of i386 svr4.0.)
1993          */
1994         for (i = 0; i < pagesize; ++i)
1995                 *(data2 + i) = *(data2 + i) + 1;
1996         data3 = (char*)malloc(pagesize);
1997         if (!data3)
1998                 exit(1);
1999         if (read(fd, data3, pagesize) != pagesize)
2000                 exit(1);
2001         for (i = 0; i < pagesize; ++i)
2002                 if (*(data + i) != *(data3 + i))
2003                         exit(1);
2004         close(fd);
2005         unlink("conftestmmap");
2006         exit(0);
2007 }
2008
2009 EOF
2010 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2011 then
2012   ac_cv_func_mmap_fixed_mapped=yes
2013 else
2014   echo "configure: failed program was:" >&5
2015   cat conftest.$ac_ext >&5
2016   rm -fr conftest*
2017   ac_cv_func_mmap_fixed_mapped=no
2018 fi
2019 rm -fr conftest*
2020 fi
2021
2022 fi
2023
2024 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2026   cat >> confdefs.h <<\EOF
2027 #define HAVE_MMAP 1
2028 EOF
2029
2030 fi
2031
2032 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2033 echo "configure:2028: checking for vprintf" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2035   echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037   cat > conftest.$ac_ext <<EOF
2038 #line 2033 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041     which can conflict with char vprintf(); below.  */
2042 #include <assert.h>
2043 /* Override any gcc2 internal prototype to avoid an error.  */
2044 /* We use char because int might match the return type of a gcc2
2045     builtin and then its argument prototype would still apply.  */
2046 char vprintf();
2047
2048 int main() {
2049
2050 /* The GNU C library defines this for functions which it implements
2051     to always fail with ENOSYS.  Some functions are actually named
2052     something starting with __ and the normal name is an alias.  */
2053 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2054 choke me
2055 #else
2056 vprintf();
2057 #endif
2058
2059 ; return 0; }
2060 EOF
2061 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2062   rm -rf conftest*
2063   eval "ac_cv_func_vprintf=yes"
2064 else
2065   echo "configure: failed program was:" >&5
2066   cat conftest.$ac_ext >&5
2067   rm -rf conftest*
2068   eval "ac_cv_func_vprintf=no"
2069 fi
2070 rm -f conftest*
2071 fi
2072
2073 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2074   echo "$ac_t""yes" 1>&6
2075   cat >> confdefs.h <<\EOF
2076 #define HAVE_VPRINTF 1
2077 EOF
2078
2079 else
2080   echo "$ac_t""no" 1>&6
2081 fi
2082
2083 if test "$ac_cv_func_vprintf" != yes; then
2084 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2085 echo "configure:2080: checking for _doprnt" >&5
2086 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2087   echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089   cat > conftest.$ac_ext <<EOF
2090 #line 2085 "configure"
2091 #include "confdefs.h"
2092 /* System header to define __stub macros and hopefully few prototypes,
2093     which can conflict with char _doprnt(); below.  */
2094 #include <assert.h>
2095 /* Override any gcc2 internal prototype to avoid an error.  */
2096 /* We use char because int might match the return type of a gcc2
2097     builtin and then its argument prototype would still apply.  */
2098 char _doprnt();
2099
2100 int main() {
2101
2102 /* The GNU C library defines this for functions which it implements
2103     to always fail with ENOSYS.  Some functions are actually named
2104     something starting with __ and the normal name is an alias.  */
2105 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2106 choke me
2107 #else
2108 _doprnt();
2109 #endif
2110
2111 ; return 0; }
2112 EOF
2113 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2114   rm -rf conftest*
2115   eval "ac_cv_func__doprnt=yes"
2116 else
2117   echo "configure: failed program was:" >&5
2118   cat conftest.$ac_ext >&5
2119   rm -rf conftest*
2120   eval "ac_cv_func__doprnt=no"
2121 fi
2122 rm -f conftest*
2123 fi
2124
2125 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2126   echo "$ac_t""yes" 1>&6
2127   cat >> confdefs.h <<\EOF
2128 #define HAVE_DOPRNT 1
2129 EOF
2130
2131 else
2132   echo "$ac_t""no" 1>&6
2133 fi
2134
2135 fi
2136
2137 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2138 echo "configure:2133: checking return type of signal handlers" >&5
2139 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2140   echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142   cat > conftest.$ac_ext <<EOF
2143 #line 2138 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2146 #include <signal.h>
2147 #ifdef signal
2148 #undef signal
2149 #endif
2150 #ifdef __cplusplus
2151 extern "C" void (*signal (int, void (*)(int)))(int);
2152 #else
2153 void (*signal ()) ();
2154 #endif
2155
2156 int main() {
2157 int i;
2158 ; return 0; }
2159 EOF
2160 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2161   rm -rf conftest*
2162   ac_cv_type_signal=void
2163 else
2164   echo "configure: failed program was:" >&5
2165   cat conftest.$ac_ext >&5
2166   rm -rf conftest*
2167   ac_cv_type_signal=int
2168 fi
2169 rm -f conftest*
2170 fi
2171
2172 echo "$ac_t""$ac_cv_type_signal" 1>&6
2173 cat >> confdefs.h <<EOF
2174 #define RETSIGTYPE $ac_cv_type_signal
2175 EOF
2176
2177
2178 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2179 echo "configure:2174: checking for dlopen in -ldl" >&5
2180 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2182   echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184   ac_save_LIBS="$LIBS"
2185 LIBS="-ldl  $LIBS"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2182 "configure"
2188 #include "confdefs.h"
2189 /* Override any gcc2 internal prototype to avoid an error.  */
2190 /* We use char because int might match the return type of a gcc2
2191     builtin and then its argument prototype would still apply.  */
2192 char dlopen();
2193
2194 int main() {
2195 dlopen()
2196 ; return 0; }
2197 EOF
2198 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199   rm -rf conftest*
2200   eval "ac_cv_lib_$ac_lib_var=yes"
2201 else
2202   echo "configure: failed program was:" >&5
2203   cat conftest.$ac_ext >&5
2204   rm -rf conftest*
2205   eval "ac_cv_lib_$ac_lib_var=no"
2206 fi
2207 rm -f conftest*
2208 LIBS="$ac_save_LIBS"
2209
2210 fi
2211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2212   echo "$ac_t""yes" 1>&6
2213     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2214     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2215   cat >> confdefs.h <<EOF
2216 #define $ac_tr_lib 1
2217 EOF
2218
2219   LIBS="-ldl $LIBS"
2220
2221 else
2222   echo "$ac_t""no" 1>&6
2223 fi
2224
2225 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2226 echo "configure:2221: checking for optarg in -lgnugetopt" >&5
2227 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   ac_save_LIBS="$LIBS"
2232 LIBS="-lgnugetopt  $LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2229 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error.  */
2237 /* We use char because int might match the return type of a gcc2
2238     builtin and then its argument prototype would still apply.  */
2239 char optarg();
2240
2241 int main() {
2242 optarg()
2243 ; return 0; }
2244 EOF
2245 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246   rm -rf conftest*
2247   eval "ac_cv_lib_$ac_lib_var=yes"
2248 else
2249   echo "configure: failed program was:" >&5
2250   cat conftest.$ac_ext >&5
2251   rm -rf conftest*
2252   eval "ac_cv_lib_$ac_lib_var=no"
2253 fi
2254 rm -f conftest*
2255 LIBS="$ac_save_LIBS"
2256
2257 fi
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259   echo "$ac_t""yes" 1>&6
2260     ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2261     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2262   cat >> confdefs.h <<EOF
2263 #define $ac_tr_lib 1
2264 EOF
2265
2266   LIBS="-lgnugetopt $LIBS"
2267
2268 else
2269   echo "$ac_t""no" 1>&6
2270 fi
2271
2272 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2273 echo "configure:2268: checking for _ in -lbe" >&5
2274 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276   echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278   ac_save_LIBS="$LIBS"
2279 LIBS="-lbe  $LIBS"
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2276 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error.  */
2284 /* We use char because int might match the return type of a gcc2
2285     builtin and then its argument prototype would still apply.  */
2286 char _();
2287
2288 int main() {
2289 _()
2290 ; return 0; }
2291 EOF
2292 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293   rm -rf conftest*
2294   eval "ac_cv_lib_$ac_lib_var=yes"
2295 else
2296   echo "configure: failed program was:" >&5
2297   cat conftest.$ac_ext >&5
2298   rm -rf conftest*
2299   eval "ac_cv_lib_$ac_lib_var=no"
2300 fi
2301 rm -f conftest*
2302 LIBS="$ac_save_LIBS"
2303
2304 fi
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306   echo "$ac_t""yes" 1>&6
2307     ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309   cat >> confdefs.h <<EOF
2310 #define $ac_tr_lib 1
2311 EOF
2312
2313   LIBS="-lbe $LIBS"
2314
2315 else
2316   echo "$ac_t""no" 1>&6
2317 fi
2318
2319 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2320 echo "configure:2315: checking for _ in -lgame" >&5
2321 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323   echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325   ac_save_LIBS="$LIBS"
2326 LIBS="-lgame  $LIBS"
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2323 "configure"
2329 #include "confdefs.h"
2330 /* Override any gcc2 internal prototype to avoid an error.  */
2331 /* We use char because int might match the return type of a gcc2
2332     builtin and then its argument prototype would still apply.  */
2333 char _();
2334
2335 int main() {
2336 _()
2337 ; return 0; }
2338 EOF
2339 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340   rm -rf conftest*
2341   eval "ac_cv_lib_$ac_lib_var=yes"
2342 else
2343   echo "configure: failed program was:" >&5
2344   cat conftest.$ac_ext >&5
2345   rm -rf conftest*
2346   eval "ac_cv_lib_$ac_lib_var=no"
2347 fi
2348 rm -f conftest*
2349 LIBS="$ac_save_LIBS"
2350
2351 fi
2352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353   echo "$ac_t""yes" 1>&6
2354     ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2355     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2356   cat >> confdefs.h <<EOF
2357 #define $ac_tr_lib 1
2358 EOF
2359
2360   LIBS="-lgame $LIBS"
2361
2362 else
2363   echo "$ac_t""no" 1>&6
2364 fi
2365
2366 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2367 echo "configure:2362: checking for _ in -lroot" >&5
2368 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2370   echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372   ac_save_LIBS="$LIBS"
2373 LIBS="-lroot  $LIBS"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2370 "configure"
2376 #include "confdefs.h"
2377 /* Override any gcc2 internal prototype to avoid an error.  */
2378 /* We use char because int might match the return type of a gcc2
2379     builtin and then its argument prototype would still apply.  */
2380 char _();
2381
2382 int main() {
2383 _()
2384 ; return 0; }
2385 EOF
2386 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387   rm -rf conftest*
2388   eval "ac_cv_lib_$ac_lib_var=yes"
2389 else
2390   echo "configure: failed program was:" >&5
2391   cat conftest.$ac_ext >&5
2392   rm -rf conftest*
2393   eval "ac_cv_lib_$ac_lib_var=no"
2394 fi
2395 rm -f conftest*
2396 LIBS="$ac_save_LIBS"
2397
2398 fi
2399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400   echo "$ac_t""yes" 1>&6
2401     ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2402     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2403   cat >> confdefs.h <<EOF
2404 #define $ac_tr_lib 1
2405 EOF
2406
2407   LIBS="-lroot $LIBS"
2408
2409 else
2410   echo "$ac_t""no" 1>&6
2411 fi
2412
2413 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2414 echo "configure:2409: checking for powl in -lm" >&5
2415 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2417   echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419   ac_save_LIBS="$LIBS"
2420 LIBS="-lm  $LIBS"
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2417 "configure"
2423 #include "confdefs.h"
2424 /* Override any gcc2 internal prototype to avoid an error.  */
2425 /* We use char because int might match the return type of a gcc2
2426     builtin and then its argument prototype would still apply.  */
2427 char powl();
2428
2429 int main() {
2430 powl()
2431 ; return 0; }
2432 EOF
2433 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2434   rm -rf conftest*
2435   eval "ac_cv_lib_$ac_lib_var=yes"
2436 else
2437   echo "configure: failed program was:" >&5
2438   cat conftest.$ac_ext >&5
2439   rm -rf conftest*
2440   eval "ac_cv_lib_$ac_lib_var=no"
2441 fi
2442 rm -f conftest*
2443 LIBS="$ac_save_LIBS"
2444
2445 fi
2446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2447   echo "$ac_t""yes" 1>&6
2448     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2449     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2450   cat >> confdefs.h <<EOF
2451 #define $ac_tr_lib 1
2452 EOF
2453
2454   LIBS="-lm $LIBS"
2455
2456 else
2457   echo "$ac_t""no" 1>&6
2458 fi
2459
2460 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2461 echo "configure:2456: checking for pthread_create in -lpthread" >&5
2462 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464   echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466   ac_save_LIBS="$LIBS"
2467 LIBS="-lpthread  $LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2464 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error.  */
2472 /* We use char because int might match the return type of a gcc2
2473     builtin and then its argument prototype would still apply.  */
2474 char pthread_create();
2475
2476 int main() {
2477 pthread_create()
2478 ; return 0; }
2479 EOF
2480 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2481   rm -rf conftest*
2482   eval "ac_cv_lib_$ac_lib_var=yes"
2483 else
2484   echo "configure: failed program was:" >&5
2485   cat conftest.$ac_ext >&5
2486   rm -rf conftest*
2487   eval "ac_cv_lib_$ac_lib_var=no"
2488 fi
2489 rm -f conftest*
2490 LIBS="$ac_save_LIBS"
2491
2492 fi
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494   echo "$ac_t""yes" 1>&6
2495     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2496     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2497   cat >> confdefs.h <<EOF
2498 #define $ac_tr_lib 1
2499 EOF
2500
2501   LIBS="-lpthread $LIBS"
2502
2503 else
2504   echo "$ac_t""no" 1>&6
2505 fi
2506
2507 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2508 echo "configure:2503: checking for thread_create in -lthreads" >&5
2509 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511   echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513   ac_save_LIBS="$LIBS"
2514 LIBS="-lthreads  $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2511 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error.  */
2519 /* We use char because int might match the return type of a gcc2
2520     builtin and then its argument prototype would still apply.  */
2521 char thread_create();
2522
2523 int main() {
2524 thread_create()
2525 ; return 0; }
2526 EOF
2527 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528   rm -rf conftest*
2529   eval "ac_cv_lib_$ac_lib_var=yes"
2530 else
2531   echo "configure: failed program was:" >&5
2532   cat conftest.$ac_ext >&5
2533   rm -rf conftest*
2534   eval "ac_cv_lib_$ac_lib_var=no"
2535 fi
2536 rm -f conftest*
2537 LIBS="$ac_save_LIBS"
2538
2539 fi
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541   echo "$ac_t""yes" 1>&6
2542     ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2543     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544   cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2546 EOF
2547
2548   LIBS="-lthreads $LIBS"
2549
2550 else
2551   echo "$ac_t""no" 1>&6
2552 fi
2553
2554
2555 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2556 echo "configure:2551: checking for getopt_long" >&5
2557 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2558   echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560   cat > conftest.$ac_ext <<EOF
2561 #line 2556 "configure"
2562 #include "confdefs.h"
2563 /* System header to define __stub macros and hopefully few prototypes,
2564     which can conflict with char getopt_long(); below.  */
2565 #include <assert.h>
2566 /* Override any gcc2 internal prototype to avoid an error.  */
2567 /* We use char because int might match the return type of a gcc2
2568     builtin and then its argument prototype would still apply.  */
2569 char getopt_long();
2570
2571 int main() {
2572
2573 /* The GNU C library defines this for functions which it implements
2574     to always fail with ENOSYS.  Some functions are actually named
2575     something starting with __ and the normal name is an alias.  */
2576 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2577 choke me
2578 #else
2579 getopt_long();
2580 #endif
2581
2582 ; return 0; }
2583 EOF
2584 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585   rm -rf conftest*
2586   eval "ac_cv_func_getopt_long=yes"
2587 else
2588   echo "configure: failed program was:" >&5
2589   cat conftest.$ac_ext >&5
2590   rm -rf conftest*
2591   eval "ac_cv_func_getopt_long=no"
2592 fi
2593 rm -f conftest*
2594 fi
2595
2596 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2597   echo "$ac_t""yes" 1>&6
2598   :
2599 else
2600   echo "$ac_t""no" 1>&6
2601 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2602 fi
2603
2604
2605
2606 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2607 do
2608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2605: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612   echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614   cat > conftest.$ac_ext <<EOF
2615 #line 2610 "configure"
2616 #include "confdefs.h"
2617 #include <$ac_hdr>
2618 EOF
2619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2623   rm -rf conftest*
2624   eval "ac_cv_header_$ac_safe=yes"
2625 else
2626   echo "$ac_err" >&5
2627   echo "configure: failed program was:" >&5
2628   cat conftest.$ac_ext >&5
2629   rm -rf conftest*
2630   eval "ac_cv_header_$ac_safe=no"
2631 fi
2632 rm -f conftest*
2633 fi
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635   echo "$ac_t""yes" 1>&6
2636     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637   cat >> confdefs.h <<EOF
2638 #define $ac_tr_hdr 1
2639 EOF
2640  
2641 else
2642   echo "$ac_t""no" 1>&6
2643 fi
2644 done
2645
2646 for ac_hdr in sys/soundcard.h machine/soundcard.h
2647 do
2648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2650 echo "configure:2645: checking for $ac_hdr" >&5
2651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652   echo $ac_n "(cached) $ac_c" 1>&6
2653 else
2654   cat > conftest.$ac_ext <<EOF
2655 #line 2650 "configure"
2656 #include "confdefs.h"
2657 #include <$ac_hdr>
2658 EOF
2659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660 { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662 if test -z "$ac_err"; then
2663   rm -rf conftest*
2664   eval "ac_cv_header_$ac_safe=yes"
2665 else
2666   echo "$ac_err" >&5
2667   echo "configure: failed program was:" >&5
2668   cat conftest.$ac_ext >&5
2669   rm -rf conftest*
2670   eval "ac_cv_header_$ac_safe=no"
2671 fi
2672 rm -f conftest*
2673 fi
2674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675   echo "$ac_t""yes" 1>&6
2676     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2677   cat >> confdefs.h <<EOF
2678 #define $ac_tr_hdr 1
2679 EOF
2680  
2681 else
2682   echo "$ac_t""no" 1>&6
2683 fi
2684 done
2685
2686 for ac_hdr in dlfcn.h image.h
2687 do
2688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2690 echo "configure:2685: checking for $ac_hdr" >&5
2691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694   cat > conftest.$ac_ext <<EOF
2695 #line 2690 "configure"
2696 #include "confdefs.h"
2697 #include <$ac_hdr>
2698 EOF
2699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2700 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2702 if test -z "$ac_err"; then
2703   rm -rf conftest*
2704   eval "ac_cv_header_$ac_safe=yes"
2705 else
2706   echo "$ac_err" >&5
2707   echo "configure: failed program was:" >&5
2708   cat conftest.$ac_ext >&5
2709   rm -rf conftest*
2710   eval "ac_cv_header_$ac_safe=no"
2711 fi
2712 rm -f conftest*
2713 fi
2714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2715   echo "$ac_t""yes" 1>&6
2716     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2717   cat >> confdefs.h <<EOF
2718 #define $ac_tr_hdr 1
2719 EOF
2720  
2721 else
2722   echo "$ac_t""no" 1>&6
2723 fi
2724 done
2725
2726 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2727 do
2728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2730 echo "configure:2725: checking for $ac_hdr" >&5
2731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2732   echo $ac_n "(cached) $ac_c" 1>&6
2733 else
2734   cat > conftest.$ac_ext <<EOF
2735 #line 2730 "configure"
2736 #include "confdefs.h"
2737 #include <$ac_hdr>
2738 EOF
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2743   rm -rf conftest*
2744   eval "ac_cv_header_$ac_safe=yes"
2745 else
2746   echo "$ac_err" >&5
2747   echo "configure: failed program was:" >&5
2748   cat conftest.$ac_ext >&5
2749   rm -rf conftest*
2750   eval "ac_cv_header_$ac_safe=no"
2751 fi
2752 rm -f conftest*
2753 fi
2754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2755   echo "$ac_t""yes" 1>&6
2756     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2757   cat >> confdefs.h <<EOF
2758 #define $ac_tr_hdr 1
2759 EOF
2760  
2761 else
2762   echo "$ac_t""no" 1>&6
2763 fi
2764 done
2765
2766
2767 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2768 do
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2766: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773   echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775   cat > conftest.$ac_ext <<EOF
2776 #line 2771 "configure"
2777 #include "confdefs.h"
2778 #include <$ac_hdr>
2779 EOF
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2784   rm -rf conftest*
2785   eval "ac_cv_header_$ac_safe=yes"
2786 else
2787   echo "$ac_err" >&5
2788   echo "configure: failed program was:" >&5
2789   cat conftest.$ac_ext >&5
2790   rm -rf conftest*
2791   eval "ac_cv_header_$ac_safe=no"
2792 fi
2793 rm -f conftest*
2794 fi
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796   echo "$ac_t""yes" 1>&6
2797     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798   cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2800 EOF
2801  
2802 else
2803   echo "$ac_t""no" 1>&6
2804 fi
2805 done
2806
2807
2808 echo $ac_n "checking for working const""... $ac_c" 1>&6
2809 echo "configure:2804: checking for working const" >&5
2810 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2811   echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813   cat > conftest.$ac_ext <<EOF
2814 #line 2809 "configure"
2815 #include "confdefs.h"
2816
2817 int main() {
2818
2819 /* Ultrix mips cc rejects this.  */
2820 typedef int charset[2]; const charset x = {0,0};
2821 /* SunOS 4.1.1 cc rejects this.  */
2822 char const *const *ccp;
2823 char **p;
2824 /* NEC SVR4.0.2 mips cc rejects this.  */
2825 struct point {int x, y;};
2826 static struct point const zero = {0,0};
2827 /* AIX XL C 1.02.0.0 rejects this.
2828    It does not let you subtract one const X* pointer from another in an arm
2829    of an if-expression whose if-part is not a constant expression */
2830 const char *g = "string";
2831 ccp = &g + (g ? g-g : 0);
2832 /* HPUX 7.0 cc rejects these. */
2833 ++ccp;
2834 p = (char**) ccp;
2835 ccp = (char const *const *) p;
2836 { /* SCO 3.2v4 cc rejects this.  */
2837   char *t;
2838   char const *s = 0 ? (char *) 0 : (char const *) 0;
2839
2840   *t++ = 0;
2841 }
2842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2843   int x[] = {25, 17};
2844   const int *foo = &x[0];
2845   ++foo;
2846 }
2847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2848   typedef const int *iptr;
2849   iptr p = 0;
2850   ++p;
2851 }
2852 { /* AIX XL C 1.02.0.0 rejects this saying
2853      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2854   struct s { int j; const int *ap[3]; };
2855   struct s *b; b->j = 5;
2856 }
2857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2858   const int foo = 10;
2859 }
2860
2861 ; return 0; }
2862 EOF
2863 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864   rm -rf conftest*
2865   ac_cv_c_const=yes
2866 else
2867   echo "configure: failed program was:" >&5
2868   cat conftest.$ac_ext >&5
2869   rm -rf conftest*
2870   ac_cv_c_const=no
2871 fi
2872 rm -f conftest*
2873 fi
2874
2875 echo "$ac_t""$ac_cv_c_const" 1>&6
2876 if test $ac_cv_c_const = no; then
2877   cat >> confdefs.h <<\EOF
2878 #define const 
2879 EOF
2880
2881 fi
2882
2883 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2884 echo "configure:2879: checking for ANSI C header files" >&5
2885 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2886   echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888   cat > conftest.$ac_ext <<EOF
2889 #line 2884 "configure"
2890 #include "confdefs.h"
2891 #include <stdlib.h>
2892 #include <stdarg.h>
2893 #include <string.h>
2894 #include <float.h>
2895 EOF
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2900   rm -rf conftest*
2901   ac_cv_header_stdc=yes
2902 else
2903   echo "$ac_err" >&5
2904   echo "configure: failed program was:" >&5
2905   cat conftest.$ac_ext >&5
2906   rm -rf conftest*
2907   ac_cv_header_stdc=no
2908 fi
2909 rm -f conftest*
2910
2911 if test $ac_cv_header_stdc = yes; then
2912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2909 "configure"
2915 #include "confdefs.h"
2916 #include <string.h>
2917 EOF
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919   egrep "memchr" >/dev/null 2>&1; then
2920   :
2921 else
2922   rm -rf conftest*
2923   ac_cv_header_stdc=no
2924 fi
2925 rm -f conftest*
2926
2927 fi
2928
2929 if test $ac_cv_header_stdc = yes; then
2930   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2927 "configure"
2933 #include "confdefs.h"
2934 #include <stdlib.h>
2935 EOF
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937   egrep "free" >/dev/null 2>&1; then
2938   :
2939 else
2940   rm -rf conftest*
2941   ac_cv_header_stdc=no
2942 fi
2943 rm -f conftest*
2944
2945 fi
2946
2947 if test $ac_cv_header_stdc = yes; then
2948   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2949 if test "$cross_compiling" = yes; then
2950   :
2951 else
2952   cat > conftest.$ac_ext <<EOF
2953 #line 2948 "configure"
2954 #include "confdefs.h"
2955 #include <ctype.h>
2956 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2957 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2959 int main () { int i; for (i = 0; i < 256; i++)
2960 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2961 exit (0); }
2962
2963 EOF
2964 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2965 then
2966   :
2967 else
2968   echo "configure: failed program was:" >&5
2969   cat conftest.$ac_ext >&5
2970   rm -fr conftest*
2971   ac_cv_header_stdc=no
2972 fi
2973 rm -fr conftest*
2974 fi
2975
2976 fi
2977 fi
2978
2979 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2980 if test $ac_cv_header_stdc = yes; then
2981   cat >> confdefs.h <<\EOF
2982 #define STDC_HEADERS 1
2983 EOF
2984
2985 fi
2986
2987 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2988 echo "configure:2983: checking for size_t" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2990   echo $ac_n "(cached) $ac_c" 1>&6
2991 else
2992   cat > conftest.$ac_ext <<EOF
2993 #line 2988 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
2996 #if STDC_HEADERS
2997 #include <stdlib.h>
2998 #include <stddef.h>
2999 #endif
3000 EOF
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3003   rm -rf conftest*
3004   ac_cv_type_size_t=yes
3005 else
3006   rm -rf conftest*
3007   ac_cv_type_size_t=no
3008 fi
3009 rm -f conftest*
3010
3011 fi
3012 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3013 if test $ac_cv_type_size_t = no; then
3014   cat >> confdefs.h <<\EOF
3015 #define size_t unsigned
3016 EOF
3017
3018 fi
3019
3020 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3021 echo "configure:3016: checking whether time.h and sys/time.h may both be included" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3023   echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025   cat > conftest.$ac_ext <<EOF
3026 #line 3021 "configure"
3027 #include "confdefs.h"
3028 #include <sys/types.h>
3029 #include <sys/time.h>
3030 #include <time.h>
3031 int main() {
3032 struct tm *tp;
3033 ; return 0; }
3034 EOF
3035 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036   rm -rf conftest*
3037   ac_cv_header_time=yes
3038 else
3039   echo "configure: failed program was:" >&5
3040   cat conftest.$ac_ext >&5
3041   rm -rf conftest*
3042   ac_cv_header_time=no
3043 fi
3044 rm -f conftest*
3045 fi
3046
3047 echo "$ac_t""$ac_cv_header_time" 1>&6
3048 if test $ac_cv_header_time = yes; then
3049   cat >> confdefs.h <<\EOF
3050 #define TIME_WITH_SYS_TIME 1
3051 EOF
3052
3053 fi
3054
3055
3056 PLUGINS=${PLUGINS}"yuv ";
3057
3058 ARCH=${host_cpu}
3059 # Check whether --enable-ppro or --disable-ppro was given.
3060 if test "${enable_ppro+set}" = set; then
3061   enableval="$enable_ppro"
3062    if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi 
3063 fi
3064
3065 # Check whether --enable-mmx or --disable-mmx was given.
3066 if test "${enable_mmx+set}" = set; then
3067   enableval="$enable_mmx"
3068    if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi 
3069 fi
3070
3071 # Check whether --enable-debug or --disable-debug was given.
3072 if test "${enable_debug+set}" = set; then
3073   enableval="$enable_debug"
3074    if test x$enableval = xyes; then DEBUG=1; fi 
3075 fi
3076
3077 # Check whether --enable-stats or --disable-stats was given.
3078 if test "${enable_stats+set}" = set; then
3079   enableval="$enable_stats"
3080 fi
3081 if test x$enable_stats != xno; then STATS=1; fi 
3082
3083 # Check whether --enable-optims or --disable-optims was given.
3084 if test "${enable_optims+set}" = set; then
3085   enableval="$enable_optims"
3086 fi
3087 if test x$enable_optims != xno; then OPTIMS=1; fi 
3088
3089
3090 SYS=${host_os}
3091
3092 # special cases
3093 if test x$host_os = xbeos; then
3094     PLUGINS=${PLUGINS}"dummy beos "
3095
3096 else
3097
3098 # Check whether --enable-dummy or --disable-dummy was given.
3099 if test "${enable_dummy+set}" = set; then
3100   enableval="$enable_dummy"
3101   :
3102 fi
3103
3104 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3105 # Check whether --enable-dsp or --disable-dsp was given.
3106 if test "${enable_dsp+set}" = set; then
3107   enableval="$enable_dsp"
3108   :
3109 fi
3110
3111 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3112 # Check whether --enable-esd or --disable-esd was given.
3113 if test "${enable_esd+set}" = set; then
3114   enableval="$enable_esd"
3115   if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3116 fi
3117
3118 # Check whether --enable-fb or --disable-fb was given.
3119 if test "${enable_fb+set}" = set; then
3120   enableval="$enable_fb"
3121   if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3122 fi
3123
3124 # Check whether --enable-ggi or --disable-ggi was given.
3125 if test "${enable_ggi+set}" = set; then
3126   enableval="$enable_ggi"
3127   if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; fi
3128 fi
3129
3130 # Check whether --enable-sdl or --disable-sdl was given.
3131 if test "${enable_sdl+set}" = set; then
3132   enableval="$enable_sdl"
3133   if test x$enable_sdl = xyes; then PLUGINS=${PLUGINS}"sdl "; fi
3134 fi
3135
3136 # Check whether --enable-glide or --disable-glide was given.
3137 if test "${enable_glide+set}" = set; then
3138   enableval="$enable_glide"
3139   if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; fi
3140 fi
3141
3142 # Check whether --enable-gnome or --disable-gnome was given.
3143 if test "${enable_gnome+set}" = set; then
3144   enableval="$enable_gnome"
3145   if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3146 fi
3147
3148 # Check whether --enable-x11 or --disable-x11 was given.
3149 if test "${enable_x11+set}" = set; then
3150   enableval="$enable_x11"
3151   :
3152 fi
3153
3154 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3155
3156 fi
3157
3158
3159
3160
3161
3162
3163 trap '' 1 2 15
3164 cat > confcache <<\EOF
3165 # This file is a shell script that caches the results of configure
3166 # tests run on this system so they can be shared between configure
3167 # scripts and configure runs.  It is not useful on other systems.
3168 # If it contains results you don't want to keep, you may remove or edit it.
3169 #
3170 # By default, configure uses ./config.cache as the cache file,
3171 # creating it if it does not exist already.  You can give configure
3172 # the --cache-file=FILE option to use a different cache file; that is
3173 # what configure does when it calls configure scripts in
3174 # subdirectories, so they share the cache.
3175 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3176 # config.status only pays attention to the cache file if you give it the
3177 # --recheck option to rerun configure.
3178 #
3179 EOF
3180 # The following way of writing the cache mishandles newlines in values,
3181 # but we know of no workaround that is simple, portable, and efficient.
3182 # So, don't put newlines in cache variables' values.
3183 # Ultrix sh set writes to stderr and can't be redirected directly,
3184 # and sets the high bit in the cache file unless we assign to the vars.
3185 (set) 2>&1 |
3186   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3187   *ac_space=\ *)
3188     # `set' does not quote correctly, so add quotes (double-quote substitution
3189     # turns \\\\ into \\, and sed turns \\ into \).
3190     sed -n \
3191       -e "s/'/'\\\\''/g" \
3192       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3193     ;;
3194   *)
3195     # `set' quotes correctly as required by POSIX, so do not add quotes.
3196     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3197     ;;
3198   esac >> confcache
3199 if cmp -s $cache_file confcache; then
3200   :
3201 else
3202   if test -w $cache_file; then
3203     echo "updating cache $cache_file"
3204     cat confcache > $cache_file
3205   else
3206     echo "not updating unwritable cache $cache_file"
3207   fi
3208 fi
3209 rm -f confcache
3210
3211 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3212
3213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3214 # Let make expand exec_prefix.
3215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3216
3217 # Any assignment to VPATH causes Sun make to only execute
3218 # the first set of double-colon rules, so remove it if not needed.
3219 # If there is a colon in the path, we need to keep it.
3220 if test "x$srcdir" = x.; then
3221   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3222 fi
3223
3224 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3225
3226 DEFS=-DHAVE_CONFIG_H
3227
3228 # Without the "./", some shells look in PATH for config.status.
3229 : ${CONFIG_STATUS=./config.status}
3230
3231 echo creating $CONFIG_STATUS
3232 rm -f $CONFIG_STATUS
3233 cat > $CONFIG_STATUS <<EOF
3234 #! /bin/sh
3235 # Generated automatically by configure.
3236 # Run this file to recreate the current configuration.
3237 # This directory was configured as follows,
3238 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3239 #
3240 # $0 $ac_configure_args
3241 #
3242 # Compiler output produced by configure, useful for debugging
3243 # configure, is in ./config.log if it exists.
3244
3245 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3246 for ac_option
3247 do
3248   case "\$ac_option" in
3249   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3250     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3251     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3252   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3253     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3254     exit 0 ;;
3255   -help | --help | --hel | --he | --h)
3256     echo "\$ac_cs_usage"; exit 0 ;;
3257   *) echo "\$ac_cs_usage"; exit 1 ;;
3258   esac
3259 done
3260
3261 ac_given_srcdir=$srcdir
3262 ac_given_INSTALL="$INSTALL"
3263
3264 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3265 EOF
3266 cat >> $CONFIG_STATUS <<EOF
3267
3268 # Protect against being on the right side of a sed subst in config.status.
3269 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3270  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3271 $ac_vpsub
3272 $extrasub
3273 s%@SHELL@%$SHELL%g
3274 s%@CFLAGS@%$CFLAGS%g
3275 s%@CPPFLAGS@%$CPPFLAGS%g
3276 s%@CXXFLAGS@%$CXXFLAGS%g
3277 s%@FFLAGS@%$FFLAGS%g
3278 s%@DEFS@%$DEFS%g
3279 s%@LDFLAGS@%$LDFLAGS%g
3280 s%@LIBS@%$LIBS%g
3281 s%@exec_prefix@%$exec_prefix%g
3282 s%@prefix@%$prefix%g
3283 s%@program_transform_name@%$program_transform_name%g
3284 s%@bindir@%$bindir%g
3285 s%@sbindir@%$sbindir%g
3286 s%@libexecdir@%$libexecdir%g
3287 s%@datadir@%$datadir%g
3288 s%@sysconfdir@%$sysconfdir%g
3289 s%@sharedstatedir@%$sharedstatedir%g
3290 s%@localstatedir@%$localstatedir%g
3291 s%@libdir@%$libdir%g
3292 s%@includedir@%$includedir%g
3293 s%@oldincludedir@%$oldincludedir%g
3294 s%@infodir@%$infodir%g
3295 s%@mandir@%$mandir%g
3296 s%@host@%$host%g
3297 s%@host_alias@%$host_alias%g
3298 s%@host_cpu@%$host_cpu%g
3299 s%@host_vendor@%$host_vendor%g
3300 s%@host_os@%$host_os%g
3301 s%@VLC_VERSION@%$VLC_VERSION%g
3302 s%@VLC_CODENAME@%$VLC_CODENAME%g
3303 s%@SET_MAKE@%$SET_MAKE%g
3304 s%@CC@%$CC%g
3305 s%@CPP@%$CPP%g
3306 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3307 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3308 s%@INSTALL_DATA@%$INSTALL_DATA%g
3309 s%@LIBOBJS@%$LIBOBJS%g
3310 s%@SYS@%$SYS%g
3311 s%@ARCH@%$ARCH%g
3312 s%@PLUGINS@%$PLUGINS%g
3313 s%@ALIASES@%$ALIASES%g
3314 s%@DEBUG@%$DEBUG%g
3315 s%@STATS@%$STATS%g
3316 s%@OPTIMS@%$OPTIMS%g
3317
3318 CEOF
3319 EOF
3320
3321 cat >> $CONFIG_STATUS <<\EOF
3322
3323 # Split the substitutions into bite-sized pieces for seds with
3324 # small command number limits, like on Digital OSF/1 and HP-UX.
3325 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3326 ac_file=1 # Number of current file.
3327 ac_beg=1 # First line for current file.
3328 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3329 ac_more_lines=:
3330 ac_sed_cmds=""
3331 while $ac_more_lines; do
3332   if test $ac_beg -gt 1; then
3333     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3334   else
3335     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3336   fi
3337   if test ! -s conftest.s$ac_file; then
3338     ac_more_lines=false
3339     rm -f conftest.s$ac_file
3340   else
3341     if test -z "$ac_sed_cmds"; then
3342       ac_sed_cmds="sed -f conftest.s$ac_file"
3343     else
3344       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3345     fi
3346     ac_file=`expr $ac_file + 1`
3347     ac_beg=$ac_end
3348     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3349   fi
3350 done
3351 if test -z "$ac_sed_cmds"; then
3352   ac_sed_cmds=cat
3353 fi
3354 EOF
3355
3356 cat >> $CONFIG_STATUS <<EOF
3357
3358 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3359 EOF
3360 cat >> $CONFIG_STATUS <<\EOF
3361 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3362   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3363   case "$ac_file" in
3364   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3365        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3366   *) ac_file_in="${ac_file}.in" ;;
3367   esac
3368
3369   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3370
3371   # Remove last slash and all that follows it.  Not all systems have dirname.
3372   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3373   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3374     # The file is in a subdirectory.
3375     test ! -d "$ac_dir" && mkdir "$ac_dir"
3376     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3377     # A "../" for each directory in $ac_dir_suffix.
3378     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3379   else
3380     ac_dir_suffix= ac_dots=
3381   fi
3382
3383   case "$ac_given_srcdir" in
3384   .)  srcdir=.
3385       if test -z "$ac_dots"; then top_srcdir=.
3386       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3387   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3388   *) # Relative path.
3389     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3390     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3391   esac
3392
3393   case "$ac_given_INSTALL" in
3394   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3395   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3396   esac
3397
3398   echo creating "$ac_file"
3399   rm -f "$ac_file"
3400   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3401   case "$ac_file" in
3402   *Makefile*) ac_comsub="1i\\
3403 # $configure_input" ;;
3404   *) ac_comsub= ;;
3405   esac
3406
3407   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3408   sed -e "$ac_comsub
3409 s%@configure_input@%$configure_input%g
3410 s%@srcdir@%$srcdir%g
3411 s%@top_srcdir@%$top_srcdir%g
3412 s%@INSTALL@%$INSTALL%g
3413 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3414 fi; done
3415 rm -f conftest.s*
3416
3417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3419 #
3420 # ac_d sets the value in "#define NAME VALUE" lines.
3421 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3422 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3423 ac_dC='\3'
3424 ac_dD='%g'
3425 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3426 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3427 ac_uB='\([      ]\)%\1#\2define\3'
3428 ac_uC=' '
3429 ac_uD='\4%g'
3430 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3431 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3432 ac_eB='$%\1#\2define\3'
3433 ac_eC=' '
3434 ac_eD='%g'
3435
3436 if test "${CONFIG_HEADERS+set}" != set; then
3437 EOF
3438 cat >> $CONFIG_STATUS <<EOF
3439   CONFIG_HEADERS="include/defs.h"
3440 EOF
3441 cat >> $CONFIG_STATUS <<\EOF
3442 fi
3443 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3444   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3445   case "$ac_file" in
3446   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3447        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3448   *) ac_file_in="${ac_file}.in" ;;
3449   esac
3450
3451   echo creating $ac_file
3452
3453   rm -f conftest.frag conftest.in conftest.out
3454   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3455   cat $ac_file_inputs > conftest.in
3456
3457 EOF
3458
3459 # Transform confdefs.h into a sed script conftest.vals that substitutes
3460 # the proper values into config.h.in to produce config.h.  And first:
3461 # Protect against being on the right side of a sed subst in config.status.
3462 # Protect against being in an unquoted here document in config.status.
3463 rm -f conftest.vals
3464 cat > conftest.hdr <<\EOF
3465 s/[\\&%]/\\&/g
3466 s%[\\$`]%\\&%g
3467 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3468 s%ac_d%ac_u%gp
3469 s%ac_u%ac_e%gp
3470 EOF
3471 sed -n -f conftest.hdr confdefs.h > conftest.vals
3472 rm -f conftest.hdr
3473
3474 # This sed command replaces #undef with comments.  This is necessary, for
3475 # example, in the case of _POSIX_SOURCE, which is predefined and required
3476 # on some systems where configure will not decide to define it.
3477 cat >> conftest.vals <<\EOF
3478 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3479 EOF
3480
3481 # Break up conftest.vals because some shells have a limit on
3482 # the size of here documents, and old seds have small limits too.
3483
3484 rm -f conftest.tail
3485 while :
3486 do
3487   ac_lines=`grep -c . conftest.vals`
3488   # grep -c gives empty output for an empty file on some AIX systems.
3489   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3490   # Write a limited-size here document to conftest.frag.
3491   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3492   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3493   echo 'CEOF
3494   sed -f conftest.frag conftest.in > conftest.out
3495   rm -f conftest.in
3496   mv conftest.out conftest.in
3497 ' >> $CONFIG_STATUS
3498   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3499   rm -f conftest.vals
3500   mv conftest.tail conftest.vals
3501 done
3502 rm -f conftest.vals
3503
3504 cat >> $CONFIG_STATUS <<\EOF
3505   rm -f conftest.frag conftest.h
3506   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3507   cat conftest.in >> conftest.h
3508   rm -f conftest.in
3509   if cmp -s $ac_file conftest.h 2>/dev/null; then
3510     echo "$ac_file is unchanged"
3511     rm -f conftest.h
3512   else
3513     # Remove last slash and all that follows it.  Not all systems have dirname.
3514       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3515       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3516       # The file is in a subdirectory.
3517       test ! -d "$ac_dir" && mkdir "$ac_dir"
3518     fi
3519     rm -f $ac_file
3520     mv conftest.h $ac_file
3521   fi
3522 fi; done
3523
3524 EOF
3525 cat >> $CONFIG_STATUS <<EOF
3526
3527 EOF
3528 cat >> $CONFIG_STATUS <<\EOF
3529
3530 exit 0
3531 EOF
3532 chmod +x $CONFIG_STATUS
3533 rm -fr confdefs* $ac_clean_files
3534 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3535
3536
3537 echo "
3538 vlc configuration
3539 -----------------
3540 vlc version           : ${VLC_VERSION}
3541 system                : ${SYS}
3542 architecture          : ${ARCH}
3543 debug mode            : ${DEBUG}
3544 statistics            : ${STATS}
3545 optimizations         : ${OPTIMS}
3546 plugins               : ${PLUGINS}
3547 vlc aliases           : ${ALIASES}
3548 "
3549