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